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.DerivedCategory.FullyFaithful |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Linear |
| 3 | |
| 4 | /-! # Connective Derived Is -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.ConnectiveDerivedIs.ConnectiveDerivedMaps |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Maps from a complex concentrated in its lowest degree into a connective complex are already actual cochain maps. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasDerivedCategory.{w} C] |
| 17 | {X Y : CochainComplex C ℤ} |
| 18 | |
| 19 | theorem concentrated_isIso (n : ℤ) [X.IsStrictlyGE n] [X.IsStrictlyLE n] |
| 20 | [Y.IsStrictlyGE n] [Y.IsStrictlyLE n] (s : X ⟶ Y) [IsIso (DerivedCategory.Q.map s)] : |
| 21 | IsIso s := by |
| 22 | obtain ⟨A, hA⟩ := X.exists_iso_single n |
| 23 | obtain ⟨B, hB⟩ := Y.exists_iso_single n |
| 24 | obtain ⟨eX⟩ : Nonempty (X ≅ (CochainComplex.singleFunctor C n).obj A) := hA |
| 25 | obtain ⟨eY⟩ : Nonempty (Y ≅ (CochainComplex.singleFunctor C n).obj B) := hB |
| 26 | obtain ⟨a, ha⟩ := (CochainComplex.singleFunctor C n).map_surjective (eX.inv ≫ s ≫ eY.hom) |
| 27 | have : IsIso ((DerivedCategory.singleFunctor C n).map a) := by |
| 28 | change IsIso (DerivedCategory.Q.map ((CochainComplex.singleFunctor C n).map a)) |
| 29 | rw [ha, Functor.map_comp, Functor.map_comp] |
| 30 | infer_instance |
| 31 | have : IsIso a := isIso_of_reflects_iso a (DerivedCategory.singleFunctor C n) |
| 32 | have : IsIso (eX.inv ≫ s ≫ eY.hom) := by rw [← ha]; infer_instance |
| 33 | have : IsIso (s ≫ eY.hom) := IsIso.of_isIso_comp_left eX.inv (s ≫ eY.hom) |
| 34 | exact IsIso.of_isIso_comp_right s eY.hom |
| 35 | |
| 36 | theorem surjective (n : ℤ) [X.IsStrictlyGE n] [X.IsStrictlyLE n] [Y.IsStrictlyGE n] : |
| 37 | Function.Surjective (DerivedCategory.Q.map : (X ⟶ Y) → _) := by |
| 38 | intro f |
| 39 | obtain ⟨Z, _, _, s, _, g, hf⟩ := |
| 40 | DerivedCategory.right_fac_of_isStrictlyLE_of_isStrictlyGE n n f |
| 41 | have : IsIso s := concentrated_isIso n s |
| 42 | exact ⟨inv s ≫ g, by simp only [Functor.map_comp, Functor.map_inv, hf]⟩ |
| 43 | |
| 44 | omit [HasDerivedCategory.{w} C] in |
| 45 | theorem homology_injective (n : ℤ) [X.IsStrictlyGE n] [X.IsStrictlyLE n] [Y.IsStrictlyGE n] : |
| 46 | Function.Injective (fun f : X ⟶ Y => HomologicalComplex.homologyMap f n) := by |
| 47 | have : IsIso (X.iCycles n) := X.isIso_iCycles n (n + 1) (by simp) |
| 48 | ((X.isZero_of_isStrictlyLE n (n + 1) (by omega)).eq_of_tgt _ _) |
| 49 | have : IsIso (Y.homologyπ n) := Y.isIso_homologyπ (n - 1) n (by simp) |
| 50 | ((Y.isZero_of_isStrictlyGE n (n - 1) (by omega)).eq_of_src _ _) |
| 51 | intro f g h |
| 52 | dsimp only at h |
| 53 | have hc : HomologicalComplex.cyclesMap f n = HomologicalComplex.cyclesMap g n := by |
| 54 | rw [← cancel_mono (Y.homologyπ n), ← HomologicalComplex.homologyπ_naturality, |
| 55 | ← HomologicalComplex.homologyπ_naturality, h] |
| 56 | apply HomologicalComplex.Hom.ext |
| 57 | funext i |
| 58 | rcases lt_trichotomy i n with hi | hi | hi |
| 59 | · exact (X.isZero_of_isStrictlyGE n i hi).eq_of_src _ _ |
| 60 | · subst i |
| 61 | rw [← cancel_epi (X.iCycles n), ← HomologicalComplex.cyclesMap_i, |
| 62 | ← HomologicalComplex.cyclesMap_i, hc] |
| 63 | · exact (X.isZero_of_isStrictlyLE n i hi).eq_of_src _ _ |
| 64 | |
| 65 | theorem injective (n : ℤ) [X.IsStrictlyGE n] [X.IsStrictlyLE n] [Y.IsStrictlyGE n] : |
| 66 | Function.Injective (DerivedCategory.Q.map : (X ⟶ Y) → _) := by |
| 67 | intro f g h |
| 68 | apply homology_injective n |
| 69 | have hf := NatIso.naturality_1 (DerivedCategory.homologyFunctorFactors C n) f |
| 70 | have hg := NatIso.naturality_1 (DerivedCategory.homologyFunctorFactors C n) g |
| 71 | change (HomologicalComplex.homologyFunctor C (.up ℤ) n).map f = |
| 72 | (HomologicalComplex.homologyFunctor C (.up ℤ) n).map g |
| 73 | rw [← hf, ← hg] |
| 74 | simp only [Functor.comp_map, h] |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.GeometricComparison.ConnectiveDerivedIs.ConnectiveDerivedMaps |