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.FormalGeometry.Completion.ExtensionTransition |
| 2 | import Mathlib.CategoryTheory.Functor.OfSequence |
| 3 | |
| 4 | /-! # Ext Inverse Limit -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ExtInverseLimit.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: degree-one detection by an inverse system of coefficients |
| 12 | |
| 13 | Surjectivity of transitions on degree-zero morphisms permits compatible |
| 14 | splittings of coefficient pushouts. Their differences reconstruct a |
| 15 | retraction through the coefficient limit, which kills the original Ext¹ class. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Limits Abelian Opposite |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | universe u v w |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{w} C] |
| 26 | |
| 27 | /-- An extension splits if its coefficient pushouts split and the coefficient |
| 28 | system has surjective degree-zero transitions. -/ |
| 29 | theorem extClass_eq_zero_of_inverseLimit (S : ShortComplex C) (hS : S.ShortExact) |
| 30 | (F : ℕᵒᵖ ⥤ C) (q : (Functor.const ℕᵒᵖ).obj S.X₁ ⟶ F) |
| 31 | (hq : IsLimit (Cone.mk S.X₁ q)) |
| 32 | (hsurj : ∀ n, Function.Surjective |
| 33 | (fun d : S.X₃ ⟶ F.obj (op (n + 1)) => d ≫ F.map (homOfLE (Nat.le_succ n)).op)) |
| 34 | (hvan : ∀ n, hS.extClass.comp (Ext.mk₀ (q.app (op n))) (add_zero 1) = 0) : |
| 35 | hS.extClass = 0 := by |
| 36 | let T (n : ℕ) := ExtPushout.Construction.pushoutExtensionComplex S (q.app (op n)) |
| 37 | have hT (n : ℕ) : (T n).ShortExact := ExtPushout.Construction.pushoutExtensionComplex_shortExact hS _ |
| 38 | have : ∀ n, Mono (T n).f := fun n => (hT n).mono_f |
| 39 | let j (n : ℕ) : S.X₂ ⟶ (T n).X₂ := pushout.inl S.f (q.app (op n)) |
| 40 | have hjg (n : ℕ) : j n ≫ (T n).g = S.g := pushout.inl_desc _ _ _ |
| 41 | let r (n : ℕ) := F.map (homOfLE (Nat.le_succ n)).op |
| 42 | have hqstep (n : ℕ) : q.app (op (n + 1)) ≫ r n = q.app (op n) := by |
| 43 | simpa [r] using (q.naturality (homOfLE (Nat.le_succ n)).op).symm |
| 44 | let e (n : ℕ) : (T (n + 1)).X₂ ⟶ (T n).X₂ := |
| 45 | ExtensionTransition.Construction.pushoutExtensionTransition S _ _ (r n) (hqstep n) |
| 46 | have heg (n : ℕ) : e n ≫ (T n).g = (T (n + 1)).g := |
| 47 | ExtensionTransition.Construction.pushoutExtensionTransition_g S _ _ _ _ |
| 48 | have hje (n : ℕ) : j (n + 1) ≫ e n = j n := ExtensionTransition.Construction.pushoutExtensionTransition_inl S _ _ _ _ |
| 49 | let Spl (n : ℕ) := {s : S.X₃ ⟶ (T n).X₂ // s ≫ (T n).g = 𝟙 _} |
| 50 | have hSpl (n : ℕ) : Nonempty (Spl n) := by |
| 51 | obtain ⟨s, hs⟩ := (ExtPushout.Construction.extClass_coefficientMap_eq_zero_iff hS (q.app (op n))).mp (hvan n) |
| 52 | exact ⟨s, hs⟩ |
| 53 | let step (n : ℕ) : Spl (n + 1) → Spl n := fun s => |
| 54 | ⟨s.val ≫ e n, by rw [Category.assoc, heg, s.property]⟩ |
| 55 | have hstep (n : ℕ) : Function.Surjective (step n) := by |
| 56 | intro s |
| 57 | let t := Classical.choice (hSpl (n + 1)) |
| 58 | obtain ⟨t', ht', hts⟩ := ExtensionTransition.Construction.exists_compatible_pushout_section S _ _ (r n) (hqstep n) |
| 59 | hS (hsurj n) t.val t.property s.val s.property |
| 60 | exact ⟨⟨t', ht'⟩, Subtype.ext hts⟩ |
| 61 | let s : ∀ n, Spl n := fun n => Nat.rec (Classical.choice (hSpl 0)) |
| 62 | (fun n s => (hstep n s).choose) n |
| 63 | have hs (n : ℕ) : (s (n + 1)).val ≫ e n = (s n).val := |
| 64 | congrArg Subtype.val (hstep n (s n)).choose_spec |
| 65 | let d (n : ℕ) : S.X₂ ⟶ (T n).X₂ := |
| 66 | j n - S.g ≫ (s n).val |
| 67 | have hd (n : ℕ) : d n ≫ (T n).g = 0 := by |
| 68 | simp only [d, Preadditive.sub_comp, hjg, Category.assoc, (s n).property, |
| 69 | Category.comp_id, sub_self] |
| 70 | let ρ (n : ℕ) : S.X₂ ⟶ F.obj (op n) := |
| 71 | (KernelFork.IsLimit.lift' (hT n).exact.fIsKernel (d n) (hd n)).val |
| 72 | have hρ (n : ℕ) : ρ n ≫ (T n).f = d n := |
| 73 | (KernelFork.IsLimit.lift' (hT n).exact.fIsKernel (d n) (hd n)).property |
| 74 | have hρstep (n : ℕ) : ρ (n + 1) ≫ r n = ρ n := by |
| 75 | have : Mono (T n).f := (hT n).mono_f |
| 76 | apply (cancel_mono (T n).f).mp |
| 77 | rw [Category.assoc] |
| 78 | change ρ (n + 1) ≫ r n ≫ pushout.inr S.f (q.app (op n)) = _ |
| 79 | rw [← ExtensionTransition.Construction.pushoutExtensionTransition_inr S _ _ (r n) (hqstep n), ← Category.assoc] |
| 80 | change (ρ (n + 1) ≫ (T (n + 1)).f) ≫ e n = ρ n ≫ (T n).f |
| 81 | rw [hρ, hρ] |
| 82 | simp only [d, Preadditive.sub_comp, Category.assoc, hs, hje] |
| 83 | let ρcone : Cone F := ⟨S.X₂, NatTrans.ofOpSequence ρ (by |
| 84 | intro n |
| 85 | simpa [r] using (hρstep n).symm)⟩ |
| 86 | let ret := hq.lift ρcone |
| 87 | have hret (n : ℕ) : ret ≫ q.app (op n) = ρ n := hq.fac ρcone (op n) |
| 88 | apply ExtensionTransition.Construction.extClass_eq_zero_of_retraction S hS ret |
| 89 | apply hq.hom_ext |
| 90 | intro n |
| 91 | change (S.f ≫ ret) ≫ q.app n = (𝟙 S.X₁) ≫ q.app n |
| 92 | rw [Category.assoc, hret n.unop, Category.id_comp] |
| 93 | have : Mono (T n.unop).f := (hT n.unop).mono_f |
| 94 | apply (cancel_mono (T n.unop).f).mp |
| 95 | rw [Category.assoc, hρ] |
| 96 | simp only [d, Preadditive.comp_sub, ← Category.assoc, S.zero, zero_comp, sub_zero] |
| 97 | exact pushout.condition |
| 98 | |
| 99 | /-- Actual Ext¹ classes are detected by this inverse system of coefficients. -/ |
| 100 | theorem ext_one_eq_zero_of_inverseLimit [EnoughInjectives C] |
| 101 | (F : ℕᵒᵖ ⥤ C) (c : Cone F) (hc : IsLimit c) (X : C) |
| 102 | (hsurj : ∀ n, Function.Surjective |
| 103 | (fun d : X ⟶ F.obj (op (n + 1)) => d ≫ F.map (homOfLE (Nat.le_succ n)).op)) |
| 104 | (x : Ext X c.pt 1) |
| 105 | (hx : ∀ n, x.comp (Ext.mk₀ (c.π.app (op n))) (add_zero 1) = 0) : x = 0 := by |
| 106 | obtain ⟨E, i, p, h, hS, he⟩ := ExtExtensions.Construction.ext_one_exists_shortExact x |
| 107 | rw [← he] |
| 108 | exact extClass_eq_zero_of_inverseLimit (ShortComplex.mk i p h) hS F c.π hc hsurj |
| 109 | (fun n => he ▸ hx n) |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ExtInverseLimit.Construction |