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.FrameCech.Differential |
| 2 | |
| 3 | /-! # Transformation -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FrameCech.Transformation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Compatible coefficient maps define a morphism of the native frame Čech complexes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {C D : Type (max u v)} [Category.{v} C] [Category.{v} D] |
| 16 | [HasBinaryProducts C] [HasBinaryProducts D] {ι : Type v} (F : ι → C) (G : ι → D) |
| 17 | (R : Type (max u v)) [CommRing R] |
| 18 | |
| 19 | local instance moduleProducts : HasProducts.{v} (ModuleCat.{max u v} R) := by |
| 20 | let h : HasLimitsOfSize.{v, v} (ModuleCat.{max u v} R) := |
| 21 | ModuleCat.hasLimitsOfSize.{v, v, max u v, max u v} |
| 22 | exact fun I => h.has_limits_of_shape (Discrete I) |
| 23 | |
| 24 | variable (H : Cᵒᵖ ⥤ ModuleCat.{max u v} R) (J : Dᵒᵖ ⥤ ModuleCat.{max u v} R) |
| 25 | (c : ∀ (a : ℕ) (t : Fin (a + 1) → ι), |
| 26 | H.obj (op (Presentation.TupleProducts.family F a t)) ⟶ |
| 27 | J.obj (op (Presentation.TupleProducts.family G a t))) |
| 28 | |
| 29 | def term (a : ℕ) : (Differential.complex F R H).X a ⟶ |
| 30 | (Differential.complex G R J).X a := Limits.Pi.map (c a) |
| 31 | |
| 32 | theorem coordinate (a : ℕ) (t : Fin (a + 1) → ι) (x : (Differential.complex F R H).X a) : |
| 33 | Differential.coordinate G R J a t (term F G R H J c a x) = |
| 34 | c a t (Differential.coordinate F R H a t x) := |
| 35 | congrArg (fun f => f x) (Pi.map_π (c a) t) |
| 36 | |
| 37 | variable (hc : ∀ (a b : ℕ) (θ : Fin (b + 1) → Fin (a + 1)) (t : Fin (a + 1) → ι), |
| 38 | c b (t ∘ θ) ≫ J.map (Presentation.ResolutionFaceMaps.productMap G θ t).op = |
| 39 | H.map (Presentation.ResolutionFaceMaps.productMap F θ t).op ≫ c a t) |
| 40 | |
| 41 | include hc in |
| 42 | theorem comm (a : ℕ) : term F G R H J c a ≫ (Differential.complex G R J).d a (a + 1) = |
| 43 | (Differential.complex F R H).d a (a + 1) ≫ term F G R H J c (a + 1) := by |
| 44 | apply Pi.hom_ext |
| 45 | intro t |
| 46 | apply ModuleCat.hom_ext |
| 47 | apply LinearMap.ext |
| 48 | intro x |
| 49 | have hs := Finset.sum_congr (s₁ := Finset.univ) (s₂ := Finset.univ) rfl |
| 50 | (fun (i : Fin (a + 2)) _ => congrArg (fun y => (-1 : ℤ) ^ (i : ℕ) • y) |
| 51 | ((congrArg (fun y => J.map (Presentation.ResolutionFaceMaps.productMap G i.succAbove t).op y) |
| 52 | (coordinate F G R H J c a (t ∘ i.succAbove) x)).trans |
| 53 | (congrArg (fun f => f (Differential.coordinate F R H a (t ∘ i.succAbove) x)) |
| 54 | (hc (a + 1) a i.succAbove t)))) |
| 55 | have hm : c (a + 1) t (∑ i : Fin (a + 2), (-1 : ℤ) ^ (i : ℕ) • |
| 56 | H.map (Presentation.ResolutionFaceMaps.productMap F i.succAbove t).op |
| 57 | (Differential.coordinate F R H a (t ∘ i.succAbove) x)) = |
| 58 | ∑ i : Fin (a + 2), (-1 : ℤ) ^ (i : ℕ) • c (a + 1) t |
| 59 | (H.map (Presentation.ResolutionFaceMaps.productMap F i.succAbove t).op |
| 60 | (Differential.coordinate F R H a (t ∘ i.succAbove) x)) := by |
| 61 | simp only [map_sum, map_zsmul] |
| 62 | exact (Differential.coordinates G R J a t (term F G R H J c a x)).trans |
| 63 | (hs.trans (hm.symm.trans ((congrArg (fun y => c (a + 1) t y) |
| 64 | (Differential.coordinates F R H a t x).symm).trans |
| 65 | (coordinate F G R H J c (a + 1) t ((Differential.complex F R H).d a (a + 1) x)).symm))) |
| 66 | |
| 67 | def map : Differential.complex F R H ⟶ Differential.complex G R J where |
| 68 | f := term F G R H J c |
| 69 | comm' i j hij := by |
| 70 | have h : i + 1 = j := hij |
| 71 | subst j |
| 72 | exact comm F G R H J c hc i |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FrameCech.Transformation |