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.ProjectiveCoordinatesIn |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveZeroLocus |
| 3 | |
| 4 | /-! # Dehomogenization C -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization |
| 7 | |
| 8 | /-! |
| 9 | # Dehomogenization on standard projective charts |
| 10 | |
| 11 | The substitution sends the selected homogeneous variable to one and every |
| 12 | other variable to its corresponding affine variable. Its evaluation is proved |
| 13 | to agree with the normalized coordinates of the actual projective chart. For |
| 14 | homogeneous equations this identifies projective vanishing with the affine |
| 15 | polynomial equation, rather than assuming such an identification. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.MvPolynomial OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 19 | |
| 20 | variable {ι R K : Type*} |
| 21 | |
| 22 | /-- Insert a coordinate equal to one into an affine coordinate vector. -/ |
| 23 | noncomputable def insertOne [One R] (i : ι) (x : {j : ι // j ≠ i} → R) : ι → R := by |
| 24 | classical |
| 25 | exact fun j => if h : j = i then 1 else x ⟨j, h⟩ |
| 26 | |
| 27 | @[simp] |
| 28 | theorem insertOne_self [One R] (i : ι) (x : {j : ι // j ≠ i} → R) : |
| 29 | insertOne i x i = 1 := by |
| 30 | classical |
| 31 | simp [insertOne] |
| 32 | |
| 33 | @[simp] |
| 34 | theorem insertOne_of_ne [One R] (i j : ι) (x : {j : ι // j ≠ i} → R) (hj : j ≠ i) : |
| 35 | insertOne i x j = x ⟨j, hj⟩ := by |
| 36 | classical |
| 37 | simp [insertOne, hj] |
| 38 | |
| 39 | /-- Polynomial substitution defining the affine equation on the `i`-th patch. -/ |
| 40 | noncomputable def dehomogenize [CommSemiring R] (i : ι) : |
| 41 | MvPolynomial ι R →+* MvPolynomial {j : ι // j ≠ i} R := |
| 42 | eval₂Hom C (insertOne i X) |
| 43 | |
| 44 | @[simp] |
| 45 | theorem dehomogenize_C [CommSemiring R] (i : ι) (r : R) : |
| 46 | dehomogenize i (C r) = C r := by |
| 47 | simp [dehomogenize] |
| 48 | |
| 49 | @[simp] |
| 50 | theorem dehomogenize_X_self [CommSemiring R] (i : ι) : |
| 51 | dehomogenize (R := R) i (X i) = 1 := by |
| 52 | simp [dehomogenize] |
| 53 | |
| 54 | @[simp] |
| 55 | theorem dehomogenize_X_of_ne [CommSemiring R] (i j : ι) (hj : j ≠ i) : |
| 56 | dehomogenize (R := R) i (X j) = X ⟨j, hj⟩ := by |
| 57 | simp [dehomogenize, hj] |
| 58 | |
| 59 | /-- Evaluation commutes with the concrete dehomogenizing substitution. -/ |
| 60 | theorem eval_dehomogenize [CommSemiring R] (i : ι) (f : MvPolynomial ι R) |
| 61 | (x : {j : ι // j ≠ i} → R) : |
| 62 | eval x (dehomogenize i f) = eval (insertOne i x) f := by |
| 63 | classical |
| 64 | change eval x (eval₂ C (insertOne i X) f) = _ |
| 65 | rw [← eval_assoc] |
| 66 | apply congrArg (fun v : ι → R => eval v f) |
| 67 | funext j |
| 68 | by_cases hj : j = i |
| 69 | · subst j |
| 70 | simp |
| 71 | · simp [Function.comp_apply, hj] |
| 72 | |
| 73 | variable [Field K] |
| 74 | |
| 75 | /-- Filling in the missing chart coordinate recovers normalized homogeneous |
| 76 | coordinates of the same projective point. -/ |
| 77 | theorem insertOne_affineChart (i : ι) (p : Projectivization K (ι → K)) |
| 78 | (hp : ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i p) : |
| 79 | insertOne i (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.affineChart i ⟨p, hp⟩) = ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i p := by |
| 80 | funext j |
| 81 | by_cases hj : j = i |
| 82 | · subst j |
| 83 | rw [insertOne_self, ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates_self i p hp] |
| 84 | · rw [insertOne_of_ne i j _ hj] |
| 85 | rfl |
| 86 | |
| 87 | /-- The affine polynomial obtained by dehomogenization evaluates on the chart |
| 88 | exactly as the original polynomial evaluates on normalized coordinates. -/ |
| 89 | theorem eval_dehomogenize_affineChart (i : ι) (f : MvPolynomial ι K) |
| 90 | (p : Projectivization K (ι → K)) (hp : ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i p) : |
| 91 | eval (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.affineChart i ⟨p, hp⟩) (dehomogenize i f) = eval (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i p) f := by |
| 92 | rw [eval_dehomogenize, insertOne_affineChart] |
| 93 | |
| 94 | /-- The normalization factor for a homogeneous polynomial of degree `d`. -/ |
| 95 | theorem eval_coordinates_mk (i : ι) (f : MvPolynomial ι K) {d : ℕ} |
| 96 | (hf : f.IsHomogeneous d) (v : ι → K) (hv : v ≠ 0) : |
| 97 | eval (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (Projectivization.mk K v hv)) f = |
| 98 | (v i)⁻¹ ^ d * eval v f := by |
| 99 | have hcoords : ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (Projectivization.mk K v hv) = (v i)⁻¹ • v := by |
| 100 | funext j |
| 101 | simp [div_eq_mul_inv, mul_comm] |
| 102 | rw [hcoords] |
| 103 | exact HomogeneousEvalMap.eval_smul_of_isHomogeneous hf (v i)⁻¹ v |
| 104 | |
| 105 | /-- Evaluation of an affine dehomogenization in terms of any homogeneous |
| 106 | representative whose selected coordinate is nonzero. -/ |
| 107 | theorem eval_dehomogenize_affineChart_mk (i : ι) (f : MvPolynomial ι K) {d : ℕ} |
| 108 | (hf : f.IsHomogeneous d) (v : ι → K) (hv : v ≠ 0) (hi : v i ≠ 0) : |
| 109 | eval (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.affineChart i ⟨Projectivization.mk K v hv, (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_mk_iff i v hv).mpr hi⟩) |
| 110 | (dehomogenize i f) = (v i)⁻¹ ^ d * eval v f := by |
| 111 | rw [eval_dehomogenize_affineChart] |
| 112 | exact eval_coordinates_mk i f hf v hv |
| 113 | |
| 114 | /-- A homogeneous projective equation on a standard patch is precisely its |
| 115 | ordinary dehomogenized affine polynomial equation. -/ |
| 116 | theorem mem_projectiveZeroLocus_iff_dehomogenize (i : ι) (f : MvPolynomial ι K) |
| 117 | {d : ℕ} (hf : f.IsHomogeneous d) (p : Projectivization K (ι → K)) |
| 118 | (hp : ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i p) : |
| 119 | p ∈ ProjectiveZeroLocus.homogeneousProjectiveZeroLocus f hf ↔ |
| 120 | eval (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.affineChart i ⟨p, hp⟩) (dehomogenize i f) = 0 := by |
| 121 | rw [eval_dehomogenize_affineChart] |
| 122 | exact ProjectiveZeroLocus.mem_homogeneousProjectiveZeroLocus_iff f hf p (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i p) |
| 123 | (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.normalized_ne_zero i _ hp) (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.mk_coordinates i p hp) |
| 124 | |
| 125 | /-- The same chart identification for any family of homogeneous equations. -/ |
| 126 | theorem mem_projectiveCommonZeroLocus_iff_dehomogenize {κ : Type*} (i : ι) |
| 127 | (f : κ → MvPolynomial ι K) (d : κ → ℕ) (hf : ∀ k, (f k).IsHomogeneous (d k)) |
| 128 | (p : Projectivization K (ι → K)) (hp : ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i p) : |
| 129 | p ∈ ProjectiveZeroLocus.projectiveCommonZeroLocus f d hf ↔ |
| 130 | ∀ k, eval (ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.affineChart i ⟨p, hp⟩) (dehomogenize i (f k)) = 0 := by |
| 131 | simp only [ProjectiveZeroLocus.projectiveCommonZeroLocus, Set.mem_iInter] |
| 132 | exact forall_congr' fun k => mem_projectiveZeroLocus_iff_dehomogenize i (f k) (hf k) p hp |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization |