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.Module.BasisIsomorphisms |
| 2 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 3 | |
| 4 | /-! # Basis Gluing -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.BasisGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatible maps on affine neighborhoods glue once compatibility |
| 11 | is checked on principal subopens. Common principal neighborhoods |
| 12 | compare arbitrary overlaps. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {X : Scheme.{u}} (M N : X.Modules) (P : X.Opens → Prop) |
| 19 | (φ : ∀ (U : X.Opens) (_ : IsAffineOpen U), P U → Γ(M, U) →ₗ[Γ(X, U)] Γ(N, U)) |
| 20 | (hstable : ∀ (U : X.Opens) (_ : IsAffineOpen U), P U → ∀ r : Γ(X, U), P (X.basicOpen r)) |
| 21 | (hφ : ∀ (U : X.Opens) (hU : IsAffineOpen U) (hP : P U) (r : Γ(X, U)) (s : Γ(M, U)), |
| 22 | φ (X.basicOpen r) (hU.basicOpen r) (hstable U hU hP r) |
| 23 | (M.presheaf.map (homOfLE (X.basicOpen_le r)).op s) = |
| 24 | N.presheaf.map (homOfLE (X.basicOpen_le r)).op (φ U hU hP s)) |
| 25 | |
| 26 | theorem restriction_condition_congr (U V W : X.Opens) |
| 27 | (hV : IsAffineOpen V) (hW : IsAffineOpen W) (hPV : P V) (hPW : P W) |
| 28 | (hVU : V ≤ U) (hWU : W ≤ U) (he : V = W) (s : Γ(M, U)) (t : Γ(N, U)) : |
| 29 | (φ V hV hPV (M.presheaf.map (homOfLE hVU).op s) = |
| 30 | N.presheaf.map (homOfLE hVU).op t) ↔ |
| 31 | (φ W hW hPW (M.presheaf.map (homOfLE hWU).op s) = |
| 32 | N.presheaf.map (homOfLE hWU).op t) := by |
| 33 | subst W |
| 34 | rfl |
| 35 | |
| 36 | include hφ in |
| 37 | theorem naturality (U V : X.Opens) (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 38 | (hPU : P U) (hPV : P V) (hVU : V ≤ U) (s : Γ(M, U)) : |
| 39 | φ V hV hPV (M.presheaf.map (homOfLE hVU).op s) = |
| 40 | N.presheaf.map (homOfLE hVU).op (φ U hU hPU s) := by |
| 41 | apply N.isSheaf.section_ext |
| 42 | intro x hx |
| 43 | obtain ⟨r, t, he, hxr⟩ := exists_basicOpen_le_affine_inter hV hU x ⟨hx, hVU hx⟩ |
| 44 | refine ⟨X.basicOpen r, X.basicOpen_le r, hxr, ?_⟩ |
| 45 | have hW : X.basicOpen r ≤ U := (X.basicOpen_le r).trans hVU |
| 46 | have hu : |
| 47 | φ (X.basicOpen r) (hV.basicOpen r) (hstable V hV hPV r) |
| 48 | (M.presheaf.map (homOfLE hW).op s) = |
| 49 | N.presheaf.map (homOfLE hW).op (φ U hU hPU s) := by |
| 50 | exact (restriction_condition_congr M N P φ U (X.basicOpen t) (X.basicOpen r) |
| 51 | (hU.basicOpen t) (hV.basicOpen r) (hstable U hU hPU t) (hstable V hV hPV r) |
| 52 | (X.basicOpen_le t) hW he.symm s (φ U hU hPU s)).mp (hφ U hU hPU t s) |
| 53 | rw [← hφ V hV hPV r, ← M.presheaf.map_comp_apply, ← N.presheaf.map_comp_apply] |
| 54 | exact hu |
| 55 | |
| 56 | abbrev Index := {U : X.Opens // IsAffineOpen U ∧ P U} |
| 57 | |
| 58 | def opens : Index P → X.Opens := Subtype.val |
| 59 | |
| 60 | def basisMap : OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.MapBasisExtension.ModuleBasisMap (opens P) M N where |
| 61 | app i := φ i.val i.property.1 i.property.2 |
| 62 | naturality i j h s := BasisGluing.naturality M N P φ hstable hφ j.val i.val j.property.1 i.property.1 |
| 63 | j.property.2 i.property.2 h s |
| 64 | |
| 65 | variable (hcover : ∀ (V : X.Opens) (x : X), x ∈ V → |
| 66 | ∃ (U : X.Opens), IsAffineOpen U ∧ P U ∧ x ∈ U ∧ U ≤ V) |
| 67 | |
| 68 | include hcover in |
| 69 | theorem isBasis : Opens.IsBasis (Set.range (opens P)) := by |
| 70 | rw [Opens.isBasis_iff_nbhd] |
| 71 | intro V x hx |
| 72 | obtain ⟨U, hU, hP, hxU, hUV⟩ := hcover V x hx |
| 73 | exact ⟨U, ⟨⟨U, hU, hP⟩, rfl⟩, hxU, hUV⟩ |
| 74 | |
| 75 | def iso (hbij : ∀ (U : X.Opens) (hU : IsAffineOpen U) (hP : P U), |
| 76 | Function.Bijective (φ U hU hP)) : M ≅ N := |
| 77 | (basisMap M N P φ hstable hφ).extendIso (opens P) (isBasis P hcover) |
| 78 | (fun i => hbij i.val i.property.1 i.property.2) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.BasisGluing |