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.FormalGeometry.Completion.Geometric.SectionAlgebra |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.BaseAlgebraPoints |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.FiniteType |
| 5 | |
| 6 | /-! # Section Scheme -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Geometric |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The derived section algebra gives an actual affine scheme of finite |
| 13 | type, with classification of global sections natural for geometric pullback. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 18 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {X S : Scheme.{u}} [IsAffine S] {π : X ⟶ S} {M : X.Modules} |
| 23 | (D : SectionAlgebra.Construction.GeometricSectionAlgebraRepresentation π M) |
| 24 | |
| 25 | def SectionAlgebra.Construction.GeometricSectionAlgebraRepresentation.scheme : Over S := Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraScheme S D.algebra |
| 26 | |
| 27 | instance SectionAlgebra.Construction.GeometricSectionAlgebraRepresentation.scheme_isAffine : IsAffine D.scheme.left := |
| 28 | inferInstanceAs (IsAffine (Spec (CommRingCat.of D.algebra))) |
| 29 | |
| 30 | instance SectionAlgebra.Construction.GeometricSectionAlgebraRepresentation.scheme_affineHom : IsAffineHom D.scheme.hom := inferInstance |
| 31 | |
| 32 | instance SectionAlgebra.Construction.GeometricSectionAlgebraRepresentation.scheme_locallyOfFiniteType : LocallyOfFiniteType D.scheme.hom := by |
| 33 | have hr : (Completion.Affine.BaseAlgebraPoints.Construction.affineBaseAlgebraMap S D.algebra).hom.FiniteType := |
| 34 | RingHom.finiteType_algebraMap.mpr D.finiteType |
| 35 | have : LocallyOfFiniteType (Spec.map (Completion.Affine.BaseAlgebraPoints.Construction.affineBaseAlgebraMap S D.algebra)) := |
| 36 | HasRingHomProperty.Spec_iff.mpr hr |
| 37 | change LocallyOfFiniteType (Spec.map (Completion.Affine.BaseAlgebraPoints.Construction.affineBaseAlgebraMap S D.algebra) ≫ S.isoSpec.inv) |
| 38 | infer_instance |
| 39 | |
| 40 | def SectionAlgebra.Construction.GeometricSectionAlgebraRepresentation.sectionPointEquiv {Y T : Scheme.{u}} [IsAffine T] |
| 41 | (f : Y ⟶ X) (ρ : Y ⟶ T) (g : T ⟶ S) (hp : IsPullback f ρ π g) : |
| 42 | (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf ρ ((Scheme.Modules.pullback f).obj M)).obj (op ⊤) ≃ |
| 43 | (Over.mk g ⟶ D.scheme) := by |
| 44 | letI : Algebra Γ(S, ⊤) Γ(T, ⊤) := g.appTop.hom.toAlgebra |
| 45 | exact (D.equivalence Y T f ρ g hp).trans (Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraPointEquiv S D.algebra (Over.mk g)).symm |
| 46 | |
| 47 | theorem SectionAlgebra.Construction.GeometricSectionAlgebraRepresentation.sectionPointEquiv_natural {Y Z T T' : Scheme.{u}} [IsAffine T] [IsAffine T'] |
| 48 | (f : Y ⟶ X) (j : Z ⟶ Y) (ρ : Y ⟶ T) (τ : Z ⟶ T') (g : T ⟶ S) (t : T' ⟶ T) |
| 49 | (hp : IsPullback f ρ π g) (hj : j ≫ ρ = τ ≫ t) (ho : IsPullback (j ≫ f) τ π (t ≫ g)) |
| 50 | (s : (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf ρ ((Scheme.Modules.pullback f).obj M)).obj (op ⊤)) : |
| 51 | D.sectionPointEquiv (j ≫ f) τ (t ≫ g) ho (GlobalSectionComposition.Construction.globalSectionCompositePullback f j M s) = |
| 52 | (Over.homMk t rfl : Over.mk (t ≫ g) ⟶ Over.mk g) ≫ D.sectionPointEquiv f ρ g hp s := by |
| 53 | let : Algebra Γ(S, ⊤) Γ(T, ⊤) := g.appTop.hom.toAlgebra |
| 54 | let : Algebra Γ(S, ⊤) Γ(T', ⊤) := (t ≫ g).appTop.hom.toAlgebra |
| 55 | apply (Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraPointEquiv S D.algebra (Over.mk (t ≫ g))).injective |
| 56 | change Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraPointEquiv S D.algebra (Over.mk (t ≫ g)) |
| 57 | ((Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraPointEquiv S D.algebra (Over.mk (t ≫ g))).symm |
| 58 | (D.equivalence Z T' (j ≫ f) τ (t ≫ g) ho (GlobalSectionComposition.Construction.globalSectionCompositePullback f j M s))) = _ |
| 59 | rw [Equiv.apply_symm_apply, Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraPointEquiv_composite] |
| 60 | change D.equivalence Z T' (j ≫ f) τ (t ≫ g) ho (GlobalSectionComposition.Construction.globalSectionCompositePullback f j M s) = |
| 61 | (ScalarKernelAlgebraNaturality.Construction.scalarTransitionAlgHomOfEq g.appTop.hom t.appTop.hom (t ≫ g).appTop.hom rfl).comp |
| 62 | (Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraPointEquiv S D.algebra (Over.mk g) |
| 63 | ((Completion.Affine.BaseAlgebraPoints.Construction.affineAlgebraPointEquiv S D.algebra (Over.mk g)).symm (D.equivalence Y T f ρ g hp s))) |
| 64 | rw [Equiv.apply_symm_apply] |
| 65 | exact D.natural Y Z T T' f j ρ τ g t hp hj ho s |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Geometric |