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.HilbertScheme.Presentations.EquationLoci |
| 2 | import Mathlib.AlgebraicGeometry.AffineSpace |
| 3 | |
| 4 | /-! # Section Zero Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.SectionZeroLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Simultaneous vanishing of global sections is a closed representable |
| 12 | condition over an arbitrary base scheme. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open scoped _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {S : Scheme.{u}} (M : Over S) {ι : Type u} |
| 21 | |
| 22 | def sectionEquation (s : ι → Γ(M.left, ⊤)) : EquationLoci.MorphismEquation M where |
| 23 | target := Over.mk (AffineSpace ι S ↘ S) |
| 24 | separated := IsSeparated.of_isAffineHom (AffineSpace ι S ↘ S) |
| 25 | lhs := Over.homMk (AffineSpace.homOfVector M.hom s) (AffineSpace.homOfVector_over _ _) |
| 26 | rhs := Over.homMk (AffineSpace.homOfVector M.hom (fun _ => 0)) |
| 27 | (AffineSpace.homOfVector_over _ _) |
| 28 | |
| 29 | theorem sectionEquation_satisfies (s : ι → Γ(M.left, ⊤)) {T : Over S} (x : T ⟶ M) : |
| 30 | EquationLoci.Satisfies [sectionEquation M s] x ↔ ∀ i, x.left.appTop (s i) = 0 := by |
| 31 | have hsimp : EquationLoci.Satisfies [sectionEquation M s] x ↔ |
| 32 | x ≫ (sectionEquation M s).lhs = x ≫ (sectionEquation M s).rhs := by |
| 33 | simp only [EquationLoci.Satisfies, List.mem_singleton, forall_eq] |
| 34 | rw [hsimp] |
| 35 | constructor |
| 36 | · intro h i |
| 37 | have hcoord := congrArg (fun f : T ⟶ (sectionEquation M s).target => |
| 38 | f.left.appTop (AffineSpace.coord S i)) h |
| 39 | change x.left.appTop ((AffineSpace.homOfVector M.hom s).appTop (AffineSpace.coord S i)) = |
| 40 | x.left.appTop ((AffineSpace.homOfVector M.hom (fun _ : ι => 0)).appTop |
| 41 | (AffineSpace.coord S i)) at hcoord |
| 42 | simpa only [AffineSpace.homOfVector_appTop_coord, map_zero] using hcoord |
| 43 | · intro h |
| 44 | apply (Over.forget S).map_injective |
| 45 | apply AffineSpace.hom_ext |
| 46 | · exact (x ≫ (sectionEquation M s).lhs).w.trans (x ≫ (sectionEquation M s).rhs).w.symm |
| 47 | · intro i |
| 48 | change x.left.appTop ((AffineSpace.homOfVector M.hom s).appTop (AffineSpace.coord S i)) = |
| 49 | x.left.appTop ((AffineSpace.homOfVector M.hom (fun _ : ι => 0)).appTop |
| 50 | (AffineSpace.coord S i)) |
| 51 | simpa only [AffineSpace.homOfVector_appTop_coord, map_zero] using h i |
| 52 | |
| 53 | def sectionZeroSubfunctor (s : ι → Γ(M.left, ⊤)) : Subfunctor (yoneda.obj M) where |
| 54 | obj T := {x | ∀ i, x.left.appTop (s i) = 0} |
| 55 | map a x hx := by |
| 56 | intro i |
| 57 | change a.unop.left.appTop (x.left.appTop (s i)) = 0 |
| 58 | rw [hx i, map_zero] |
| 59 | |
| 60 | theorem section_zero_locus_representable (s : ι → Γ(M.left, ⊤)) : |
| 61 | ∃ (Z : Over S) (j : Z ⟶ M), IsClosedImmersion j.left ∧ |
| 62 | ∃ e : yoneda.obj Z ≅ (sectionZeroSubfunctor M s).toFunctor, |
| 63 | e.hom ≫ (sectionZeroSubfunctor M s).ι = yoneda.map j := by |
| 64 | have hsub : EquationLoci.equationSubfunctor [sectionEquation M s] = sectionZeroSubfunctor M s := by |
| 65 | ext T x |
| 66 | exact sectionEquation_satisfies M s x |
| 67 | have h := EquationLoci.finite_equations_representable [sectionEquation M s] |
| 68 | rw [hsub] at h |
| 69 | exact h |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.SectionZeroLocus |