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.Matrix.SurjectivityMinors |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineProjective.Charts |
| 3 | |
| 4 | /-! # Surjectivity Open -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.SurjectivityOpen |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Maximal minors define an actual open subset representing affine matrix-surjectivity tests. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {ι ν : Type u} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 17 | |
| 18 | def matrixSurjectiveOpen {X : Scheme.{u}} (F : Matrix ι ν Γ(X, ⊤)) : X.Opens := |
| 19 | ⨆ a : ι → ν, X.basicOpen (F.submatrix id a).det |
| 20 | |
| 21 | omit [Fintype ν] [DecidableEq ν] in |
| 22 | theorem matrixSurjectiveOpen_preimage {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 23 | (F : Matrix ι ν Γ(Y, ⊤)) : |
| 24 | f ⁻¹ᵁ matrixSurjectiveOpen F = matrixSurjectiveOpen (F.map f.appTop.hom) := by |
| 25 | rw [matrixSurjectiveOpen, f.preimage_iSup] |
| 26 | apply congrArg iSup |
| 27 | funext a |
| 28 | rw [Scheme.preimage_basicOpen_top] |
| 29 | exact congrArg X.basicOpen (f.appTop.hom.map_det (F.submatrix id a)) |
| 30 | |
| 31 | theorem matrixSurjectiveOpen_affine {R : CommRingCat.{u}} (F : Matrix ι ν Γ(Spec R, ⊤)) : |
| 32 | matrixSurjectiveOpen F = ⊤ ↔ |
| 33 | Function.Surjective (Matrix.toLin' (F.map (Scheme.ΓSpecIso R).hom.hom)) := by |
| 34 | have hm (p : PrimeSpectrum R) : p ∈ matrixSurjectiveOpen F ↔ |
| 35 | ∃ a : ι → ν, ((F.map (Scheme.ΓSpecIso R).hom.hom).submatrix id a).det ∉ p.asIdeal := by |
| 36 | have hc : (matrixSurjectiveOpen F : TopologicalSpace.Opens (PrimeSpectrum R)) = |
| 37 | ⨆ a : ι → ν, PrimeSpectrum.basicOpen ((Scheme.ΓSpecIso R).hom (F.submatrix id a).det) := by |
| 38 | simp only [matrixSurjectiveOpen, basicOpen_eq_of_affine'] |
| 39 | rfl |
| 40 | refine (Iff.of_eq (congrArg (fun U : TopologicalSpace.Opens (PrimeSpectrum R) => p ∈ U) hc)).trans ?_ |
| 41 | refine (TopologicalSpace.Opens.mem_iSup (x := p) (s := fun a : ι → ν => |
| 42 | PrimeSpectrum.basicOpen ((Scheme.ΓSpecIso R).hom (F.submatrix id a).det))).trans ?_ |
| 43 | simp only [PrimeSpectrum.mem_basicOpen] |
| 44 | apply exists_congr |
| 45 | intro a |
| 46 | rw [(Scheme.ΓSpecIso R).hom.hom.map_det (F.submatrix id a)] |
| 47 | rfl |
| 48 | rw [SurjectivityMinors.matrix_surjective_iff_prime_minors] |
| 49 | constructor |
| 50 | · intro h p |
| 51 | apply (hm p).mp |
| 52 | rw [h] |
| 53 | trivial |
| 54 | · intro h |
| 55 | apply top_unique |
| 56 | intro p _ |
| 57 | exact (hm p).mpr (h p) |
| 58 | |
| 59 | theorem matrixSurjectiveOpen_affine_point {X : Scheme.{u}} {R : CommRingCat.{u}} |
| 60 | (F : Matrix ι ν Γ(X, ⊤)) (x : Spec R ⟶ X) : |
| 61 | Set.range x ⊆ (matrixSurjectiveOpen F : Set X) ↔ |
| 62 | Function.Surjective (Matrix.toLin' (F.map (AffineProjective.Charts.affinePointCoefficients x).hom)) := by |
| 63 | have hr : Set.range x ⊆ (matrixSurjectiveOpen F : Set X) ↔ |
| 64 | x ⁻¹ᵁ matrixSurjectiveOpen F = ⊤ := by |
| 65 | constructor |
| 66 | · intro h |
| 67 | apply top_unique |
| 68 | intro p _ |
| 69 | exact h ⟨p, rfl⟩ |
| 70 | · intro h z hz |
| 71 | obtain ⟨p, rfl⟩ := hz |
| 72 | have hp : p ∈ x ⁻¹ᵁ matrixSurjectiveOpen F := h.symm ▸ (show p ∈ (⊤ : (Spec R).Opens) from trivial) |
| 73 | exact hp |
| 74 | rw [hr, matrixSurjectiveOpen_preimage, matrixSurjectiveOpen_affine] |
| 75 | rfl |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.SurjectivityOpen |