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.AlgebraicTopology.DeRham.Comparison.DoubleComplexSigns |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexProjections |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Colimits |
| 4 | |
| 5 | /-! # Double Complex Augmentation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexAugmentation.DoubleComplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # The column-zero augmentation into the actual total complex |
| 13 | |
| 14 | An augmentation into the zeroth column of a first-quadrant double complex |
| 15 | induces a cochain map into its total complex when the first horizontal |
| 16 | differential kills it. The construction uses the native total-complex |
| 17 | inclusions and the actual horizontal-plus-signed-vertical differential. |
| 18 | No exactness or quasi-isomorphism is assumed here. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | variable {R : Type u} [Ring R] |
| 26 | variable (K : HomologicalComplex₂ (ModuleCat.{v} R) |
| 27 | (ComplexShape.up ℕ) (ComplexShape.up ℕ)) |
| 28 | variable {A : CochainComplex (ModuleCat.{v} R) ℕ} |
| 29 | variable (ε : A ⟶ K.X 0) |
| 30 | |
| 31 | /-- The horizontal augmentation identity holds in every vertical degree. -/ |
| 32 | theorem augmentation_horizontal_zero (hε : ε ≫ K.d 0 1 = 0) (n : ℕ) : |
| 33 | ε.f n ≫ (K.d 0 1).f n = 0 := by |
| 34 | simpa only [HomologicalComplex.comp_f, HomologicalComplex.zero_f] using |
| 35 | congrArg (fun f : A ⟶ K.X 1 => f.f n) hε |
| 36 | |
| 37 | /-- The actual map into total degree `n`, supported in bidegree `(0,n)`. -/ |
| 38 | def augmentationComponent (n : ℕ) : A.X n ⟶ (K.total (ComplexShape.up ℕ)).X n := |
| 39 | ε.f n ≫ K.ιTotal (ComplexShape.up ℕ) 0 n n (by simp) |
| 40 | |
| 41 | /-- The component maps commute with the total differential. At column zero |
| 42 | the vertical sign is one, and the horizontal summand vanishes. -/ |
| 43 | theorem augmentationComponent_comm (hε : ε ≫ K.d 0 1 = 0) (n : ℕ) : |
| 44 | augmentationComponent K ε n ≫ (K.total (ComplexShape.up ℕ)).d n (n + 1) = |
| 45 | A.d n (n + 1) ≫ augmentationComponent K ε (n + 1) := by |
| 46 | dsimp only [augmentationComponent] |
| 47 | rw [Category.assoc, DoubleComplexSigns.DoubleComplex.iota_d_of_eq] |
| 48 | simp only [pow_zero, one_smul, comp_add] |
| 49 | rw [← Category.assoc, augmentation_horizontal_zero K ε hε n, zero_comp, zero_add] |
| 50 | rw [← Category.assoc, ε.comm, Category.assoc] |
| 51 | |
| 52 | /-- An augmentation of the zeroth column induces a genuine cochain map to |
| 53 | the native first-quadrant total complex. -/ |
| 54 | def augmentationToTotal (hε : ε ≫ K.d 0 1 = 0) : A ⟶ K.total (ComplexShape.up ℕ) where |
| 55 | f := augmentationComponent K ε |
| 56 | comm' i j hij := by |
| 57 | obtain rfl : i + 1 = j := hij |
| 58 | exact augmentationComponent_comm K ε hε i |
| 59 | |
| 60 | variable (hε : ε ≫ K.d 0 1 = 0) |
| 61 | |
| 62 | /-- In each degree the augmentation lands in the zeroth-column summand. -/ |
| 63 | @[simp] |
| 64 | theorem augmentationToTotal_f (n : ℕ) : |
| 65 | (augmentationToTotal K ε hε).f n = |
| 66 | ε.f n ≫ K.ιTotal (ComplexShape.up ℕ) 0 n n (by simp) := rfl |
| 67 | |
| 68 | /-- The cochain-map identity holds for arbitrary degree pairs, including |
| 69 | the pairs whose differentials are forced to vanish by the complex shape. -/ |
| 70 | @[reassoc] |
| 71 | theorem augmentationToTotal_comm (i j : ℕ) : |
| 72 | (augmentationToTotal K ε hε).f i ≫ (K.total (ComplexShape.up ℕ)).d i j = |
| 73 | A.d i j ≫ (augmentationToTotal K ε hε).f j := |
| 74 | (augmentationToTotal K ε hε).comm i j |
| 75 | |
| 76 | /-- Projection back to column zero recovers the given augmentation exactly. -/ |
| 77 | @[reassoc (attr := simp)] |
| 78 | theorem augmentationToTotal_πTotal_zero (n : ℕ) : |
| 79 | (augmentationToTotal K ε hε).f n ≫ DoubleComplexProjections.DoubleComplex.πTotal K 0 n n (Nat.zero_add n) = ε.f n := by |
| 80 | rw [augmentationToTotal_f, Category.assoc, DoubleComplexProjections.DoubleComplex.iota_πTotal_self, Category.comp_id] |
| 81 | |
| 82 | /-- Every positive-column projection of the augmentation vanishes. -/ |
| 83 | @[reassoc] |
| 84 | theorem augmentationToTotal_πTotalOrZero_ne (n p q : ℕ) (hp : p ≠ 0) : |
| 85 | (augmentationToTotal K ε hε).f n ≫ DoubleComplexProjections.DoubleComplex.πTotalOrZero K p q n = 0 := by |
| 86 | have hne : (0, n) ≠ (p, q) := by |
| 87 | intro h |
| 88 | exact hp (congrArg Prod.fst h).symm |
| 89 | rw [augmentationToTotal_f, Category.assoc, |
| 90 | DoubleComplexProjections.DoubleComplex.iota_πTotalOrZero_ne K 0 n p q n (Nat.zero_add n) hne, comp_zero] |
| 91 | |
| 92 | /-- Elementwise form of the zeroth-column component identity. -/ |
| 93 | @[simp] |
| 94 | theorem πTotal_augmentationToTotal_apply (n : ℕ) (x : A.X n) : |
| 95 | DoubleComplexProjections.DoubleComplex.πTotal K 0 n n (Nat.zero_add n) ((augmentationToTotal K ε hε).f n x) = ε.f n x := |
| 96 | congrArg (fun f : A.X n ⟶ (K.X 0).X n => f x) |
| 97 | (augmentationToTotal_πTotal_zero K ε hε n) |
| 98 | |
| 99 | /-- An injective augmentation remains injective in each total degree. -/ |
| 100 | theorem augmentationToTotal_f_injective (n : ℕ) (hinj : Function.Injective (ε.f n)) : |
| 101 | Function.Injective ((augmentationToTotal K ε hε).f n) := by |
| 102 | intro x y h |
| 103 | apply hinj |
| 104 | simpa only [πTotal_augmentationToTotal_apply] using |
| 105 | congrArg (DoubleComplexProjections.DoubleComplex.πTotal K 0 n n (Nat.zero_add n)) h |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexAugmentation.DoubleComplex |