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.AlgebraicTopology.Kunneth.WedgeLeibniz |
| 2 | |
| 3 | /-! # Wedge Derivative Terms -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.WedgeDerivativeTerms.Leibniz |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The right-derivative term of the genuine smooth exterior product, |
| 12 | including its permutation sign and factorial normalization. -/ |
| 13 | |
| 14 | open OAI.AlgebraicTopology.Kunneth.WedgeLeibniz.Constructions |
| 15 | |
| 16 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {p q : ℕ} |
| 17 | |
| 18 | theorem alternatingSum_rightDerivative_reindex |
| 19 | (a : E [⋀^Fin p]→L[ℝ] ℂ) (b : E → E [⋀^Fin q]→L[ℝ] ℂ) |
| 20 | (x : E) (v : Fin (p + q + 1) → E) : |
| 21 | AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum (fun w => |
| 22 | a (fun i => w (Fin.castAdd q i).succ) * |
| 23 | (fderiv ℝ b x) (w 0) (fun i => w (Fin.natAdd p i).succ)) v = |
| 24 | (-1 : ℤ) ^ p • AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum |
| 25 | (AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a (fun w => (fderiv ℝ b x) (w 0) (Fin.tail w))) |
| 26 | (fun i => v (Fin.cast (by omega) i)) := by |
| 27 | let g : (Fin (q + 1) → E) → ℂ := fun w => (fderiv ℝ b x) (w 0) (Fin.tail w) |
| 28 | let hd : p + (q + 1) = p + q + 1 := by omega |
| 29 | let F : (Fin (p + q + 1) → E) → ℂ := |
| 30 | fun w => AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a g (fun i => w (Fin.cast hd i)) |
| 31 | let τ : Equiv.Perm (Fin (p + q + 1)) := Fin.cycleRange ⟨p, by omega⟩ |
| 32 | have hf : (fun w : Fin (p + q + 1) → E => |
| 33 | a (fun i => w (Fin.castAdd q i).succ) * |
| 34 | (fderiv ℝ b x) (w 0) (fun i => w (Fin.natAdd p i).succ)) = |
| 35 | fun w => F (w ∘ τ) := by |
| 36 | funext w |
| 37 | change _ = a (fun i => w (AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.rightDerivativeIndex p q (Sum.inl i))) * |
| 38 | (fderiv ℝ b x) (w (AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.rightDerivativeIndex p q (Sum.inr 0))) |
| 39 | (fun i => w (AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.rightDerivativeIndex p q (Sum.inr i.succ))) |
| 40 | simp only [AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.rightDerivativeIndex_left, AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.rightDerivativeIndex_zero, AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.rightDerivativeIndex_right] |
| 41 | rw [hf, AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum_permute] |
| 42 | change Equiv.Perm.sign (Fin.cycleRange (⟨p, by omega⟩ : Fin (p + q + 1))) • AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum F v = _ |
| 43 | rw [Fin.sign_cycleRange] |
| 44 | change (-1 : ℤ) ^ p • AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum F v = _ |
| 45 | exact congrArg ((-1 : ℤ) ^ p • ·) (AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.alternatingSum_cast hd (AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a g) v) |
| 46 | |
| 47 | theorem alternatingSum_finBlock_right_fderiv |
| 48 | (a : E [⋀^Fin p]→L[ℝ] ℂ) (b : E → E [⋀^Fin q]→L[ℝ] ℂ) |
| 49 | (x : E) (v : Fin (p + (q + 1)) → E) : |
| 50 | ((q + 1 : ℕ) : ℂ) * AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum |
| 51 | (AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a (fun w => (fderiv ℝ b x) (w 0) (Fin.tail w))) v = |
| 52 | AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum (AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a (extDeriv b x)) v := by |
| 53 | let g : (Fin (q + 1) → E) → ℂ := fun w => (fderiv ℝ b x) (w 0) (Fin.tail w) |
| 54 | have hg (w : Fin (q + 1) → E) : AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum g w = (q.factorial : ℂ) * extDeriv b x w := by |
| 55 | rw [← nsmul_eq_mul] |
| 56 | exact AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum_fderiv b x w |
| 57 | have he : AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a (AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum g) = |
| 58 | fun w => (q.factorial : ℂ) * AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a (extDeriv b x) w := by |
| 59 | funext w |
| 60 | simp only [AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct, hg] |
| 61 | ring |
| 62 | have h := AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.alternatingSum_finBlock_right a g v |
| 63 | rw [he, AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum_smul, nsmul_eq_mul, Nat.factorial_succ, Nat.cast_mul] at h |
| 64 | apply mul_left_cancel₀ (show (q.factorial : ℂ) ≠ 0 by exact_mod_cast Nat.factorial_ne_zero q) |
| 65 | calc |
| 66 | (q.factorial : ℂ) * (((q + 1 : ℕ) : ℂ) * AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum (AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a g) v) = |
| 67 | (((q + 1 : ℕ) : ℂ) * (q.factorial : ℂ)) * AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum (AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.finBlockProduct a g) v := by ring |
| 68 | _ = _ := h.symm |
| 69 | |
| 70 | end |
| 71 | |
| 72 | /-! The full graded Leibniz rule for the actual smooth exterior |
| 73 | product, proved with the native normalization. -/ |
| 74 | |
| 75 | open OAI.AlgebraicTopology.Kunneth.WedgeLeibniz.Constructions |
| 76 | |
| 77 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {p q : ℕ} |
| 78 | |
| 79 | theorem left_term (a : E → E [⋀^Fin p]→L[ℝ] ℂ) (b : E [⋀^Fin q]→L[ℝ] ℂ) |
| 80 | (x : E) (v : Fin (p + q + 1) → E) : |
| 81 | (((p.factorial : ℝ) * (q.factorial : ℝ))⁻¹) • |
| 82 | AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum (fun w => |
| 83 | (fderiv ℝ a x) (w 0) (fun i => w (Fin.castAdd q i).succ) * |
| 84 | b (fun i => w (Fin.natAdd p i).succ)) v = |
| 85 | AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast (by omega) (AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (extDeriv a x) b) v := by |
| 86 | rw [AlgebraicTopology.Kunneth.WedgeLeibniz.Constructions.alternatingSum_leftDerivative_reindex, AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast_apply, |
| 87 | AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.covectorWedge_eq_alternatingSum] |
| 88 | have h := AlgebraicTopology.Kunneth.WedgeLeibniz.Constructions.alternatingSum_finBlock_fderiv a b x (fun i => v (Fin.cast (by omega) i)) |
| 89 | rw [← h] |
| 90 | simp only [Complex.real_smul, Complex.ofReal_inv, Complex.ofReal_mul, |
| 91 | Complex.ofReal_natCast, Nat.factorial_succ, Nat.cast_mul] |
| 92 | have hp : (p.factorial : ℂ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero p |
| 93 | have hq : (q.factorial : ℂ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero q |
| 94 | have hs : ((p + 1 : ℕ) : ℂ) ≠ 0 := by exact_mod_cast Nat.succ_ne_zero p |
| 95 | field_simp |
| 96 | |
| 97 | theorem right_term (a : E [⋀^Fin p]→L[ℝ] ℂ) (b : E → E [⋀^Fin q]→L[ℝ] ℂ) |
| 98 | (x : E) (v : Fin (p + q + 1) → E) : |
| 99 | (((p.factorial : ℝ) * (q.factorial : ℝ))⁻¹) • |
| 100 | AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum (fun w => |
| 101 | a (fun i => w (Fin.castAdd q i).succ) * |
| 102 | (fderiv ℝ b x) (w 0) (fun i => w (Fin.natAdd p i).succ)) v = |
| 103 | (-1 : ℤ) ^ p • AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast (by omega) (AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge a (extDeriv b x)) v := by |
| 104 | rw [alternatingSum_rightDerivative_reindex, |
| 105 | smul_comm (((p.factorial : ℝ) * (q.factorial : ℝ))⁻¹) ((-1 : ℤ) ^ p)] |
| 106 | apply congrArg ((-1 : ℤ) ^ p • ·) |
| 107 | rw [AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast_apply, AlgebraicTopology.Kunneth.FinAlternatingProduct.Constructions.covectorWedge_eq_alternatingSum] |
| 108 | have h := alternatingSum_finBlock_right_fderiv a b x (fun i => v (Fin.cast (by omega) i)) |
| 109 | rw [← h] |
| 110 | simp only [Complex.real_smul, Complex.ofReal_inv, Complex.ofReal_mul, |
| 111 | Complex.ofReal_natCast, Nat.factorial_succ, Nat.cast_mul] |
| 112 | have hp : (p.factorial : ℂ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero p |
| 113 | have hq : (q.factorial : ℂ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero q |
| 114 | have hs : ((q + 1 : ℕ) : ℂ) ≠ 0 := by exact_mod_cast Nat.succ_ne_zero q |
| 115 | field_simp |
| 116 | |
| 117 | theorem extDeriv_wedge (a : E → E [⋀^Fin p]→L[ℝ] ℂ) (b : E → E [⋀^Fin q]→L[ℝ] ℂ) |
| 118 | (x : E) (ha : ContDiffAt ℝ 1 a x) (hb : ContDiffAt ℝ 1 b x) : |
| 119 | extDeriv (fun y => AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (a y) (b y)) x = |
| 120 | AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast (by omega) (AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (extDeriv a x) (b x)) + |
| 121 | (-1 : ℤ) ^ p • AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast (by omega) (AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (a x) (extDeriv b x)) := by |
| 122 | ext v |
| 123 | change extDeriv (fun y => AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (a y) (b y)) x v = |
| 124 | AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast (by omega) (AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (extDeriv a x) (b x)) v + |
| 125 | (-1 : ℤ) ^ p • AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorDegreeCast (by omega) (AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (a x) (extDeriv b x)) v |
| 126 | rw [AlgebraicTopology.Kunneth.WedgeLeibniz.Constructions.extDeriv_covectorWedge_apply a b x ha hb, AlgebraicTopology.Kunneth.WedgeAlternating.Constructions.alternatingSum_add, smul_add, |
| 127 | left_term, right_term] |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.WedgeDerivativeTerms.Leibniz |