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 Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 2 | import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure |
| 3 | |
| 4 | /-! # Extension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Field.Extension |
| 7 | |
| 8 | /-! Every extension of fields is an affine faithfully flat cover, and its scheme pullback functor detects morphisms. -/ |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {k K : Type u} [Field k] [Field K] (s : Spec (.of K) ⟶ Spec (.of k)) |
| 15 | |
| 16 | /-- Flatness follows from vector-space flatness, for an arbitrary actual field-spectrum map. -/ |
| 17 | theorem flat : Flat s := by |
| 18 | obtain ⟨φ, rfl⟩ := Spec.map_surjective s |
| 19 | apply Flat.SpecMap_iff.mpr |
| 20 | let := φ.hom.toAlgebra |
| 21 | change Module.Flat k K |
| 22 | infer_instance |
| 23 | |
| 24 | /-- A field-spectrum map is surjective on its unique point. -/ |
| 25 | theorem surjective : Surjective s := by |
| 26 | constructor |
| 27 | intro y |
| 28 | exact ⟨IsLocalRing.closedPoint K, Subsingleton.elim _ _⟩ |
| 29 | |
| 30 | /-- The actual field extension is a faithfully flat affine cover. -/ |
| 31 | theorem effectiveEpi : EffectiveEpi s := by |
| 32 | have : IsAffineHom s := isAffineHom_of_isAffine _ |
| 33 | have : Flat s := flat s |
| 34 | have : Surjective s := surjective s |
| 35 | infer_instance |
| 36 | |
| 37 | /-- Base change along a field extension faithfully detects all scheme morphisms. -/ |
| 38 | theorem pullback_faithful : (Over.pullback s).Faithful := by |
| 39 | have : IsAffineHom s := isAffineHom_of_isAffine _ |
| 40 | have : Flat s := flat s |
| 41 | have : Surjective s := surjective s |
| 42 | have (X : Scheme.{u}) (g : X ⟶ Spec (.of k)) : Epi (pullback.fst g s) := by |
| 43 | have : IsAffineHom (pullback.fst g s) := MorphismProperty.of_isPullback (P := @IsAffineHom) |
| 44 | (IsPullback.of_hasPullback g s).flip (inferInstance : IsAffineHom s) |
| 45 | have : Flat (pullback.fst g s) := MorphismProperty.of_isPullback (P := @Flat) |
| 46 | (IsPullback.of_hasPullback g s).flip (inferInstance : Flat s) |
| 47 | have : Surjective (pullback.fst g s) := MorphismProperty.of_isPullback (P := @Surjective) |
| 48 | (IsPullback.of_hasPullback g s).flip (inferInstance : Surjective s) |
| 49 | infer_instance |
| 50 | infer_instance |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Field.Extension |