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.AbelianModuli.HilbertConstruction.Local.FirstCyclesSplitting |
| 2 | import Mathlib.RingTheory.Flat.Equalizer |
| 3 | |
| 4 | /-! # Local First Cycles Splitting -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.LocalFirstCyclesSplitting.LocalSectionLifting |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! After flat extension to a local ring, first residue cohomology vanishing splits the base change of the original degree-zero kernel inclusion. -/ |
| 11 | open _root_.CategoryTheory |
| 12 | open scoped TensorProduct |
| 13 | universe u |
| 14 | |
| 15 | theorem firstCycles_inclusion_split_after_flat_local_baseChange |
| 16 | {R A : Type u} [CommRing R] [CommRing A] [Algebra R A] [IsLocalRing A] [Module.Flat R A] |
| 17 | (S : ShortComplex (ModuleCat.{u} R)) |
| 18 | [Module.Finite R S.X₁] [Module.Projective R S.X₁] |
| 19 | [Module.Finite R S.X₂] [Module.Projective R S.X₂] |
| 20 | [Module.Finite R S.X₃] [Module.Projective R S.X₃] |
| 21 | (hS : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex A (IsLocalRing.ResidueField A) |
| 22 | (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R A S)).Exact) : |
| 23 | ∃ r : (A ⊗[R] S.X₁) →ₗ[A] (A ⊗[R] S.f.hom.ker), |
| 24 | r.comp (S.f.hom.ker.subtype.baseChange A) = LinearMap.id := by |
| 25 | let T := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R A S |
| 26 | have : Module.Finite A T.X₁ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₁)) |
| 27 | have : Module.Finite A T.X₂ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₂)) |
| 28 | have : Module.Finite A T.X₃ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₃)) |
| 29 | have : Module.Flat A T.X₁ := inferInstanceAs (Module.Flat A (A ⊗[R] S.X₁)) |
| 30 | have : Module.Flat A T.X₂ := inferInstanceAs (Module.Flat A (A ⊗[R] S.X₂)) |
| 31 | have : Module.Flat A T.X₃ := inferInstanceAs (Module.Flat A (A ⊗[R] S.X₃)) |
| 32 | have : Module.Free A T.X₁ := Module.free_of_flat_of_isLocalRing |
| 33 | have : Module.Free A T.X₂ := Module.free_of_flat_of_isLocalRing |
| 34 | have : Module.Free A T.X₃ := Module.free_of_flat_of_isLocalRing |
| 35 | obtain ⟨r, hr⟩ := Local.FirstCyclesSplitting.LocalSectionLifting.firstCycles_inclusion_split_of_residue_exact T hS |
| 36 | let e : A ⊗[R] S.f.hom.ker ≃ₗ[A] T.f.hom.ker := S.f.hom.tensorKerEquiv A A |
| 37 | refine ⟨e.symm.toLinearMap.comp r, ?_⟩ |
| 38 | apply LinearMap.ext |
| 39 | intro x |
| 40 | have he : (e x).val = (S.f.hom.ker.subtype.baseChange A) x := |
| 41 | LinearMap.tensorKer_coe A A S.f.hom x |
| 42 | have hh : r (e x).val = e x := congrArg (fun k => k (e x)) hr |
| 43 | change e.symm (r ((S.f.hom.ker.subtype.baseChange A) x)) = x |
| 44 | exact (congrArg (fun y => e.symm (r y)) he.symm).trans |
| 45 | ((congrArg e.symm hh).trans (e.symm_apply_apply x)) |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.LocalFirstCyclesSplitting.LocalSectionLifting |