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.Embedding.TruncGEHomology |
| 2 | import Mathlib.Algebra.Homology.Embedding.ExtendHomology |
| 3 | import Mathlib.Algebra.Homology.SingleHomology |
| 4 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 5 | |
| 6 | /-! # Cohomology Concentration -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CohomologyConcentration |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A complex with cohomology in one degree is linked, by the canonical |
| 13 | truncation maps, to its genuine cohomology object in that degree. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 22 | |
| 23 | def zeroCyclesMap (K : CochainComplex C ℕ) : |
| 24 | (CochainComplex.single₀ C).obj (K.cycles 0) ⟶ K := |
| 25 | (CochainComplex.fromSingle₀Equiv K (K.cycles 0)).symm |
| 26 | ⟨K.iCycles 0, K.iCycles_d 0 1⟩ |
| 27 | |
| 28 | @[simp] theorem zeroCyclesMap_f_zero (K : CochainComplex C ℕ) : |
| 29 | (zeroCyclesMap K).f 0 = K.iCycles 0 := |
| 30 | CochainComplex.fromSingle₀Equiv_symm_apply_f_zero _ _ |
| 31 | |
| 32 | theorem zeroCyclesMap_quasiIsoAt (K : CochainComplex C ℕ) : |
| 33 | QuasiIsoAt (zeroCyclesMap K) 0 := by |
| 34 | let A := (CochainComplex.single₀ C).obj (K.cycles 0) |
| 35 | have hc : HomologicalComplex.cyclesMap (zeroCyclesMap K) 0 = A.iCycles 0 := by |
| 36 | apply (cancel_mono (K.iCycles 0)).mp |
| 37 | rw [HomologicalComplex.cyclesMap_i, zeroCyclesMap_f_zero] |
| 38 | have : IsIso (A.iCycles 0) := A.isIso_iCycles 0 1 (by simp) (by simp [A]) |
| 39 | have : IsIso (HomologicalComplex.cyclesMap (zeroCyclesMap K) 0) := hc.symm ▸ inferInstance |
| 40 | have h : IsIso (A.homologyπ 0 ≫ HomologicalComplex.homologyMap (zeroCyclesMap K) 0) := by |
| 41 | rw [HomologicalComplex.homologyπ_naturality] |
| 42 | infer_instance |
| 43 | rw [quasiIsoAt_iff_isIso_homologyMap] |
| 44 | exact IsIso.of_isIso_comp_left (A.homologyπ 0) _ |
| 45 | |
| 46 | theorem zeroCyclesMap_quasiIso (K : CochainComplex C ℕ) |
| 47 | (hK : ∀ q, K.ExactAt (q + 1)) : QuasiIso (zeroCyclesMap K) := by |
| 48 | constructor |
| 49 | intro q |
| 50 | cases q with |
| 51 | | zero => exact zeroCyclesMap_quasiIsoAt K |
| 52 | | succ q => |
| 53 | exact (quasiIsoAt_iff_exactAt' (zeroCyclesMap K) (q + 1) (hK q)).mpr |
| 54 | (HomologicalComplex.exactAt_single_obj (.up ℕ) 0 _ (q + 1) (by omega)) |
| 55 | |
| 56 | abbrev shift (c : ℕ) : (ComplexShape.up ℕ).Embedding (.up ℕ) := |
| 57 | ComplexShape.embeddingUp'Add 1 c |
| 58 | |
| 59 | abbrev tail (K : CochainComplex C ℕ) (c : ℕ) : CochainComplex C ℕ := K.truncGE' (shift c) |
| 60 | |
| 61 | abbrev truncation (K : CochainComplex C ℕ) (c : ℕ) : CochainComplex C ℕ := K.truncGE (shift c) |
| 62 | |
| 63 | def projection (K : CochainComplex C ℕ) (c : ℕ) : K ⟶ truncation K c := K.πTruncGE (shift c) |
| 64 | |
| 65 | def cyclesHomologyIso (K : CochainComplex C ℕ) (c : ℕ) : |
| 66 | (tail K c).cycles 0 ≅ K.homology c := by |
| 67 | have h : (shift c).f 0 = c := by simp [shift] |
| 68 | have : QuasiIsoAt (projection K c) c := K.quasiIsoAt_πTruncGE (shift c) h |
| 69 | exact (tail K c).isoHomologyπ₀ ≪≫ ((tail K c).extendHomologyIso (shift c) h).symm ≪≫ |
| 70 | (isoOfQuasiIsoAt (projection K c) c).symm |
| 71 | |
| 72 | def inclusion (K : CochainComplex C ℕ) (c : ℕ) : |
| 73 | (HomologicalComplex.single C (.up ℕ) c).obj (K.homology c) ⟶ truncation K c := |
| 74 | (HomologicalComplex.single C (.up ℕ) c).map (cyclesHomologyIso K c).inv ≫ |
| 75 | (HomologicalComplex.extendSingleIso (shift c) ((tail K c).cycles 0) 0 c |
| 76 | (by simp [shift])).inv ≫ |
| 77 | HomologicalComplex.extendMap (zeroCyclesMap (tail K c)) (shift c) |
| 78 | |
| 79 | variable (K : CochainComplex C ℕ) (c : ℕ) (hK : ∀ q, q ≠ c → K.ExactAt q) |
| 80 | |
| 81 | include hK in |
| 82 | theorem projection_quasiIso : QuasiIso (projection K c) := by |
| 83 | apply (K.quasiIso_πTruncGE_iff_isSupported (shift c)).mpr |
| 84 | constructor |
| 85 | intro q hq |
| 86 | apply hK q |
| 87 | rintro rfl |
| 88 | exact hq 0 (by simp [shift]) |
| 89 | |
| 90 | include hK in |
| 91 | theorem tail_positive_exact (q : ℕ) : (tail K c).ExactAt (q + 1) := by |
| 92 | have : QuasiIso (projection K c) := projection_quasiIso K c hK |
| 93 | apply ((tail K c).extend_exactAt_iff (shift c) (j := q + 1) rfl).mp |
| 94 | exact (exactAt_iff_of_quasiIsoAt (projection K c) ((shift c).f (q + 1))).mp |
| 95 | (hK _ (by simp only [shift, ComplexShape.embeddingUp'Add_f]; omega)) |
| 96 | |
| 97 | include hK in |
| 98 | theorem inclusion_quasiIso : QuasiIso (inclusion K c) := by |
| 99 | have : QuasiIso (zeroCyclesMap (tail K c)) := |
| 100 | zeroCyclesMap_quasiIso (tail K c) (tail_positive_exact K c hK) |
| 101 | dsimp only [inclusion] |
| 102 | infer_instance |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CohomologyConcentration |