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.Frame.CosimplicialTransformation |
| 2 | |
| 3 | /-! # Cosimplicial Refinement -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Frame.CosimplicialRefinement |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual maps of tuple coefficients along a refinement of the frame index |
| 10 | set induce a map before forgetting the coefficient algebra structure. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite Simplicial |
| 13 | |
| 14 | universe u v t s |
| 15 | |
| 16 | variable {C D : Type (max u v)} [Category.{v} C] [Category.{v} D] |
| 17 | [HasBinaryProducts C] [HasBinaryProducts D] {ι κ : Type v} |
| 18 | (F : ι → C) (G : κ → D) (ρ : κ → ι) |
| 19 | {A : Type t} [Category.{s} A] [HasProducts.{v} A] |
| 20 | (H : Cᵒᵖ ⥤ A) (J : Dᵒᵖ ⥤ A) |
| 21 | (c : ∀ (a : ℕ) (t : Fin (a + 1) → κ), |
| 22 | H.obj (op (Presentation.TupleProducts.family F a (ρ ∘ t))) ⟶ |
| 23 | J.obj (op (Presentation.TupleProducts.family G a t))) |
| 24 | (hc : ∀ (a b : ℕ) (θ : Fin (b + 1) → Fin (a + 1)) (t : Fin (a + 1) → κ), |
| 25 | c b (t ∘ θ) ≫ J.map (Presentation.ResolutionFaceMaps.productMap G θ t).op = |
| 26 | H.map (Presentation.ResolutionFaceMaps.productMap F θ (ρ ∘ t)).op ≫ c a t) |
| 27 | |
| 28 | def component (a : ℕ) : |
| 29 | ∏ᶜ (fun t => H.obj (op (Presentation.TupleProducts.family F a t))) ⟶ |
| 30 | ∏ᶜ (fun t => J.obj (op (Presentation.TupleProducts.family G a t))) := |
| 31 | Pi.lift (fun t => Pi.π (fun t => H.obj (op (Presentation.TupleProducts.family F a t))) |
| 32 | (ρ ∘ t) ≫ c a t) |
| 33 | |
| 34 | def map : |
| 35 | (FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve F)).obj H ⟶ |
| 36 | (FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve G)).obj J where |
| 37 | app a := component F G ρ H J c a.len |
| 38 | naturality {a b} θ := by |
| 39 | let Hₐ := fun t => H.obj (op (Presentation.TupleProducts.family F a.len t)) |
| 40 | let Hᵦ := fun t => H.obj (op (Presentation.TupleProducts.family F b.len t)) |
| 41 | let Jₐ := fun t => J.obj (op (Presentation.TupleProducts.family G a.len t)) |
| 42 | let Jᵦ := fun t => J.obj (op (Presentation.TupleProducts.family G b.len t)) |
| 43 | let α := ((FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve F)).obj H).map θ |
| 44 | let β := ((FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve G)).obj J).map θ |
| 45 | let cₐ := component F G ρ H J c a.len |
| 46 | let cᵦ := component F G ρ H J c b.len |
| 47 | apply Pi.hom_ext |
| 48 | intro t |
| 49 | let s := t ∘ θ.toOrderHom.toFun |
| 50 | let h := H.map (Presentation.ResolutionFaceMaps.productMap F θ.toOrderHom.toFun (ρ ∘ t)).op |
| 51 | let j := J.map (Presentation.ResolutionFaceMaps.productMap G θ.toOrderHom.toFun t).op |
| 52 | have hα : α ≫ Pi.π Hᵦ (ρ ∘ t) = Pi.π Hₐ (ρ ∘ s) ≫ h := Pi.lift_comp_π _ (ρ ∘ t) |
| 53 | have hβ : β ≫ Pi.π Jᵦ t = Pi.π Jₐ s ≫ j := Pi.lift_comp_π _ t |
| 54 | have ha : cₐ ≫ Pi.π Jₐ s = Pi.π Hₐ (ρ ∘ s) ≫ c a.len s := Pi.lift_comp_π _ s |
| 55 | have hb : cᵦ ≫ Pi.π Jᵦ t = Pi.π Hᵦ (ρ ∘ t) ≫ c b.len t := Pi.lift_comp_π _ t |
| 56 | have hleft : (α ≫ cᵦ) ≫ Pi.π Jᵦ t = Pi.π Hₐ (ρ ∘ s) ≫ (h ≫ c b.len t) := |
| 57 | (Category.assoc _ _ _).trans |
| 58 | ((congrArg (fun q => α ≫ q) hb).trans |
| 59 | ((Category.assoc _ _ _).symm.trans |
| 60 | ((congrArg (fun q => q ≫ c b.len t) hα).trans (Category.assoc _ _ _)))) |
| 61 | have hright : (cₐ ≫ β) ≫ Pi.π Jᵦ t = Pi.π Hₐ (ρ ∘ s) ≫ (c a.len s ≫ j) := |
| 62 | (Category.assoc _ _ _).trans |
| 63 | ((congrArg (fun q => cₐ ≫ q) hβ).trans |
| 64 | ((Category.assoc _ _ _).symm.trans |
| 65 | ((congrArg (fun q => q ≫ j) ha).trans (Category.assoc _ _ _)))) |
| 66 | exact hleft.trans ((congrArg (fun q => Pi.π Hₐ (ρ ∘ s) ≫ q) |
| 67 | (hc b.len a.len θ.toOrderHom.toFun t).symm).trans hright.symm) |
| 68 | |
| 69 | variable {B : Type t} [Category.{s} B] [HasProducts.{v} B] |
| 70 | (T : A ⥤ B) [PreservesLimitsOfSize.{v, v} T] |
| 71 | |
| 72 | omit [HasBinaryProducts C] [HasBinaryProducts D] [PreservesLimitsOfSize.{v, v} T] in |
| 73 | theorem piComparison_reindex {P : ι → A} {Q : κ → A} (c : ∀ t, P (ρ t) ⟶ Q t) : |
| 74 | T.map (Pi.lift (fun t => Pi.π P (ρ t) ≫ c t)) ≫ piComparison T Q = |
| 75 | piComparison T P ≫ Pi.lift (fun t => Pi.π (fun i => T.obj (P i)) (ρ t) ≫ T.map (c t)) := by |
| 76 | apply Pi.hom_ext |
| 77 | intro i |
| 78 | simp only [Category.assoc, piComparison_comp_π, Pi.lift_comp_π] |
| 79 | rw [← T.map_comp, Pi.lift_comp_π, T.map_comp, piComparison_comp_π_assoc] |
| 80 | |
| 81 | include hc in |
| 82 | omit [HasProducts.{v} A] [HasProducts.{v} B] [PreservesLimitsOfSize.{v, v} T] in |
| 83 | theorem mapped_compatibility (a b : ℕ) (θ : Fin (b + 1) → Fin (a + 1)) (t : Fin (a + 1) → κ) : |
| 84 | T.map (c b (t ∘ θ)) ≫ (J ⋙ T).map (Presentation.ResolutionFaceMaps.productMap G θ t).op = |
| 85 | (H ⋙ T).map (Presentation.ResolutionFaceMaps.productMap F θ (ρ ∘ t)).op ≫ T.map (c a t) := |
| 86 | (T.map_comp _ _).symm.trans ((congrArg T.map (hc a b θ t)).trans (T.map_comp _ _)) |
| 87 | |
| 88 | theorem coefficientChange_natural : |
| 89 | Functor.whiskerRight (CosimplicialRefinement.map F G ρ H J c hc) T ≫ |
| 90 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChange.CechCoefficientChange.cosimplicialIso T (NonemptyCechNerve.nerve G) J).hom = |
| 91 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChange.CechCoefficientChange.cosimplicialIso T (NonemptyCechNerve.nerve F) H).hom ≫ |
| 92 | CosimplicialRefinement.map F G ρ (H ⋙ T) (J ⋙ T) (fun a t => T.map (c a t)) |
| 93 | (mapped_compatibility F G ρ H J c hc T) := by |
| 94 | apply NatTrans.ext |
| 95 | funext a |
| 96 | exact piComparison_reindex (fun t : Fin (a.len + 1) → κ => ρ ∘ t) T |
| 97 | (P := fun t => H.obj (op (Presentation.TupleProducts.family F a.len t))) |
| 98 | (Q := fun t => J.obj (op (Presentation.TupleProducts.family G a.len t))) (c a.len) |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Frame.CosimplicialRefinement |