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.Foundations.Scheme.HomogeneousEvalMap |
| 2 | import Mathlib.LinearAlgebra.Projectivization.Basic |
| 3 | |
| 4 | /-! # Projective Zero Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveZeroLocus |
| 7 | |
| 8 | /-! |
| 9 | # Homogeneous polynomial zero loci on projective space |
| 10 | |
| 11 | A homogeneous polynomial need not define a scalar-valued function on projective space, |
| 12 | but its vanishing does descend. This file constructs that descended set using the |
| 13 | actual quotient `Projectivization` and proves its representative criterion. |
| 14 | |
| 15 | This is a set-level construction. No identification with the analytic complex points |
| 16 | of a projective scheme, or with the scheme's closed subschemes, is asserted here. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.MvPolynomial |
| 20 | |
| 21 | variable {K : Type*} {ι : Type*} [Field K] |
| 22 | |
| 23 | /-- The projective vanishing locus of a homogeneous polynomial. -/ |
| 24 | def homogeneousProjectiveZeroLocus (f : MvPolynomial ι K) {d : ℕ} |
| 25 | (hf : f.IsHomogeneous d) : Set (Projectivization K (ι → K)) := |
| 26 | fun p => Projectivization.lift |
| 27 | (fun (v : {v : ι → K // v ≠ 0}) => eval (v : ι → K) f = 0) |
| 28 | (by |
| 29 | intro a b c h |
| 30 | apply propext |
| 31 | have hc : c ≠ 0 := by |
| 32 | intro hc |
| 33 | apply a.property |
| 34 | simpa only [hc, zero_smul] using h |
| 35 | rw [h] |
| 36 | exact HomogeneousEvalMap.eval_smul_eq_zero_iff hf hc (b : ι → K)) p |
| 37 | |
| 38 | @[simp] |
| 39 | theorem mem_homogeneousProjectiveZeroLocus_mk (f : MvPolynomial ι K) {d : ℕ} |
| 40 | (hf : f.IsHomogeneous d) (v : ι → K) (hv : v ≠ 0) : |
| 41 | Projectivization.mk K v hv ∈ homogeneousProjectiveZeroLocus f hf ↔ |
| 42 | eval v f = 0 := |
| 43 | Iff.rfl |
| 44 | |
| 45 | /-- The vanishing test may be made on any nonzero representative. -/ |
| 46 | theorem mem_homogeneousProjectiveZeroLocus_iff (f : MvPolynomial ι K) {d : ℕ} |
| 47 | (hf : f.IsHomogeneous d) (p : Projectivization K (ι → K)) |
| 48 | (v : ι → K) (hv : v ≠ 0) (hp : Projectivization.mk K v hv = p) : |
| 49 | p ∈ homogeneousProjectiveZeroLocus f hf ↔ eval v f = 0 := by |
| 50 | subst p |
| 51 | exact mem_homogeneousProjectiveZeroLocus_mk f hf v hv |
| 52 | |
| 53 | /-- The chosen representative in mathlib gives the same test. -/ |
| 54 | theorem mem_homogeneousProjectiveZeroLocus_rep (f : MvPolynomial ι K) {d : ℕ} |
| 55 | (hf : f.IsHomogeneous d) (p : Projectivization K (ι → K)) : |
| 56 | p ∈ homogeneousProjectiveZeroLocus f hf ↔ eval p.rep f = 0 := |
| 57 | mem_homogeneousProjectiveZeroLocus_iff f hf p p.rep p.rep_nonzero p.mk_rep |
| 58 | |
| 59 | /-- Equivalently, a homogeneous polynomial vanishes on some representative. -/ |
| 60 | theorem mem_homogeneousProjectiveZeroLocus_exists (f : MvPolynomial ι K) {d : ℕ} |
| 61 | (hf : f.IsHomogeneous d) (p : Projectivization K (ι → K)) : |
| 62 | p ∈ homogeneousProjectiveZeroLocus f hf ↔ |
| 63 | ∃ (v : ι → K) (hv : v ≠ 0), Projectivization.mk K v hv = p ∧ eval v f = 0 := by |
| 64 | constructor |
| 65 | · intro hp |
| 66 | exact ⟨p.rep, p.rep_nonzero, p.mk_rep, |
| 67 | (mem_homogeneousProjectiveZeroLocus_rep f hf p).mp hp⟩ |
| 68 | · rintro ⟨v, hv, hp, hzero⟩ |
| 69 | exact (mem_homogeneousProjectiveZeroLocus_iff f hf p v hv hp).mpr hzero |
| 70 | |
| 71 | /-- Equivalently, it vanishes on every representative. -/ |
| 72 | theorem mem_homogeneousProjectiveZeroLocus_forall (f : MvPolynomial ι K) {d : ℕ} |
| 73 | (hf : f.IsHomogeneous d) (p : Projectivization K (ι → K)) : |
| 74 | p ∈ homogeneousProjectiveZeroLocus f hf ↔ |
| 75 | ∀ (v : ι → K) (hv : v ≠ 0), Projectivization.mk K v hv = p → eval v f = 0 := by |
| 76 | constructor |
| 77 | · intro hp v hv hrep |
| 78 | exact (mem_homogeneousProjectiveZeroLocus_iff f hf p v hv hrep).mp hp |
| 79 | · intro hp |
| 80 | exact (mem_homogeneousProjectiveZeroLocus_rep f hf p).mpr |
| 81 | (hp p.rep p.rep_nonzero p.mk_rep) |
| 82 | |
| 83 | /-- Changing the proof or the degree of homogeneity does not change the vanishing set. -/ |
| 84 | theorem homogeneousProjectiveZeroLocus_eq (f : MvPolynomial ι K) {d e : ℕ} |
| 85 | (hf : f.IsHomogeneous d) (hg : f.IsHomogeneous e) : |
| 86 | homogeneousProjectiveZeroLocus f hf = homogeneousProjectiveZeroLocus f hg := by |
| 87 | ext p |
| 88 | rw [mem_homogeneousProjectiveZeroLocus_rep, mem_homogeneousProjectiveZeroLocus_rep] |
| 89 | |
| 90 | /-- A family of homogeneous equations cuts out their intersection. -/ |
| 91 | def projectiveCommonZeroLocus {κ : Type*} (f : κ → MvPolynomial ι K) |
| 92 | (d : κ → ℕ) (hf : ∀ k, (f k).IsHomogeneous (d k)) : |
| 93 | Set (Projectivization K (ι → K)) := |
| 94 | ⋂ k, homogeneousProjectiveZeroLocus (f k) (hf k) |
| 95 | |
| 96 | @[simp] |
| 97 | theorem mem_projectiveCommonZeroLocus_mk {κ : Type*} (f : κ → MvPolynomial ι K) |
| 98 | (d : κ → ℕ) (hf : ∀ k, (f k).IsHomogeneous (d k)) (v : ι → K) (hv : v ≠ 0) : |
| 99 | Projectivization.mk K v hv ∈ projectiveCommonZeroLocus f d hf ↔ |
| 100 | ∀ k, eval v (f k) = 0 := by |
| 101 | simp [projectiveCommonZeroLocus] |
| 102 | |
| 103 | /-- A degree-zero equation is constant, so it either cuts out everything or nothing. -/ |
| 104 | @[simp] |
| 105 | theorem mem_homogeneousProjectiveZeroLocus_C (c : K) |
| 106 | (p : Projectivization K (ι → K)) : |
| 107 | p ∈ homogeneousProjectiveZeroLocus (C c) (isHomogeneous_C ι c) ↔ c = 0 := by |
| 108 | rw [mem_homogeneousProjectiveZeroLocus_rep] |
| 109 | simp |
| 110 | |
| 111 | @[simp] |
| 112 | theorem homogeneousProjectiveZeroLocus_zero (d : ℕ) : |
| 113 | homogeneousProjectiveZeroLocus (0 : MvPolynomial ι K) |
| 114 | (isHomogeneous_zero ι K d) = Set.univ := by |
| 115 | ext p |
| 116 | rw [mem_homogeneousProjectiveZeroLocus_rep] |
| 117 | simp |
| 118 | |
| 119 | /-- A nonzero constant has empty projective zero locus, also in degree zero. -/ |
| 120 | theorem homogeneousProjectiveZeroLocus_C_of_ne_zero (c : K) (hc : c ≠ 0) : |
| 121 | homogeneousProjectiveZeroLocus (C c : MvPolynomial ι K) |
| 122 | (isHomogeneous_C ι c) = ∅ := by |
| 123 | ext p |
| 124 | simp [hc] |
| 125 | |
| 126 | /-- Product equations give the union of their projective vanishing loci. -/ |
| 127 | theorem homogeneousProjectiveZeroLocus_mul (f g : MvPolynomial ι K) {d e : ℕ} |
| 128 | (hf : f.IsHomogeneous d) (hg : g.IsHomogeneous e) : |
| 129 | homogeneousProjectiveZeroLocus (f * g) (hf.mul hg) = |
| 130 | homogeneousProjectiveZeroLocus f hf ∪ homogeneousProjectiveZeroLocus g hg := by |
| 131 | ext p |
| 132 | simp only [Set.mem_union, mem_homogeneousProjectiveZeroLocus_rep, map_mul, mul_eq_zero] |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveZeroLocus |