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.UnramifiedFlatDescent |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SchemeUnramifiedFieldCriterion |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.FieldExtensionReflection |
| 4 | import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure |
| 5 | |
| 6 | /-! # Unramified Field Criterion -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.UnramifiedFieldCriterion |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Locally finite-type morphisms are formally unramified if all algebraically closed field-valued base changes are formally unramified. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | |
| 16 | theorem formallyUnramified_of_geometricFieldPullbacks {X Y : Scheme.{u}} |
| 17 | (f : X ⟶ Y) [LocallyOfFiniteType f] |
| 18 | (h : ∀ (K : Type u) [Field K] [IsAlgClosed K] (b : Spec (.of K) ⟶ Y), |
| 19 | FormallyUnramified (pullback.snd f b)) : FormallyUnramified f := by |
| 20 | apply SchemeUnramifiedFieldCriterion.formallyUnramified_of_fieldPullbacks f |
| 21 | intro K _ b |
| 22 | let φ : CommRingCat.of K ⟶ CommRingCat.of (AlgebraicClosure K) := |
| 23 | CommRingCat.ofHom (algebraMap K (AlgebraicClosure K)) |
| 24 | have hflat : Flat (Spec.map φ) := Flat.SpecMap_iff.mpr |
| 25 | (RingHom.flat_algebraMap_iff.mpr (inferInstanceAs (Module.Flat K (AlgebraicClosure K)))) |
| 26 | have hsurj : Surjective (Spec.map φ) := Smooth.FieldExtensionReflection.fieldSpecMap_surjective φ |
| 27 | have hqc : QuasiCompact (Spec.map φ) := inferInstance |
| 28 | have hgeom : FormallyUnramified (pullback.snd f (Spec.map φ ≫ b)) := |
| 29 | h (AlgebraicClosure K) (Spec.map φ ≫ b) |
| 30 | have hiter : FormallyUnramified (pullback.snd (pullback.snd f b) (Spec.map φ)) := |
| 31 | UnramifiedPullbackRefinements.unramified_iterated_pullback f b (Spec.map φ) |
| 32 | exact MorphismProperty.of_isPullback_of_descendsAlong |
| 33 | (P := @FormallyUnramified) (Q := @Surjective ⊓ @Flat ⊓ @QuasiCompact) |
| 34 | (IsPullback.of_hasPullback (pullback.snd f b) (Spec.map φ)).flip |
| 35 | ⟨⟨hsurj, hflat⟩, hqc⟩ hiter |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.UnramifiedFieldCriterion |