RiemannA guide by Principia Superintelligence

Part II, chapter 14

Slopes of lattices

Divisibility is an index, size is an operator norm, and the inequality that compares them is a statement about slopes of lattices: μ(L)+1rklog⁡[M:T(L)]≤μ(M)+log⁡∥T∥\mu(L) + \tfrac1{\mathrm{rk}}\log[M : T(L)] \le \mu(M) + \log\|T\|. The archive proves it; the proof uses a version with heights over a number field and with minimal slopes along the chain. Two things can spoil it: denominators, controlled by a bound on Galois cohomology, and rank, the subject of chapter 15.

draft, under review20 minfirst published in v0.1.0, 2026-11-22

From one determinant to lattices

A lattice LL of rank rr in a Euclidean space is the integer span of rr independent vectors. Its covolume, measured in its span, is the volume of the parallelepiped on a basis. Put μ(L)=−log⁡(covol⁡L)/r\mu(L) = -\log(\operatorname{covol}L)/r, the slope. Let TT be an injective linear map with T(L)⊂MT(L) \subset M and ∥T∥\|T\| its operator norm. The volume of T(L)T(L) is at most ∥T∥r\|T\|^r times that of LL, by an orthonormal basis of the span and Hadamard's inequality; taking logarithms, μ(L)≤μ(T(L))+log⁡∥T∥\mu(L) \le \mu(T(L)) + \log\|T\|. If MM has the same rank rr, then T(L)T(L) has finite index in MM and covol⁡T(L)=[M:T(L)]covol⁡M\operatorname{covol}T(L) = [M : T(L)]\operatorname{covol}M, so

μ(L)+1rlog⁡[M:T(L)]  ≤  μ(M)+log⁡∥T∥.\mu(L) + \frac1r\log[M : T(L)] \;\le\; \mu(M) + \log\|T\| .

This is the exact form of the principle that divisibility is bounded by size: the index on the left and the norm on the right, and for L=M=ZL = M = \mathbb Z it is the one-line inequality of chapter 7. For T=diag⁡(6,10)T = \operatorname{diag}(6, 10) and L=M=Z2L = M = \mathbb Z^2 the index is 6060, both slopes are 00 and ∥T∥=10\|T\| = 10: the inequality reads 12log⁡60≤log⁡10\tfrac12\log 60 \le \log 10. The factors 2,3,52, 3, 5 of the index and the two column lengths refer to the same map.

T = [2 0; 0 3]

Index [Z² : T(Z²)] = |det T| = 6; covolume of the image 6; operator norm ‖T‖ = 3.000 (singular values 3.000, 2.000). The slope inequality reads ½ log 6 = 0.896 ≤ log ‖T‖ = 1.099: divisibility on the left, size on the right. With T = diag(6, 10), the exposition's example, it says √60 ≤ 10.

If LL has smaller rank than MM, the image T(L)T(L) is only a sublattice of smaller rank, and the first inequality gives μ(L)≤μmax⁡(M)+log⁡∥T∥\mu(L) \le \mu_{\max}(M) + \log\|T\|, where μmax⁡\mu_{\max} is the supremum of slopes of nonzero sublattices. A single map of small rank therefore controls only the maximal slope of its target. Chapter 15 uses many maps together to reach the mean slope μ(M)\mu(M).

The lattice Z2\mathbb Z^2 and its image under T=diag⁡(2,3)T = \operatorname{diag}(2,3): index 6, norm 3, and the inequality 12log⁡6≤log⁡3\tfrac12\log 6 \le \log 3. Then the rank drop, where only μmax⁡\mu_{\max} is controlled.

The archive’s lattice library

The archive develops slopes for Z\mathbb Z-lattices in real inner product spaces from Mathlib’s Gram determinants, and proves the inequality above in the form with μmax⁡\mu_{\max}.

Formalism.F.covoldefLatticeSlopes/Statement.lean:15The covolume: the square root of the Gram determinant of a Z\mathbb Z-basis (for a discrete submodule; 00 otherwise).
def covol (L : Submodule ℤ E) : ℝ

The covolume: the square root of the Gram determinant of a Z\mathbb Z-basis (for a discrete submodule; 00 otherwise).

Full declaration with proof
def covol (L : Submodule ℤ E) : ℝ :=
  if h : DiscreteTopology L then
    haveI := h
    Real.sqrt (Matrix.gram ℝ (fun i => ((Module.finBasis ℤ L i : L) : E))).det
  else 0
Formalism.F.slopedefLatticeSlopes/Statement.lean:25μ(L)=deg⁡L/rk⁡L\mu(L) = \deg L/\operatorname{rk}L with deg⁡L=−log⁡covol⁡L\deg L = -\log\operatorname{covol}L.
def slope (L : Submodule ℤ E) : ℝ

μ(L)=deg⁡L/rk⁡L\mu(L) = \deg L/\operatorname{rk}L with deg⁡L=−log⁡covol⁡L\deg L = -\log\operatorname{covol}L.

Formalism.F.muMaxdefLatticeSlopes/Statement.lean:30μmax⁡(L)=sup⁡{μ(N):0≠N≤L}\mu_{\max}(L) = \sup\{\mu(N) : 0 \ne N \le L\}.
def muMax (L : Submodule ℤ E) : ℝ

μmax⁡(L)=sup⁡{μ(N):0≠N≤L}\mu_{\max}(L) = \sup\{\mu(N) : 0 \ne N \le L\}.

Formalism.F.IsSaturateddefLatticeSlopes/Statement.lean:32N≤LN \le L is saturated when L∩RN=NL \cap \mathbb R N = N: the sublattices along which the slope filtration is built.
def IsSaturated (L N : Submodule ℤ E) : Prop

N≤LN \le L is saturated when L∩RN=NL \cap \mathbb R N = N: the sublattices along which the slope filtration is built.

Full declaration with proof
def IsSaturated (L N : Submodule ℤ E) : Prop :=
  N ≤ L ∧ ∀ x ∈ L, x ∈ Submodule.span ℝ (N : Set E) → x ∈ N
Formalism.F.GramDetLedefLatticeSlopes/Statement.lean:59Hadamard in Gram form: if ∥∑ciwi∥≤C∥∑civi∥\|\sum c_i w_i\| \le C\|\sum c_i v_i\| for all real cc, then det⁡Gram⁡(w)≤C2kdet⁡Gram⁡(v)\det\operatorname{Gram}(w) \le C^{2k}\det\operatorname{Gram}(v).
def GramDetLe : Prop

Hadamard in Gram form: if ∥∑ciwi∥≤C∥∑civi∥\|\sum c_i w_i\| \le C\|\sum c_i v_i\| for all real cc, then det⁡Gram⁡(w)≤C2kdet⁡Gram⁡(v)\det\operatorname{Gram}(w) \le C^{2k}\det\operatorname{Gram}(v).

Full declaration with proof
def GramDetLe : Prop :=
  ∀ (E F : Type*) [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [NormedAddCommGroup F] [InnerProductSpace ℝ F] (ι : Type*) [Fintype ι] [DecidableEq ι]
    (v : ι → E) (w : ι → F) (C : ℝ),
    (∀ c : ι → ℝ, ‖∑ i, c i • w i‖ ≤ C * ‖∑ i, c i • v i‖) →
    (Matrix.gram ℝ w).det ≤ C ^ (2 * Fintype.card ι) * (Matrix.gram ℝ v).det
Formalism.F.gram_det_letheoremLatticeSlopesProofs/GramDetLe.lean:126Its proof.
theorem gram_det_le : GramDetLe

Its proof.

Excerpt: the first 60 of 63 lines
theorem gram_det_le : GramDetLe := by
  intro E F _ _ _ _ ι _ _ v w C hC
  have hvw : ∀ c : EuclideanSpace ℝ ι,
      ‖linearCombinationMap w c‖ ≤ C * ‖linearCombinationMap v c‖ := by
    intro c
    simpa only [linearCombinationMap_apply] using hC (fun i => c i)
  by_cases hinj : Function.Injective (linearCombinationMap v)
  · rcases isEmpty_or_nonempty ι with hι | hι
    · simp [Matrix.det_isEmpty]
    have hC0 : 0 ≤ C := by
      by_contra hneg
      push_neg at hneg
      obtain ⟨i⟩ := hι
      have h1 := hvw (EuclideanSpace.single i 1)
      have h3 : ‖linearCombinationMap v (EuclideanSpace.single i 1)‖ ≤ 0 := by
        nlinarith [norm_nonneg (linearCombinationMap v (EuclideanSpace.single i 1)),
          norm_nonneg (linearCombinationMap w (EuclideanSpace.single i 1))]
      have h4 := hinj ((norm_le_zero_iff.1 h3).trans (map_zero _).symm)
      have h5 := congrArg (fun x : EuclideanSpace ℝ ι => x i) h4
      simp at h5
    let e := LinearEquiv.ofInjective (linearCombinationMap v) hinj
    let G : E →ₗ[ℝ] F := linearCombinationMap w ∘ₗ e.symm.toLinearMap ∘ₗ
      ((LinearMap.range (linearCombinationMap v)).orthogonalProjection :
        E →ₗ[ℝ] LinearMap.range (linearCombinationMap v))
    have hP : ∀ y : LinearMap.range (linearCombinationMap v),
        (LinearMap.range (linearCombinationMap v)).orthogonalProjection (y : E) = y := fun y =>
      Submodule.orthogonalProjection_mem_subspace_eq_self y
    have hGf : G ∘ₗ linearCombinationMap v = linearCombinationMap w := by
      ext c
      have : linearCombinationMap v c = (e c : E) := (LinearEquiv.ofInjective_apply _ c).symm
      simp only [G, LinearMap.comp_apply, ContinuousLinearMap.coe_coe, LinearEquiv.coe_toLinearMap]
      rw [this, hP, LinearEquiv.symm_apply_apply]
    have hb : ∀ y : LinearMap.range (linearCombinationMap v),
        ‖G.domRestrict (LinearMap.range (linearCombinationMap v)) y‖ ≤ C * ‖y‖ := by
      intro y
      have hy : linearCombinationMap v (e.symm y) = (y : E) := by
        rw [← LinearEquiv.ofInjective_apply (h := hinj) (linearCombinationMap v) (e.symm y)]
        exact congrArg Subtype.val (e.apply_symm_apply y)
      simp only [LinearMap.domRestrict_apply, G, LinearMap.comp_apply, ContinuousLinearMap.coe_coe,
        LinearEquiv.coe_toLinearMap]
      rw [hP]
      calc ‖linearCombinationMap w (e.symm y)‖ ≤ C * ‖linearCombinationMap v (e.symm y)‖ := hvw _
        _ = C * ‖y‖ := by rw [hy]; rfl
    have hdom := normDet_le_pow_finrank (G.domRestrict (LinearMap.range (linearCombinationMap v))) C hC0 hb
    rw [LinearMap.finrank_range_of_inj hinj, finrank_euclideanSpace] at hdom
    have hle : (linearCombinationMap w).normDet ≤
        C ^ Fintype.card ι * (linearCombinationMap v).normDet := by
      rw [← hGf, LinearMap.normDet_comp]
      exact mul_le_mul_of_nonneg_right hdom (LinearMap.normDet_nonneg _)
    rw [det_gram_eq_normDet_sq w, det_gram_eq_normDet_sq v]
    calc (linearCombinationMap w).normDet ^ 2
        ≤ (C ^ Fintype.card ι * (linearCombinationMap v).normDet) ^ 2 :=
          pow_le_pow_left₀ (LinearMap.normDet_nonneg _) hle 2
      _ = C ^ (2 * Fintype.card ι) * (linearCombinationMap v).normDet ^ 2 := by
          rw [mul_pow, ← pow_mul, mul_comm (Fintype.card ι) 2]
  · rw [← LinearMap.ker_eq_bot] at hinj
    obtain ⟨c, hc, hc0⟩ := (Submodule.ne_bot_iff _).1 hinj
    have hw0 : linearCombinationMap w c = 0 := by
      have h1 := hvw c
      rw [LinearMap.mem_ker.1 hc, norm_zero, mul_zero] at h1
  …

The complete declaration runs to line 188 of Formalism/LatticeSlopes/LatticeSlopesProofs/GramDetLe.lean in the archive; the statement above is its full header.

Formalism.F.SlopeLeMuMaxdefLatticeSlopes/Statement.lean:66Every nonzero sublattice has slope at most μmax⁡\mu_{\max}.
def SlopeLeMuMax : Prop

Every nonzero sublattice has slope at most μmax⁡\mu_{\max}.

Full declaration with proof
def SlopeLeMuMax : Prop :=
  ∀ (E : Type*) [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
    (L N : Submodule ℤ E), DiscreteTopology L → N ≤ L → N ≠ ⊥ → slope N ≤ muMax L
Formalism.F.MuMaxAttaineddefLatticeSlopes/Statement.lean:70μmax⁡\mu_{\max} is attained by a saturated sublattice: the first step of the Harder–Narasimhan filtration.
def MuMaxAttained : Prop

μmax⁡\mu_{\max} is attained by a saturated sublattice: the first step of the Harder–Narasimhan filtration.

Full declaration with proof
def MuMaxAttained : Prop :=
  ∀ (E : Type*) [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
    (L : Submodule ℤ E), DiscreteTopology L → L ≠ ⊥ →
    ∃ N : Submodule ℤ E, IsSaturated L N ∧ N ≠ ⊥ ∧ slope N = muMax L
Formalism.F.SlopeInequalitydefLatticeSlopes/Statement.lean:75For discrete lattices L≠0L \ne 0 and MM and an injective Z\mathbb Z-linear φ ⁣:L→M\varphi\colon L \to M with ∥φx∥≤C∥x∥\|\varphi x\| \le C\|x\|: μ(L)≤μmax⁡(M)+log⁡C\mu(L) \le \mu_{\max}(M) + \log C.
def SlopeInequality : Prop

For discrete lattices L≠0L \ne 0 and MM and an injective Z\mathbb Z-linear φ ⁣:L→M\varphi\colon L \to M with ∥φx∥≤C∥x∥\|\varphi x\| \le C\|x\|: μ(L)≤μmax⁡(M)+log⁡C\mu(L) \le \mu_{\max}(M) + \log C.

Full declaration with proof
def SlopeInequality : Prop :=
  ∀ (E F : Type*) [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
    [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F]
    (L : Submodule ℤ E) (M : Submodule ℤ F), DiscreteTopology L → DiscreteTopology M → L ≠ ⊥ →
    ∀ (φ : L →ₗ[ℤ] M) (C : ℝ), Function.Injective φ →
    (∀ x : L, ‖((φ x : M) : F)‖ ≤ C * ‖(x : E)‖) →
    slope L ≤ muMax M + Real.log C
Formalism.F.slopeInequality_oftheoremLatticeSlopesProofs/SlopeInequality.lean:111The proof from `SlopeLeMuMax` and `GramDetLe`: the image of LL is a sublattice of MM of the same rank as LL, its covolume is at most CrkC^{\mathrm{rk}} times that of LL, and its slope is at most μmax⁡(M)\mu_{\max}(M).
theorem slopeInequality_of (h : SlopeLeMuMax.{v}) : SlopeInequality.{u, v}

The proof from `SlopeLeMuMax` and `GramDetLe`: the image of LL is a sublattice of MM of the same rank as LL, its covolume is at most CrkC^{\mathrm{rk}} times that of LL, and its slope is at most μmax⁡(M)\mu_{\max}(M).

Excerpt: the first 60 of 81 lines
theorem slopeInequality_of (h : SlopeLeMuMax.{v}) : SlopeInequality.{u, v} := by
  intro E F _ _ _ _ _ _ L M hL hM hne φ C hφ hC
  classical
  let g : L →ₗ[ℤ] F := M.subtype.comp φ
  have ginj : Function.Injective g := M.injective_subtype.comp hφ
  let N : Submodule ℤ F := LinearMap.range g
  have hNM : N ≤ M := by
    rintro _ ⟨x, rfl⟩
    exact (φ x).2
  haveI : DiscreteTopology L := hL
  haveI : DiscreteTopology M := hM
  haveI : DiscreteTopology N :=
    DiscreteTopology.of_continuous_injective (continuous_inclusion hNM)
      (Submodule.inclusion_injective hNM)
  let e : L ≃ₗ[ℤ] N := LinearEquiv.ofInjective g ginj

  obtain ⟨x, hxL, hx0⟩ := Submodule.exists_mem_ne_zero_of_ne_bot hne
  have hφx : ((φ ⟨x, hxL⟩ : M) : F) ≠ 0 := by
    intro h0
    apply hx0
    have h1 : φ ⟨x, hxL⟩ = φ 0 := by
      rw [map_zero]
      exact Subtype.ext h0
    exact congrArg Subtype.val (hφ h1)
  have hNne : N ≠ ⊥ := by
    intro h0
    apply hφx
    have hmem : g ⟨x, hxL⟩ ∈ N := LinearMap.mem_range_self g _
    rw [h0, Submodule.mem_bot] at hmem
    exact hmem
  have hCpos : 0 < C := by
    have h1 : ‖((φ ⟨x, hxL⟩ : M) : F)‖ ≤ C * ‖x‖ := hC ⟨x, hxL⟩
    have h2 : 0 < ‖((φ ⟨x, hxL⟩ : M) : F)‖ := norm_pos_iff.mpr hφx
    have h3 : 0 < ‖x‖ := norm_pos_iff.mpr hx0
    by_contra hc
    push_neg at hc
    nlinarith [mul_nonpos_of_nonpos_of_nonneg hc h3.le]
  have h1 : slope N ≤ muMax M := h F M N hM hNM hNne

  set r := Module.finrank ℤ L with hr_def
  have hrkL : rk L = r := rfl
  have hrkN : rk N = r := by
    show Module.finrank ℤ N = Module.finrank ℤ L
    exact e.finrank_eq.symm
  haveI : Nontrivial L := Submodule.nontrivial_iff_ne_bot.mpr hne
  have hrpos : 0 < r := Module.finrank_pos

  let b := Module.finBasis ℤ L
  have hcL : covol L = Real.sqrt (Matrix.gram ℝ (fun i => (b i : E))).det :=
    covol_eq_gram E L (Fin r) b
  have hcN : covol N = Real.sqrt (Matrix.gram ℝ (fun i => ((φ (b i) : M) : F))).det :=
    covol_eq_gram F N (Fin r) (b.map e)
  have hint : ∀ n : Fin r → ℤ,
      ‖∑ i, (n i : ℝ) • ((φ (b i) : M) : F)‖ ≤ C * ‖∑ i, (n i : ℝ) • (b i : E)‖ := by
    intro n
    have h2 := hC (∑ i, n i • b i)
    simp only [map_sum, map_zsmul, Submodule.coe_sum, Submodule.coe_smul] at h2
    simpa only [Int.cast_smul_eq_zsmul] using h2
  have hreal := norm_sum_smul_le_of_int (fun i => (b i : E))
    (fun i => ((φ (b i) : M) : F)) C hint
  …

The complete declaration runs to line 191 of Formalism/LatticeSlopes/LatticeSlopesProofs/SlopeInequality.lean in the archive; the statement above is its full header.

GlobalTheory.SlopeEigen.slopeInequalitytheoremDivisorProofs/SlopeAndEigenDegrees.lean:136The statement closed: `SlopeInequality` holds.
theorem slopeInequality : SlopeInequality

The statement closed: `SlopeInequality` holds.

Full declaration with proof
theorem slopeInequality : SlopeInequality := by
  intro p _ k _ _ _ C _ _ hC L H g hL hH ⟨i, q, w, hS⟩ ⟨v, _⟩ P hP
  have hC' := hC.toIsProjCurve
  have := hC'.isNoetherian
  have := hL.isFiniteQC
  have hp := natCast_eq_zero C p k
  obtain ⟨G, a, ha, hG⟩ := hP.exists_isCohSub
  have := ha.mono
  have := ha.isFiniteQC
  have hξ := isVB_of_mono hC hL (satι a)
  have hd : deg k (sat a) = P :=
    le_antisymm (hP.deg_le (satι a)) (hG ▸ hC'.deg_le_deg_sat a)
  have := (SubPull.isSubbundle_pullback C C (frob C p hp) _ _ (satι a) _ hξ
    ((isVB_of_isTorsionFree_and_isSubbundle_satι k C hC).2 _ _ a)).mono
  have := (hξ.frobPull p hp).isFiniteQC
  let u : (frobPull p hp).obj (sat a) ⟶ H := (frobPull p hp).map (satι a) ≫ v
  have : Mono u := mono_comp _ _
  have h₀ := deg_frobPull hC p hp hξ
  have h₁ := hC'.deg_cokernel (kernel.ι (u ≫ q))
  have h₂ : deg k (cokernel (kernel.ι (u ≫ q))) ≤ P :=
    hP.deg_le (Abelian.factorThruCoimage (u ≫ q))
  have := hS.mono_f
  obtain ⟨j, hj⟩ := KernelFork.IsLimit.lift' hS.fIsKernel (kernel.ι (u ≫ q) ≫ u) (by simp)
  have : Mono j := mono_of_mono_fac hj
  have h₃ := deg_le_of_mono_dual hC hL hP j
  rw [hd] at h₀
  omega

In the construction the lattices are modules over the integers of the CM field, and one works with squared norms at all the archimedean places at once. The archive’s Harder–Narasimhan library defines heights and sizes in that setting and proves the two inequalities that the chain uses.

Formalism.HN.htdefHarderNarasimhan/StatementPl.lean:29The height of an OK\mathcal O_K-lattice LL in a KK-vector space with Hermitian metrics XvX_v at the infinite places: 2#{v} rk∣disc K∣−rk/22^{\#\{v\}\,\mathrm{rk}}|\mathrm{disc}\,K|^{-\mathrm{rk}/2} times the covolume of its realisation.
def ht (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (L : Submodule (𝓞 K) V) : ℝ

The height of an OK\mathcal O_K-lattice LL in a KK-vector space with Hermitian metrics XvX_v at the infinite places: 2#{v} rk∣disc K∣−rk/22^{\#\{v\}\,\mathrm{rk}}|\mathrm{disc}\,K|^{-\mathrm{rk}/2} times the covolume of its realisation.

Full declaration with proof
def ht (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (L : Submodule (𝓞 K) V) : ℝ :=
  (2 : ℝ) ^ (nPl K * rkK L) * |(NumberField.discr K : ℝ)| ^ (-(rkK L : ℝ) / 2) *
    Formalism.F.covol (zl (Formalism.HermitianLatticesTheory.realize b X) L)
Formalism.HN.opNormAtdefHarderNarasimhan/StatementPl.lean:55The operator norm of a KK-linear map at the place vv, with respect to the two metrics.
def opNormAt (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (b' : Basis κ K W)
    (X' : InfinitePlace K → Matrix κ κ ℂ) (v : InfinitePlace K) (φ : V →ₗ[K] W) : ℝ

The operator norm of a KK-linear map at the place vv, with respect to the two metrics.

Full declaration with proof
def opNormAt (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (b' : Basis κ K W)
    (X' : InfinitePlace K → Matrix κ κ ℂ) (v : InfinitePlace K) (φ : V →ₗ[K] W) : ℝ :=
  ‖LinearMap.toContinuousLinearMap (Matrix.toEuclideanLin
    ((X' v)⁻¹ * (LinearMap.toMatrix b b' φ).map v.embedding * X v))‖
Formalism.HN.htMapdefHarderNarasimhan/StatementPl.lean:60The height of a map: the average over the places of log⁡∥φ∥v2\log\|\varphi\|_v^2. This is the hh of chapter 13.
def htMap (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (b' : Basis κ K W)
    (X' : InfinitePlace K → Matrix κ κ ℂ) (φ : V →ₗ[K] W) : ℝ

The height of a map: the average over the places of log⁡∥φ∥v2\log\|\varphi\|_v^2. This is the hh of chapter 13.

Full declaration with proof
def htMap (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (b' : Basis κ K W)
    (X' : InfinitePlace K → Matrix κ κ ℂ) (φ : V →ₗ[K] W) : ℝ :=
  (1 / (nPl K : ℝ)) * ∑ v, Real.log (opNormAt b X b' X' v φ ^ 2)
Formalism.HN.muDefdefHarderNarasimhan/StatementPl.lean:64The slope in the squared-norm normalisation: 2μ−log⁡2+log⁡∣disc K∣/[K:Q]2\mu - \log 2 + \log|\mathrm{disc}\,K|/[K:\mathbb Q], twice the slope above plus a constant of the field.
def muDef (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (L : Submodule (𝓞 K) V) : ℝ

The slope in the squared-norm normalisation: 2μ−log⁡2+log⁡∣disc K∣/[K:Q]2\mu - \log 2 + \log|\mathrm{disc}\,K|/[K:\mathbb Q], twice the slope above plus a constant of the field.

Full declaration with proof
def muDef (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ) (L : Submodule (𝓞 K) V) : ℝ :=
  2 * slope (Formalism.HermitianLatticesTheory.realize b X) L - Real.log 2 + logDisc K / (Module.finrank ℚ K : ℝ)
Formalism.HN.HtImagedefHarderNarasimhan/StatementPl.lean:108The height of the image φ(A)\varphi(A) is at most ∏v∥φ∥v2 rk\prod_v\|\varphi\|_v^{2\,\mathrm{rk}} times the height of AA relative to A∩ker⁡φA \cap \ker\varphi.
def HtImage : Prop

The height of the image φ(A)\varphi(A) is at most ∏v∥φ∥v2 rk\prod_v\|\varphi\|_v^{2\,\mathrm{rk}} times the height of AA relative to A∩ker⁡φA \cap \ker\varphi.

Full declaration with proof
def HtImage : Prop :=
  ∀ (K V ι W κ : Type) [Field K] [NumberField K] [StarRing K] [IsTotallyComplex K]
    [AddCommGroup V] [Module K V] [Module (𝓞 K) V] [IsScalarTower (𝓞 K) K V] [Fintype ι]
    [DecidableEq ι] [AddCommGroup W] [Module K W] [Module (𝓞 K) W] [IsScalarTower (𝓞 K) K W]
    [Fintype κ] [DecidableEq κ] (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ)
    (b' : Basis κ K W) (X' : InfinitePlace K → Matrix κ κ ℂ),
    (∀ v, IsUnit (X v).det) → (∀ v, IsUnit (X' v).det) →
    ∀ (φ : V →ₗ[K] W) (A : Submodule (𝓞 K) V), A.FG →
      IsSat (Formalism.HermitianLatticesTheory.realize b X) A (A ⊓ (LinearMap.ker φ).restrictScalars (𝓞 K)) ∧
      ht b' X' (A.map (φ.restrictScalars (𝓞 K))) ≤
        (∏ v, opNormAt b X b' X' v φ ^ (2 * rkK (A.map (φ.restrictScalars (𝓞 K))))) *
          htQ b X A (A ⊓ (LinearMap.ker φ).restrictScalars (𝓞 K))
Formalism.HN.htImagetheoremHarderNarasimhan/ShiftInvariance.lean:56Its proof, from the structure of lattices at places and a Gram block determinant.
theorem htImage : HtImage

Its proof, from the structure of lattices at places and a Gram block determinant.

Formalism.HN.SizeIneqdefHarderNarasimhan/StatementPl.lean:121For φ(A)≤B\varphi(A) \le B, φ(A)≠0\varphi(A) \ne 0: the least size of BB over the largest size of AA is at most (∏v∥φ∥v)1/#{v}(\prod_v\|\varphi\|_v)^{1/\#\{v\}}. Sizes are heights per unit rank; this is the slope inequality with minimal and maximal slopes, the form the chain uses.
def SizeIneq : Prop

For φ(A)≤B\varphi(A) \le B, φ(A)≠0\varphi(A) \ne 0: the least size of BB over the largest size of AA is at most (∏v∥φ∥v)1/#{v}(\prod_v\|\varphi\|_v)^{1/\#\{v\}}. Sizes are heights per unit rank; this is the slope inequality with minimal and maximal slopes, the form the chain uses.

Full declaration with proof
def SizeIneq : Prop :=
  ∀ (K V ι W κ : Type) [Field K] [NumberField K] [StarRing K] [IsTotallyComplex K]
    [AddCommGroup V] [Module K V] [Module (𝓞 K) V] [IsScalarTower (𝓞 K) K V] [Fintype ι]
    [DecidableEq ι] [AddCommGroup W] [Module K W] [Module (𝓞 K) W] [IsScalarTower (𝓞 K) K W]
    [Fintype κ] [DecidableEq κ] (b : Basis ι K V) (X : InfinitePlace K → Matrix ι ι ℂ)
    (b' : Basis κ K W) (X' : InfinitePlace K → Matrix κ κ ℂ),
    (∀ v, IsUnit (X v).det) → (∀ v, IsUnit (X' v).det) →
    ∀ (φ : V →ₗ[K] W) (A : Submodule (𝓞 K) V) (B : Submodule (𝓞 K) W), A.FG → B.FG →
      A.map (φ.restrictScalars (𝓞 K)) ≤ B → A.map (φ.restrictScalars (𝓞 K)) ≠ ⊥ →
      leastSize b' X' B / largestSize b X A ≤
        (∏ v, opNormAt b X b' X' v φ) ^ ((1 : ℝ) / (nPl K : ℝ))
Formalism.HN.sizeIneqtheoremHarderNarasimhan/ShiftInvariance.lean:57Its proof.
theorem sizeIneq : SizeIneq

Its proof.

Gluing a lattice prime by prime

A rational matrix presents a further problem: local divisibility may apply at different primes in different bases. The archive uses the equality of a period pairing under changes of the intermediate character twists (the Bessel identity of chapter 15) to place the local lattices in a common rational vector space; one can then choose a favourable lattice at each prime and put the choices together. Over Q\mathbb Q the last operation has a short proof. Let LpL_p be a full lattice over Zp\mathbb Z_p inside Qpr\mathbb Q_p^r, equal to Zpr\mathbb Z_p^r outside a finite set, and choose DD with DZpr⊆Lp⊆D−1ZprD\mathbb Z_p^r \subseteq L_p \subseteq D^{-1}\mathbb Z_p^r at all primes. Let LL be the set of x∈D−1Zrx \in D^{-1}\mathbb Z^r whose image in D−1Zpr/DZprD^{-1}\mathbb Z_p^r/D\mathbb Z_p^r lies in Lp/DZprL_p/D\mathbb Z_p^r for every p∣Dp \mid D; the Chinese remainder theorem identifies the ambient quotient with (Z/D2Z)r(\mathbb Z/D^2\mathbb Z)^r, and LL has the prescribed localisation at every prime. Allowing a denominator 22 in the first coordinate only at 22, and 33 in the second only at 33, gives 12Z⊕13Z\tfrac12\mathbb Z \oplus \tfrac13\mathbb Z with covolume 1/61/6. The archive performs the corresponding construction over the number field, with its locally chosen character twists (the exposition’s Theorem L4 of §III.6, conditional on two statements of the source).

The denominators that remain

The lift need not map integer-valued functions to integer-valued functions, and what cannot be removed by twisting is measured by certain Galois cohomology groups of the field, generalisations of class groups. For a prime ℓ\ell and a twist index ee, let SℓS_\ell be the primes of EE above ℓ\ell, GE,ℓG_{E,\ell} the Galois group of the largest extension of EE unramified outside SℓS_\ell, and We=Qℓ/Zℓ(−e)W_e = \mathbb Q_\ell/\mathbb Z_\ell(-e), on which σ\sigma acts by χℓ(σ)−e\chi_\ell(\sigma)^{-e}. Put

Шℓ(E,e)  =  ker⁡(H1(GE,ℓ,We)⟶∏v∈SℓH1(Gv,We)),hℓ,e=length⁡ZℓШℓ(E,e).\text{Ш}_\ell(E, e) \;=\; \ker\Big(H^1(G_{E,\ell}, W_e) \longrightarrow \prod_{v \in S_\ell}H^1(G_v, W_e)\Big), \qquad h_{\ell,e} = \operatorname{length}_{\mathbb Z_\ell}\text{Ш}_\ell(E, e) .

A finite group of order ℓh\ell^h costs hlog⁡ℓh\log\ell in a logarithmic index. The bound the archive proves, and chapter 6 named as the cohomological window, is that on the selected scales these lengths are finite for 1≤e<⌊x400⌋1 \le e < \lfloor x^{400}\rfloor and

∑ℓ∈Slog⁡ℓ∑1≤e<⌊x400⌋hℓ,e  ≤  b\sum_{\ell \in S}\log\ell\sum_{1 \le e < \lfloor x^{400}\rfloor} h_{\ell,e} \;\le\; \sqrt b

for every finite set SS of primes. Even for ζ\zeta the bound is needed over the field EE of chapter 11, not over Q\mathbb Q. It is the part of the proof that uses the most mathematics from outside analytic number theory (Iwasawa theory, Euler systems, the automorphic Galois representations of chapter 6), and the third milestone will treat it; here we quote it exactly.

Formalism.GaloisCohomology.LDatastructureGaloisCohomology/Statement.lean:54The local data: the finite set SS of primes above ℓ\ell, a choice of a place of Ω\Omega over each, and the cyclotomic character χℓ\chi_\ell on the Galois group of the maximal extension unramified outside SS.
structure LData

The local data: the finite set SS of primes above ℓ\ell, a choice of a place of Ω\Omega over each, and the cyclotomic character χℓ\chi_\ell on the Galois group of the maximal extension unramified outside SS.

Full declaration with proof
structure LData where

  S : Finset (HeightOneSpectrum (𝓞 F))
  hS : (S : Set (HeightOneSpectrum (𝓞 F))) = Above F l

  A : S → ValuationSubring Ω
  hA : ∀ v, IsPlaceOver (A v) v.1

  chi : GS Ω (S : Set (HeightOneSpectrum (𝓞 F))) →* ℤ_[l]ˣ
  hchi : chi.comp (toGS Ω _) = cycZ F Ω l

variable {l}
Formalism.GaloisCohomology.ShadefGaloisCohomology/Statement.lean:75Шℓ(E,e)_\ell(E, e): the kernel of the localisation map on H1H^1 with coefficients in Qℓ/Zℓ\mathbb Q_\ell/\mathbb Z_\ell twisted by χℓ−e\chi_\ell^{-e}.
def Sha (D : LData F Ω l) (e : ℤ) : Submodule ℤ_[l] (H1 (qzTw D e))

Шℓ(E,e)_\ell(E, e): the kernel of the localisation map on H1H^1 with coefficients in Qℓ/Zℓ\mathbb Q_\ell/\mathbb Z_\ell twisted by χℓ−e\chi_\ell^{-e}.

Full declaration with proof
def Sha (D : LData F Ω l) (e : ℤ) : Submodule ℤ_[l] (H1 (qzTw D e)) :=
  Sha1 (qzTw D e) (locFam D.S D.A) (continuous_locFam D.S D.A)
Formalism.GaloisCohomology.shaLendefGaloisCohomology/Statement.lean:78Its length as a Zℓ\mathbb Z_\ell-module, in N∪{∞}\mathbb N \cup \{\infty\}.
def shaLen (D : LData F Ω l) (e : ℤ) : ℕ∞

Its length as a Zℓ\mathbb Z_\ell-module, in N∪{∞}\mathbb N \cup \{\infty\}.

UpperTheory.Top.VVledefCharacterBoxes/ExistsPageN.lean:12The bound for a field EE, a number tt of twists and a bound BB: for every algebraic closure and local data at every prime ℓ\ell, the lengths are finite for 0<e<t0 < e < t, and ∑ℓ∈Slog⁡ℓ∑1≤e<thℓ,e≤B\sum_{\ell \in S}\log\ell\sum_{1 \le e < t}h_{\ell,e} \le B for every finite set SS.
def VVle (E : Type) [Field E] [NumberField E] (t : ℕ) (B : ℝ) : Prop

The bound for a field EE, a number tt of twists and a bound BB: for every algebraic closure and local data at every prime ℓ\ell, the lengths are finite for 0<e<t0 < e < t, and ∑ℓ∈Slog⁡ℓ∑1≤e<thℓ,e≤B\sum_{\ell \in S}\log\ell\sum_{1 \le e < t}h_{\ell,e} \le B for every finite set SS.

Full declaration with proof
def VVle (E : Type) [Field E] [NumberField E] (t : ℕ) (B : ℝ) : Prop :=
  ∀ (Ω : Type) [Field Ω] [Algebra E Ω] [IsAlgClosure E Ω] (ld : ∀ (p : ℕ) [Fact p.Prime], Formalism.GaloisCohomology.LData E Ω p),
    (∀ (p : ℕ) [Fact p.Prime] (e : ℕ), 0 < e → e < t → Formalism.GaloisCohomology.shaLen (ld p) (e : ℤ) ≠ ⊤) ∧
    ∀ S : Finset Nat.Primes,
      ∑ l ∈ S, Real.log (l : ℕ) *
        ∑ e ∈ Finset.Ico 1 t, ((@Formalism.GaloisCohomology.shaLen E Ω _ _ _ _ _ l ⟨l.2⟩ (@ld l ⟨l.2⟩) (e : ℤ)).toNat : ℝ) ≤ B
UpperTheory.Top.VAtdefCharacterBoxes/ExistsPageN.lean:41At the scale xx: the bound with t=⌊xCt⌋t = \lfloor x^{C_t}\rfloor and B=exp⁡(xε)=bB = \sqrt{\exp(x^\varepsilon)} = \sqrt b, for every field EE built from ψ,e,q,d\psi, e, q, d.
def VAt (ψ : PChar) (eps Ct : ℝ) (q d e : ℕ) (x : ℝ) : Prop

At the scale xx: the bound with t=⌊xCt⌋t = \lfloor x^{C_t}\rfloor and B=exp⁡(xε)=bB = \sqrt{\exp(x^\varepsilon)} = \sqrt b, for every field EE built from ψ,e,q,d\psi, e, q, d.

Full declaration with proof
def VAt (ψ : PChar) (eps Ct : ℝ) (q d e : ℕ) (x : ℝ) : Prop :=
  ∀ (E : Type) [Field E] [NumberField E], IsChiField ψ e q d E → VVle E ⌊x ^ Ct⌋₊ (Real.sqrt (Real.exp (x ^ eps)))
UpperTheory.Top.IsChiFielddefCharacterBoxes/ExistsPageN.lean:19The field EE: a subfield of a cyclotomic field cut out by the conditions a≡±1 mod 2e+2a \equiv \pm1 \bmod 2^{e+2}, ψ(a)=1\psi(a) = 1, (a/q)=1(a/q) = 1, (a/d)=1(a/d) = 1 on the Galois group.
def IsChiField (ψ : PChar) (e q d : ℕ) (E : Type) [Field E] [NumberField E] : Prop

The field EE: a subfield of a cyclotomic field cut out by the conditions a≡±1 mod 2e+2a \equiv \pm1 \bmod 2^{e+2}, ψ(a)=1\psi(a) = 1, (a/q)=1(a/q) = 1, (a/d)=1(a/d) = 1 on the Galois group.

Full declaration with proof
def IsChiField (ψ : PChar) (e q d : ℕ) (E : Type) [Field E] [NumberField E] : Prop :=
  ∃ (N : ℕ) (_ : NeZero N) (j : E →ₐ[ℚ] CyclotomicField N ℚ) (ζ : CyclotomicField N ℚ),
    2 ^ (e + 2) ∣ N ∧ ψ.N ∣ N ∧ q ∣ N ∧ d ∣ N ∧ IsPrimitiveRoot ζ N ∧
    ∀ (τ : CyclotomicField N ℚ ≃ₐ[ℚ] CyclotomicField N ℚ) (a : ℕ), τ ζ = ζ ^ a →
      ((∀ x : E, τ (j x) = j x) ↔
        (a ≡ 1 [MOD 2 ^ (e + 2)] ∨ a + 1 ≡ 0 [MOD 2 ^ (e + 2)]) ∧ ψ.val a = 1 ∧
          jacobiSym (a : ℤ) q = 1 ∧ jacobiSym (a : ℤ) d = 1)
Formalism.MainNotions.LinkN_atdefSharpRestriction/GlobalTheoremInputs.lean:40The link from the cohomology bound to the lattice indices at step jj: the eta-sum of the local indices is at most D0 C xε(B0+Nc)D_0\,C\,x^\varepsilon(B_0 + N_c). The exposition's Proposition G2 proves how the bound gives the estimate for the denominators, given this inequality.
def LinkN_at {D : D7} (L : SizeData₂ D) (j : ℕ) (C : ℝ) : Prop

The link from the cohomology bound to the lattice indices at step jj: the eta-sum of the local indices is at most D0 C xε(B0+Nc)D_0\,C\,x^\varepsilon(B_0 + N_c). The exposition's Proposition G2 proves how the bound gives the estimate for the denominators, given this inequality.

Full declaration with proof
def LinkN_at {D : D7} (L : SizeData₂ D) (j : ℕ) (C : ℝ) : Prop :=
  Summable (vvTerm D) →
    etaSum L j ≤ (L.dZ0 j : ℝ) * (C * ((D.R.f : ℝ) * D.R.m * L.sc.b * L.sc.L ^ 2 +
      Real.log L.sc.x ^ 2 * L.Nc) + ∑' l, vvTerm D l)

our exposition The exposition’s Part III, §III.6 proves the three lemmas on lattices over a number field (the slope of a sublattice, the slope after multiplication by a fractional ideal, the integrality of a pairing after such a multiplication), the bound when the rank drops, the identity between the prime sum and sums over single primes, and the splitting of the prime sum by classes of primes. Conditional on two statements of the archive: the theorem on the glued lattice. Quoted: the bounds for the eleven loss sums and their total, and the statement on valuations of the period pairing. §III.9 states the Galois-cohomology bound exactly, works out the simplest case over Q\mathbb Q from Washington’s book, and leaves the bound itself quoted with an account of its proof in the archive.