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.KoszulPartial.Fractions |
| 2 | |
| 3 | /-! # Differential -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Differential |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The literal mixed Koszul differential separates into the normal |
| 10 | Koszul differential and the signed deleted point-parameter terms. -/ |
| 11 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction |
| 12 | set_option backward.defeqAttrib.useBackward true |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u |
| 16 | variable (R : Type u) [CommRing R] {c m : ℕ} |
| 17 | |
| 18 | def insertionAt (p q d : ℕ) (h : p + q = d) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : |
| 19 | (⋀[R]^p (Fractions.normal R (c := c))) →ₗ[R] (⋀[R]^d (Fractions.ambient R (c := c) (m := m))) where |
| 20 | toFun x := ⟨(Fractions.insertion R p q a x).val, h ▸ (Fractions.insertion R p q a x).property⟩ |
| 21 | map_add' x y := by |
| 22 | apply Subtype.ext |
| 23 | change (Fractions.insertion R p q a (x + y)).val = _ |
| 24 | exact congrArg (fun z : ⋀[R]^(p + q) (Fractions.ambient R (c := c) (m := m)) => z.val) |
| 25 | (map_add (Fractions.insertion R p q a) x y) |
| 26 | map_smul' r x := by |
| 27 | apply Subtype.ext |
| 28 | change (Fractions.insertion R p q a (r • x)).val = _ |
| 29 | exact congrArg (fun z : ⋀[R]^(p + q) (Fractions.ambient R (c := c) (m := m)) => z.val) |
| 30 | (map_smul (Fractions.insertion R p q a) r x) |
| 31 | |
| 32 | theorem insertionAt_coe (p q d : ℕ) (h : p + q = d) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) |
| 33 | (x : ⋀[R]^p (Fractions.normal R (c := c))) : |
| 34 | (insertionAt R p q d h a x).val = |
| 35 | (exteriorPower.map p (LinearMap.inl R (Fractions.normal R (c := c)) (Fractions.parameters R (m := m))) x).val * |
| 36 | ExteriorAlgebra.ιMulti R q (Fractions.tuple R a) := rfl |
| 37 | |
| 38 | variable (s : Fin c → R) (t : Fin m → R) |
| 39 | |
| 40 | def equation : Module.Dual R (Fractions.ambient R (c := c) (m := m)) := |
| 41 | (Koszul.GeneratorMatrix.equation R s).coprod (Koszul.GeneratorMatrix.equation R t) |
| 42 | |
| 43 | theorem equation_inl : (equation R s t).comp (LinearMap.inl R (Fractions.normal R (c := c)) (Fractions.parameters R (m := m))) = |
| 44 | Koszul.GeneratorMatrix.equation R s := by |
| 45 | ext x |
| 46 | simp [equation] |
| 47 | |
| 48 | theorem equation_tuple {q : ℕ} (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) (k : Fin q) : |
| 49 | equation R s t (Fractions.tuple R (c := c) a k) = t (a.val k).down := by |
| 50 | simp [equation, Fractions.tuple, Koszul.GeneratorMatrix.equation_apply, Pi.basisFun_apply, |
| 51 | Pi.single_apply] |
| 52 | |
| 53 | theorem differential (p q : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) (q + 1)) |
| 54 | (x : ⋀[R]^(p + 1) (Fractions.normal R (c := c))) : |
| 55 | AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.ambientContraction R _ (equation R s t) |
| 56 | (insertionAt R (p + 1) (q + 1) (p + q + 2) (by omega) a x).val = |
| 57 | (insertionAt R p (q + 1) (p + q + 1) rfl a |
| 58 | (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Koszul.GeneratorMatrix.equation R s) p x)).val + |
| 59 | (-1 : R) ^ (p + 1) • |
| 60 | (∑ k : Fin (q + 1), ((-1 : R) ^ k.val * t (a.val k).down) • |
| 61 | (insertionAt R (p + 1) q (p + q + 1) (by omega) (a.delete k) x).val) := by |
| 62 | have hn := LinearMap.congr_fun |
| 63 | (Exterior.KoszulComplex.contraction_naturality R (Fractions.normal R (c := c)) (Fractions.ambient R (c := c) (m := m)) |
| 64 | (Koszul.GeneratorMatrix.equation R s) (equation R s t) |
| 65 | (LinearMap.inl R _ _) (equation_inl R s t) p) x |
| 66 | have hnc := congrArg Subtype.val hn |
| 67 | simp only [LinearMap.comp_apply, AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction_coe] at hnc |
| 68 | simp only [insertionAt_coe] |
| 69 | rw [Contraction.homogeneous_mul, hnc, Koszul.CechEvaluation.ambient, |
| 70 | Finset.mul_sum] |
| 71 | congr 1 |
| 72 | congr 1 |
| 73 | apply Finset.sum_congr rfl |
| 74 | intro k _ |
| 75 | rw [equation_tuple, mul_smul_comm] |
| 76 | rfl |
| 77 | |
| 78 | theorem contraction_identity (p q : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) (q + 1)) |
| 79 | (x : ⋀[R]^(p + 1) (Fractions.normal R (c := c))) : |
| 80 | AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (equation R s t) (p + q + 1) |
| 81 | (insertionAt R (p + 1) (q + 1) (p + q + 2) (by omega) a x) = |
| 82 | insertionAt R p (q + 1) (p + q + 1) rfl a |
| 83 | (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Koszul.GeneratorMatrix.equation R s) p x) + |
| 84 | (-1 : R) ^ (p + 1) • |
| 85 | (∑ k : Fin (q + 1), ((-1 : R) ^ k.val * t (a.val k).down) • |
| 86 | insertionAt R (p + 1) q (p + q + 1) (by omega) (a.delete k) x) := by |
| 87 | apply Subtype.ext |
| 88 | simp only [Submodule.coe_add, Submodule.coe_smul_of_tower, Submodule.coe_sum] |
| 89 | exact differential R s t p q a x |
| 90 | |
| 91 | theorem dual_identity (p q : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) (q + 1)) |
| 92 | (φ : Module.Dual R (⋀[R]^(p + q + 1) (Fractions.ambient R (c := c) (m := m)))) |
| 93 | (x : ⋀[R]^(p + 1) (Fractions.normal R (c := c))) : |
| 94 | φ (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (equation R s t) (p + q + 1) |
| 95 | (insertionAt R (p + 1) (q + 1) (p + q + 2) (by omega) a x)) = |
| 96 | φ (insertionAt R p (q + 1) (p + q + 1) rfl a |
| 97 | (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Koszul.GeneratorMatrix.equation R s) p x)) + |
| 98 | (-1 : R) ^ (p + 1) • |
| 99 | (∑ k : Fin (q + 1), ((-1 : R) ^ k.val * t (a.val k).down) • |
| 100 | φ (insertionAt R (p + 1) q (p + q + 1) (by omega) (a.delete k) x)) := by |
| 101 | rw [contraction_identity, map_add, map_smul, map_sum] |
| 102 | simp only [map_smul] |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Differential |