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.Finite.FlatAffineSectionRank |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAlgebraLocalBasis |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LocalizationPushoutBasis |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.RestrictionRingPushout |
| 5 | import Mathlib.AlgebraicGeometry.Noetherian |
| 6 | |
| 7 | /-! # Flat Affine Local Frame -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAffineLocalFrame |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A finite flat map of constant rank over a locally Noetherian scheme has actual finite bases on arbitrarily small affine neighborhoods. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | |
| 17 | theorem finiteFlat_exists_affineLocalBasis {X Y : Scheme.{u}} [IsLocallyNoetherian X] |
| 18 | (f : Y ⟶ X) [IsFinite f] [Flat f] {n : ℕ} (hn : ∀ x, f.finrank x = n) |
| 19 | {U : X.Opens} (hU : IsAffineOpen U) (x : X) (hx : x ∈ U) : |
| 20 | ∃ V : X.Opens, x ∈ V ∧ V ≤ U ∧ IsAffineOpen V ∧ |
| 21 | Nonempty (@Module.Basis (Fin n) Γ(X, V) Γ(Y, f ⁻¹ᵁ V) _ _ (f.app V).hom.toModule) := by |
| 22 | let R := Γ(X, U) |
| 23 | let A := Γ(Y, f ⁻¹ᵁ U) |
| 24 | let : Algebra R A := (f.app U).hom.toAlgebra |
| 25 | have : IsNoetherianRing R := IsLocallyNoetherian.component_noetherian ⟨U, hU⟩ |
| 26 | have : Module.Finite R A := f.finite_app U hU |
| 27 | have : Module.FinitePresentation R A := Module.finitePresentation_of_finite R A |
| 28 | have hY : IsAffineOpen (f ⁻¹ᵁ U) := hU.preimage f |
| 29 | have : Module.Flat R A := by |
| 30 | have hf := f.flat_appLE hU hY (le_refl (f ⁻¹ᵁ U)) |
| 31 | rw [Scheme.Hom.appLE_eq_app] at hf |
| 32 | exact hf |
| 33 | let p := hU.primeIdealOf ⟨x, hx⟩ |
| 34 | have hr : Module.rankAtStalk A p = n := by |
| 35 | change (f.app U).hom.finrank p = n |
| 36 | rw [FlatAffineSectionRank.finiteFlat_affineSection_rank f hU p] |
| 37 | exact hn _ |
| 38 | obtain ⟨a, ha, ⟨b⟩⟩ := FlatAlgebraLocalBasis.finiteFlat_exists_localModuleBasis (R := R) A p hr |
| 39 | let V := X.basicOpen a |
| 40 | have hV : IsAffineOpen V := hU.basicOpen a |
| 41 | have hVU : V ≤ U := X.basicOpen_le a |
| 42 | have hxV : x ∈ V := by |
| 43 | have hp : p ∈ hU.fromSpec ⁻¹ᵁ X.basicOpen a := by |
| 44 | rw [hU.fromSpec_preimage_basicOpen a] |
| 45 | exact ha |
| 46 | change hU.fromSpec p ∈ V at hp |
| 47 | simpa only [p, hU.fromSpec_primeIdealOf] using hp |
| 48 | refine ⟨V, hxV, hVU, hV, ⟨?_⟩⟩ |
| 49 | exact LocalizationPushoutBasis.localizationPushoutBasis (f.app U).hom (X.presheaf.map (homOfLE hVU).op).hom |
| 50 | (Y.presheaf.map (homOfLE (show f ⁻¹ᵁ V ≤ f ⁻¹ᵁ U from fun _ hv => hVU hv)).op).hom |
| 51 | (f.app V).hom (Affine.RestrictionRingPushout.affineRestriction_isPushout f hVU hU hV hY).flip |
| 52 | (Submonoid.powers a) (hU.isLocalization_basicOpen a) b |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAffineLocalFrame |