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.AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD |
| 2 | |
| 3 | /-! # Truncated Functor Iso -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.TruncatedFunctorIso.TruncatedPullback |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! A morphism of complexes across an additive functor restricts to every degree truncation. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration |
| 16 | |
| 17 | variable {C D : Type*} [Category* C] [Category* D] |
| 18 | [Preadditive C] [Preadditive D] [HasZeroObject C] [HasZeroObject D] |
| 19 | (F : C ⥤ D) [F.Additive] |
| 20 | |
| 21 | omit [HasZeroObject C] [HasZeroObject D] in |
| 22 | theorem zero_square {A B : C} {Y Z : D} (u : Y ⟶ Z) (v : F.obj B ⟶ Z) : |
| 23 | (0 : F.obj A ⟶ Y) ≫ u = F.map (0 : A ⟶ B) ≫ v := by |
| 24 | rw [F.map_zero, zero_comp, zero_comp] |
| 25 | |
| 26 | omit [Preadditive C] [Preadditive D] [HasZeroObject C] [HasZeroObject D] [F.Additive] in |
| 27 | theorem transport_square {A A' B B' : C} {Y Y' Z Z' : D} |
| 28 | (hA : A' = A) (hB : B' = B) (hY : Y' = Y) (hZ : Z' = Z) |
| 29 | (a : F.obj A ⟶ Y) (b : F.obj B ⟶ Z) (u : A ⟶ B) (v : Y ⟶ Z) |
| 30 | (h : a ≫ v = F.map u ≫ b) : |
| 31 | (eqToHom (congrArg F.obj hA) ≫ a ≫ eqToHom hY.symm) ≫ |
| 32 | (eqToHom hY ≫ v ≫ eqToHom hZ.symm) = |
| 33 | F.map (eqToHom hA ≫ u ≫ eqToHom hB.symm) ≫ |
| 34 | (eqToHom (congrArg F.obj hB) ≫ b ≫ eqToHom hZ.symm) := by |
| 35 | cases hA |
| 36 | cases hB |
| 37 | cases hY |
| 38 | cases hZ |
| 39 | simpa only [eqToHom_refl, Category.id_comp, Category.comp_id] using h |
| 40 | |
| 41 | omit [Preadditive C] [Preadditive D] [HasZeroObject C] [HasZeroObject D] [F.Additive] in |
| 42 | theorem transport_inclusion {A A' : C} {Y Y' : D} |
| 43 | (hA : A' = A) (hY : Y' = Y) (a : F.obj A ⟶ Y) : |
| 44 | (eqToHom (congrArg F.obj hA) ≫ a ≫ eqToHom hY.symm) ≫ eqToHom hY = |
| 45 | F.map (eqToHom hA) ≫ a := by |
| 46 | cases hA |
| 47 | cases hY |
| 48 | simp only [eqToHom_refl, F.map_id, Category.id_comp, Category.comp_id] |
| 49 | |
| 50 | variable |
| 51 | {K : CochainComplex C ℕ} {L : CochainComplex D ℕ} |
| 52 | (f : (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj K ⟶ L) |
| 53 | |
| 54 | def component (r : ℤ) (n : ℕ) : F.obj (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term K r n) ⟶ AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term L r n := |
| 55 | if h : r ≤ (n : ℤ) then |
| 56 | eqToHom (by simp [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term, h]) ≫ f.f n ≫ eqToHom (by simp [AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term, h]) |
| 57 | else 0 |
| 58 | |
| 59 | def map (r : ℤ) : |
| 60 | (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal K r) ⟶ AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal L r where |
| 61 | f n := component F f r n |
| 62 | comm' n m hnm := by |
| 63 | obtain rfl := (show n + 1 = m from hnm) |
| 64 | change component F f r n ≫ (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal L r).d n (n + 1) = |
| 65 | F.map ((AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal K r).d n (n + 1)) ≫ component F f r (n + 1) |
| 66 | rw [show (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal K r).d n (n + 1) = AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.d K r n from CochainComplex.of_d _ _ n, |
| 67 | show (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal L r).d n (n + 1) = AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.d L r n from CochainComplex.of_d _ _ n] |
| 68 | by_cases h : r ≤ (n : ℤ) |
| 69 | · have h1 : r ≤ ((n + 1 : ℕ) : ℤ) := by omega |
| 70 | simp only [component, AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.d, dite_eq_left h, dite_eq_left h1] |
| 71 | exact transport_square F (show AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term K r n = K.X n from ite_eq_left h) |
| 72 | (show AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term K r (n + 1) = K.X (n + 1) from ite_eq_left h1) |
| 73 | (show AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term L r n = L.X n from ite_eq_left h) |
| 74 | (show AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term L r (n + 1) = L.X (n + 1) from ite_eq_left h1) |
| 75 | (f.f n) (f.f (n + 1)) (K.d n (n + 1)) (L.d n (n + 1)) (f.comm n (n + 1)) |
| 76 | · simp only [component, AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.d, dite_eq_right h] |
| 77 | exact zero_square F _ _ |
| 78 | |
| 79 | theorem inclusion_square (r : ℤ) : |
| 80 | TruncatedPullback.map F f r ≫ AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion L r = |
| 81 | (F.mapHomologicalComplex (ComplexShape.up ℕ)).map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K r) ≫ f := by |
| 82 | apply HomologicalComplex.Hom.ext |
| 83 | funext n |
| 84 | change component F f r n ≫ AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm L r n = F.map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm K r n) ≫ f.f n |
| 85 | by_cases h : r ≤ (n : ℤ) |
| 86 | · simp only [component, AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm, dite_eq_left h] |
| 87 | exact transport_inclusion F (show AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term K r n = K.X n from ite_eq_left h) |
| 88 | (show AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term L r n = L.X n from ite_eq_left h) (f.f n) |
| 89 | · simp only [component, AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusionTerm, dite_eq_right h] |
| 90 | exact zero_square F _ _ |
| 91 | |
| 92 | end |
| 93 | |
| 94 | /-! An additive functor preserves the actual Hodge truncation through the canonical component map. -/ |
| 95 | |
| 96 | open _root_.CategoryTheory Limits ZeroObject OAI.AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration |
| 97 | |
| 98 | variable {C D : Type*} [Category* C] [Category* D] |
| 99 | [Preadditive C] [Preadditive D] [HasZeroObject C] [HasZeroObject D] |
| 100 | (F : C ⥤ D) [F.Additive] |
| 101 | {K : CochainComplex C ℕ} {L : CochainComplex D ℕ} |
| 102 | (e : (F.mapHomologicalComplex (.up ℕ)).obj K ≅ L) |
| 103 | |
| 104 | theorem component_isIso (r : ℤ) (n : ℕ) : IsIso (component F e.hom r n) := by |
| 105 | by_cases h : r ≤ (n : ℤ) |
| 106 | · dsimp only [component] |
| 107 | rw [dite_eq_left h] |
| 108 | infer_instance |
| 109 | · have hK : IsZero (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term K r n) := (isZero_zero C).of_iso (eqToIso (ite_eq_right h)) |
| 110 | have hL : IsZero (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.term L r n) := (isZero_zero D).of_iso (eqToIso (ite_eq_right h)) |
| 111 | exact (F.map_isZero hK).isIso hL (component F e.hom r n) |
| 112 | |
| 113 | def iso (r : ℤ) : (F.mapHomologicalComplex (.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal K r) ≅ AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.brutal L r := by |
| 114 | have : ∀ n, IsIso ((TruncatedPullback.map F e.hom r).f n) := fun n => component_isIso F e r n |
| 115 | have : IsIso (TruncatedPullback.map F e.hom r) := HomologicalComplex.Hom.isIso_of_components _ |
| 116 | exact asIso (TruncatedPullback.map F e.hom r) |
| 117 | |
| 118 | theorem iso_inclusion (r : ℤ) : |
| 119 | (iso F e r).hom ≫ AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion L r = |
| 120 | (F.mapHomologicalComplex (.up ℕ)).map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K r) ≫ e.hom := |
| 121 | inclusion_square F e.hom r |
| 122 | |
| 123 | theorem iso_inv_inclusion (r : ℤ) : |
| 124 | (iso F e r).inv ≫ (F.mapHomologicalComplex (.up ℕ)).map (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion K r) = |
| 125 | AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.inclusion L r ≫ e.inv := by |
| 126 | apply (iso F e r).inv_comp_eq.mpr |
| 127 | have h := congrArg (fun f => f ≫ e.inv) (iso_inclusion F e r) |
| 128 | simpa only [Category.assoc, Iso.hom_inv_id, Category.comp_id] using h.symm |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.NumberTheory.PadicHodge.GeometricComparison.TruncatedFunctorIso.TruncatedPullback |