Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.BlockLatticeCosets |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.TypedLatticeChoices |
| 3 | |
| 4 | /-! # Block Hecke Choices -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.BlockHeckeChoices.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | Raw GL3 double-coset support is exactly the set of lattices with the |
| 14 | prescribed Smith powers. The inverse representative yields q^(-a_i), |
| 15 | matching the kernel quotient convention proved in the preceding modules. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.Module |
| 19 | |
| 20 | open OAI.Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction |
| 21 | |
| 22 | variable (q : ℕ) [Fact q.Prime] |
| 23 | |
| 24 | def blockDiagonal (a : Fin 3 → ℤ) : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q] := |
| 25 | TateComparison.HeckeKernel.diagonalUnit (fun i => TateComparison.HeckeKernel.qUnit q ^ a i) |
| 26 | |
| 27 | theorem blockDiagonal_val (a : Fin 3 → ℤ) : |
| 28 | (blockDiagonal q a).val = Matrix.diagonal (fun i => (q : ℚ_[q]) ^ a i) := by |
| 29 | simp only [blockDiagonal, TateComparison.HeckeKernel.diagonalUnit, Units.val_zpow_eq_zpow_val, |
| 30 | TateComparison.HeckeKernel.qUnit, Units.val_mk0] |
| 31 | |
| 32 | theorem blockDiagonal_inv (a : Fin 3 → ℤ) : |
| 33 | (blockDiagonal q a)⁻¹ = blockDiagonal q (fun i => -a i) := by |
| 34 | apply Units.ext |
| 35 | change Matrix.diagonal (fun i => (((TateComparison.HeckeKernel.qUnit q ^ a i)⁻¹ : ℚ_[q]ˣ) : ℚ_[q])) = _ |
| 36 | simp [blockDiagonal, TateComparison.HeckeKernel.diagonalUnit, zpow_neg] |
| 37 | |
| 38 | abbrev standardBlockLattice : Submodule ℤ_[q] (Fin 3 → ℚ_[q]) := |
| 39 | Submodule.span ℤ_[q] (Set.range (Pi.basisFun ℚ_[q] (Fin 3))) |
| 40 | |
| 41 | instance standardBlockLattice_isLattice : Submodule.IsLattice ℚ_[q] (standardBlockLattice q) := |
| 42 | Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.basis_span_isLattice _ |
| 43 | |
| 44 | theorem block_smith_iff_factorization |
| 45 | (g : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) (b : Fin 3 → ℤ) : |
| 46 | (∃ e : BlockLatticeCosets.Construction.BlockBasis q, |
| 47 | standardBlockLattice q = Submodule.span ℤ_[q] (Set.range e) ∧ |
| 48 | (BlockLatticeCosets.Construction.matrixBlockLattice q g).val = LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e b) ↔ |
| 49 | ∃ U V : Matrix.GeneralLinearGroup (Fin 3) ℤ_[q], |
| 50 | g = Matrix.GeneralLinearGroup.map (PadicInt.Coe.ringHom (p := q)) U * |
| 51 | blockDiagonal q b * Matrix.GeneralLinearGroup.map (PadicInt.Coe.ringHom (p := q)) V := by |
| 52 | constructor |
| 53 | · rintro ⟨e, heL, heM⟩ |
| 54 | let s := Pi.basisFun ℚ_[q] (Fin 3) |
| 55 | let p := Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.powerBasis (q : ℤ_[q]) PadicInt.irreducible_p e b |
| 56 | obtain ⟨U, hU⟩ := Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.integral_basis_change s e heL |
| 57 | have hp : Submodule.span ℤ_[q] (Set.range p) = |
| 58 | Submodule.span ℤ_[q] (Set.range (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g)) := by |
| 59 | rw [← LatticeBounds.Construction.diagonalLattice_eq_powerBasis_span (q : ℤ_[q]) PadicInt.irreducible_p] |
| 60 | exact heM.symm |
| 61 | obtain ⟨V, hV⟩ := Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.integral_basis_change p (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g) hp |
| 62 | refine ⟨U, V, ?_⟩ |
| 63 | apply Units.ext |
| 64 | change g.val = U.val.map (algebraMap ℤ_[q] ℚ_[q]) * |
| 65 | (blockDiagonal q b).val * V.val.map (algebraMap ℤ_[q] ℚ_[q]) |
| 66 | rw [blockDiagonal_val] |
| 67 | calc |
| 68 | g.val = s.toMatrix (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g) := (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.standard_toMatrix_matrixBasis g).symm |
| 69 | _ = s.toMatrix e * e.toMatrix p * p.toMatrix (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g) := by |
| 70 | rw [s.toMatrix_mul_toMatrix, s.toMatrix_mul_toMatrix] |
| 71 | _ = _ := by rw [hU, hV, Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.toMatrix_powerBasis]; simp only [map_natCast] |
| 72 | · rintro ⟨U, V, hg⟩ |
| 73 | have hm := congrArg Units.val hg |
| 74 | change g.val = U.val.map (algebraMap ℤ_[q] ℚ_[q]) * |
| 75 | (blockDiagonal q b).val * V.val.map (algebraMap ℤ_[q] ℚ_[q]) at hm |
| 76 | rw [blockDiagonal_val] at hm |
| 77 | exact Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrix_factorization_lattices (q : ℤ_[q]) PadicInt.irreducible_p g b U V |
| 78 | (by simpa only [map_natCast] using hm) |
| 79 | |
| 80 | /-- Membership in the raw support is exactly the simultaneous lattice |
| 81 | formula with the negative kernel exponents. -/ |
| 82 | theorem raw_block_support_mk_iff_smith |
| 83 | (g : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) (a : Fin 3 → ℕ) : |
| 84 | QuotientGroup.mk g ∈ Hecke.Construction.rawRightCosetSupport (BlockLatticeCosets.Construction.blockIntegralLevel q) |
| 85 | (blockDiagonal q (fun i => (a i : ℤ))) ↔ |
| 86 | ∃ e : BlockLatticeCosets.Construction.BlockBasis q, |
| 87 | standardBlockLattice q = Submodule.span ℤ_[q] (Set.range e) ∧ |
| 88 | (BlockLatticeCosets.Construction.matrixBlockLattice q g).val = LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun i => -(a i : ℤ)) := by |
| 89 | rw [Hecke.Construction.rawRightCosetSupport_mk_iff, block_smith_iff_factorization, blockDiagonal_inv] |
| 90 | constructor |
| 91 | · rintro ⟨k, l, hg⟩ |
| 92 | obtain ⟨U, hU⟩ := k.property |
| 93 | obtain ⟨V, hV⟩ := l.property |
| 94 | exact ⟨U, V, by simpa only [hU, hV] using hg⟩ |
| 95 | · rintro ⟨U, V, hg⟩ |
| 96 | exact ⟨⟨_, ⟨U, rfl⟩⟩, ⟨_, ⟨V, rfl⟩⟩, hg⟩ |
| 97 | |
| 98 | theorem raw_block_support_iff_smith |
| 99 | (x : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q] ⧸ BlockLatticeCosets.Construction.blockIntegralLevel q) (a : Fin 3 → ℕ) : |
| 100 | x ∈ Hecke.Construction.rawRightCosetSupport (BlockLatticeCosets.Construction.blockIntegralLevel q) (blockDiagonal q (fun i => (a i : ℤ))) ↔ |
| 101 | ∃ e : BlockLatticeCosets.Construction.BlockBasis q, |
| 102 | standardBlockLattice q = Submodule.span ℤ_[q] (Set.range e) ∧ |
| 103 | (BlockLatticeCosets.Construction.blockLatticeCosetEquiv q x).val = LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun i => -(a i : ℤ)) := by |
| 104 | induction x using Quotient.inductionOn with |
| 105 | | h g => exact raw_block_support_mk_iff_smith q g a |
| 106 | |
| 107 | end |
| 108 | |
| 109 | /-! |
| 110 | For one chosen rank-three block, raw inverse double-coset points are in |
| 111 | bijection with unmarked subgroups of the prescribed elementary type. |
| 112 | The bounds on exponents are derived as bounds on the actual lattices. |
| 113 | -/ |
| 114 | |
| 115 | variable (q : ℕ) [Fact q.Prime] |
| 116 | |
| 117 | abbrev BlockSmithLatticeChoices (a : Fin 3 → ℕ) := |
| 118 | {M : BlockLatticeCosets.Construction.BlockLattice q // ∃ e : BlockLatticeCosets.Construction.BlockBasis q, |
| 119 | standardBlockLattice q = Submodule.span ℤ_[q] (Set.range e) ∧ |
| 120 | M.val = LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun i => -(a i : ℤ))} |
| 121 | |
| 122 | abbrev BoundedBlockSmithChoices (h : ℕ) (a : Fin 3 → ℕ) := |
| 123 | {M : Set.Icc (standardBlockLattice q) (BoundedLatticeSubgroups.Construction.qPowerSuperlattice q h (standardBlockLattice q)) // |
| 124 | ∃ e : BlockLatticeCosets.Construction.BlockBasis q, |
| 125 | standardBlockLattice q = Submodule.span ℤ_[q] (Set.range e) ∧ |
| 126 | M.val = LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun i => -(a i : ℤ))} |
| 127 | |
| 128 | abbrev BlockSubgroupChoices (h : ℕ) (a : Fin 3 → ℕ) := |
| 129 | {H : AddSubgroup (TypedLatticeChoices.Construction.BoundedLatticeQuotient q h (standardBlockLattice q)) // |
| 130 | Nonempty (H ≃+ (∀ i, ZMod (q ^ a i)))} |
| 131 | |
| 132 | theorem smith_lattice_bounds (h : ℕ) (L M : Submodule ℤ_[q] (Fin 3 → ℚ_[q])) |
| 133 | (a : Fin 3 → ℕ) (ha : ∀ i, a i ≤ h) |
| 134 | (he : ∃ e : BlockLatticeCosets.Construction.BlockBasis q, L = Submodule.span ℤ_[q] (Set.range e) ∧ |
| 135 | M = LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun i => -(a i : ℤ))) : |
| 136 | L ≤ M ∧ M ≤ BoundedLatticeSubgroups.Construction.qPowerSuperlattice q h L := by |
| 137 | obtain ⟨e, heL, heM⟩ := he |
| 138 | constructor |
| 139 | · rw [heL, heM, ← LatticeBounds.Construction.diagonalLattice_zero (q : ℤ_[q]) e] |
| 140 | apply (LatticeBounds.Construction.diagonalLattice_le_iff (q : ℤ_[q]) PadicInt.irreducible_p e _ _).mpr |
| 141 | intro i |
| 142 | omega |
| 143 | · change M ≤ SuperlatticeType.Construction.uniformizerPowerLattice (q : ℤ_[q]) PadicInt.irreducible_p (-(h : ℤ)) L |
| 144 | rw [heL, heM, ← SuperlatticeType.Construction.diagonalLattice_const] |
| 145 | apply (LatticeBounds.Construction.diagonalLattice_le_iff (q : ℤ_[q]) PadicInt.irreducible_p e _ _).mpr |
| 146 | intro i |
| 147 | exact neg_le_neg (Int.ofNat_le.mpr (ha i)) |
| 148 | |
| 149 | def rawBlockSmithChoicesEquiv (a : Fin 3 → ℕ) : |
| 150 | Hecke.Construction.rawRightCosetSupport (BlockLatticeCosets.Construction.blockIntegralLevel q) (blockDiagonal q (fun i => (a i : ℤ))) ≃ |
| 151 | BlockSmithLatticeChoices q a := |
| 152 | (BlockLatticeCosets.Construction.blockLatticeCosetEquiv q).subtypeEquiv (fun x => raw_block_support_iff_smith q x a) |
| 153 | |
| 154 | def smithChoicesBoundedEquiv (h : ℕ) (a : Fin 3 → ℕ) (ha : ∀ i, a i ≤ h) : |
| 155 | BlockSmithLatticeChoices q a ≃ BoundedBlockSmithChoices q h a where |
| 156 | toFun M := ⟨⟨M.val.val, smith_lattice_bounds q h _ _ a ha M.property⟩, M.property⟩ |
| 157 | invFun M := ⟨⟨M.val.val, IntermediateLattices.Construction.intermediate_isLattice q _ _ M.val⟩, M.property⟩ |
| 158 | left_inv _ := rfl |
| 159 | right_inv _ := rfl |
| 160 | |
| 161 | /-- Each raw coset is one subgroup choice, with coefficient one and no |
| 162 | subgroup marking. The exponent sign is fixed by the actual quotient. -/ |
| 163 | def rawBlockSubgroupChoicesEquiv (h : ℕ) (a : Fin 3 → ℕ) |
| 164 | (ha : ∀ i, a i ≤ h) (hdominant : Antitone a) (h_ElementaryDivisors : ElementaryDivisors.Construction.ElementaryDivisorsInput) : |
| 165 | Hecke.Construction.rawRightCosetSupport (BlockLatticeCosets.Construction.blockIntegralLevel q) (blockDiagonal q (fun i => (a i : ℤ))) ≃ |
| 166 | BlockSubgroupChoices q h a := |
| 167 | ((rawBlockSmithChoicesEquiv q a).trans (smithChoicesBoundedEquiv q h a ha)).trans |
| 168 | (TypedLatticeChoices.Construction.typedBoundedLatticeChoicesEquiv q h (standardBlockLattice q) a hdominant h_ElementaryDivisors).symm |
| 169 | |
| 170 | theorem standardBoundedLatticeQuotient_finite (h : ℕ) : |
| 171 | Finite (TypedLatticeChoices.Construction.BoundedLatticeQuotient q h (standardBlockLattice q)) := by |
| 172 | have heM : BoundedLatticeSubgroups.Construction.qPowerSuperlattice q h (standardBlockLattice q) = |
| 173 | LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) (Pi.basisFun ℚ_[q] (Fin 3)) (fun i => -((fun _ => h) i : ℤ)) := |
| 174 | (SuperlatticeType.Construction.diagonalLattice_const (q : ℤ_[q]) PadicInt.irreducible_p _ (-(h : ℤ))).symm |
| 175 | exact Finite.of_equiv (∀ _ : Fin 3, ZMod (q ^ h)) |
| 176 | (Superlattice.Construction.superlatticeQuotientEquiv q (standardBlockLattice q) |
| 177 | (BoundedLatticeSubgroups.Construction.qPowerSuperlattice q h (standardBlockLattice q)) (BoundedLatticeSubgroups.Construction.le_qPowerSuperlattice q h _) |
| 178 | (Pi.basisFun ℚ_[q] (Fin 3)) (fun _ => h) rfl heM).symm.toEquiv |
| 179 | |
| 180 | end |
| 181 | |
| 182 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.BlockHeckeChoices.Construction |