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 Mathlib.RingTheory.LocalRing.Module |
| 2 | |
| 3 | /-! # Basis Lift -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Residue.BasisLift.LocalSectionLifting |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Lifting a chosen residue-field basis to a finite free local module. -/ |
| 10 | |
| 11 | open scoped TensorProduct |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 16 | {M : Type v} [AddCommGroup M] [Module R M] |
| 17 | [Module.FinitePresentation R M] [Module.Flat R M] |
| 18 | |
| 19 | omit [Module.FinitePresentation R M] [Module.Flat R M] in |
| 20 | theorem exists_residueBasis_lifts {ι : Type w} |
| 21 | (b : Module.Basis ι (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField R ⊗[R] M)) : |
| 22 | ∃ v : ι → M, ∀ i, (1 : IsLocalRing.ResidueField R) ⊗ₜ[R] v i = b i := by |
| 23 | have hsurj : Function.Surjective (TensorProduct.mk R (IsLocalRing.ResidueField R) M 1) := |
| 24 | TensorProduct.mk_surjective R M (IsLocalRing.ResidueField R) |
| 25 | Ideal.Quotient.mk_surjective |
| 26 | choose v hv using fun i ↦ hsurj (b i) |
| 27 | exact ⟨v, hv⟩ |
| 28 | |
| 29 | theorem exists_basis_of_residueBasis_lifts {ι : Type w} (v : ι → M) |
| 30 | (b : Module.Basis ι (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField R ⊗[R] M)) |
| 31 | (hv : ∀ i, (1 : IsLocalRing.ResidueField R) ⊗ₜ[R] v i = b i) : |
| 32 | ∃ B : Module.Basis ι R M, ∀ i, B i = v i := by |
| 33 | have hvec : TensorProduct.mk R (IsLocalRing.ResidueField R) M 1 ∘ v = b := funext hv |
| 34 | apply Module.exists_basis_of_basis_baseChange v |
| 35 | · rw [hvec] |
| 36 | exact b.linearIndependent |
| 37 | · rw [hvec] |
| 38 | exact b.span_eq |
| 39 | · exact Module.Flat.rTensor_preserves_injective_linearMap |
| 40 | (M := M) (IsLocalRing.maximalIdeal R).subtype Subtype.val_injective |
| 41 | |
| 42 | theorem exists_basis_lifting_residue {ι : Type w} |
| 43 | (b : Module.Basis ι (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField R ⊗[R] M)) : |
| 44 | ∃ B : Module.Basis ι R M, ∀ i, (1 : IsLocalRing.ResidueField R) ⊗ₜ[R] B i = b i := by |
| 45 | obtain ⟨v, hv⟩ := exists_residueBasis_lifts b |
| 46 | obtain ⟨B, hB⟩ := exists_basis_of_residueBasis_lifts v b hv |
| 47 | exact ⟨B, fun i ↦ (congrArg (TensorProduct.mk R (IsLocalRing.ResidueField R) M 1) (hB i)).trans (hv i)⟩ |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Residue.BasisLift.LocalSectionLifting |