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.HilbertScheme.Presentations.Has |
| 2 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | import Mathlib.AlgebraicGeometry.Geometrically.Connected |
| 5 | |
| 6 | /-! # Endomorphisms -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Endomorphisms.Core |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Group-law preservation and finite actual morphism equations. The equation |
| 13 | language consists of natural families of morphism pairs, allowing all finite |
| 14 | identities formed using group operations, composition and fixed morphisms. |
| 15 | It is stronger than a chosen syntactic fragment and assumes no representing locus. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | universe u |
| 21 | variable {S : Scheme.{u}} (A : Over S) [GrpObj A] |
| 22 | |
| 23 | /-- Equality with the identity and compatibility with multiplication on every |
| 24 | test scheme. Via Yoneda these are exactly the group-scheme morphism identities. -/ |
| 25 | def PreservesGroupLaw {T : Over S} (f : T ⨯ A ⟶ A) : Prop := |
| 26 | ∀ (U : Over S) (t : U ⟶ T), |
| 27 | prod.lift t (1 : U ⟶ A) ≫ f = 1 ∧ |
| 28 | ∀ x y : U ⟶ A, |
| 29 | prod.lift t (x * y) ≫ f = (prod.lift t x ≫ f) * (prod.lift t y ≫ f) |
| 30 | |
| 31 | theorem preservesGroupLaw_baseChange {T U : Over S} (a : T ⟶ U) |
| 32 | (f : U ⨯ A ⟶ A) (hf : PreservesGroupLaw A f) : |
| 33 | PreservesGroupLaw A (prod.map a (𝟙 A) ≫ f) := by |
| 34 | intro V t |
| 35 | have h := hf V (t ≫ a) |
| 36 | simpa only [← Category.assoc, prod.lift_map, Category.comp_id] using h |
| 37 | |
| 38 | def endomorphismSubfunctor : Subfunctor (HomFunctor.Hom.morphismFunctor A A) where |
| 39 | obj _T := {f | PreservesGroupLaw A f} |
| 40 | map a f hf := preservesGroupLaw_baseChange A a.unop f hf |
| 41 | |
| 42 | def endomorphismTuples (n : ℕ) := Has.Core.tupleFunctor (endomorphismSubfunctor A).toFunctor n |
| 43 | |
| 44 | def forgetGroupLaw (n : ℕ) : endomorphismTuples A n ⟶ Has.Core.morphismTuples A A n := |
| 45 | Has.Core.tupleNatTrans (endomorphismSubfunctor A).ι n |
| 46 | |
| 47 | variable {A} |
| 48 | |
| 49 | /-- A natural family of actual morphism identities. The source is flat, |
| 50 | proper and finitely presented; the target is separated. This includes group |
| 51 | identities and denominator-cleared identities involving a fixed polarization |
| 52 | or a natural duality operation, without assuming any equation locus. -/ |
| 53 | structure FamilyMorphismEquation (F : (Over S)ᵒᵖ ⥤ Type u) where |
| 54 | source : Over S |
| 55 | target : Over S |
| 56 | flat : Flat source.hom |
| 57 | proper : IsProper source.hom |
| 58 | finitelyPresented : LocallyOfFinitePresentation source.hom |
| 59 | separated : IsSeparated target.hom |
| 60 | lhs : F ⟶ HomFunctor.Hom.morphismFunctor source target |
| 61 | rhs : F ⟶ HomFunctor.Hom.morphismFunctor source target |
| 62 | |
| 63 | abbrev FiniteEndomorphismEquations (A : Over S) [GrpObj A] (n : ℕ) := |
| 64 | List (FamilyMorphismEquation (endomorphismTuples A n)) |
| 65 | |
| 66 | def SatisfiesEquations {F : (Over S)ᵒᵖ ⥤ Type u} |
| 67 | (R : List (FamilyMorphismEquation F)) {T : (Over S)ᵒᵖ} (f : F.obj T) : Prop := |
| 68 | ∀ r ∈ R, r.lhs.app T f = r.rhs.app T f |
| 69 | |
| 70 | def solutionSubfunctor {F : (Over S)ᵒᵖ ⥤ Type u} |
| 71 | (R : List (FamilyMorphismEquation F)) : Subfunctor F where |
| 72 | obj _ := {f | SatisfiesEquations R f} |
| 73 | map a f hf := by |
| 74 | intro r hr |
| 75 | have hl := ConcreteCategory.congr_hom (r.lhs.naturality a) f |
| 76 | have hh := ConcreteCategory.congr_hom (r.rhs.naturality a) f |
| 77 | exact hl.trans ((congrArg ((HomFunctor.Hom.morphismFunctor r.source r.target).map a) (hf r hr)).trans hh.symm) |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Endomorphisms.Core |