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.IntersectionTheory.ProjectionFormula.Etale.StalkNeighborhood |
| 2 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 3 | import Mathlib.RingTheory.Etale.Field |
| 4 | |
| 5 | /-! # Etale Restriction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.EtaleRestriction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A proper morphism becomes finite etale away from the image of |
| 12 | the complement of any etale source open. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | theorem etale_locallyQuasiFinite {X Y : Scheme} (f : X ⟶ Y) [Etale f] : LocallyQuasiFinite f := by |
| 20 | constructor |
| 21 | intro U hU V hV e |
| 22 | let : Algebra Γ(Y, U) Γ(X, V) := (f.appLE U V e).hom.toAlgebra |
| 23 | let : Algebra.Etale Γ(Y, U) Γ(X, V) := f.etale_appLE hU hV e |
| 24 | change Algebra.QuasiFinite Γ(Y, U) Γ(X, V) |
| 25 | constructor |
| 26 | intro P _ |
| 27 | exact Algebra.FormallyUnramified.finite_of_free P.ResidueField (P.Fiber Γ(X, V)) |
| 28 | |
| 29 | variable {X Y : Scheme} (f : X ⟶ Y) [IsProper f] (U : X.Opens) |
| 30 | |
| 31 | def bad : Closeds Y := ⟨f '' (U : Set X)ᶜ, f.isClosedMap _ U.isOpen.isClosed_compl⟩ |
| 32 | |
| 33 | def good : Y.Opens := ⟨(bad f U : Set Y)ᶜ, (bad f U).isClosed.isOpen_compl⟩ |
| 34 | |
| 35 | theorem preimage_le : f ⁻¹ᵁ good f U ≤ U := by |
| 36 | intro x hx |
| 37 | by_contra hn |
| 38 | exact hx ⟨x, hn, rfl⟩ |
| 39 | |
| 40 | theorem etale [Etale (U.ι ≫ f)] : Etale (f ∣_ good f U) := by |
| 41 | let V := good f U |
| 42 | have he : (f ⁻¹ᵁ V).ι ≫ f = X.homOfLE (preimage_le f U) ≫ (U.ι ≫ f) := by |
| 43 | rw [← Category.assoc, Scheme.homOfLE_ι] |
| 44 | let : Etale ((f ⁻¹ᵁ V).ι ≫ f) := by rw [he]; infer_instance |
| 45 | let : Etale ((f ∣_ V) ≫ V.ι) := by |
| 46 | rw [morphismRestrict_ι] |
| 47 | infer_instance |
| 48 | exact Etale.of_comp (f ∣_ V) V.ι |
| 49 | |
| 50 | theorem finite [Etale (U.ι ≫ f)] : IsFinite (f ∣_ good f U) := by |
| 51 | let := etale f U |
| 52 | let := etale_locallyQuasiFinite (f ∣_ good f U) |
| 53 | exact IsFinite.of_isProper_of_locallyQuasiFinite _ |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.EtaleRestriction |