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.AbelianScheme.IsogenyQuotient.Relative.DegreeLoci |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LocalIsomorphismsIs |
| 3 | |
| 4 | /-! # Degree Base Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Relative.DegreeBaseChange.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restriction to the base's actual degree loci gives constant-degree |
| 11 | finite-flat maps. Positive degrees are units on schemes over a field |
| 12 | of characteristic zero. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open scoped _root_.CategoryTheory.MonObj |
| 16 | |
| 17 | universe u |
| 18 | variable {S : Scheme.{u}} {X A : Over S} [GrpObj A] [GeometricallyConnected A.hom] |
| 19 | (f : X ⟶ A) [IsFinite f.left] [Flat f.left] [LocallyOfFinitePresentation f.left] |
| 20 | |
| 21 | theorem degreeLocus_pullback_finrank (d : ℕ) |
| 22 | (a : ((Over.pullback (DegreeLoci.Construction.relativeDegreeOpen f d).ι).obj A).left) : |
| 23 | ((Over.pullback (DegreeLoci.Construction.relativeDegreeOpen f d).ι).map f).left.finrank a = d := by |
| 24 | let t := (DegreeLoci.Construction.relativeDegreeOpen f d).ι |
| 25 | have hp := CartierDuality.LocalIsomorphismsIs.Construction.LocalIsomorphisms.pullbackMap_isPullback t f |
| 26 | have hw : A.hom (pullback.fst A.hom t a) = t (pullback.snd A.hom t a) := |
| 27 | congrArg (fun m => m a) (pullback.condition (f := A.hom) (g := t)) |
| 28 | exact (Scheme.Hom.finrank_of_isPullback _ _ _ _ hp a).trans |
| 29 | ((DegreeLoci.Construction.finiteFlatDegree_eq_base_degree f (pullback.fst A.hom t a)).trans |
| 30 | ((congrArg (DegreeLoci.Construction.relativeFiniteFlatDegree f) hw).trans (pullback.snd A.hom t a).property)) |
| 31 | |
| 32 | omit [GeometricallyConnected A.hom] [LocallyOfFinitePresentation f.left] in |
| 33 | theorem relativeDegree_pos [Surjective f.left] (s : S) : 0 < DegreeLoci.Construction.relativeFiniteFlatDegree f s := |
| 34 | (Scheme.Hom.one_le_finrank_iff_surjective f.left).mpr inferInstance (η[A].left s) |
| 35 | |
| 36 | omit [GeometricallyConnected A.hom] in |
| 37 | theorem degreeLocus_degree_pos [Surjective f.left] {d : ℕ} (s : DegreeLoci.Construction.relativeDegreeOpen f d) : 0 < d := |
| 38 | s.property ▸ relativeDegree_pos f s.val |
| 39 | |
| 40 | theorem positiveNat_isUnit_on_charZero_field_scheme |
| 41 | {k : Type u} [Field k] [CharZero k] {S : Scheme.{u}} (p : S ⟶ Spec (.of k)) |
| 42 | (n : ℕ) (hn : 0 < n) (s : S) : IsUnit (n : S.presheaf.stalk s) := by |
| 43 | let c : CommRingCat.of k ⟶ S.presheaf.stalk s := |
| 44 | (Scheme.ΓSpecIso (.of k)).inv ≫ p.appTop ≫ S.presheaf.germ ⊤ s trivial |
| 45 | have hu : IsUnit (n : k) := isUnit_iff_ne_zero.mpr (Nat.cast_ne_zero.mpr (Nat.ne_of_gt hn)) |
| 46 | simpa only [map_natCast] using hu.map c.hom |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Relative.DegreeBaseChange.Construction |