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.Koszul.OrientedTopCohomology |
| 2 | import Mathlib.Data.Fin.Tuple.Basic |
| 3 | |
| 4 | /-! # Cech Evaluation -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CechEvaluation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The dual exterior Koszul differential, evaluated on an ordered |
| 11 | coordinate wedge, has the same signed deletion formula as the augmented |
| 12 | Čech differential. This fixes the sign of the fraction comparison. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction |
| 21 | |
| 22 | universe u |
| 23 | variable (R V : Type u) [CommRing R] [AddCommGroup V] [Module R V] |
| 24 | (l : Module.Dual R V) |
| 25 | |
| 26 | theorem ambient (q : ℕ) (v : Fin (q + 1) → V) : |
| 27 | AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.ambientContraction R V l (ExteriorAlgebra.ιMulti R (q + 1) v) = |
| 28 | ∑ i : Fin (q + 1), ((-1 : R) ^ i.val * l (v i)) • |
| 29 | ExteriorAlgebra.ιMulti R q (i.removeNth v) := by |
| 30 | induction q with |
| 31 | | zero => |
| 32 | conv_rhs => rw [Fin.sum_univ_one] |
| 33 | simp only [Fin.val_zero, pow_zero, one_mul, |
| 34 | ExteriorAlgebra.ιMulti_succ_apply, ExteriorAlgebra.ιMulti_zero_apply, |
| 35 | mul_one] |
| 36 | exact (CliffordAlgebra.contractLeft_ι 0 l (v 0)).trans |
| 37 | (Algebra.algebraMap_eq_smul_one _) |
| 38 | | succ q ih => |
| 39 | conv_rhs => rw [Fin.sum_univ_succ] |
| 40 | rw [ExteriorAlgebra.ιMulti_succ_apply, AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.ambientContraction_ι_mul, ih] |
| 41 | simp only [Fin.val_zero, pow_zero, one_mul, Fin.removeNth_zero] |
| 42 | rw [Finset.mul_sum, sub_eq_add_neg, ← Finset.sum_neg_distrib] |
| 43 | congr 1 |
| 44 | apply Finset.sum_congr rfl |
| 45 | intro i _ |
| 46 | have hv : i.succ.removeNth v = Fin.cons (v 0) (i.removeNth (Fin.tail v)) := by |
| 47 | ext j |
| 48 | refine Fin.cases ?_ (fun k => ?_) j |
| 49 | · simp [Fin.removeNth] |
| 50 | · simp [Fin.removeNth, Fin.tail] |
| 51 | rw [hv, ExteriorAlgebra.ιMulti_succ_apply] |
| 52 | simp only [Fin.cons_zero, Fin.val_succ, pow_succ, |
| 53 | mul_smul_comm, neg_smul, neg_mul, mul_neg, mul_one] |
| 54 | rfl |
| 55 | |
| 56 | theorem contraction (q : ℕ) (v : Fin (q + 1) → V) : |
| 57 | AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R V l q |
| 58 | (exteriorPower.ιMulti R (q + 1) v) = |
| 59 | ∑ i : Fin (q + 1), ((-1 : R) ^ i.val * l (v i)) • |
| 60 | exteriorPower.ιMulti R q (i.removeNth v) := by |
| 61 | apply Subtype.ext |
| 62 | simp only [Submodule.coe_sum, Submodule.coe_smul_of_tower] |
| 63 | exact ambient R V l q v |
| 64 | |
| 65 | variable {m : ℕ} (s : Fin m → R) |
| 66 | |
| 67 | theorem differential (q : ℕ) (a : Module.Dual R (⋀[R]^q (Fin m → R))) |
| 68 | (v : Fin (q + 1) → Fin m) : |
| 69 | (show Module.Dual R (⋀[R]^(q + 1) (Fin m → R)) from |
| 70 | (OrientedTopCohomology.dualComplex R s).d q (q + 1) a) |
| 71 | (exteriorPower.ιMulti R (q + 1) (fun i => (Pi.basisFun R (Fin m)) (v i))) = |
| 72 | ∑ i : Fin (q + 1), ((-1 : R) ^ i.val * s (v i)) • |
| 73 | a (exteriorPower.ιMulti R q (fun j => (Pi.basisFun R (Fin m)) (v (i.succAbove j)))) := by |
| 74 | change (show Module.Dual R (⋀[R]^(q + 1) (Fin m → R)) from |
| 75 | ((OrientedTopCohomology.dualComplex R s).d q (q + 1)).hom a) _ = _ |
| 76 | rw [OrientedTopCohomology.dual_d] |
| 77 | change a (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ |
| 78 | (GeneratorMatrix.equation R s) q _) = _ |
| 79 | rw [contraction, map_sum] |
| 80 | apply Finset.sum_congr rfl |
| 81 | intro i _ |
| 82 | rw [map_smul] |
| 83 | congr 1 |
| 84 | simp [GeneratorMatrix.equation_apply, Pi.basisFun_apply, Pi.single_apply] |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CechEvaluation |