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.Augmented.ResolutionToInjective |
| 2 | |
| 3 | /-! # Resolution Homotopy -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.ResolutionHomotopy |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: comparison maps out of augmented resolutions are unique up to homotopy |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 18 | (K : CochainComplex C ℕ) {Z Z' : C} (ι : (CochainComplex.single₀ C).obj Z ⟶ K) |
| 19 | [QuasiIso ι] (I : InjectiveResolution Z') (f : K ⟶ I.cocomplex) (hf : ι ≫ f = 0) |
| 20 | |
| 21 | private def zero : K.X 1 ⟶ I.cocomplex.X 0 := |
| 22 | (ResolutionCycles.augmentation_exact_and_mono K ι).1.descToInjective |
| 23 | (f.f 0) (congrArg (fun a => a.f 0) hf) |
| 24 | |
| 25 | private theorem zero_comm : K.d 0 1 ≫ zero K ι I f hf = f.f 0 := |
| 26 | (ResolutionCycles.augmentation_exact_and_mono K ι).1.comp_descToInjective _ _ |
| 27 | |
| 28 | private def one : K.X 2 ⟶ I.cocomplex.X 1 := |
| 29 | (ResolutionCycles.positive_exact K ι 0).descToInjective |
| 30 | (f.f 1 - zero K ι I f hf ≫ I.cocomplex.d 0 1) (by |
| 31 | change K.d 0 1 ≫ (f.f 1 - zero K ι I f hf ≫ I.cocomplex.d 0 1) = 0 |
| 32 | rw [Preadditive.comp_sub, ← Category.assoc, zero_comm, f.comm, sub_self]) |
| 33 | |
| 34 | private theorem one_comm : K.d 1 2 ≫ one K ι I f hf = |
| 35 | f.f 1 - zero K ι I f hf ≫ I.cocomplex.d 0 1 := |
| 36 | (ResolutionCycles.positive_exact K ι 0).comp_descToInjective _ _ |
| 37 | |
| 38 | private def step (i : ℕ) (a : K.X (i + 1) ⟶ I.cocomplex.X i) |
| 39 | (b : K.X (i + 2) ⟶ I.cocomplex.X (i + 1)) |
| 40 | (h : f.f (i + 1) = K.d (i + 1) (i + 2) ≫ b + a ≫ I.cocomplex.d i (i + 1)) : |
| 41 | K.X (i + 3) ⟶ I.cocomplex.X (i + 2) := |
| 42 | (ResolutionCycles.positive_exact K ι (i + 1)).descToInjective |
| 43 | (f.f (i + 2) - b ≫ I.cocomplex.d (i + 1) (i + 2)) (by |
| 44 | change K.d (i + 1) (i + 2) ≫ (f.f (i + 2) - b ≫ I.cocomplex.d (i + 1) (i + 2)) = 0 |
| 45 | rw [Preadditive.comp_sub, ← f.comm, h, Preadditive.add_comp, Category.assoc, |
| 46 | Category.assoc, I.cocomplex.d_comp_d, comp_zero, add_zero, sub_self]) |
| 47 | |
| 48 | private theorem step_comm (i : ℕ) (a : K.X (i + 1) ⟶ I.cocomplex.X i) |
| 49 | (b : K.X (i + 2) ⟶ I.cocomplex.X (i + 1)) |
| 50 | (h : f.f (i + 1) = K.d (i + 1) (i + 2) ≫ b + a ≫ I.cocomplex.d i (i + 1)) : |
| 51 | K.d (i + 2) (i + 3) ≫ step K ι I f i a b h = |
| 52 | f.f (i + 2) - b ≫ I.cocomplex.d (i + 1) (i + 2) := |
| 53 | (ResolutionCycles.positive_exact K ι (i + 1)).comp_descToInjective _ _ |
| 54 | |
| 55 | def homotopyZero : Homotopy f 0 := |
| 56 | Homotopy.mkCoinductive _ (zero K ι I f hf) (by simp only [zero_comm]) |
| 57 | (one K ι I f hf) (by rw [one_comm, add_comm, sub_add_cancel]) |
| 58 | (fun i ⟨a, b, h⟩ => ⟨step K ι I f i a b (by simpa only [add_comm] using h), by |
| 59 | simp only [step_comm] |
| 60 | abel⟩) |
| 61 | |
| 62 | omit hf in |
| 63 | def homotopy (f' : K ⟶ I.cocomplex) (h : ι ≫ f = ι ≫ f') : Homotopy f f' := |
| 64 | Homotopy.equivSubZero.invFun (homotopyZero K ι I (f - f') (by |
| 65 | rw [Preadditive.comp_sub, h, sub_self])) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.ResolutionHomotopy |