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.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.ResidueRestriction |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.DifferentialSymbol |
| 3 | |
| 4 | /-! # Differential Symbol Restriction -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.DifferentialSymbolRestriction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restricting the actual differential-symbol section gives the |
| 11 | literal fraction on the reindexed principal diagram. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.SymbolCoordinates |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | variable (R : Type u) [CommRing R] |
| 18 | (X Z : Over (Spec (CommRingCat.of R))) (π : X ⟶ Z) |
| 19 | (U : Z.left.Opens) (hU : IsAffineOpen U) |
| 20 | (V : X.left.Opens) (hV : IsAffineOpen V) (hVU : V ≤ π.left ⁻¹ᵁ U) |
| 21 | {g : ℕ} (t : Fin g → Γ(Z.left,U)) |
| 22 | |
| 23 | local instance ambientAlgebra : Algebra R Γ(Z.left,U) := |
| 24 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Z U |
| 25 | local instance sourceAlgebra (W : X.left.Opens) : Algebra R Γ(X.left,W) := |
| 26 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X W |
| 27 | |
| 28 | abbrev sourceParameters : Fin g → Γ(X.left,π.left ⁻¹ᵁ U) := |
| 29 | fun j => π.left.app U (t j) |
| 30 | |
| 31 | abbrev parameters := PrincipalResidue.ResidueRestriction.parameters π.left U V hVU t |
| 32 | |
| 33 | abbrev targetOpen := SectionPresheaf.openSubset V (PrincipalResidue.SymbolCoordinates.top V (parameters R X Z π U V hVU t)) |
| 34 | |
| 35 | def sourceValue (a : R) := |
| 36 | (DifferentialSymbol.map R X Z π U hU g (sourceParameters R X Z π U t)).app |
| 37 | (op (PrincipalResidue.SymbolCoordinates.top U t)) (π.left.app (SectionPresheaf.openSubset U (PrincipalResidue.SymbolCoordinates.top U t)) (PrincipalResidue.SymbolCoordinates.coefficient U hU t R a)) |
| 38 | |
| 39 | theorem sourceValue_eq (a : R) : sourceValue R X Z π U hU t a = |
| 40 | PrincipalResidue.SymbolCoordinates.symbolValue π.left U hU t R (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g) |
| 41 | (DifferentialSymbol.generator R X Z π U g (sourceParameters R X Z π U t)) a := rfl |
| 42 | |
| 43 | def targetValue (a : R) : Γ(GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g, |
| 44 | targetOpen R X Z π U V hVU t) := |
| 45 | Integral.FormSectionUnit.unit R X g (targetOpen R X Z π U V hVU t) |
| 46 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R Γ(X.left,targetOpen R X Z π U V hVU t) |
| 47 | (PrincipalResidue.ResidueRestriction.coefficientMap π.left U V hV hVU t (PrincipalResidue.SymbolCoordinates.coefficient U hU t R a)) |
| 48 | (fun j => X.left.presheaf.map (SectionPresheaf.inclusion V (PrincipalResidue.SymbolCoordinates.top V (parameters R X Z π U V hVU t))).op |
| 49 | (parameters R X Z π U V hVU t j))) |
| 50 | |
| 51 | theorem restriction (a : R) : |
| 52 | (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g).presheaf.map |
| 53 | (homOfLE (PrincipalResidue.ResidueRestriction.topBelow π.left U V hV hVU t)).op |
| 54 | (sourceValue R X Z π U hU t a) = targetValue R X Z π U hU V hV hVU t a := by |
| 55 | rw [sourceValue, DifferentialSymbol.component, |
| 56 | Integral.FormSectionUnit.restriction] |
| 57 | erw [AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap_symbol] |
| 58 | apply congrArg (Integral.FormSectionUnit.unit R X g (targetOpen R X Z π U V hVU t)) |
| 59 | congr 1 |
| 60 | funext j |
| 61 | have hn := ConcreteCategory.congr_hom |
| 62 | (π.left.naturality (SectionPresheaf.inclusion U (PrincipalResidue.SymbolCoordinates.top U t)).op) (t j) |
| 63 | have h := congrArg |
| 64 | (fun x => X.left.presheaf.map |
| 65 | (homOfLE (PrincipalResidue.ResidueRestriction.topBelow π.left U V hV hVU t)).op x) hn.symm |
| 66 | exact h.trans (PrincipalResidue.ResidueRestriction.map_restriction π.left U V hV hVU t (t j)) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.DifferentialSymbolRestriction |