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.NumberTheory.PadicHodge.IntegralComparison.DegreeNatural |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.PolynomialCoordinates |
| 3 | |
| 4 | /-! # Degree Base Change -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Polynomial.DegreeBaseChange.Law |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A compatible multiplicative geometric degree law on a polynomial |
| 13 | algebra, obtained from finite families of powers of one actual endomorphism. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.DegreeNatural.LawScalarExtension OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.PolynomialCoordinates |
| 18 | |
| 19 | variable {K : Type} [Field K] [IsAlgClosed K] |
| 20 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 21 | [IsProper A.hom] [Smooth A.hom] [GeometricallyIntegral A.hom] |
| 22 | (L : Type*) [CommRing L] [Algebra ℚ L] (F : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) |
| 23 | |
| 24 | local instance : IsIntegral A.left := |
| 25 | GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 26 | |
| 27 | def valueBound (n : ℕ) (P : Polynomial L) : L := |
| 28 | DegreeNatural.LawScalarExtension.value A L (fun i : Fin (n + 1) => F ^ (i : ℕ)) (fun i => P.coeff i) |
| 29 | |
| 30 | theorem valueBound_mono (P : Polynomial L) (n m : ℕ) |
| 31 | (hn : P.natDegree ≤ n) (hnm : n ≤ m) : |
| 32 | valueBound A L F n P = valueBound A L F m P := by |
| 33 | classical |
| 34 | let e : Fin (n + 1) → Fin (m + 1) := Fin.castLE (Nat.succ_le_succ hnm) |
| 35 | have h := DegreeNatural.LawScalarExtension.value_pushforward A L (fun i : Fin (m + 1) => F ^ (i : ℕ)) e 0 |
| 36 | (by simp only [e, Fin.val_castLE, Fin.val_zero, pow_zero]) (fun i => P.coeff i) |
| 37 | have hc : (fun k : Fin (m + 1) => ∑ i : Fin (n + 1), |
| 38 | if k = e i then P.coeff i else 0) = fun k : Fin (m + 1) => P.coeff k := by |
| 39 | funext k |
| 40 | have he (i : Fin (n + 1)) : k = e i ↔ (i : ℕ) = k := by |
| 41 | simp only [Fin.ext_iff, e, Fin.val_castLE, eq_comm] |
| 42 | simp_rw [he] |
| 43 | exact (Finite.PolynomialCoordinates.coeff_expansion P n hn k).symm |
| 44 | rw [hc] at h |
| 45 | exact h |
| 46 | |
| 47 | def norm (P : Polynomial L) : L := valueBound A L F P.natDegree P |
| 48 | |
| 49 | theorem norm_eq_valueBound (P : Polynomial L) (n : ℕ) (hn : P.natDegree ≤ n) : |
| 50 | norm A L F P = valueBound A L F n P := |
| 51 | valueBound_mono A L F P P.natDegree n le_rfl hn |
| 52 | |
| 53 | theorem valueBound_mul (P Q : Polynomial L) (n m : ℕ) |
| 54 | (hn : P.natDegree ≤ n) (hm : Q.natDegree ≤ m) : |
| 55 | valueBound A L F (n + m) (P * Q) = valueBound A L F n P * valueBound A L F m Q := by |
| 56 | classical |
| 57 | let e : Fin (n + 1) × Fin (m + 1) → Fin (n + m + 1) := |
| 58 | fun t => ⟨t.1.val + t.2.val, by have := t.1.isLt; have := t.2.isLt; omega⟩ |
| 59 | have h := DegreeNatural.LawScalarExtension.value_pushforward A L (fun i : Fin (n + m + 1) => F ^ (i : ℕ)) e (0, 0) |
| 60 | (by simp only [e, Fin.val_zero, zero_add, pow_zero]) |
| 61 | (fun t => P.coeff t.1 * Q.coeff t.2) |
| 62 | have hc : (fun k : Fin (n + m + 1) => ∑ t : Fin (n + 1) × Fin (m + 1), |
| 63 | if k = e t then P.coeff t.1 * Q.coeff t.2 else 0) = |
| 64 | fun k : Fin (n + m + 1) => (P * Q).coeff k := by |
| 65 | funext k |
| 66 | have he (t : Fin (n + 1) × Fin (m + 1)) : |
| 67 | k = e t ↔ t.1.val + t.2.val = k := by simp only [Fin.ext_iff, e, eq_comm] |
| 68 | simp_rw [he] |
| 69 | exact (Finite.PolynomialCoordinates.coeff_product_expansion P Q n m hn hm k).symm |
| 70 | rw [hc] at h |
| 71 | have he : (fun t : Fin (n + 1) × Fin (m + 1) => F ^ (e t : ℕ)) = |
| 72 | (fun t => F ^ (t.1 : ℕ) * F ^ (t.2 : ℕ)) := by |
| 73 | funext t |
| 74 | exact pow_add F _ _ |
| 75 | rw [he] at h |
| 76 | change _ = valueBound A L F (n + m) (P * Q) at h |
| 77 | rw [← h] |
| 78 | exact DegreeNatural.LawScalarExtension.value_mul A L (fun i : Fin (n + 1) => F ^ (i : ℕ)) |
| 79 | (fun j : Fin (m + 1) => F ^ (j : ℕ)) 0 (by simp) 0 (by simp) |
| 80 | (fun i => P.coeff i) (fun j => Q.coeff j) |
| 81 | |
| 82 | theorem norm_mul (P Q : Polynomial L) : norm A L F (P * Q) = norm A L F P * norm A L F Q := by |
| 83 | rw [norm_eq_valueBound A L F (P * Q) (P.natDegree + Q.natDegree) Polynomial.natDegree_mul_le] |
| 84 | exact valueBound_mul A L F P Q P.natDegree Q.natDegree le_rfl le_rfl |
| 85 | |
| 86 | theorem norm_one : norm A L F 1 = 1 := by |
| 87 | rw [norm_eq_valueBound A L F 1 0 (by simp)] |
| 88 | have hs : (∑ i : Fin 1, (1 : ℕ) • F ^ (i : ℕ)) = 1 := by simp |
| 89 | have : IsFinite (∑ i : Fin 1, (1 : ℕ) • F ^ (i : ℕ)).toMul.hom.hom.left := by |
| 90 | rw [hs] |
| 91 | change IsFinite (𝟙 A.left) |
| 92 | infer_instance |
| 93 | have : IsDominant (∑ i : Fin 1, (1 : ℕ) • F ^ (i : ℕ)).toMul.hom.hom.left := by |
| 94 | rw [hs] |
| 95 | change IsDominant (𝟙 A.left) |
| 96 | infer_instance |
| 97 | have h := DegreeNatural.LawScalarExtension.value_nat A L (fun i : Fin 1 => F ^ (i : ℕ)) (fun _ => 1) |
| 98 | rw [hs] at h |
| 99 | change DegreeNatural.LawScalarExtension.value A L _ _ = ((𝟙 A.left : A.left ⟶ A.left).residueDegree (genericPoint A.left) : L) at h |
| 100 | simpa only [valueBound, Polynomial.coeff_one, Fin.fin_one_eq_zero, |
| 101 | Fin.val_zero, ite_true, Nat.cast_one, Scheme.Hom.residueDegree_id] using h |
| 102 | |
| 103 | def normHom : Polynomial L →* L where |
| 104 | toFun := norm A L F |
| 105 | map_one' := norm_one A L F |
| 106 | map_mul' := norm_mul A L F |
| 107 | |
| 108 | end |
| 109 | |
| 110 | /-! The polynomial-algebra degree law commutes with coefficient-ring |
| 111 | homomorphisms. In particular its values on scalar shifts form an actual |
| 112 | rational polynomial. -/ |
| 113 | |
| 114 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 115 | |
| 116 | open OAI.NumberTheory.PadicHodge.IntegralComparison.DegreeNatural.LawScalarExtension OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeLaw |
| 117 | |
| 118 | variable {K : Type} [Field K] [IsAlgClosed K] |
| 119 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 120 | [IsProper A.hom] [Smooth A.hom] [GeometricallyIntegral A.hom] |
| 121 | |
| 122 | theorem norm_map (L M : Type*) [CommRing L] [Algebra ℚ L] [CommRing M] [Algebra ℚ M] |
| 123 | (F : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) (φ : L →ₐ[ℚ] M) (P : Polynomial L) : |
| 124 | norm A M F (P.map φ.toRingHom) = φ (norm A L F P) := by |
| 125 | rw [norm_eq_valueBound A M F _ P.natDegree Polynomial.natDegree_map_le] |
| 126 | unfold norm valueBound DegreeNatural.LawScalarExtension.value |
| 127 | simp only [Polynomial.coeff_map] |
| 128 | have hφ : φ.toRingHom.comp (algebraMap ℚ L) = algebraMap ℚ M := RingHom.ext φ.commutes |
| 129 | have h := MvPolynomial.hom_eval₂ |
| 130 | (Endomorphism.DegreeLaw.degreePolynomial A (fun i : Fin (P.natDegree + 1) => F ^ (i : ℕ))) |
| 131 | (algebraMap ℚ L) φ.toRingHom (fun i => P.coeff i) |
| 132 | rw [hφ] at h |
| 133 | exact h.symm |
| 134 | |
| 135 | def plusPolynomial (F : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : Polynomial ℚ := |
| 136 | norm A (Polynomial ℚ) F (Polynomial.C (Polynomial.X : Polynomial ℚ) + Polynomial.X) |
| 137 | |
| 138 | theorem plusPolynomial_aeval (L : Type*) [CommRing L] [Algebra ℚ L] |
| 139 | (F : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) (c : L) : |
| 140 | Polynomial.aeval c (plusPolynomial A F) = |
| 141 | norm A L F (Polynomial.C c + Polynomial.X) := by |
| 142 | have h := norm_map A (Polynomial ℚ) L F (Polynomial.aeval c) |
| 143 | (Polynomial.C (Polynomial.X : Polynomial ℚ) + Polynomial.X) |
| 144 | simpa only [Polynomial.map_add, Polynomial.map_C, Polynomial.map_X, |
| 145 | AlgHom.toRingHom_eq_coe, AlgHom.coe_toRingHom, Polynomial.aeval_X, plusPolynomial] using h.symm |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Polynomial.DegreeBaseChange.Law |