Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import Mathlib.RingTheory.PiTensorProduct |
| 4 | import TauCeti.Analysis.Matrix.PosSemidef.Determinant |
| 5 | import TauCeti.Analysis.Normed.Ring.Ultra |
| 6 | public import Lib.General.LinearAlgebra.GramDeterminant |
| 7 | public import New.Reduction.Lattices.Colength |
| 8 | public import New.Reduction.Lattices.Heights |
| 9 | public import Lib.ClassField.Places.ValuationSubrings |
| 10 | import Lib.General.LinearAlgebra.MinorProducts |
| 11 | |
| 12 | /-! |
| 13 | # Twisted lattices |
| 14 | |
| 15 | A twisted lattice on a complex vector space `V` is a family of linear maps `Θ_ξ` from `V` to inner |
| 16 | product spaces, one for each twist `ξ`, with a module of integral vectors at every `ι ∣ l` in each |
| 17 | of these spaces, and coordinates on the space for the trivial twist in which the inner product |
| 18 | has a rational matrix. A twist is a member of an index type `T`, the trivial twist is `1`, and for |
| 19 | each prime `l` some twists are called allowed at `l` (`IsAllowed`). A vector of `V` is integral at |
| 20 | `ι ∣ l` if its images for all twists allowed at `l` are (`integralVectors`), while the covolume |
| 21 | refers to the trivial twist alone. An inner product on `V` and its finite dimension are assumed only |
| 22 | from the definition of the number `Z(ξ)` on. |
| 23 | |
| 24 | * `New.TwistedLattice.IndexLe`, `New.TwistedLattice.CovolumeLe`, `New.TwistedLattice.volume`: index |
| 25 | and covolume of a family in `V`, and the number `Z(ξ) = det (Θ_ξ* Θ_ξ)`. |
| 26 | * `New.TwistedLattice.CovolumeLe.norm_map_det_gram_le`, `New.TwistedLattice.CovolumeLe.sumElim`, |
| 27 | `New.TwistedLattice.norm_det_mul_det_gram_le_one`: conjugates of Gram determinants, adjoining |
| 28 | vectors, and valuations of Gram determinants. |
| 29 | * `New.TwistedLattice.heightLe_volume_div`: height of the forward ratio `Z(ξ_ι) / Z(1)` from the |
| 30 | covolume of a completed basis and its denominator bounds. |
| 31 | * `New.TwistedLattice.covolume_add_index_nonneg`: given an allowed twist `ξ_ι` for each `ι`, a |
| 32 | lower bound for the covolume of a family in terms of its index, the height of `Z(1) / Z(ξ_ι)`, |
| 33 | and the sizes and denominators of vectors that complete the family to a basis. |
| 34 | |
| 35 | Notions from other files: |
| 36 | * `TauCeti.PrimePadicIso`: pairs `ι` of a prime `l = ι.prime` and an isomorphism `ι.iso : ℂ ≃ ℚ̄_l`, |
| 37 | written `ι ∣ l`. A number `x` is integral at `ι` if `‖ι.iso x‖ ≤ 1`. |
| 38 | * `TauCeti.PrimePadicIso.HeightLe y c`: the family `y`, with one complex number for each `ι`, has |
| 39 | height at most `c`: for some `H ≠ 0`, bounds for all `log |σ H|` and for `log ‖ι (H y_ι)‖` at |
| 40 | each prime add up to at most `c`. |
| 41 | * `New.formGram G v`: the matrix of the products `v_i* G v_k`. |
| 42 | |
| 43 | ## Relation to the literature |
| 44 | |
| 45 | Size-versus-divisibility bounds for a determinant are known in the literature. Related work: Bost, |
| 46 | Algebraic leaves of algebraic foliations over number fields, 2001; Laurent, Linear forms in two |
| 47 | logarithms and interpolation determinants, 1994. |
| 48 | -/ |
| 49 | |
| 50 | @[expose] public section |
| 51 | |
| 52 | noncomputable section |
| 53 | |
| 54 | open Finset Matrix Module Real Submodule InnerProductSpace ComplexOrder |
| 55 | open New |
| 56 | |
| 57 | namespace TauCeti.PrimePadicIso |
| 58 | |
| 59 | -- These extensions belong to this project. They use Tau Ceti’s namespace so that |
| 60 | -- `ι.conj`, `ι.place` and `ι.integers` can use dot notation. |
| 61 | variable (ι : PrimePadicIso) |
| 62 | |
| 63 | /-- The isomorphism `ῑ`, with `ῑ z = ι z̄`. -/ |
| 64 | abbrev conj : PrimePadicIso := ⟨ι.prime, starRingAut.trans ι.iso⟩ |
| 65 | |
| 66 | /-- The embedding `ℂ → ℂ_l` given by `ι ∣ l`. -/ |
| 67 | abbrev place : PadicPlace ι.prime := ⟨complexToCp ι.iso⟩ |
| 68 | |
| 69 | /-- The valuation ring `𝒪_ι` of the valuation that `ι` induces on `ℂ`. -/ |
| 70 | abbrev integers : ValuationSubring ℂ := (NormedField.valuation.comap ι.place.ιₚ).valuationSubring |
| 71 | |
| 72 | lemma conj_snd_apply (z : ℂ) : ι.conj.iso z = ι.iso (starRingEnd ℂ z) := rfl |
| 73 | |
| 74 | /-- The embedding `ℂ → ℂ_l` given by `ι ∣ l` induces the same absolute value on `ℂ` as `ι`. -/ |
| 75 | lemma norm_place (x : ℂ) : ‖ι.place.ιₚ x‖ = ‖ι.iso x‖ := norm_algebraMap' ℂ_[ι.prime] (ι.iso x) |
| 76 | |
| 77 | /-- Let `ι` consist of the prime `l = ι.prime` and the isomorphism `ι.iso : ℂ ≃ ℚ̄_l`. If `x` |
| 78 | divides `l ^ j` in the valuation ring `𝒪_ι`, then `‖ι x‖ ≥ l ^ (-j)`. -/ |
| 79 | lemma inv_pow_le_norm_of_dvd {x : ι.integers} {j : ℕ} (hx : x ∣ ((ι.prime : ℕ) : ι.integers) ^ j) : |
| 80 | (((ι.prime : ℕ) : ℝ) ^ j)⁻¹ ≤ ‖ι.iso (x : ℂ)‖ := by |
| 81 | rw [← norm_place] |
| 82 | simpa [norm_p_eq_inv, ← NNReal.coe_le_coe] using |
| 83 | (Valuation.valuationSubring.integers _).le_of_dvd hx |
| 84 | |
| 85 | /-- The square matrix `u` over `𝒪_ι` carries the family `y` into `M` with loss `a`: the combinations |
| 86 | `∑ u_ik y_k` lie in `M`, and the valuation of `det u` at `ι` is at most `a`. -/ |
| 87 | structure Carries {S W : Type} [Fintype S] [DecidableEq S] [AddCommGroup W] [Module ι.integers W] |
| 88 | (u : Matrix S S ι.integers) (y : S → W) (M : Submodule ι.integers W) (a : ℝ) : Prop where |
| 89 | /-- `‖ι (det u)‖ ≥ l ^ (-a)`: the valuation of `det u` at `ι ∣ l` is at most `a`. -/ |
| 90 | le_norm_det : ((ι.prime : ℕ) : ℝ) ^ (-a) ≤ ‖ι.iso (u.det : ℂ)‖ |
| 91 | /-- The combinations `∑ u_ik y_k` lie in `M`. -/ |
| 92 | sum_smul_mem (i : S) : ∑ k : S, u i k • y k ∈ M |
| 93 | |
| 94 | /-- Let `ι` consist of a prime `l` and an isomorphism `ℂ ≃ ℚ̄_l`, and let `𝒪_ι = ι.integers` be the |
| 95 | ring of complex numbers `x` with `‖ι x‖ ≤ 1`. If `u` carries `y` into `M` with loss `a` and `u'` |
| 96 | carries `y'` into `M` with loss `a'`, then the block diagonal matrix with blocks `u` and `u'` |
| 97 | carries the union of the two families into `M` with loss `a + a'`. -/ |
| 98 | lemma Carries.fromBlocks {ι : PrimePadicIso} {S S' W : Type} [Fintype S] [Fintype S'] |
| 99 | [DecidableEq S] [DecidableEq S'] [AddCommGroup W] [Module ι.integers W] |
| 100 | {M : Submodule ι.integers W} {u : Matrix S S ι.integers} {u' : Matrix S' S' ι.integers} |
| 101 | {y : S → W} {y' : S' → W} {a a' : ℝ} |
| 102 | (hu : ι.Carries u y M a) (hu' : ι.Carries u' y' M a') : |
| 103 | ι.Carries (fromBlocks u 0 0 u') (Sum.elim y y') M (a + a') := by |
| 104 | constructor |
| 105 | · rw [det_fromBlocks_zero₂₁, neg_add, rpow_add (mod_cast ι.fact_prime.out.pos), |
| 106 | MulMemClass.coe_mul, map_mul, norm_mul] |
| 107 | exact mul_le_mul hu.le_norm_det hu'.le_norm_det (by positivity) (norm_nonneg _) |
| 108 | · rintro (i | i) |
| 109 | · simpa using hu.sum_smul_mem i |
| 110 | · simpa using hu'.sum_smul_mem i |
| 111 | |
| 112 | end TauCeti.PrimePadicIso |
| 113 | |
| 114 | namespace New |
| 115 | |
| 116 | /-- The automorphism `σ'` of `ℂ`, with `σ' z = conj (σ (conj z))`. -/ |
| 117 | abbrev conjAut (σ : ℂ ≃+* ℂ) : ℂ ≃+* ℂ := (starRingAut.trans σ).trans starRingAut |
| 118 | |
| 119 | /-- A twisted lattice on `V`, with twists `ξ : T` and trivial twist `1`: linear maps `Θ_ξ` to inner |
| 120 | product spaces, in each of them a module of vectors integral at `ι`, such that, if `ξ` is allowed at |
| 121 | the prime of `ι`, products of vectors integral at `ῑ` with vectors integral at `ι` are integral at |
| 122 | `ι`, and coordinates for the trivial twist in which the inner product has a rational matrix. -/ |
| 123 | structure TwistedLattice (V T : Type) [AddCommGroup V] [Module ℂ V] [One T] where |
| 124 | /-- The inner product space for the twist `ξ`. -/ |
| 125 | Space : T → Type |
| 126 | /-- The norm on the twist space `Space ξ`. -/ |
| 127 | [normedAddCommGroup (ξ : T) : NormedAddCommGroup (Space ξ)] |
| 128 | /-- The inner product space structure on the twist space. -/ |
| 129 | [innerProductSpace (ξ : T) : InnerProductSpace ℂ (Space ξ)] |
| 130 | /-- The map `Θ_ξ`. -/ |
| 131 | lift (ξ : T) : V →ₗ[ℂ] Space ξ |
| 132 | /-- The twist `ξ` is allowed at the prime `l`. -/ |
| 133 | IsAllowed : ℕ → T → Prop |
| 134 | /-- The vectors for the twist `ξ` that are integral at `ι`. -/ |
| 135 | lattice (ξ : T) (ι : PrimePadicIso) : Submodule ι.integers (Space ξ) |
| 136 | /-- For `ξ` allowed at the prime of `ι`, the product of a vector integral at `ῑ` and a vector |
| 137 | integral at `ι` is integral at `ι`. -/ |
| 138 | norm_inner_le_one {ξ : T} (ι : PrimePadicIso) (hξ : IsAllowed ι.prime ξ) : |
| 139 | ∀ φ ∈ lattice ξ ι.conj, ∀ φ' ∈ lattice ξ ι, ‖ι.iso ⟪φ, φ'⟫_ℂ‖ ≤ 1 |
| 140 | /-- The set of coordinates on the space for the trivial twist. -/ |
| 141 | Coord : Type |
| 142 | /-- The coordinate index set is finite. -/ |
| 143 | [fintypeCoord : Fintype Coord] |
| 144 | /-- The coordinates of a vector. -/ |
| 145 | coord : Space 1 →ₗ[ℂ] Coord → ℂ |
| 146 | /-- The rational matrix of the inner product in these coordinates. -/ |
| 147 | gramMatrix : Matrix Coord Coord ℚ |
| 148 | /-- The matrix defines an inner product on all coordinate vectors. -/ |
| 149 | posDef_gramMatrix : (gramMatrix.map (↑) : Matrix Coord Coord ℂ).PosDef |
| 150 | /-- The inner product is the one induced from coordinate vectors. -/ |
| 151 | inner_eq (φ φ' : Space 1) : ⟪φ, φ'⟫_ℂ = star (coord φ) ⬝ᵥ gramMatrix.map (↑) *ᵥ coord φ' |
| 152 | |
| 153 | namespace TwistedLattice |
| 154 | |
| 155 | attribute [instance] normedAddCommGroup innerProductSpace fintypeCoord |
| 156 | |
| 157 | section Index |
| 158 | |
| 159 | variable {V T : Type} [AddCommGroup V] [Module ℂ V] [One T] (L : TwistedLattice V T) |
| 160 | |
| 161 | /-- The vectors of `V` that are integral at `ι ∣ l`: those `y` for which `Θ_ξ y` is integral at `ι` |
| 162 | for every twist `ξ` allowed at `l`. -/ |
| 163 | def integralVectors (ι : PrimePadicIso) : Submodule ι.integers V := |
| 164 | ⨅ (ξ : T) (_ : L.IsAllowed ι.prime ξ), |
| 165 | (L.lattice ξ ι).comap ((L.lift ξ).restrictScalars ι.integers) |
| 166 | |
| 167 | lemma mem_integralVectors {L : TwistedLattice V T} {ι : PrimePadicIso} {y : V} : |
| 168 | y ∈ L.integralVectors ι ↔ ∀ ξ : T, L.IsAllowed ι.prime ξ → L.lift ξ y ∈ L.lattice ξ ι := by |
| 169 | simp [integralVectors] |
| 170 | |
| 171 | variable {S S' : Type} [Fintype S] [Fintype S'] [DecidableEq S] [DecidableEq S'] |
| 172 | |
| 173 | /-- The family `y` has index at most `δ`: there are numbers `δ_l = e l ≥ 0` with `∑ δ_l log l ≤ δ`, |
| 174 | the sum taken over primes, such that for every `ι ∣ l` some matrix over `𝒪_ι` carries the family |
| 175 | into the vectors integral at `ι` with loss `δ_l`. The matrix does not depend on the twist. -/ |
| 176 | def IndexLe (y : S → V) (δ : ℝ) : Prop := |
| 177 | ∃ e : ℕ → ℝ, |
| 178 | (∀ l : ℕ, 0 ≤ e l) ∧ |
| 179 | (∀ U : Finset ℕ, (∀ l ∈ U, l.Prime) → ∑ l ∈ U, e l * log l ≤ δ) ∧ |
| 180 | ∀ ι : PrimePadicIso, ∃ u : Matrix S S ι.integers, |
| 181 | ι.Carries u y (L.integralVectors ι) (e ι.prime) |
| 182 | |
| 183 | variable {L} |
| 184 | |
| 185 | lemma IndexLe.mono {y : S → V} {δ δ' : ℝ} (hy : L.IndexLe y δ) (hδ : δ ≤ δ') : L.IndexLe y δ' := by |
| 186 | obtain ⟨e, he_nonneg, he_sum, hu⟩ := hy |
| 187 | exact ⟨e, he_nonneg, fun U hU ↦ (he_sum U hU).trans hδ, hu⟩ |
| 188 | |
| 189 | /-- Let `L` be a twisted lattice on `V`. The index does not depend on the numbering of the family: |
| 190 | if `y ∘ f` has index at most `δ` for a bijection `f`, then so has `y`. -/ |
| 191 | lemma IndexLe.of_comp_equiv {y : S → V} {δ : ℝ} (f : S' ≃ S) (hy : L.IndexLe (y ∘ f) δ) : |
| 192 | L.IndexLe y δ := by |
| 193 | obtain ⟨e, he_nonneg, he_sum, h_carries⟩ := hy |
| 194 | refine ⟨e, he_nonneg, he_sum, fun ι ↦ ?_⟩ |
| 195 | obtain ⟨u, hu⟩ := h_carries ι |
| 196 | refine ⟨u.submatrix f.symm f.symm, by simpa using hu.le_norm_det, fun i ↦ ?_⟩ |
| 197 | simpa [← f.sum_comp] using hu.sum_smul_mem (f.symm i) |
| 198 | |
| 199 | /-- Let `L` be a twisted lattice on `V`, and let `e l ≥ 0` with `∑ e l log l ≤ δ` over every finite |
| 200 | set of primes. Suppose that for every prime `l` and every `ι ∣ l` (so `l = ι.prime`) the family `y` |
| 201 | lies in an `𝒪_ι`-module `M` all of whose finite families are taken into the vectors integral at `ι` |
| 202 | by matrices with determinant dividing `l ^ j` (`New.ColengthDvd`), where `j ≤ e l`. Then `y` has |
| 203 | index at most `δ` (`IndexLe`): for some `δ_l ≥ 0` with `∑ δ_l log l ≤ δ` and each `ι ∣ l`, a matrix |
| 204 | `u` over `𝒪_ι` with `‖ι (det u)‖ ≥ l ^ (-δ_l)` takes `y` into the vectors integral at `ι`. -/ |
| 205 | lemma indexLe_of_colengthDvd {n : ℕ} {y : Fin n → V} {δ : ℝ} {e : ℕ → ℝ} |
| 206 | (he_nonneg : ∀ l : ℕ, 0 ≤ e l) |
| 207 | (he_sum : ∀ U : Finset ℕ, (∀ l ∈ U, l.Prime) → ∑ l ∈ U, e l * log l ≤ δ) |
| 208 | (h_local : ∀ ι : PrimePadicIso, ∃ (j : ℕ) (M : Submodule ι.integers V), |
| 209 | j ≤ e ι.prime ∧ (∀ i : Fin n, y i ∈ M) ∧ ColengthDvd M (L.integralVectors ι) |
| 210 | ((ι.prime : ℕ) ^ j)) : |
| 211 | L.IndexLe y δ := by |
| 212 | refine ⟨e, he_nonneg, he_sum, fun ι ↦ ?_⟩ |
| 213 | obtain ⟨j, M, hj, hy, h_colength⟩ := h_local ι |
| 214 | obtain ⟨u, hu_dvd, hu_mem⟩ := h_colength n y hy |
| 215 | set l : ℕ := (ι.prime : ℕ) |
| 216 | refine ⟨u, ?_, hu_mem⟩ |
| 217 | calc (l : ℝ) ^ (-e l) ≤ (l : ℝ) ^ (-(j : ℝ)) := |
| 218 | rpow_le_rpow_of_exponent_le (mod_cast ι.fact_prime.out.one_le) (neg_le_neg hj) |
| 219 | _ = ((l : ℝ) ^ j)⁻¹ := by rw [rpow_neg l.cast_nonneg, rpow_natCast] |
| 220 | _ ≤ ‖ι.iso (u.det : ℂ)‖ := ι.inv_pow_le_norm_of_dvd hu_dvd |
| 221 | |
| 222 | /-- Let `L` be a twisted lattice on `V`. If two families have index at most `δ` and `δ'`, then their |
| 223 | union `Sum.elim y y'` has index at most `δ + δ'`. -/ |
| 224 | lemma IndexLe.sumElim {y : S → V} {y' : S' → V} {δ δ' : ℝ} (hy : L.IndexLe y δ) |
| 225 | (hy' : L.IndexLe y' δ') : L.IndexLe (Sum.elim y y') (δ + δ') := by |
| 226 | -- Add the numbers `δ_l` and put the two matrices in diagonal blocks. |
| 227 | obtain ⟨e, he_nonneg, he_sum, h_carries⟩ := hy |
| 228 | obtain ⟨e', he'_nonneg, he'_sum, h_carries'⟩ := hy' |
| 229 | refine ⟨e + e', fun l ↦ add_nonneg (he_nonneg l) (he'_nonneg l), fun U hU ↦ ?_, fun ι ↦ ?_⟩ |
| 230 | · simpa [add_mul, sum_add_distrib] using add_le_add (he_sum U hU) (he'_sum U hU) |
| 231 | · obtain ⟨⟨u, hu⟩, ⟨u', hu'⟩⟩ := h_carries ι, h_carries' ι |
| 232 | exact ⟨fromBlocks u 0 0 u', hu.fromBlocks hu'⟩ |
| 233 | |
| 234 | /-- Let `t` be a finite set of indices, and suppose that for each `s ∈ t` every finite family in the |
| 235 | set `A s ⊆ V` has index at most `δ`. Then a finite family `y` with all its members in the union of |
| 236 | these sets has index at most `#t δ`. -/ |
| 237 | lemma indexLe_card_mul {y : S → V} {δ : ℝ} {κ : Type} {A : κ → Set V} (t : Finset κ) |
| 238 | (hA : ∀ s ∈ t, ∀ (n : ℕ) (z : Fin n → V), (∀ i : Fin n, z i ∈ A s) → L.IndexLe z δ) |
| 239 | (hy : ∀ i : S, ∃ s ∈ t, y i ∈ A s) : |
| 240 | L.IndexLe y (#t * δ) := by |
| 241 | induction t using Finset.cons_induction generalizing S with |
| 242 | | empty => |
| 243 | have : IsEmpty S := ⟨fun i ↦ by simpa using hy i⟩ |
| 244 | exact ⟨0, fun _ ↦ le_rfl, by simp, fun ι ↦ ⟨1, by simp, isEmptyElim⟩⟩ |
| 245 | | cons s t hs ih => |
| 246 | -- Split the family into the members of `A s` and the rest. |
| 247 | classical |
| 248 | let p (i : S) : Prop := y i ∈ A s |
| 249 | let f : Fin (Fintype.card {i : S // p i}) ≃ {i : S // p i} := (Fintype.equivFin _).symm |
| 250 | have h_mem : L.IndexLe (fun i : {i : S // p i} ↦ y i) δ := |
| 251 | .of_comp_equiv f (hA s (mem_cons_self s t) _ _ fun i ↦ (f i).prop) |
| 252 | have h_rest : L.IndexLe (fun i : {i : S // ¬p i} ↦ y i) (#t * δ) := by |
| 253 | refine ih (fun s' hs' ↦ hA s' (mem_cons_of_mem hs')) fun i ↦ ?_ |
| 254 | simpa [i.prop, p] using hy i |
| 255 | refine .of_comp_equiv (Equiv.sumCompl p) ?_ |
| 256 | rw [card_cons, Nat.cast_succ, add_one_mul, add_comm, |
| 257 | ← Sum.elim_comp_inl_inr (y ∘ Equiv.sumCompl p)] |
| 258 | exact h_mem.sumElim h_rest |
| 259 | |
| 260 | end Index |
| 261 | |
| 262 | section Covolume |
| 263 | |
| 264 | variable {V T S : Type} [AddCommGroup V] [Module ℂ V] [One T] (L : TwistedLattice V T) |
| 265 | [Fintype S] [DecidableEq S] |
| 266 | |
| 267 | /-- The coordinates of `σ Θ₁ y`: those of `Θ₁ y`, with `σ` applied to each of them. -/ |
| 268 | def conjCoord (σ : ℂ ≃+* ℂ) (y : V) : L.Coord → ℂ := σ ∘ L.coord (L.lift 1 y) |
| 269 | |
| 270 | /-- The number `‖Θ₁ y‖_σ² = ⟨σ Θ₁ y, σ Θ₁ y⟩`, with the product given by the rational matrix |
| 271 | `L.gramMatrix` on coordinate vectors. -/ |
| 272 | def normSqAt (y : V) (σ : ℂ ≃+* ℂ) : ℝ := |
| 273 | (star (L.conjCoord σ y) ⬝ᵥ L.gramMatrix.map (↑) *ᵥ L.conjCoord σ y).re |
| 274 | |
| 275 | /-- The family `y` has covolume at most `c`: for every automorphism `σ` of `ℂ` the determinant of |
| 276 | the products `⟨σ Θ₁ y_i, σ Θ₁ y_k⟩`, taken by the rational Gram matrix on the coordinate vectors |
| 277 | `L.conjCoord σ (y i)`, has absolute value at most `exp c`. -/ |
| 278 | def CovolumeLe (y : S → V) (c : ℝ) : Prop := |
| 279 | ∀ σ : ℂ ≃+* ℂ, ‖(formGram (L.gramMatrix.map (↑)) (L.conjCoord σ ∘ y)).det‖ ≤ exp c |
| 280 | |
| 281 | variable {L} |
| 282 | |
| 283 | /-- Since the Gram matrix `L.gramMatrix` is rational, `σ ⟪Θ₁ v, Θ₁ w⟫ = ⟨σ' Θ₁ v, σ Θ₁ w⟩`, where |
| 284 | `Θ₁ = L.lift 1` and `σ' = conjAut σ`, with `σ' z = conj (σ (conj z))`; the right side pairs the |
| 285 | coordinate vectors `L.conjCoord` by the Gram matrix. -/ |
| 286 | lemma map_inner_lift_one (σ : ℂ ≃+* ℂ) (v w : V) : |
| 287 | σ ⟪L.lift 1 v, L.lift 1 w⟫_ℂ = |
| 288 | star (L.conjCoord (conjAut σ) v) ⬝ᵥ L.gramMatrix.map (↑) *ᵥ L.conjCoord σ w := by |
| 289 | simp [conjCoord, inner_eq, dotProduct, mulVec] |
| 290 | |
| 291 | /-- **Gram determinants, conjugates.** Let `L` be a twisted lattice on `V`, with map `Θ₁ = L.lift 1` |
| 292 | for the trivial twist. For an automorphism `τ` of `ℂ`, write `τ Θ₁ v` for the coordinate vector of |
| 293 | `Θ₁ v` with `τ` applied to each coordinate (`conjCoord`); such vectors are paired by the rational |
| 294 | matrix `L.gramMatrix` of the inner product. If `y` has covolume at most `c`, that is, |
| 295 | `|det ⟨τ Θ₁ y_i, τ Θ₁ y_k⟩| ≤ exp c` for all `τ`, then `|σ Gram(1)| ≤ exp c` for every automorphism |
| 296 | `σ`, where `Gram(1) = det ⟨Θ₁ y_i, Θ₁ y_k⟩`. -/ |
| 297 | lemma CovolumeLe.norm_map_det_gram_le {y : S → V} {c : ℝ} (hy : L.CovolumeLe y c) (σ : ℂ ≃+* ℂ) : |
| 298 | ‖σ (gram ℂ (L.lift 1 ∘ y)).det‖ ≤ exp c := by |
| 299 | -- `σ Gram(1)` is the product of `σ' Θ₁ y₁ ∧ ⋯` and `σ Θ₁ y₁ ∧ ⋯` in the exterior power. |
| 300 | let G : Matrix L.Coord L.Coord ℂ := L.gramMatrix.map (↑) |
| 301 | let v : S → L.Coord → ℂ := L.conjCoord (conjAut σ) ∘ y |
| 302 | let w : S → L.Coord → ℂ := L.conjCoord σ ∘ y |
| 303 | have h_pair : |
| 304 | σ (gram ℂ (L.lift 1 ∘ y)).det = (of fun i k : S ↦ star (v i) ⬝ᵥ G *ᵥ w k).det := by |
| 305 | rw [σ.map_det] |
| 306 | exact congrArg det (Matrix.ext fun i k ↦ map_inner_lift_one σ (y i) (y k)) |
| 307 | refine le_of_sq_le_sq ?_ (exp_nonneg c) |
| 308 | rw [h_pair] |
| 309 | calc _ ≤ ‖(formGram G v).det‖ * ‖(formGram G w).det‖ := |
| 310 | L.posDef_gramMatrix.posSemidef.norm_det_pairing_sq_le v w |
| 311 | _ ≤ exp c * exp c := mul_le_mul (hy (conjAut σ)) (hy σ) (norm_nonneg _) (exp_nonneg c) |
| 312 | _ = exp c ^ 2 := (sq _).symm |
| 313 | |
| 314 | /-- Let `L` be a twisted lattice on `V`, with map `Θ₁ = L.lift 1` for the trivial twist. For an |
| 315 | automorphism `σ` of `ℂ`, apply `σ` to the coordinates of `Θ₁ v` and pair the results by the rational |
| 316 | Gram matrix: `L.normSqAt v σ = ‖Θ₁ v‖_σ²` is the product of such a vector with itself, and a family |
| 317 | has covolume at most `c` (`CovolumeLe`) if for every `σ` the determinant of these products of its |
| 318 | members has absolute value at most `exp c`. If `‖Θ₁ z_i‖_σ² ≤ exp h` for all `i` and `σ`, then |
| 319 | `z_1, …, z_n` has covolume at most `n h`. This is Hadamard's inequality. -/ |
| 320 | lemma covolumeLe_of_normSqAt_le {n : ℕ} {z : Fin n → V} {h : ℝ} |
| 321 | (hz : ∀ (i : Fin n) (σ : ℂ ≃+* ℂ), L.normSqAt (z i) σ ≤ exp h) : |
| 322 | L.CovolumeLe z (n * h) := |
| 323 | fun σ ↦ norm_det_formGram_le L.posDef_gramMatrix.posSemidef fun i ↦ hz i σ |
| 324 | |
| 325 | /-- **Gram determinants, adjoining vectors.** If two families have covolume at most `c` and |
| 326 | `c'`, their union has covolume at most `c + c'` by Fischer's inequality. -/ |
| 327 | lemma CovolumeLe.sumElim {S' : Type} [Fintype S'] [DecidableEq S'] |
| 328 | {y : S → V} {z : S' → V} {c c' : ℝ} (hy : L.CovolumeLe y c) (hz : L.CovolumeLe z c') : |
| 329 | L.CovolumeLe (Sum.elim y z) (c + c') := by |
| 330 | -- Apply Fischer's inequality to the Gram matrix `M` of the union at `σ`. |
| 331 | intro σ |
| 332 | rw [Sum.comp_elim] |
| 333 | set M : Matrix (S ⊕ S') (S ⊕ S') ℂ := |
| 334 | formGram (L.gramMatrix.map (↑)) (Sum.elim (L.conjCoord σ ∘ y) (L.conjCoord σ ∘ z)) |
| 335 | calc ‖M.det‖ ≤ ‖M.toBlocks₁₁.det‖ * ‖M.toBlocks₂₂.det‖ := |
| 336 | fischer_det_inequality (posSemidef_formGram L.posDef_gramMatrix.posSemidef _) |
| 337 | _ ≤ exp c * exp c' := mul_le_mul (hy σ) (hz σ) (norm_nonneg _) (exp_nonneg c) |
| 338 | _ = exp (c + c') := (Real.exp_add _ _).symm |
| 339 | |
| 340 | end Covolume |
| 341 | |
| 342 | section Twist |
| 343 | |
| 344 | variable {V T : Type} [NormedAddCommGroup V] [InnerProductSpace ℂ V] [Module.Finite ℂ V] [One T] |
| 345 | (L : TwistedLattice V T) |
| 346 | |
| 347 | /-- The number `Z(ξ) = det (Θ_ξ* Θ_ξ)`, the Gram determinant of the images of an orthonormal basis |
| 348 | of `V`. -/ |
| 349 | def volume (ξ : T) : ℂ := (L.lift ξ).normDet ^ 2 |
| 350 | |
| 351 | variable {L} |
| 352 | |
| 353 | lemma volume_ne_zero {ξ : T} (h_inj : Function.Injective (L.lift ξ)) : L.volume ξ ≠ 0 := by |
| 354 | simp [volume, LinearMap.normDet_eq_zero_iff_ker_ne_bot, LinearMap.ker_eq_bot.2 h_inj] |
| 355 | |
| 356 | section |
| 357 | |
| 358 | omit [Module.Finite ℂ V] |
| 359 | |
| 360 | /-- **Gram determinants, valuations.** Let `L` be a twisted lattice on `V` with maps |
| 361 | `Θ_ξ = L.lift ξ`. Let `ι` consist of a prime `l` and an isomorphism `ι.iso : ℂ ≃ ℚ̄_l`, and let |
| 362 | `ῑ z = ι z̄`. Let `ξ` be allowed at `l`. If `u` takes the vectors `Θ_ξ w_i` to vectors integral at |
| 363 | `ι` and `u'` takes them to vectors integral at `ῑ`, then |
| 364 | `‖ι (conj (det u') · Gram(ξ) · det u)‖ ≤ 1`, where `Gram(ξ) = det ⟨Θ_ξ w_i, Θ_ξ w_k⟩`. -/ |
| 365 | lemma norm_det_mul_det_gram_le_one {ι : PrimePadicIso} {ξ : T} (hξ : L.IsAllowed ι.prime ξ) |
| 366 | {S : Type} [Fintype S] [DecidableEq S] {w : S → V} {u u' : Matrix S S ℂ} |
| 367 | (hu : ∀ i : S, ∑ k : S, u i k • L.lift ξ (w k) ∈ L.lattice ξ ι) |
| 368 | (hu' : ∀ i : S, ∑ k : S, u' i k • L.lift ξ (w k) ∈ L.lattice ξ ι.conj) : |
| 369 | ‖ι.conj.iso u'.det‖ * ‖ι.iso (gram ℂ (L.lift ξ ∘ w)).det‖ * ‖ι.iso u.det‖ ≤ 1 := by |
| 370 | rw [ι.conj_snd_apply] |
| 371 | exact norm_det_mul_det_gram_mul_det_le_one ι.iso.toRingHom fun i k ↦ |
| 372 | L.norm_inner_le_one ι hξ _ (hu' i) _ (hu k) |
| 373 | |
| 374 | /-- Let `L` be a twisted lattice with maps `Θ_ξ = L.lift ξ`, let `ι ∣ l`, and let the twist `ξ` be |
| 375 | allowed at `l`. Let `u` take `y` into `L.integralVectors ι`, and let the vectors `γ Θ_ξ z_i` be |
| 376 | integral at `ι`. Then a matrix `v` with `det v = det u · γ ^ n'` takes |
| 377 | `Θ_ξ y_1, …, Θ_ξ y_n, Θ_ξ z_1, …, Θ_ξ z_n'` to vectors integral at `ι`. -/ |
| 378 | lemma exists_matrix_elim_mem_lattice {n n' : ℕ} {y : Fin n → V} {z : Fin n' → V} |
| 379 | {ι : PrimePadicIso} {ξ : T} (hξ : L.IsAllowed ι.prime ξ) {u : Matrix (Fin n) (Fin n) ι.integers} |
| 380 | (hu : ∀ i : Fin n, ∑ k : Fin n, u i k • y k ∈ L.integralVectors ι) {γ : ℂ} |
| 381 | (hz : ∀ i : Fin n', γ • L.lift ξ (z i) ∈ L.lattice ξ ι) : |
| 382 | ∃ v : Matrix (Fin n ⊕ Fin n') (Fin n ⊕ Fin n') ℂ, |
| 383 | v.det = u.det * γ ^ n' ∧ |
| 384 | ∀ i : Fin n ⊕ Fin n', |
| 385 | ∑ k : Fin n ⊕ Fin n', v i k • L.lift ξ (Sum.elim y z k) ∈ L.lattice ξ ι := by |
| 386 | -- Take the block diagonal matrix with blocks `u` and `γ`. |
| 387 | have hu_coe : (u.map (↑) : Matrix (Fin n) (Fin n) ℂ).det = u.det := |
| 388 | (ι.integers.subtype.map_det u).symm |
| 389 | refine ⟨fromBlocks (u.map (↑)) 0 0 (γ • 1), by simp [hu_coe], ?_⟩ |
| 390 | rintro (i | i) |
| 391 | · have h_lift : L.lift ξ (∑ k : Fin n, u i k • y k) ∈ L.lattice ξ ι := |
| 392 | mem_integralVectors.1 (hu i) ξ hξ |
| 393 | simpa [← ValuationSubring.algebraMap_apply] using h_lift |
| 394 | · simpa [Matrix.one_apply] using hz i |
| 395 | |
| 396 | /-- Let `L` be a twisted lattice with maps `Θ_ξ = L.lift ξ`. Let `l = ι.prime`, so that |
| 397 | `‖ι x‖ = ‖ι.iso x‖` is the `l`-adic absolute value of `x` under `ι.iso : ℂ ≃ ℚ̄_l`, and let |
| 398 | `ῑ z = ι z̄`. Let `ξ` be allowed at `l`, let `u` carry `y` into the vectors integral at `ι` and `u'` |
| 399 | carry `y` into those integral at `ῑ`, both with loss `a`, and let the vectors `γ Θ_ξ z_i` be |
| 400 | integral both at `ι` and at `ῑ`. Then `‖ι (|γ| ^ (2 n') Gram(ξ))‖ ≤ l ^ (2 a)`, where `Gram(ξ)` is |
| 401 | the Gram determinant of the images of `y_1, …, y_n, z_1, …, z_n'` under `Θ_ξ`. -/ |
| 402 | lemma norm_pow_mul_det_gram_le {n n' : ℕ} {y : Fin n → V} |
| 403 | {z : Fin n' → V} {ι : PrimePadicIso} {ξ : T} (hξ : L.IsAllowed ι.prime ξ) {a : ℝ} |
| 404 | {u : Matrix (Fin n) (Fin n) ι.integers} {u' : Matrix (Fin n) (Fin n) ι.conj.integers} |
| 405 | (hu : ι.Carries u y (L.integralVectors ι) a) |
| 406 | (hu' : ι.conj.Carries u' y (L.integralVectors ι.conj) a) {γ : ℂ} |
| 407 | (hz : ∀ i : Fin n', γ • L.lift ξ (z i) ∈ L.lattice ξ ι) |
| 408 | (hz' : ∀ i : Fin n', γ • L.lift ξ (z i) ∈ L.lattice ξ ι.conj) : |
| 409 | ‖ι.iso (((‖γ‖ : ℂ) ^ 2) ^ n' * (gram ℂ (L.lift ξ ∘ Sum.elim y z)).det)‖ ≤ |
| 410 | exp (2 * (a * log ι.prime)) := by |
| 411 | -- Correct the two families separately at the conjugate places. Each correction has loss `a`. |
| 412 | obtain ⟨v, hv_det, hv_mem⟩ := exists_matrix_elim_mem_lattice hξ hu.sum_smul_mem hz |
| 413 | obtain ⟨v', hv'_det, hv'_mem⟩ := |
| 414 | exists_matrix_elim_mem_lattice (ι := ι.conj) hξ hu'.sum_smul_mem hz' |
| 415 | set Gram : ℂ := (gram ℂ (L.lift ξ ∘ Sum.elim y z)).det |
| 416 | have h_integral_gram : ‖ι.conj.iso v'.det‖ * ‖ι.iso Gram‖ * ‖ι.iso v.det‖ ≤ 1 := |
| 417 | norm_det_mul_det_gram_le_one hξ hv_mem hv'_mem |
| 418 | -- The two determinant lower bounds turn local integrality into the loss `2 a log l`. |
| 419 | set β : ℝ := a * log ι.prime with hβ |
| 420 | have h_exp_loss : exp (-β) = ((ι.prime : ℕ) : ℝ) ^ (-a) := by |
| 421 | rw [rpow_def_of_pos (mod_cast ι.fact_prime.out.pos), mul_neg, mul_comm, hβ] |
| 422 | have h_det_lower : exp (-β) ≤ ‖ι.iso (u.det : ℂ)‖ := h_exp_loss.trans_le hu.le_norm_det |
| 423 | have hu'_det : exp (-β) ≤ ‖ι.conj.iso (u'.det : ℂ)‖ := h_exp_loss.trans_le hu'.le_norm_det |
| 424 | calc ‖ι.iso (((‖γ‖ : ℂ) ^ 2) ^ n' * Gram)‖ |
| 425 | = ‖ι.conj.iso γ‖ ^ n' * ‖ι.iso Gram‖ * ‖ι.iso γ‖ ^ n' := by |
| 426 | simp [← Complex.conj_mul', mul_pow, mul_right_comm] |
| 427 | _ = exp (2 * β) * |
| 428 | (exp (-β) * ‖ι.conj.iso γ‖ ^ n' * ‖ι.iso Gram‖ * (exp (-β) * ‖ι.iso γ‖ ^ n')) := by |
| 429 | rw [two_mul, Real.exp_add, Real.exp_neg] |
| 430 | field_simp |
| 431 | _ ≤ exp (2 * β) * (‖ι.conj.iso v'.det‖ * ‖ι.iso Gram‖ * ‖ι.iso v.det‖) := by |
| 432 | simp only [hv_det, hv'_det, map_mul, map_pow, norm_mul, norm_pow] |
| 433 | gcongr |
| 434 | _ ≤ exp (2 * β) := mul_le_of_le_one_right (exp_nonneg _) h_integral_gram |
| 435 | |
| 436 | /-- Let `L` be a twisted lattice with maps `Θ_ξ = L.lift ξ`. Let `y` have index at most `δ`, let |
| 437 | `ξ_ι = θ ι` be allowed at the prime of `ι`, and let the vectors `γ_ι Θ_{ξ_ι} z_i` be integral both |
| 438 | at `ι` and at `ῑ`, where `ῑ z = ι z̄`. Let `Gram(ξ)` be the Gram determinant of the images of |
| 439 | `y_1, …, y_n, z_1, …, z_n'` under `Θ_ξ`. Then the family `x_ι = |γ_ι| ^ (2 n') Gram(ξ_ι)` has height |
| 440 | at most `2 δ` (`TauCeti.PrimePadicIso.HeightLe`): for some common `H ≠ 0`, the bounds for |
| 441 | `log |σ H|` over automorphisms `σ` of `ℂ` and for `log ‖ι (H x_ι)‖` at the primes add up to at most |
| 442 | `2 δ`. -/ |
| 443 | lemma heightLe_pow_mul_det_gram {n n' : ℕ} {y : Fin n → V} {z : Fin n' → V} {δ : ℝ} |
| 444 | (hδ : L.IndexLe y δ) {θ : PrimePadicIso → T} |
| 445 | (hθ : ∀ ι : PrimePadicIso, L.IsAllowed ι.prime (θ ι)) {γ : PrimePadicIso → ℂ} |
| 446 | (hz : ∀ (ι : PrimePadicIso) (i : Fin n'), γ ι • L.lift (θ ι) (z i) ∈ L.lattice (θ ι) ι) |
| 447 | (hz' : ∀ (ι : PrimePadicIso) (i : Fin n'), γ ι • L.lift (θ ι) (z i) ∈ L.lattice (θ ι) ι.conj) : |
| 448 | HeightLe (fun ι : PrimePadicIso ↦ |
| 449 | ((‖γ ι‖ : ℂ) ^ 2) ^ n' * (gram ℂ (L.lift (θ ι) ∘ Sum.elim y z)).det) (2 * δ) := by |
| 450 | obtain ⟨e, -, he_sum, h_carries⟩ := hδ |
| 451 | refine .of_le (e := fun l ↦ 2 * (e l * log l)) (fun U hU ↦ ?_) fun ι ↦ ?_ |
| 452 | · simpa [← mul_sum] using he_sum U hU |
| 453 | · -- Take the matrices of the index at `ι` and at `ῑ`. Both serve for the twist `ξ_ι`, as `ι` and |
| 454 | -- `ῑ` have the same prime and the matrices do not depend on the twist. |
| 455 | obtain ⟨⟨u, hu⟩, ⟨u', hu'⟩⟩ := h_carries ι, h_carries ι.conj |
| 456 | exact norm_pow_mul_det_gram_le (hθ ι) hu hu' (hz ι) (hz' ι) |
| 457 | |
| 458 | end |
| 459 | |
| 460 | /-- Height of the forward volume ratio for a completed basis. Suppose the completed family |
| 461 | `y, z` has log squared covolume at most `a` at every complex conjugate. An index bound `δ` |
| 462 | for `y` and a common clearing scalar for the `n'` added vectors give the finite-place cost |
| 463 | `2 δ + n' b_denom`. The lift maps may be noninjective. -/ |
| 464 | lemma heightLe_volume_div {n n' : ℕ} {y : Fin n → V} {z : Fin n' → V} |
| 465 | (h_indep : LinearIndependent ℂ (Sum.elim y z)) (h_card : finrank ℂ V = n + n') |
| 466 | {θ : PrimePadicIso → T} (hθ : ∀ ι : PrimePadicIso, L.IsAllowed ι.prime (θ ι)) |
| 467 | {a δ b_denom : ℝ} (ha : L.CovolumeLe (Sum.elim y z) a) (hδ : L.IndexLe y δ) |
| 468 | {γ : PrimePadicIso → ℂ} (hγ_ne : ∀ ι, γ ι ≠ 0) |
| 469 | (hz_int : ∀ ι i, γ ι • L.lift (θ ι) (z i) ∈ L.lattice (θ ι) ι) |
| 470 | (hz_conj : ∀ ι i, γ ι • L.lift (θ ι) (z i) ∈ L.lattice (θ ι) ι.conj) |
| 471 | (hγ : HeightLe (fun ι : PrimePadicIso ↦ ((‖γ ι‖ : ℂ) ^ 2)⁻¹) b_denom) : |
| 472 | HeightLe (fun ι ↦ L.volume (θ ι) / L.volume 1) (a + (2 * δ + n' * b_denom)) := by |
| 473 | let G (ξ : T) := (gram ℂ (L.lift ξ ∘ Sum.elim y z)).det |
| 474 | have hG (ξ : T) : G ξ = L.volume ξ * (gram ℂ (Sum.elim y z)).det := |
| 475 | det_gram_comp (L.lift ξ) _ (by simpa using h_card) |
| 476 | have h_inv : HeightLe (fun _ ↦ (G 1)⁻¹) a := .inv_const ha.norm_map_det_gram_le |
| 477 | have h_fin : HeightLe (fun ι ↦ ((‖γ ι‖ : ℂ) ^ 2) ^ n' * G (θ ι)) (2 * δ) := |
| 478 | heightLe_pow_mul_det_gram hδ hθ hz_int hz_conj |
| 479 | -- The common basis determinant and the powers of the clearing scalar cancel in the ratio. |
| 480 | convert h_inv.mul (h_fin.mul (hγ.pow n')) using 1 |
| 481 | funext ι |
| 482 | have h_norm : (‖γ ι‖ : ℂ) ≠ 0 := by simpa using hγ_ne ι |
| 483 | simp [hG, field] |
| 484 | exact (mul_div_mul_right _ _ (det_gram_ne_zero_iff_linearIndependent.2 h_indep)).symm |
| 485 | |
| 486 | /-- **A twist for each prime.** Let `L` be a twisted lattice on `V` with maps `Θ_ξ = L.lift ξ`. |
| 487 | Let `y_1, …, y_n, z_1, …, z_n'` be a basis of `V`, and let `ξ_ι = θ ι` be allowed at the prime of |
| 488 | `ι`. Only the untwisted map must be injective, and only the selected volumes `Z(ξ_ι)` must be |
| 489 | nonzero. Write `ῑ = ι.conj`. Suppose that |
| 490 | * `y` has covolume at most `c` and index at most `δ`; |
| 491 | * `γ_ι ≠ 0`, and `γ_ι Θ_{ξ_ι} z_i` is integral at both `ι` and `ῑ`; |
| 492 | * `⟨σ Θ₁ z_i, σ Θ₁ z_i⟩ ≤ exp b_short` for all automorphisms `σ` of `ℂ`; |
| 493 | * the families `|γ_ι| ^ (-2)` and `Z(1) / Z(ξ_ι)` have height at most `b_denom` and `b_volume` |
| 494 | respectively. |
| 495 | |
| 496 | Then `c + 2 δ + n' (b_short + b_denom) + b_volume ≥ 0`. -/ |
| 497 | theorem covolume_add_index_nonneg {n n' : ℕ} {y : Fin n → V} {z : Fin n' → V} |
| 498 | (h_inj : Function.Injective (L.lift 1)) |
| 499 | (h_indep : LinearIndependent ℂ (Sum.elim y z)) (h_card : finrank ℂ V = n + n') |
| 500 | {θ : PrimePadicIso → T} (hθ : ∀ ι : PrimePadicIso, L.IsAllowed ι.prime (θ ι)) |
| 501 | (h_volume_ne : ∀ ι : PrimePadicIso, L.volume (θ ι) ≠ 0) |
| 502 | {c δ b_volume b_short b_denom : ℝ} (hc : L.CovolumeLe y c) (hδ : L.IndexLe y δ) |
| 503 | {γ : PrimePadicIso → ℂ} (hγ_ne : ∀ ι, γ ι ≠ 0) |
| 504 | (hz_int : ∀ (ι : PrimePadicIso) (i : Fin n'), γ ι • L.lift (θ ι) (z i) ∈ L.lattice (θ ι) ι) |
| 505 | (hz_conj : ∀ (ι : PrimePadicIso) (i : Fin n'), |
| 506 | γ ι • L.lift (θ ι) (z i) ∈ L.lattice (θ ι) ι.conj) |
| 507 | (hz_short : ∀ (i : Fin n') (σ : ℂ ≃+* ℂ), L.normSqAt (z i) σ ≤ exp b_short) |
| 508 | (hγ : HeightLe (fun ι : PrimePadicIso ↦ ((‖γ ι‖ : ℂ) ^ 2)⁻¹) b_denom) |
| 509 | (hZ : HeightLe (fun ι : PrimePadicIso ↦ L.volume 1 / L.volume (θ ι)) b_volume) : |
| 510 | 0 ≤ c + 2 * δ + n' * (b_short + b_denom) + b_volume := by |
| 511 | have h_forward := heightLe_volume_div h_indep h_card hθ |
| 512 | (hc.sumElim (covolumeLe_of_normSqAt_le hz_short)) hδ hγ_ne hz_int hz_conj hγ |
| 513 | -- The forward and inverse ratios use the same twist at each place, so their product is one. |
| 514 | have h_one : HeightLe 1 ((c + n' * b_short) + (2 * δ + n' * b_denom) + b_volume) := by |
| 515 | convert h_forward.mul hZ using 1 |
| 516 | funext ι |
| 517 | simp [field, volume_ne_zero h_inj, h_volume_ne ι] |
| 518 | linarith [h_one.nonneg_of_one] |
| 519 | |
| 520 | end Twist |
| 521 | |
| 522 | end TwistedLattice |
| 523 | |
| 524 | end New |
| 525 | |
| 526 | end |