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.DifferentialNormalForm |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.GaussianShortComplex |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShortComplexEndpointHomotopy |
| 4 | |
| 5 | /-! # Outgoing Reduction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.OutgoingReduction.LocalSectionLifting |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Removing all invertible summands of the outgoing differential of a finite free complex. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | def shortComplexHomotopyEquivOfIso {C : Type*} [Category* C] [Preadditive C] |
| 18 | {S T : ShortComplex C} (e : S ≅ T) : ShortComplex.HomotopyEquiv S T where |
| 19 | hom := e.hom |
| 20 | inv := e.inv |
| 21 | homotopyHomInvId := ShortComplex.Homotopy.ofEq e.hom_inv_id |
| 22 | homotopyInvHomId := ShortComplex.Homotopy.ofEq e.inv_hom_id |
| 23 | |
| 24 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 25 | (S : ShortComplex (ModuleCat.{u} R)) (P : MinimalDifferential.LocalSectionLifting.LocalMinimalDifferential S.g.hom) |
| 26 | |
| 27 | def localOutgoingPrecedingMap : S.X₁ →ₗ[R] (P.source × P.cancelled) := |
| 28 | P.sourceEquiv.symm.toLinearMap.comp S.f.hom |
| 29 | |
| 30 | theorem localOutgoingPreceding_zero : |
| 31 | (ComplexGaussian.LocalSectionLifting.blockDifferential P.differential 0 0 (LinearEquiv.refl R P.cancelled)).comp |
| 32 | (localOutgoingPrecedingMap S P) = 0 := by |
| 33 | apply LinearMap.ext |
| 34 | intro x |
| 35 | change (P.differential (P.sourceEquiv.symm (S.f x)).1 + 0, |
| 36 | 0 + (P.sourceEquiv.symm (S.f x)).2) = 0 |
| 37 | simp only [add_zero, zero_add] |
| 38 | rw [← P.normal_form, LinearEquiv.apply_symm_apply, S.moduleCat_zero_apply, map_zero] |
| 39 | |
| 40 | abbrev localOutgoingCoordinateComplex : ShortComplex (ModuleCat.{u} R) := |
| 41 | GaussianShortComplex.LocalSectionLifting.blockOutgoingComplex P.differential 0 0 (LinearEquiv.refl R P.cancelled) |
| 42 | (localOutgoingPrecedingMap S P) (localOutgoingPreceding_zero S P) |
| 43 | |
| 44 | abbrev localOutgoingReducedComplex : ShortComplex (ModuleCat.{u} R) := |
| 45 | GaussianShortComplex.LocalSectionLifting.schurOutgoingComplex P.differential 0 0 (LinearEquiv.refl R P.cancelled) |
| 46 | (localOutgoingPrecedingMap S P) (localOutgoingPreceding_zero S P) |
| 47 | |
| 48 | def localOutgoingCoordinateIso : S ≅ localOutgoingCoordinateComplex S P := |
| 49 | ShortComplex.isoMk (Iso.refl _) P.sourceEquiv.symm.toModuleIso P.targetEquiv.toModuleIso |
| 50 | (by ext x; rfl) |
| 51 | (by |
| 52 | ext x |
| 53 | change (P.differential (P.sourceEquiv.symm x).1 + 0, |
| 54 | 0 + (P.sourceEquiv.symm x).2) = P.targetEquiv (S.g x) |
| 55 | simp only [add_zero, zero_add] |
| 56 | rw [← P.normal_form, LinearEquiv.apply_symm_apply]) |
| 57 | |
| 58 | def localOutgoingReduction : ShortComplex.HomotopyEquiv S (localOutgoingReducedComplex S P) := |
| 59 | (shortComplexHomotopyEquivOfIso (localOutgoingCoordinateIso S P)).trans |
| 60 | (GaussianShortComplex.LocalSectionLifting.blockOutgoingHomotopyEquiv P.differential 0 0 (LinearEquiv.refl R P.cancelled) |
| 61 | (localOutgoingPrecedingMap S P) (localOutgoingPreceding_zero S P)) |
| 62 | |
| 63 | theorem localOutgoingReduction_hom_h₀ : |
| 64 | (localOutgoingReduction S P).homotopyHomInvId.h₀ = 0 := |
| 65 | ShortComplexEndpointHomotopy.LocalSectionLifting.shortComplexHomotopyEquiv_trans_hom_h₀ _ _ rfl rfl |
| 66 | |
| 67 | theorem localOutgoingReduction_inv_h₀ : |
| 68 | (localOutgoingReduction S P).homotopyInvHomId.h₀ = 0 := |
| 69 | ShortComplexEndpointHomotopy.LocalSectionLifting.shortComplexHomotopyEquiv_trans_inv_h₀ _ _ rfl rfl |
| 70 | |
| 71 | theorem localOutgoingReduced_residue_zero : |
| 72 | (localOutgoingReducedComplex S P).g.hom.baseChange (IsLocalRing.ResidueField R) = 0 := by |
| 73 | have hg : (localOutgoingReducedComplex S P).g.hom = P.differential := by |
| 74 | apply LinearMap.ext |
| 75 | intro x |
| 76 | change P.differential x - 0 = P.differential x |
| 77 | exact sub_zero _ |
| 78 | rw [hg] |
| 79 | exact P.residue_zero |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.OutgoingReduction.LocalSectionLifting |