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.Quotients.FiniteDescent.NormOpenIs |
| 2 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 3 | |
| 4 | /-! # Scheme Norm -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeNorm.Construction.SchemeNormOpen |
| 7 | |
| 8 | /-! |
| 9 | # Norm neighborhoods on affine schemes |
| 10 | |
| 11 | For a finite-free affine morphism, the norm of a global section cuts out |
| 12 | the locus over which the entire fiber avoids that section's zero set. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {X Y : Scheme.{u}} [IsAffine X] [IsAffine Y] (s : Y ⟶ X) |
| 20 | |
| 21 | noncomputable def norm (a : Γ(Y, ⊤)) : Γ(X, ⊤) := |
| 22 | letI := s.appTop.hom.toAlgebra |
| 23 | Algebra.norm Γ(X, ⊤) a |
| 24 | |
| 25 | theorem mem_basicOpen_norm {ι : Type v} [Fintype ι] |
| 26 | (b : letI := s.appTop.hom.toAlgebra; Module.Basis ι Γ(X, ⊤) Γ(Y, ⊤)) |
| 27 | (a : Γ(Y, ⊤)) (x : X) : |
| 28 | x ∈ X.basicOpen (SchemeNormOpen.norm s a) ↔ ∀ y : Y, s y = x → y ∈ Y.basicOpen a := by |
| 29 | let := s.appTop.hom.toAlgebra |
| 30 | let := Module.Free.of_basis b |
| 31 | let := Module.Finite.of_basis b |
| 32 | let p : PrimeSpectrum Γ(X, ⊤) := X.isoSpec.hom x |
| 33 | have hc (y : Y) : |
| 34 | PrimeSpectrum.comap (algebraMap Γ(X, ⊤) Γ(Y, ⊤)) (Y.isoSpec.hom y) = |
| 35 | X.isoSpec.hom (s y) := |
| 36 | congrArg (fun f => f y) (Scheme.isoSpec_hom_naturality s) |
| 37 | rw [← X.map_PrimeSpectrum_basicOpen_of_affine] |
| 38 | change Algebra.norm Γ(X, ⊤) a ∉ p.asIdeal ↔ _ |
| 39 | rw [NormOpenIs.Construction.NormOpen.norm_notMem_iff (R := Γ(X, ⊤)) (A := Γ(Y, ⊤)) p a] |
| 40 | constructor |
| 41 | · intro h y hy |
| 42 | rw [← Y.map_PrimeSpectrum_basicOpen_of_affine] |
| 43 | exact h (Y.isoSpec.hom y) ((hc y).trans (congrArg X.isoSpec.hom hy)) |
| 44 | · intro h q hq |
| 45 | have he : s (Y.isoSpec.inv q) = x := by |
| 46 | have hq' : Y.isoSpec.hom (Y.isoSpec.inv q) = q := Scheme.inv_hom_apply Y.isoSpec q |
| 47 | have hh : X.isoSpec.hom (s (Y.isoSpec.inv q)) = X.isoSpec.hom x := |
| 48 | (hc _).symm.trans ((congrArg _ hq').trans hq) |
| 49 | simpa only [Scheme.hom_inv_apply] using congrArg X.isoSpec.inv hh |
| 50 | have hy := h (Y.isoSpec.inv q) he |
| 51 | rw [← Y.map_PrimeSpectrum_basicOpen_of_affine] at hy |
| 52 | change a ∉ (Y.isoSpec.hom (Y.isoSpec.inv q)).asIdeal at hy |
| 53 | have hq' : (Y.isoSpec.hom (Y.isoSpec.inv q) : PrimeSpectrum Γ(Y, ⊤)) = q := |
| 54 | Scheme.inv_hom_apply Y.isoSpec q |
| 55 | exact hq' ▸ hy |
| 56 | |
| 57 | /-- The complement of the finite image of a principal zero set is affine. -/ |
| 58 | theorem basicOpen_norm_eq {ι : Type v} [Fintype ι] |
| 59 | (b : letI := s.appTop.hom.toAlgebra; Module.Basis ι Γ(X, ⊤) Γ(Y, ⊤)) |
| 60 | (a : Γ(Y, ⊤)) : |
| 61 | (X.basicOpen (SchemeNormOpen.norm s a) : Set X) = (s '' (Y.basicOpen a : Set Y)ᶜ)ᶜ := by |
| 62 | ext x |
| 63 | change x ∈ X.basicOpen (SchemeNormOpen.norm s a) ↔ _ |
| 64 | rw [mem_basicOpen_norm s b] |
| 65 | simp only [Set.mem_compl_iff, Set.mem_image, not_exists, not_and] |
| 66 | exact ⟨fun h y hy hs => hy (h y hs), fun h y hs => by |
| 67 | by_contra hy |
| 68 | exact h y hy hs⟩ |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeNorm.Construction.SchemeNormOpen |