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.CentralNullHomotopy |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components |
| 3 | |
| 4 | /-! # Punctured Homotopy -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.PuncturedHomotopy |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! On any principal intersection where one point parameter is a unit, |
| 11 | every map from the genuine point dual Koszul complex is nullhomotopic. |
| 12 | The inverse coefficient and wedge homotopy are explicit. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex Opposite |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Differential |
| 19 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 20 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 21 | {c m : ℕ} (s : Fin c → R) (t : Fin m → R) |
| 22 | |
| 23 | abbrev coefficientAt (a : Cᵒᵖ) := |
| 24 | (((evaluation Cᵒᵖ (ModuleCat R)).obj a).mapHomologicalComplex (.up ℕ)).obj (KoszulPartial.Components.coefficient R P s) |
| 25 | |
| 26 | def multiply (a : Cᵒᵖ) (z : P.obj a) : coefficientAt R P s a ⟶ coefficientAt R P s a where |
| 27 | f n := ModuleCat.ofHom |
| 28 | { toFun := fun φ => (LinearMap.mulLeft R z).comp |
| 29 | (show (⋀[R]^n (KoszulPartial.Fractions.normal R (c := c))) →ₗ[R] P.obj a from φ) |
| 30 | map_add' := by |
| 31 | intro φ ψ |
| 32 | change (⋀[R]^n (KoszulPartial.Fractions.normal R (c := c))) →ₗ[R] P.obj a at φ ψ |
| 33 | apply LinearMap.ext |
| 34 | intro x |
| 35 | change z * (φ x + ψ x) = z * φ x + z * ψ x |
| 36 | exact mul_add _ _ _ |
| 37 | map_smul' := by |
| 38 | intro r φ |
| 39 | change (⋀[R]^n (KoszulPartial.Fractions.normal R (c := c))) →ₗ[R] P.obj a at φ |
| 40 | apply LinearMap.ext |
| 41 | intro x |
| 42 | change z * (r • φ x) = r • (z * φ x) |
| 43 | simp only [Algebra.smul_def] |
| 44 | ring } |
| 45 | comm' i j hij := by |
| 46 | have hj : i + 1 = j := hij |
| 47 | subst j |
| 48 | change _ ≫ ((KoszulPartial.Components.coefficient R P s).d i (i + 1)).app a = |
| 49 | ((KoszulPartial.Components.coefficient R P s).d i (i + 1)).app a ≫ _ |
| 50 | dsimp only [KoszulPartial.Components.coefficient, HomPresheaf.complex] |
| 51 | rw [CochainComplex.of_d] |
| 52 | apply ModuleCat.hom_ext |
| 53 | apply LinearMap.ext |
| 54 | intro φ |
| 55 | apply LinearMap.ext |
| 56 | intro x |
| 57 | rfl |
| 58 | |
| 59 | omit [HasFiniteProducts C] in |
| 60 | theorem multiply_inverse (a : Cᵒᵖ) (r : R) (z : P.obj a) |
| 61 | (hz : algebraMap R (P.obj a) r * z = 1) : r • multiply R P s a z = 𝟙 _ := by |
| 62 | apply HomologicalComplex.Hom.ext |
| 63 | funext n |
| 64 | apply ModuleCat.hom_ext |
| 65 | apply LinearMap.ext |
| 66 | intro φ |
| 67 | apply LinearMap.ext |
| 68 | intro x |
| 69 | change r • (z * (show (⋀[R]^n (KoszulPartial.Fractions.normal R (c := c))) →ₗ[R] P.obj a from φ) x) = _ |
| 70 | rw [Algebra.smul_def, ← mul_assoc, hz, one_mul] |
| 71 | rfl |
| 72 | |
| 73 | def sourceNull (j : Fin m) : Homotopy (t j • 𝟙 (KoszulPartial.Components.source R s t)) 0 := by |
| 74 | let e : KoszulPartial.Fractions.ambient R (c := c) (m := m) := (0, Pi.basisFun R (Fin m) j) |
| 75 | have he : KoszulPartial.Differential.equation R s t e = t j := by |
| 76 | simp [KoszulPartial.Differential.equation, e, GeneratorMatrix.equation_apply, Pi.basisFun_apply, Pi.single_apply] |
| 77 | exact (Homotopy.ofEq (by rw [← he])).trans |
| 78 | (CentralNullHomotopy.dual R _ _ |
| 79 | (Exterior.KoszulHomotopy.homotopy R _ (KoszulPartial.Differential.equation R s t) e)) |
| 80 | |
| 81 | def mapsNull (a : Cᵒᵖ) (j : Fin m) |
| 82 | (hj : IsUnit (algebraMap R (P.obj a) (t j))) |
| 83 | (f : KoszulPartial.Components.source R s t ⟶ coefficientAt R P s a) : Homotopy f 0 := |
| 84 | CentralNullHomotopy.of_inverse R (t j) (sourceNull R s t j) |
| 85 | (multiply R P s a (↑(hj.unit⁻¹))) |
| 86 | (multiply_inverse R P s a (t j) (↑(hj.unit⁻¹)) (by |
| 87 | exact (congrArg (fun z : P.obj a => z * ↑(hj.unit⁻¹)) hj.unit_spec.symm).trans |
| 88 | (Units.mul_inv hj.unit))) f |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.PuncturedHomotopy |