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.Hecke |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.SuperlatticeType |
| 3 | |
| 4 | /-! # Block Lattice Cosets -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.BlockLatticeCosets.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Right cosets GL3(Q_q)/GL3(Z_q) classify actual full rank-three lattices. |
| 12 | Equality of lattice spans gives an integral change of basis, so no lattice |
| 13 | marking or choice of basis is retained by this classification. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.Module |
| 17 | |
| 18 | open OAI.Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction |
| 19 | |
| 20 | variable (q : ℕ) [Fact q.Prime] |
| 21 | |
| 22 | abbrev BlockBasis := Basis (Fin 3) ℚ_[q] (Fin 3 → ℚ_[q]) |
| 23 | abbrev BlockLattice := {L : Submodule ℤ_[q] (Fin 3 → ℚ_[q]) // Submodule.IsLattice ℚ_[q] L} |
| 24 | |
| 25 | def blockIntegralLevel : Subgroup (Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) := |
| 26 | (Matrix.GeneralLinearGroup.map (n := Fin 3) (PadicInt.Coe.ringHom (p := q))).range |
| 27 | |
| 28 | def blockBasisChange (e f : BlockBasis q) : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q] where |
| 29 | val := e.toMatrix f |
| 30 | inv := f.toMatrix e |
| 31 | val_inv := e.toMatrix_mul_toMatrix_flip f |
| 32 | inv_val := f.toMatrix_mul_toMatrix_flip e |
| 33 | |
| 34 | theorem blockBasisChange_mul (e f b : BlockBasis q) : |
| 35 | blockBasisChange q e f * blockBasisChange q f b = blockBasisChange q e b := by |
| 36 | apply Units.ext |
| 37 | exact e.toMatrix_mul_toMatrix f b |
| 38 | |
| 39 | theorem blockBasisChange_matrixBasis (g : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) : |
| 40 | blockBasisChange q (Pi.basisFun ℚ_[q] (Fin 3)) (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g) = g := by |
| 41 | apply Units.ext |
| 42 | exact Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.standard_toMatrix_matrixBasis g |
| 43 | |
| 44 | theorem matrixBasis_blockBasisChange (e : BlockBasis q) : |
| 45 | Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis (blockBasisChange q (Pi.basisFun ℚ_[q] (Fin 3)) e) = e := by |
| 46 | ext i j |
| 47 | simp [Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis_apply, blockBasisChange, Basis.toMatrix_apply] |
| 48 | |
| 49 | theorem blockBasisChange_between_matrixBases |
| 50 | (g k : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) : |
| 51 | blockBasisChange q (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g) (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis k) = g⁻¹ * k := by |
| 52 | apply mul_left_cancel (a := g) |
| 53 | rw [mul_inv_cancel_left] |
| 54 | nth_rw 1 [← blockBasisChange_matrixBasis q g] |
| 55 | rw [blockBasisChange_mul, blockBasisChange_matrixBasis] |
| 56 | |
| 57 | def matrixBlockLattice (g : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) : BlockLattice q := |
| 58 | ⟨Submodule.span ℤ_[q] (Set.range (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g)), Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.basis_span_isLattice (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g)⟩ |
| 59 | |
| 60 | theorem matrixBlockLattice_eq_iff (g k : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) : |
| 61 | matrixBlockLattice q g = matrixBlockLattice q k ↔ g⁻¹ * k ∈ blockIntegralLevel q := by |
| 62 | constructor |
| 63 | · intro he |
| 64 | obtain ⟨U, hU⟩ := Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.integral_basis_change (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g) (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis k) |
| 65 | (congrArg Subtype.val he) |
| 66 | refine ⟨U, ?_⟩ |
| 67 | rw [← blockBasisChange_between_matrixBases] |
| 68 | apply Units.ext |
| 69 | exact hU.symm |
| 70 | · rintro ⟨U, hU⟩ |
| 71 | apply Subtype.ext |
| 72 | apply Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.basis_span_eq_of_toMatrix_map (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis g) (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis k) U |
| 73 | have hh := congrArg Units.val ((blockBasisChange_between_matrixBases q g k).trans hU.symm) |
| 74 | exact hh |
| 75 | |
| 76 | def blockCosetToLattice : |
| 77 | Matrix.GeneralLinearGroup (Fin 3) ℚ_[q] ⧸ blockIntegralLevel q → BlockLattice q := |
| 78 | Quotient.lift (matrixBlockLattice q) (by |
| 79 | intro g k hrel |
| 80 | exact (matrixBlockLattice_eq_iff q g k).mpr (QuotientGroup.leftRel_apply.mp hrel)) |
| 81 | |
| 82 | @[simp] theorem blockCosetToLattice_mk (g : Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) : |
| 83 | blockCosetToLattice q (QuotientGroup.mk g) = matrixBlockLattice q g := rfl |
| 84 | |
| 85 | theorem blockCosetToLattice_injective : Function.Injective (blockCosetToLattice q) := by |
| 86 | intro x y |
| 87 | induction x using Quotient.inductionOn with |
| 88 | | h g => |
| 89 | induction y using Quotient.inductionOn with |
| 90 | | h k => |
| 91 | intro he |
| 92 | exact Quotient.sound (QuotientGroup.leftRel_apply.mpr |
| 93 | ((matrixBlockLattice_eq_iff q g k).mp he)) |
| 94 | |
| 95 | theorem blockCosetToLattice_surjective : Function.Surjective (blockCosetToLattice q) := by |
| 96 | intro L |
| 97 | let : Submodule.IsLattice ℚ_[q] L.val := L.property |
| 98 | have hr : Module.finrank ℤ_[q] L.val = 3 := by |
| 99 | simpa using Submodule.IsLattice.finrank_of_pi ℚ_[q] L.val |
| 100 | let b := Module.finBasisOfFinrankEq ℤ_[q] L.val hr |
| 101 | let e := b.extendOfIsLattice ℚ_[q] |
| 102 | refine ⟨QuotientGroup.mk (blockBasisChange q (Pi.basisFun ℚ_[q] (Fin 3)) e), ?_⟩ |
| 103 | apply Subtype.ext |
| 104 | change Submodule.span ℤ_[q] (Set.range (Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.matrixBasis (blockBasisChange q _ e))) = L.val |
| 105 | rw [matrixBasis_blockBasisChange] |
| 106 | exact Algebra.Modules.ElementaryDivisorsExistenceLinear.Construction.extended_basis_span b |
| 107 | |
| 108 | /-- A full lattice is exactly an unmarked right coset of the integral level. -/ |
| 109 | def blockLatticeCosetEquiv : |
| 110 | Matrix.GeneralLinearGroup (Fin 3) ℚ_[q] ⧸ blockIntegralLevel q ≃ BlockLattice q := |
| 111 | Equiv.ofBijective (blockCosetToLattice q) |
| 112 | ⟨blockCosetToLattice_injective q, blockCosetToLattice_surjective q⟩ |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.BlockLatticeCosets.Construction |