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.CohomologySectionLifting |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.HomologyInjective |
| 3 | |
| 4 | /-! # Cycle Detection -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.CycleDetection.LocalSectionLifting |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite free detector of first fiber cohomology lifts all degree-zero |
| 11 | fiber cycles over a local ring. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 19 | variable (S : ShortComplex (ModuleCat.{u} R)) (N : ModuleCat.{u} R) |
| 20 | |
| 21 | def detectorTarget : ShortComplex (ModuleCat.{u} R) := |
| 22 | ShortComplex.mk (0 : ModuleCat.of R (Fin 0 → R) ⟶ N) |
| 23 | (0 : N ⟶ ModuleCat.of R (Fin 0 → R)) (by simp) |
| 24 | |
| 25 | def detectorMap (b : S.X₂ ⟶ N) (hb : S.f ≫ b = 0) : S ⟶ detectorTarget N where |
| 26 | τ₁ := 0 |
| 27 | τ₂ := b |
| 28 | τ₃ := 0 |
| 29 | comm₁₂ := (show (0 : S.X₁ ⟶ ModuleCat.of R (Fin 0 → R)) ≫ |
| 30 | (0 : ModuleCat.of R (Fin 0 → R) ⟶ N) = 0 from zero_comp).trans hb.symm |
| 31 | comm₂₃ := (show b ≫ (0 : N ⟶ ModuleCat.of R (Fin 0 → R)) = 0 from comp_zero).trans |
| 32 | (show S.g ≫ (0 : S.X₃ ⟶ ModuleCat.of R (Fin 0 → R)) = 0 from comp_zero).symm |
| 33 | |
| 34 | theorem lift_cycle [Module.Finite R S.X₁] [Module.Free R S.X₁] |
| 35 | [Module.Finite R S.X₂] [Module.Free R S.X₂] |
| 36 | [Module.Finite R S.X₃] [Module.Free R S.X₃] |
| 37 | [Module.Finite R N] [Module.Free R N] |
| 38 | (b : S.X₂ ⟶ N) (hb : S.f ≫ b = 0) |
| 39 | (hdetect : ∀ z : IsLocalRing.ResidueField R ⊗[R] S.X₂, |
| 40 | S.g.hom.baseChange (IsLocalRing.ResidueField R) z = 0 → |
| 41 | b.hom.baseChange (IsLocalRing.ResidueField R) z = 0 → |
| 42 | z ∈ (S.f.hom.baseChange (IsLocalRing.ResidueField R)).range) |
| 43 | (z : IsLocalRing.ResidueField R ⊗[R] S.X₁) |
| 44 | (hz : S.f.hom.baseChange (IsLocalRing.ResidueField R) z = 0) : |
| 45 | ∃ x : S.X₁, S.f x = 0 ∧ (1 : IsLocalRing.ResidueField R) ⊗ₜ[R] x = z := by |
| 46 | let T := detectorTarget N |
| 47 | have : Module.Finite R T.X₁ := inferInstanceAs (Module.Finite R (Fin 0 → R)) |
| 48 | have : Module.Free R T.X₁ := inferInstanceAs (Module.Free R (Fin 0 → R)) |
| 49 | have : Module.Finite R T.X₂ := inferInstanceAs (Module.Finite R N) |
| 50 | have : Module.Free R T.X₂ := inferInstanceAs (Module.Free R N) |
| 51 | have : Module.Finite R T.X₃ := inferInstanceAs (Module.Finite R (Fin 0 → R)) |
| 52 | have : Module.Free R T.X₃ := inferInstanceAs (Module.Free R (Fin 0 → R)) |
| 53 | apply HilbertConstruction.Finite.FreeSectionLifting.LocalSectionLifting.finiteFree_lift_residue_cycle_of_cohomology_injective S T |
| 54 | (detectorMap S N b hb) rfl _ z hz |
| 55 | apply HomologyInjective.HomologyInjectiveCriterion.injective |
| 56 | intro w hw hbw |
| 57 | apply hdetect w hw |
| 58 | obtain ⟨v, hv⟩ := hbw |
| 59 | exact hv.symm.trans (by |
| 60 | change (0 : (Fin 0 → R) →ₗ[R] N).baseChange (IsLocalRing.ResidueField R) v = 0 |
| 61 | rw [LinearMap.baseChange_zero] |
| 62 | rfl) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.CycleDetection.LocalSectionLifting |