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.Crystalline.Cohomology.DeRhamGlobalId |
| 2 | import Mathlib.AlgebraicGeometry.OpenImmersion |
| 3 | |
| 4 | /-! # Open Section Presheaf -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.OpenSectionPresheaf.OpenSectionAlgebras |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual section algebras and their base coefficients agree under an open immersion over the base. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | {X Y : Over (Spec (CommRingCat.of R))} (f : X ⟶ Y) [IsOpenImmersion f.left] |
| 18 | |
| 19 | def sectionAlgHom (U : X.left.Opens) : |
| 20 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R Y).obj (op (f.left ''ᵁ U)) →ₐ[R] |
| 21 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X).obj (op U) where |
| 22 | __ := (f.left.appIso U).hom.hom |
| 23 | commutes' r := by |
| 24 | change (f.left.appIso U).hom |
| 25 | ((Y.hom.appLE ⊤ (f.left ''ᵁ U) le_top) ((Scheme.ΓSpecIso (.of R)).inv r)) = |
| 26 | (X.hom.appLE ⊤ U le_top) ((Scheme.ΓSpecIso (.of R)).inv r) |
| 27 | have h : Y.hom.appLE ⊤ (f.left ''ᵁ U) le_top ≫ (f.left.appIso U).hom = |
| 28 | X.hom.appLE ⊤ U le_top := |
| 29 | (congrArg (fun g => Y.hom.appLE ⊤ (f.left ''ᵁ U) le_top ≫ g) (f.left.appIso_hom' U)).trans |
| 30 | ((Scheme.Hom.appLE_comp_appLE f.left Y.hom ⊤ (f.left ''ᵁ U) U |
| 31 | le_top (f.left.preimage_image_eq U).ge).trans |
| 32 | (congrArg (fun g : X.left ⟶ Spec (.of R) => g.appLE ⊤ U le_top) (Over.w f))) |
| 33 | exact ConcreteCategory.congr_hom h ((Scheme.ΓSpecIso (.of R)).inv r) |
| 34 | |
| 35 | def sectionAlgIso (U : X.left.Opens) : |
| 36 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R Y).obj (op (f.left ''ᵁ U)) ≅ |
| 37 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X).obj (op U) := |
| 38 | CommAlgCat.isoMk (AlgEquiv.ofBijective (sectionAlgHom f U) |
| 39 | (ConcreteCategory.bijective_of_isIso (f.left.appIso U).hom)) |
| 40 | |
| 41 | def presheafIso : f.left.opensFunctor.op ⋙ OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R Y ≅ |
| 42 | OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X := |
| 43 | NatIso.ofComponents (fun U => sectionAlgIso f U.unop) (by |
| 44 | intro U V i |
| 45 | apply CommAlgCat.hom_ext |
| 46 | apply AlgHom.ext |
| 47 | intro a |
| 48 | exact ConcreteCategory.congr_hom (f.left.appIso_hom_naturality i) a) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.NumberTheory.PadicHodge.GeometricComparison.OpenSectionPresheaf.OpenSectionAlgebras |