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.Exterior.CoordinateSplit |
| 2 | import Mathlib.Algebra.Homology.HomotopyCofiber |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Biproducts |
| 4 | |
| 5 | /-! # Koszul Homotopy -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulHomotopy |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Wedge multiplication is the actual scalar nullhomotopy of the |
| 12 | exterior Koszul complex. It constructs its native mapping-cone comparison. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulComplex |
| 20 | |
| 21 | universe u |
| 22 | variable (R V : Type u) [CommRing R] [AddCommGroup V] [Module R V] |
| 23 | (s : Module.Dual R V) (e : V) |
| 24 | |
| 25 | theorem complex_d (n : ℕ) : (KoszulComplex.complex R V s).d (n + 1) n = |
| 26 | ModuleCat.ofHom (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R V s n) := by |
| 27 | dsimp only [KoszulComplex.complex] |
| 28 | exact ChainComplex.of_d _ _ n |
| 29 | |
| 30 | def family (i j : ℕ) (hij : (ComplexShape.down ℕ).Rel j i) : |
| 31 | (KoszulComplex.complex R V s).X i ⟶ (KoszulComplex.complex R V s).X j := by |
| 32 | have hj : i + 1 = j := hij |
| 33 | subst j |
| 34 | exact ModuleCat.ofHom (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.wedge R V e i) |
| 35 | |
| 36 | theorem family_succ (n : ℕ) : family R V s e n (n + 1) rfl = |
| 37 | ModuleCat.ofHom (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.wedge R V e n) := rfl |
| 38 | |
| 39 | theorem boundary_eq : Homotopy.nullHomotopicMap' (family R V s e) = |
| 40 | s e • 𝟙 (KoszulComplex.complex R V s) := by |
| 41 | apply HomologicalComplex.Hom.ext |
| 42 | funext n |
| 43 | cases n with |
| 44 | | zero => |
| 45 | rw [Homotopy.nullHomotopicMap'_f_of_not_rel_left (k₁ := 1) (k₀ := 0) rfl |
| 46 | (by intro l hl; change l + 1 = 0 at hl; omega)] |
| 47 | erw [family_succ, complex_d] |
| 48 | apply ModuleCat.hom_ext |
| 49 | apply LinearMap.ext |
| 50 | intro x |
| 51 | exact AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction_wedge_zero R V s e x |
| 52 | | succ n => |
| 53 | rw [Homotopy.nullHomotopicMap'_f (k₂ := n + 2) (k₁ := n + 1) (k₀ := n) rfl rfl] |
| 54 | erw [family_succ, family_succ, complex_d, complex_d] |
| 55 | apply ModuleCat.hom_ext |
| 56 | apply LinearMap.ext |
| 57 | intro x |
| 58 | exact (add_comm _ _).trans (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction_wedge R V s e n x) |
| 59 | |
| 60 | def homotopy : Homotopy (s e • 𝟙 (KoszulComplex.complex R V s)) 0 := |
| 61 | (Homotopy.ofEq (boundary_eq R V s e).symm).trans |
| 62 | (Homotopy.nullHomotopy' (family R V s e)) |
| 63 | |
| 64 | theorem homotopy_hom (n : ℕ) : |
| 65 | (homotopy R V s e).hom n (n + 1) = ModuleCat.ofHom (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.wedge R V e n) := by |
| 66 | simp [homotopy, Homotopy.trans, Homotopy.ofEq, Homotopy.nullHomotopy', |
| 67 | Homotopy.nullHomotopy, family] |
| 68 | rfl |
| 69 | |
| 70 | variable (W : Type u) [AddCommGroup W] [Module R W] (t : Module.Dual R W) |
| 71 | (f : W →ₗ[R] V) (hf : s.comp f = t) |
| 72 | |
| 73 | abbrev inclusion := KoszulComplex.map R W V t s f hf |
| 74 | |
| 75 | def inclusionHomotopy : |
| 76 | Homotopy ((s e • 𝟙 (KoszulComplex.complex R W t)) ≫ inclusion R V s W t f hf) 0 := |
| 77 | (Homotopy.ofEq (by simp only [Linear.smul_comp, Category.id_comp, |
| 78 | Linear.comp_smul, Category.comp_id])).trans |
| 79 | (((homotopy R V s e).compLeft (inclusion R V s W t f hf)).trans |
| 80 | (Homotopy.ofEq comp_zero)) |
| 81 | |
| 82 | theorem inclusionHomotopy_hom (n : ℕ) : |
| 83 | (inclusionHomotopy R V s e W t f hf).hom n (n + 1) = |
| 84 | ModuleCat.ofHom ((AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.wedge R V e n).comp (exteriorPower.map n f)) := by |
| 85 | simp only [inclusionHomotopy, Homotopy.trans_hom, Homotopy.ofEq_hom, |
| 86 | Homotopy.compLeft_hom, Pi.zero_apply, zero_add, add_zero, homotopy_hom] |
| 87 | rfl |
| 88 | |
| 89 | def coneMap : homotopyCofiber (s e • 𝟙 (KoszulComplex.complex R W t)) ⟶ KoszulComplex.complex R V s := |
| 90 | homotopyCofiber.desc _ (inclusion R V s W t f hf) |
| 91 | (inclusionHomotopy R V s e W t f hf) |
| 92 | |
| 93 | theorem inl_coneMap (n : ℕ) : |
| 94 | homotopyCofiber.inlX (s e • 𝟙 (KoszulComplex.complex R W t)) n (n + 1) rfl ≫ |
| 95 | (coneMap R V s e W t f hf).f (n + 1) = |
| 96 | ModuleCat.ofHom ((AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.wedge R V e n).comp (exteriorPower.map n f)) := by |
| 97 | rw [coneMap, homotopyCofiber.inlX_desc_f, inclusionHomotopy_hom] |
| 98 | |
| 99 | theorem inr_coneMap (n : ℕ) : |
| 100 | homotopyCofiber.inrX (s e • 𝟙 (KoszulComplex.complex R W t)) n ≫ |
| 101 | (coneMap R V s e W t f hf).f n = ModuleCat.ofHom (exteriorPower.map n f) := by |
| 102 | rw [coneMap, homotopyCofiber.inrX_desc_f] |
| 103 | rfl |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulHomotopy |