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.Augment |
| 2 | import Mathlib.Algebra.Homology.QuasiIso |
| 3 | import Mathlib.Algebra.Homology.SingleHomology |
| 4 | |
| 5 | /-! # Cochain Augmentation -/ |
| 6 | |
| 7 | namespace OAI.Analysis.DifferentialForms.Manifold.CochainAugmentation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # Homological algebra for an actual cochain augmentation |
| 15 | |
| 16 | The general lemmas here are applied to the proved de Rham kernel and local |
| 17 | exactness theorems in `DeRhamResolution`. They do not supply those analytic |
| 18 | hypotheses themselves. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 22 | |
| 23 | variable {C : Type*} [Category* C] [HasZeroMorphisms C] |
| 24 | |
| 25 | /-- Beyond the inserted two initial terms, augmentation only shifts exactness. -/ |
| 26 | theorem cochainAugment_exactAt_succ_succ (K : CochainComplex C ℕ) {X : C} |
| 27 | (f : X ⟶ K.X 0) (hf : f ≫ K.d 0 1 = 0) (n : ℕ) : |
| 28 | (K.augment f hf).ExactAt (n + 2) ↔ K.ExactAt (n + 1) := by |
| 29 | rw [HomologicalComplex.exactAt_iff' _ (n + 1) (n + 2) (n + 3) (by simp) (by simp), |
| 30 | HomologicalComplex.exactAt_iff' _ n (n + 1) (n + 2) (by simp) (by simp)] |
| 31 | rfl |
| 32 | |
| 33 | /-- A known kernel object maps isomorphically to the categorical cycles. -/ |
| 34 | theorem shortComplex_liftCycles_isIso_of_kernel (S : ShortComplex C) [S.HasHomology] |
| 35 | {X : C} (f : X ⟶ S.X₂) (hf : f ≫ S.g = 0) |
| 36 | (hkernel : IsLimit (KernelFork.ofι f hf)) : IsIso (S.liftCycles f hf) := by |
| 37 | have heq : S.liftCycles f hf = (S.isoCyclesOfIsLimit hkernel).hom := by |
| 38 | apply (cancel_mono S.iCycles).1 |
| 39 | rw [S.liftCycles_i, S.isoCyclesOfIsLimit_hom_iCycles] |
| 40 | rfl |
| 41 | rw [heq] |
| 42 | infer_instance |
| 43 | |
| 44 | variable [HasZeroObject C] [CategoryWithHomology C] |
| 45 | |
| 46 | /-- A kernel inclusion into degree zero is a quasi-isomorphism precisely when |
| 47 | the positive terms are exact; this direction packages those proved inputs. -/ |
| 48 | theorem cochainAugmentation_quasiIso (K : CochainComplex C ℕ) {X : C} |
| 49 | (f : X ⟶ K.X 0) (hf : f ≫ K.d 0 1 = 0) |
| 50 | (hkernel : IsLimit (KernelFork.ofι f hf)) |
| 51 | (hexact : ∀ n : ℕ, K.ExactAt (n + 1)) : |
| 52 | QuasiIso ((CochainComplex.fromSingle₀Equiv K X).symm ⟨f, hf⟩) := by |
| 53 | let α := (CochainComplex.fromSingle₀Equiv K X).symm ⟨f, hf⟩ |
| 54 | change QuasiIso α |
| 55 | rw [quasiIso_iff] |
| 56 | intro i |
| 57 | cases i with |
| 58 | | zero => |
| 59 | rw [CochainComplex.quasiIsoAt₀_iff] |
| 60 | apply (ShortComplex.quasiIso_iff_isIso_liftCycles |
| 61 | ((HomologicalComplex.shortComplexFunctor' C (ComplexShape.up ℕ) 0 0 1).map α) |
| 62 | (by rfl) (by rfl) (by |
| 63 | change K.d 0 0 = 0 |
| 64 | exact K.shape 0 0 (by simp))).2 |
| 65 | change IsIso ((K.sc' 0 0 1).liftCycles (α.f 0) _) |
| 66 | simpa only [α, CochainComplex.fromSingle₀Equiv_symm_apply_f_zero, |
| 67 | CochainComplex.single₀_obj_zero] using |
| 68 | (shortComplex_liftCycles_isIso_of_kernel (K.sc' 0 0 1) f hf hkernel) |
| 69 | | succ n => |
| 70 | exact (quasiIsoAt_iff_exactAt α (n + 1) |
| 71 | (HomologicalComplex.exactAt_single_obj (ComplexShape.up ℕ) 0 X (n + 1) |
| 72 | (Nat.succ_ne_zero n))).2 (hexact n) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | /-! Exactness of a cochain augmentation from its genuine kernel and positive exactness. -/ |
| 77 | |
| 78 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 79 | |
| 80 | variable {C : Type*} [Category* C] [Preadditive C] [HasZeroObject C] |
| 81 | [CategoryWithHomology C] |
| 82 | |
| 83 | /-- A genuine kernel inclusion followed by an exact positive complex gives an |
| 84 | acyclic augmented complex. -/ |
| 85 | theorem cochainAugment_acyclic_of_kernel (K : CochainComplex C ℕ) {X : C} |
| 86 | (f : X ⟶ K.X 0) (hf : f ≫ K.d 0 1 = 0) |
| 87 | (hkernel : IsLimit (KernelFork.ofι f hf)) |
| 88 | (hexact : ∀ n : ℕ, K.ExactAt (n + 1)) : |
| 89 | (K.augment f hf).Acyclic := by |
| 90 | intro i |
| 91 | cases i with |
| 92 | | zero => |
| 93 | rw [HomologicalComplex.exactAt_iff' _ 0 0 1 (by simp) (by simp)] |
| 94 | change (ShortComplex.mk (0 : X ⟶ X) f (zero_comp)).Exact |
| 95 | exact (ShortComplex.exact_iff_mono _ rfl).2 (mono_of_isLimit_fork hkernel) |
| 96 | | succ i => |
| 97 | cases i with |
| 98 | | zero => |
| 99 | rw [HomologicalComplex.exactAt_iff' _ 0 1 2 (by simp) (by simp)] |
| 100 | change (ShortComplex.mk f (K.d 0 1) hf).Exact |
| 101 | exact ShortComplex.exact_of_f_is_kernel _ hkernel |
| 102 | | succ n => |
| 103 | exact (cochainAugment_exactAt_succ_succ K f hf n).2 (hexact n) |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.Analysis.DifferentialForms.Manifold.CochainAugmentation |