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.FormalGeometry.Completion.WeaklyEtaleFields |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.WeaklyEtale |
| 3 | import Mathlib.AlgebraicGeometry.ResidueField |
| 4 | |
| 5 | /-! # Point -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Geometric.Point.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: sections over a geometric point |
| 13 | |
| 14 | A nonempty weakly étale scheme over an algebraically closed field has a |
| 15 | section. This is a geometric input toward exactness of evaluation at the |
| 16 | terminal object of the pro-étale site. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 20 | open scoped TensorProduct |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {K L : Type u} [Field K] [Field L] [Algebra K L] |
| 28 | |
| 29 | /-- A flat scheme diagonal for a field extension implies a flat multiplication |
| 30 | map on its tensor square. -/ |
| 31 | theorem flat_lmul_of_flat_spec_diagonal |
| 32 | [Flat (pullback.diagonal (Spec.map (CommRingCat.ofHom (algebraMap K L))))] : |
| 33 | (Algebra.TensorProduct.lmul' K : L ⊗[K] L →ₐ[K] L).toRingHom.Flat := by |
| 34 | apply (Flat.SpecMap_iff (f := CommRingCat.ofHom |
| 35 | (Algebra.TensorProduct.lmul' K : L ⊗[K] L →ₐ[K] L).toRingHom)).mp |
| 36 | have h := (inferInstance : Flat |
| 37 | (pullback.diagonal (Spec.map (CommRingCat.ofHom (algebraMap K L))))) |
| 38 | rw [diagonal_SpecMap] at h |
| 39 | exact (MorphismProperty.cancel_right_of_respectsIso |
| 40 | (@Flat : MorphismProperty Scheme.{u}) _ _).mp h |
| 41 | |
| 42 | /-- Precomposing a morphism with flat diagonal by a monomorphism preserves |
| 43 | flatness of its diagonal. -/ |
| 44 | theorem flat_diagonal_mono_comp {X Y Z : Scheme.{u}} (i : X ⟶ Y) (f : Y ⟶ Z) |
| 45 | [Mono i] [Flat (pullback.diagonal f)] : Flat (pullback.diagonal (i ≫ f)) := by |
| 46 | exact (MorphismProperty.diagonal (@Flat : MorphismProperty Scheme.{u})).comp_mem i f |
| 47 | (inferInstanceAs (Flat (pullback.diagonal i))) |
| 48 | (inferInstanceAs (Flat (pullback.diagonal f))) |
| 49 | |
| 50 | /-- Every point of a weakly étale scheme over an algebraically closed field |
| 51 | gives a section of the structure morphism. -/ |
| 52 | theorem weaklyEtale_exists_section [IsAlgClosed K] {X : Scheme.{u}} |
| 53 | (f : X ⟶ Spec (CommRingCat.of K)) [WeaklyEtale f] (x : X) : |
| 54 | ∃ s : Spec (CommRingCat.of K) ⟶ X, s ≫ f = 𝟙 _ := by |
| 55 | let i := X.fromSpecResidueField x |
| 56 | obtain ⟨φ, hφ⟩ := Spec.map_surjective (i ≫ f) |
| 57 | let : Algebra K (X.residueField x) := φ.hom.toAlgebra |
| 58 | have hflat : Flat (pullback.diagonal (Spec.map φ)) := by |
| 59 | rw [hφ] |
| 60 | exact flat_diagonal_mono_comp i f |
| 61 | have hb : Function.Bijective φ.hom := |
| 62 | WeaklyEtaleFields.Construction.algebraMap_bijective_of_flat_diagonal (flat_lmul_of_flat_spec_diagonal (K := K)) |
| 63 | have : IsIso φ := (ConcreteCategory.isIso_iff_bijective φ).mpr hb |
| 64 | refine ⟨Spec.map (inv φ) ≫ i, ?_⟩ |
| 65 | rw [Category.assoc, ← hφ, ← Spec.map_comp, IsIso.hom_inv_id, Spec.map_id] |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Geometric.Point.Construction |