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.Quotients.FiniteDescent.SmoothReducedOf |
| 2 | import Mathlib.AlgebraicGeometry.Geometrically.Reduced |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 5 | |
| 6 | /-! # Scheme Smooth -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeSmooth.Construction.SchemeSmoothReduced |
| 9 | |
| 10 | /-! |
| 11 | # Reduced fibers of smooth schemes and finite flat quotients |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | /-- A scheme smooth over a field is reduced. -/ |
| 19 | theorem reduced_of_smooth_field |
| 20 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 21 | (f : X ⟶ Spec (.of K)) [Smooth f] : IsReduced X := by |
| 22 | apply (IsReduced.iff_of_openCover X X.affineCover).mpr |
| 23 | intro i |
| 24 | let g := X.affineCover.f i ≫ f |
| 25 | let := g.appTop.hom.toAlgebra |
| 26 | let := ((Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 27 | (Field.toIsField K)).toField |
| 28 | have : Algebra.Smooth Γ(Spec (.of K), ⊤) Γ(X.affineCover.X i, ⊤) := |
| 29 | HasRingHomProperty.appTop (P := @Smooth) g inferInstance |
| 30 | have : _root_.IsReduced Γ(X.affineCover.X i, ⊤) := |
| 31 | SmoothReducedOf.Construction.SmoothReduced.of_smooth_field (K := Γ(Spec (.of K), ⊤)) |
| 32 | exact isReduced_of_isAffine_isReduced _ |
| 33 | |
| 34 | /-- Smooth morphisms have geometrically reduced fibers. -/ |
| 35 | theorem geometricallyReduced_of_smooth |
| 36 | {X S : Scheme.{u}} (f : X ⟶ S) [Smooth f] : GeometricallyReduced f := by |
| 37 | constructor |
| 38 | intro K _ k Y p₁ p₂ h |
| 39 | have : Smooth p₂ := MorphismProperty.of_isPullback h inferInstance |
| 40 | exact reduced_of_smooth_field p₂ |
| 41 | |
| 42 | /-- Reducedness descends through a finite flat surjection. -/ |
| 43 | theorem reduced_of_finite_flat_surjective |
| 44 | {X Q : Scheme.{u}} (q : X ⟶ Q) [IsFinite q] [Flat q] [Surjective q] |
| 45 | [IsReduced X] : IsReduced Q := by |
| 46 | apply (IsReduced.iff_of_openCover Q Q.affineCover).mpr |
| 47 | intro i |
| 48 | let p := pullback.snd q (Q.affineCover.f i) |
| 49 | have : IsAffine (pullback q (Q.affineCover.f i)) := isAffine_of_isAffineHom p |
| 50 | have : IsReduced (pullback q (Q.affineCover.f i)) := |
| 51 | isReduced_of_isOpenImmersion (pullback.fst q (Q.affineCover.f i)) |
| 52 | have : _root_.IsReduced Γ(Q.affineCover.X i, ⊤) := |
| 53 | isReduced_of_injective p.appTop.hom |
| 54 | ((Flat.flat_and_surjective_iff_faithfullyFlat_of_isAffine p).mp |
| 55 | ⟨inferInstance, inferInstance⟩).injective |
| 56 | exact isReduced_of_isAffine_isReduced _ |
| 57 | |
| 58 | /-- Geometric reducedness descends through a finite flat surjection. -/ |
| 59 | theorem geometricallyReduced_of_comp |
| 60 | {X Q S : Scheme.{u}} (q : X ⟶ Q) (b : Q ⟶ S) |
| 61 | [IsFinite q] [Flat q] [Surjective q] [GeometricallyReduced (q ≫ b)] : |
| 62 | GeometricallyReduced b := by |
| 63 | constructor |
| 64 | intro K _ k Y p₁ p₂ h |
| 65 | have : IsReduced (pullback q p₁) := |
| 66 | GeometricallyReduced.geometrically_isReduced k (pullback.fst q p₁) |
| 67 | (pullback.snd q p₁ ≫ p₂) ((IsPullback.of_hasPullback q p₁).paste_vert h) |
| 68 | exact reduced_of_finite_flat_surjective (pullback.snd q p₁) |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeSmooth.Construction.SchemeSmoothReduced |