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 Mathlib.Algebra.Homology.Homotopy |
| 2 | |
| 3 | /-! # Lower Homotopy -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.LowerHomotopy |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A degree-lowering family gives a cochain homotopy from its |
| 10 | degree-zero and successor differential identities. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Preadditive |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | |
| 18 | universe u v |
| 19 | variable {C : Type u} [Category.{v} C] [Preadditive C] |
| 20 | (K L : CochainComplex C ℕ) (s : ∀ n, K.X (n + 1) ⟶ L.X n) |
| 21 | |
| 22 | def family (i j : ℕ) (h : (ComplexShape.up ℕ).Rel j i) : K.X i ⟶ L.X j := by |
| 23 | obtain rfl : i = j + 1 := h.symm |
| 24 | exact s j |
| 25 | |
| 26 | theorem family_succ (n : ℕ) : family K L s (n + 1) n rfl = s n := rfl |
| 27 | |
| 28 | def boundary : K ⟶ L := Homotopy.nullHomotopicMap' (family K L s) |
| 29 | |
| 30 | theorem boundary_zero : (boundary K L s).f 0 = K.d 0 1 ≫ s 0 := by |
| 31 | unfold boundary |
| 32 | rw [Homotopy.nullHomotopicMap'_f_of_not_rel_right (k₁ := 0) (k₀ := 1) rfl |
| 33 | (by intro i hi; change i + 1 = 0 at hi; omega)] |
| 34 | erw [family_succ] |
| 35 | |
| 36 | theorem boundary_succ (n : ℕ) : (boundary K L s).f (n + 1) = |
| 37 | K.d (n + 1) (n + 2) ≫ s (n + 1) + s n ≫ L.d n (n + 1) := by |
| 38 | unfold boundary |
| 39 | rw [Homotopy.nullHomotopicMap'_f (k₂ := n) (k₁ := n + 1) (k₀ := n + 2) rfl rfl] |
| 40 | erw [family_succ, family_succ] |
| 41 | |
| 42 | def homotopy (f g : K ⟶ L) |
| 43 | (hzero : f.f 0 - g.f 0 = K.d 0 1 ≫ s 0) |
| 44 | (hsucc : ∀ n, f.f (n + 1) - g.f (n + 1) = |
| 45 | K.d (n + 1) (n + 2) ≫ s (n + 1) + s n ≫ L.d n (n + 1)) : |
| 46 | Homotopy f g := by |
| 47 | have h : f - g = boundary K L s := by |
| 48 | apply HomologicalComplex.Hom.ext |
| 49 | funext n |
| 50 | cases n with |
| 51 | | zero => exact hzero.trans (boundary_zero K L s).symm |
| 52 | | succ n => exact (hsucc n).trans (boundary_succ K L s n).symm |
| 53 | exact (Homotopy.equivSubZero (f := f) (g := g)).symm |
| 54 | ((Homotopy.ofEq h).trans (Homotopy.nullHomotopy' (family K L s))) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.LowerHomotopy |