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.Finite.FamilyPower |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ConstantScheme |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Family.MonoidHomParameters |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ParameterPullbackMonoidIso |
| 5 | |
| 6 | /-! # Constant Monoid Hom Parameters -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ConstantMonoidHomParameters |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! All homomorphisms from a finite constant group into a proper projective group family are parameterized by a concrete closed subscheme of the finite-tuple parameter. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open _root_.CategoryTheory.MonoidalCategory |
| 16 | open scoped _root_.CategoryTheory.Obj |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | local instance constantHomPullbackProper {S T : Scheme.{u}} (c : T ⟶ S) (X : Over S) [IsProper X.hom] : |
| 21 | IsProper ((Over.pullback c).obj X).hom := inferInstanceAs (IsProper (pullback.snd X.hom c)) |
| 22 | |
| 23 | local instance constantHomPullbackFlat {S T : Scheme.{u}} (c : T ⟶ S) (X : Over S) [Flat X.hom] : |
| 24 | Flat ((Over.pullback c).obj X).hom := inferInstanceAs (Flat (pullback.snd X.hom c)) |
| 25 | |
| 26 | local instance constantHomPullbackSeparated {S T : Scheme.{u}} (c : T ⟶ S) (X : Over S) [IsSeparated X.hom] : |
| 27 | IsSeparated ((Over.pullback c).obj X).hom := inferInstanceAs (IsSeparated (pullback.snd X.hom c)) |
| 28 | |
| 29 | variable {S : Scheme.{u}} [IsNoetherian S] (A : Over S) [IsProper A.hom] |
| 30 | variable (I : Type u) [Fintype I] [MonObj A] [MonObj (ConstantScheme.Iff.constantScheme S I)] |
| 31 | |
| 32 | def finiteConstantMonoidHomParameter : Over S := |
| 33 | Family.MonoidHomParameters.familyMonoidHomParameter (ConstantMorphismParameters.finiteConstantMorphismParameter A I) (ConstantMorphismParameters.finiteConstantUniversalMorphism A I) |
| 34 | |
| 35 | def finiteConstantMonoidHomParameterInclusion : |
| 36 | finiteConstantMonoidHomParameter A I ⟶ ConstantMorphismParameters.finiteConstantMorphismParameter A I := |
| 37 | Family.MonoidHomParameters.familyMonoidHomParameterInclusion _ (ConstantMorphismParameters.finiteConstantUniversalMorphism A I) |
| 38 | |
| 39 | instance finiteConstantMonoidHomParameterInclusion_closed : |
| 40 | IsClosedImmersion (finiteConstantMonoidHomParameterInclusion A I).left := |
| 41 | Family.MonoidHomParameters.familyMonoidHomParameterInclusion_closed _ (ConstantMorphismParameters.finiteConstantUniversalMorphism A I) |
| 42 | |
| 43 | def FiniteConstantMonoidHom (T : Over S) := |
| 44 | {f : (Over.pullback T.hom).obj (ConstantScheme.Iff.constantScheme S I) ⟶ (Over.pullback T.hom).obj A // IsMonHom f} |
| 45 | |
| 46 | omit [AlgebraicGeometry.IsNoetherian S] [IsProper A.hom] in |
| 47 | theorem finiteConstantUniversalMorphism_monHom_iff {T : Over S} |
| 48 | (p : T ⟶ ConstantMorphismParameters.finiteConstantMorphismParameter A I) : |
| 49 | IsMonHom (ConstantMorphismParameters.finiteConstantMorphismParameterPointEquiv A I T p) ↔ |
| 50 | IsMonHom ((Over.pullback p.left).map (ConstantMorphismParameters.finiteConstantUniversalMorphism A I)) := by |
| 51 | rw [ConstantMorphismParameters.finiteConstantUniversalMorphism_point] |
| 52 | exact ParameterPullbackMonoidIso.geometricFamilyMorphismBaseChange_isMonHom_iff p (ConstantMorphismParameters.finiteConstantUniversalMorphism A I) |
| 53 | |
| 54 | def finiteConstantMonoidHomParameterPointEquiv (T : Over S) : |
| 55 | (T ⟶ finiteConstantMonoidHomParameter A I) ≃ FiniteConstantMonoidHom A I T := |
| 56 | (Family.MonoidHomParameters.familyMonoidHomParameterPointEquiv _ (ConstantMorphismParameters.finiteConstantUniversalMorphism A I) T).trans |
| 57 | ((ConstantMorphismParameters.finiteConstantMorphismParameterPointEquiv A I T).subtypeEquiv |
| 58 | (fun p => (finiteConstantUniversalMorphism_monHom_iff A I p).symm)) |
| 59 | |
| 60 | theorem finiteConstantMonoidHomParameterPointEquiv_val (T : Over S) |
| 61 | (p : T ⟶ finiteConstantMonoidHomParameter A I) : |
| 62 | (finiteConstantMonoidHomParameterPointEquiv A I T p).val = |
| 63 | ConstantMorphismParameters.finiteConstantMorphismParameterPointEquiv A I T (p ≫ finiteConstantMonoidHomParameterInclusion A I) := rfl |
| 64 | |
| 65 | def finiteConstantMonoidHomParameterQuasiProjectivePresentation (P : Projective.ProjectivePresentations.ProjectivePresentation A) |
| 66 | (x : 𝟙_ (Over S) ⟶ A) [IsClosedImmersion x.left] : |
| 67 | Projective.ProjectivePresentations.QuasiProjectivePresentation (finiteConstantMonoidHomParameter A I) := |
| 68 | Family.MonoidHomParameters.familyMonoidHomParameterQuasiProjectivePresentation _ (ConstantMorphismParameters.finiteConstantUniversalMorphism A I) |
| 69 | (ConstantMorphismParameters.finiteConstantMorphismParameterProjective A I P x).quasiProjective |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ConstantMonoidHomParameters |