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.FieldBaseChangeCriterion |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FormallyUnramified |
| 3 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 4 | |
| 5 | /-! # Unramified Field Criterion -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.UnramifiedFieldCriterion |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite-type morphism of affine schemes is formally unramified if all its field-valued base changes are formally unramified. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem specMap_formallyUnramified_of_fieldPullbacks {R S : CommRingCat.{u}} (φ : R ⟶ S) |
| 19 | [LocallyOfFiniteType (Spec.map φ)] |
| 20 | (h : ∀ (K : Type u) [Field K] (b : Spec (.of K) ⟶ Spec R), |
| 21 | FormallyUnramified (Limits.pullback.snd (Spec.map φ) b)) : FormallyUnramified (Spec.map φ) := by |
| 22 | have ht : φ.hom.FiniteType := (HasRingHomProperty.Spec_iff (P := @LocallyOfFiniteType)).mp inferInstance |
| 23 | algebraize [φ.hom] |
| 24 | have : Algebra.FiniteType R S := ht |
| 25 | apply (HasRingHomProperty.Spec_iff (P := @FormallyUnramified)).mpr |
| 26 | change Algebra.FormallyUnramified R S |
| 27 | apply FieldBaseChangeCriterion.algebra_formallyUnramified_of_rightFieldBaseChanges R S |
| 28 | intro K _ _ |
| 29 | let : Algebra K (S ⊗[R] K) := Algebra.TensorProduct.rightAlgebra |
| 30 | let b := Spec.map (CommRingCat.ofHom (algebraMap R K)) |
| 31 | let f := Spec.map (CommRingCat.ofHom (algebraMap R S)) |
| 32 | have hf : FormallyUnramified (Limits.pullback.snd f b) := h K b |
| 33 | have hi : FormallyUnramified ((pullbackSpecIso R S K).inv ≫ Limits.pullback.snd f b) := |
| 34 | MorphismProperty.comp_mem (@FormallyUnramified) _ _ inferInstance hf |
| 35 | have hs : FormallyUnramified (Spec.map (CommRingCat.ofHom (algebraMap K (S ⊗[R] K)))) := |
| 36 | (pullbackSpecIso_inv_snd R S K) ▸ hi |
| 37 | exact (HasRingHomProperty.Spec_iff (P := @FormallyUnramified)).mp hs |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.UnramifiedFieldCriterion |