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.OrderedCech.Refinement |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechZero |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.TailQuasiIso |
| 4 | |
| 5 | /-! # Cech Refinement -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechRefinement |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Refinement of the supported ordered Čech complex fixes its ambient |
| 12 | section term and uses the original ordered refinement in positive degrees. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | private theorem three_projection {A : Type*} [Category A] |
| 19 | {P Q R S T W : A} {a : P ⟶ Q} {b : Q ⟶ R} {c : R ⟶ S} |
| 20 | {p : S ⟶ T} {q : R ⟶ T} {s : Q ⟶ W} {t : P ⟶ W} {z : W ⟶ T} |
| 21 | (hc : c ≫ p = q) (hb : b ≫ q = s ≫ z) (ha : a ≫ s = t) : |
| 22 | (a ≫ b ≫ c) ≫ p = t ≫ z := by |
| 23 | simp only [Category.assoc] |
| 24 | rw [hc, hb, ← Category.assoc, ha] |
| 25 | |
| 26 | universe u v |
| 27 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 28 | {D : Type v} [Category D] [Abelian D] [HasProducts.{u} D] [HasCoproducts.{0} D] |
| 29 | {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] |
| 30 | (U : ι → C) (V : κ → C) |
| 31 | (r : FormalCoproduct.mk κ V ⟶ FormalCoproduct.mk ι U) (P : Cᵒᵖ ⥤ D) |
| 32 | |
| 33 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechZero |
| 34 | |
| 35 | omit [HasCoproducts D] in |
| 36 | private theorem inclusion_projection {n : ℕ} (a : Fin (n + 1) → ι) (ha : StrictMono a) : |
| 37 | OrderedCech.Retraction.inclusionF U P n ≫ Cech.TupleRestrictionFunctor.projection U P a = |
| 38 | OrderedCech.Projection.projection U P n ⟨a, ha⟩ := by |
| 39 | unfold OrderedCech.Retraction.inclusionF |
| 40 | erw [Category.assoc, Cech.SortedProjection.projection_strictMono U P n a ha, |
| 41 | OrderedCech.Projection.zeroExtension_projection U P n a ha] |
| 42 | |
| 43 | private def intersectionMap (a : Fin 1 → κ) : |
| 44 | (∏ᶜ (V ∘ a)) ⟶ ∏ᶜ (U ∘ (r.f ∘ a)) := |
| 45 | ((GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.nerveMap U V r).app (op (SimplexCategory.mk 0))).φ a |
| 46 | |
| 47 | omit [HasCoproducts D] in |
| 48 | private theorem positive_zero_projection (a : OrderedCech.Projection.Index (ι := κ) 0) : |
| 49 | (OrderedCech.Refinement.map U V r P).f 0 ≫ |
| 50 | OrderedCech.Projection.projection V P 0 a = |
| 51 | OrderedCech.Projection.projection U P 0 |
| 52 | ⟨r.f ∘ a.val, (by intro i j hij; have _hi := i.isLt; have _hj := j.isLt; omega)⟩ ≫ P.map (intersectionMap U V r a.val).op := by |
| 53 | have h : (GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map U V r P).f 0 ≫ |
| 54 | Cech.TupleRestrictionFunctor.projection V P a.val = |
| 55 | Cech.TupleRestrictionFunctor.projection U P (r.f ∘ a.val) ≫ |
| 56 | P.map (intersectionMap U V r a.val).op := Pi.lift_comp_π _ a.val |
| 57 | exact three_projection (OrderedCech.Projection.mapF_projection V P 0 a) h |
| 58 | (inclusion_projection U P (r.f ∘ a.val) (by |
| 59 | intro i j hij |
| 60 | have hi := i.isLt |
| 61 | have hj := j.isLt |
| 62 | omega)) |
| 63 | |
| 64 | omit [HasCoproducts D] in |
| 65 | private theorem zero_restriction (a : OrderedCech.Projection.Index (ι := ι) 0) : |
| 66 | (CechZero.zeroIso U P).inv ≫ Cech.differential U P 0 ≫ OrderedCech.Projection.projection U P 0 a = |
| 67 | P.map (terminal.from (∏ᶜ (U ∘ a.val))).op := |
| 68 | CechZero.zeroIso_inv_differential_π U P a |
| 69 | |
| 70 | def mapF : (n : ℕ) → Cech.object U P n ⟶ Cech.object V P n |
| 71 | | 0 => (CechZero.zeroIso U P).hom ≫ (CechZero.zeroIso V P).inv |
| 72 | | n + 1 => (OrderedCech.Refinement.map U V r P).f n |
| 73 | |
| 74 | omit [HasCoproducts D] in |
| 75 | private theorem mapF_zero_d : mapF U V r P 0 ≫ Cech.differential V P 0 = |
| 76 | Cech.differential U P 0 ≫ mapF U V r P 1 := by |
| 77 | apply (cancel_epi (CechZero.zeroIso U P).inv).mp |
| 78 | change (CechZero.zeroIso U P).inv ≫ ((CechZero.zeroIso U P).hom ≫ (CechZero.zeroIso V P).inv) ≫ Cech.differential V P 0 = |
| 79 | (CechZero.zeroIso U P).inv ≫ Cech.differential U P 0 ≫ (OrderedCech.Refinement.map U V r P).f 0 |
| 80 | erw [Category.assoc, Iso.inv_hom_id_assoc] |
| 81 | apply Pi.hom_ext |
| 82 | intro (a : OrderedCech.Projection.Index (ι := κ) 0) |
| 83 | change ((CechZero.zeroIso V P).inv ≫ Cech.differential V P 0) ≫ OrderedCech.Projection.projection V P 0 a = |
| 84 | ((CechZero.zeroIso U P).inv ≫ Cech.differential U P 0 ≫ (OrderedCech.Refinement.map U V r P).f 0) ≫ |
| 85 | OrderedCech.Projection.projection V P 0 a |
| 86 | erw [Category.assoc, zero_restriction, Category.assoc, Category.assoc, positive_zero_projection, |
| 87 | ← Category.assoc, ← Category.assoc] |
| 88 | erw [Category.assoc (CechZero.zeroIso U P).inv, zero_restriction, ← P.map_comp, ← op_comp] |
| 89 | congr 1 |
| 90 | |
| 91 | def map : Cech.complex U P ⟶ Cech.complex V P := |
| 92 | CochainComplex.ofHom (mapF U V r P) (fun n => by |
| 93 | cases n with |
| 94 | | zero => |
| 95 | change mapF U V r P 0 ≫ (Cech.complex V P).d 0 (0 + 1) = |
| 96 | (Cech.complex U P).d 0 (0 + 1) ≫ mapF U V r P 1 |
| 97 | rw [show (Cech.complex V P).d 0 (0 + 1) = Cech.differential V P 0 from CochainComplex.of_d (Cech.object V P) (Cech.differential V P) 0, |
| 98 | show (Cech.complex U P).d 0 (0 + 1) = Cech.differential U P 0 from CochainComplex.of_d (Cech.object U P) (Cech.differential U P) 0] |
| 99 | exact mapF_zero_d U V r P |
| 100 | | succ n => simpa only [Cech.complex, CochainComplex.of_d, mapF, |
| 101 | OrderedCech.Projection.complex, OrderedCech.Projection.differential] using |
| 102 | (OrderedCech.Refinement.map U V r P).comm n (n + 1)) |
| 103 | |
| 104 | omit [HasCoproducts D] in |
| 105 | @[simp] theorem map_f_zero : (CechRefinement.map U V r P).f 0 = (CechZero.zeroIso U P).hom ≫ (CechZero.zeroIso V P).inv := rfl |
| 106 | omit [HasCoproducts D] in |
| 107 | @[simp] theorem map_f_succ (n : ℕ) : (CechRefinement.map U V r P).f (n + 1) = |
| 108 | (OrderedCech.Refinement.map U V r P).f n := rfl |
| 109 | |
| 110 | omit [HasCoproducts D] in |
| 111 | theorem map_zero : (CechRefinement.map U V r P).f 0 ≫ (CechZero.zeroIso V P).hom = (CechZero.zeroIso U P).hom := by |
| 112 | change ((CechZero.zeroIso U P).hom ≫ (CechZero.zeroIso V P).inv) ≫ (CechZero.zeroIso V P).hom = _ |
| 113 | erw [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechRefinement |