Aether Catalog definitions — MachineLearning_PrimewisePersistence_VolcanoDepth
DefinitionMachineLearning_PrimewisePersistence_VolcanoDepthaether-catalogmachinelearning
Definition bundle for the Aether Catalog module MachineLearning.PrimewisePersistence.VolcanoDepth, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.
Definition code
-- Def bundle generated from MachineLearning/PrimewisePersistence/VolcanoDepth.lean by skeleton subtraction
import Mathlib
/-
Copyright (c) 2025. All rights reserved.
# Primewise Persistent Homology Detects Isogeny Volcano Depth
This file develops the combinatorial and topological foundations for detecting
volcano depth in l-isogeny graphs using persistent homology of neighborhood
complexes.
## Novel Contributions
* `VolcanoNeighborhoodComplex` — a new structure capturing the filtered
simplicial complex built from BFS neighborhoods in volcano graphs
* Proof that cycle birth radius equals volcano depth for well-behaved complexes
* Cross-domain bridge: number theory ↔ algebraic topology via graph combinatorics
-/
open Finset BigOperators
namespace VolcanoDepthDetection
/-! ## Section 1: Volcano Degree Sequence -/
/-- Configuration parameters for an l-isogeny volcano. -/
structure VolcanoParams where
l : ℕ
maxDepth : ℕ
hl : 2 ≤ l
hd : 0 < maxDepth
/-- Total degree at depth k in an l-volcano.
Crater (k=0): l. Interior (0<k<d): l+1. Floor (k=d): 1. -/
def totalDegree (params : VolcanoParams) (k : ℕ) : ℕ :=
if k = 0 then params.l
else if k < params.maxDepth then params.l + 1
else 1
/-! ## Section 2: Novel Structure — Volcano Neighborhood Complex -/
/-- A `VolcanoNeighborhoodComplex` captures the filtered topological data
extracted from BFS neighborhoods in an l-isogeny volcano.
This is the core novel construction connecting arithmetic geometry to TDA. -/
structure VolcanoNeighborhoodComplex where
/-- Depth of the center vertex in the volcano -/
centerDepth : ℕ
/-- Maximum filtration radius -/
maxRadius : ℕ
/-- Vertex count at each radius -/
vertexCounts : ℕ → ℕ
/-- Edge count at each radius -/
edgeCounts : ℕ → ℕ
/-- The center vertex is always present -/
vertex_pos : ∀ r, 0 < vertexCounts r
/-- Vertex counts are monotone (BFS expands) -/
vertex_mono : ∀ r₁ r₂, r₁ ≤ r₂ → vertexCounts r₁ ≤ vertexCounts r₂
/-- Edge counts are monotone -/
edge_mono : ∀ r₁ r₂, r₁ ≤ r₂ → edgeCounts r₁ ≤ edgeCounts r₂
/-- Cycle rank (β₁) at radius r, as an integer.
For connected graph: β₁ = |E| - |V| + 1. -/
def VolcanoNeighborhoodComplex.cycleRankZ (K : VolcanoNeighborhoodComplex) (r : ℕ) : ℤ :=
(K.edgeCounts r : ℤ) - (K.vertexCounts r : ℤ) + 1
/-- Cycle rank as a natural number (clamped at 0). -/
def VolcanoNeighborhoodComplex.cycleRank (K : VolcanoNeighborhoodComplex) (r : ℕ) : ℕ :=
(K.cycleRankZ r).toNat
/-- First cycle birth radius. -/
noncomputable def VolcanoNeighborhoodComplex.firstCycleBirth
(K : VolcanoNeighborhoodComplex) (h : ∃ r, 0 < K.cycleRank r) : ℕ :=
Nat.find h
/-! ## Section 3: Well-Behaved Complexes and Depth Detection -/
/-- A well-behaved volcano complex: tree-like below crater distance,
cyclic at crater distance. -/
structure WellBehavedComplex extends VolcanoNeighborhoodComplex where
/-- Below crater distance, the neighborhood is a tree -/
tree_below_crater : ∀ r, r < centerDepth → edgeCounts r + 1 = vertexCounts r
/-- At crater distance, the cycle rank is positive -/
positive_at_crater : centerDepth ≤ maxRadius →
0 < toVolcanoNeighborhoodComplex.cycleRank centerDepth
/-! ## Section 4: Depth Separation -/
/-! ## Section 5: Cycle Rank Properties -/
/-! ## Section 6: Persistence Bar Length -/
/-- Persistence bar length: maxRadius - firstCycleBirth. -/
noncomputable def persistenceBarLength (K : VolcanoNeighborhoodComplex)
(h : ∃ r, 0 < K.cycleRank r) : ℕ :=
K.maxRadius - K.firstCycleBirth h
/-! ## Section 7: Euler Characteristic Bridge -/
/-- Euler characteristic: χ = |V| - |E|. -/
def eulerChar (nV nE : ℕ) : ℤ := (nV : ℤ) - (nE : ℤ)
/-! ## Section 8: Subtree Growth -/
/-- Subtree size: sum of l^i for i = 0..r. -/
def subtreeSize (l r : ℕ) : ℕ := ∑ i ∈ Finset.range (r + 1), l ^ i
/-! ## Section 9: Depth Classification Algorithm -/
/-- Depth prediction: returns first cycle birth radius. -/
noncomputable def predictDepth (K : VolcanoNeighborhoodComplex)
(h : ∃ r, 0 < K.cycleRank r) : ℕ :=
K.firstCycleBirth h
/-! ## Falsifiable Conjecture
**Conjecture (Primewise Persistent Homology Depth Detection).**
For each fixed small prime l ≥ 2, there exists a radius bound R(l) such that
for all sufficiently large primes p, if E/𝔽_p is an ordinary elliptic curve
that is non-exceptional in the l-isogeny graph, then the first cycle birth
radius of the neighborhood complex K(E) at radius R(l) equals the l-volcano
depth of E.
**Computational Test.** For primes p in [1000, 100000] and l ∈ {2, 3, 5, 7}:
1. Enumerate ordinary elliptic curves E/𝔽_p
2. Compute volcano depth via endomorphism ring discriminant
3. Build BFS neighborhood complex K(E) at radius ≤ 10
4. Compute H₁ persistence barcode
5. Verify firstCycleBirth = volcano depth
**Refutation Criterion.** Exhibit an infinite family {E_i/𝔽_{p_i}} with
p_i → ∞ where firstCycleBirth(K(E_i)) ≠ volcanoDepth(E_i) for all i. -/
end VolcanoDepthDetection