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.ExtPushout |
| 2 | |
| 3 | /-! # Extension Transition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ExtensionTransition.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Completion: compatible splittings after a coefficient transition |
| 11 | |
| 12 | Pushouts of one extension form a compatible family under coefficient maps. |
| 13 | Surjectivity on coefficient-valued morphisms lifts a prescribed splitting |
| 14 | at one level to a compatible splitting at the next. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory Limits Abelian |
| 18 | |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | universe u v w |
| 23 | |
| 24 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 25 | (S : ShortComplex C) {A B : C} |
| 26 | (a : S.X₁ ⟶ A) (b : S.X₁ ⟶ B) (r : A ⟶ B) (hr : a ≫ r = b) |
| 27 | |
| 28 | /-- The map between two coefficient pushouts induced by a compatible transition. -/ |
| 29 | def pushoutExtensionTransition : |
| 30 | (ExtPushout.Construction.pushoutExtensionComplex S a).X₂ ⟶ (ExtPushout.Construction.pushoutExtensionComplex S b).X₂ := |
| 31 | pushout.desc (pushout.inl S.f b) (r ≫ pushout.inr S.f b) (by |
| 32 | rw [← Category.assoc, hr, ← pushout.condition]) |
| 33 | |
| 34 | @[reassoc (attr := simp)] |
| 35 | theorem pushoutExtensionTransition_inl : |
| 36 | pushout.inl S.f a ≫ pushoutExtensionTransition S a b r hr = pushout.inl S.f b := |
| 37 | pushout.inl_desc _ _ _ |
| 38 | |
| 39 | @[reassoc (attr := simp)] |
| 40 | theorem pushoutExtensionTransition_inr : |
| 41 | pushout.inr S.f a ≫ pushoutExtensionTransition S a b r hr = r ≫ pushout.inr S.f b := |
| 42 | pushout.inr_desc _ _ _ |
| 43 | |
| 44 | @[reassoc (attr := simp)] |
| 45 | theorem pushoutExtensionTransition_g : |
| 46 | pushoutExtensionTransition S a b r hr ≫ (ExtPushout.Construction.pushoutExtensionComplex S b).g = |
| 47 | (ExtPushout.Construction.pushoutExtensionComplex S a).g := by |
| 48 | apply pushout.hom_ext <;> simp [ExtPushout.Construction.pushoutExtensionComplex] |
| 49 | |
| 50 | /-- Lift a chosen splitting compatibly along a coefficient transition. -/ |
| 51 | theorem exists_compatible_pushout_section (hS : S.ShortExact) |
| 52 | (hlift : Function.Surjective (fun d : S.X₃ ⟶ A => d ≫ r)) |
| 53 | (sA : S.X₃ ⟶ (ExtPushout.Construction.pushoutExtensionComplex S a).X₂) |
| 54 | (hsA : sA ≫ (ExtPushout.Construction.pushoutExtensionComplex S a).g = 𝟙 _) |
| 55 | (sB : S.X₃ ⟶ (ExtPushout.Construction.pushoutExtensionComplex S b).X₂) |
| 56 | (hsB : sB ≫ (ExtPushout.Construction.pushoutExtensionComplex S b).g = 𝟙 _) : |
| 57 | ∃ s : S.X₃ ⟶ (ExtPushout.Construction.pushoutExtensionComplex S a).X₂, |
| 58 | s ≫ (ExtPushout.Construction.pushoutExtensionComplex S a).g = 𝟙 _ ∧ |
| 59 | s ≫ pushoutExtensionTransition S a b r hr = sB := by |
| 60 | let T := ExtPushout.Construction.pushoutExtensionComplex S b |
| 61 | have hT : T.ShortExact := ExtPushout.Construction.pushoutExtensionComplex_shortExact hS b |
| 62 | have : Mono T.f := hT.mono_f |
| 63 | let d := sB - sA ≫ pushoutExtensionTransition S a b r hr |
| 64 | have hd : d ≫ T.g = 0 := by |
| 65 | change (sB - sA ≫ pushoutExtensionTransition S a b r hr) ≫ |
| 66 | (ExtPushout.Construction.pushoutExtensionComplex S b).g = 0 |
| 67 | rw [Preadditive.sub_comp, Category.assoc, pushoutExtensionTransition_g, hsA, hsB, sub_self] |
| 68 | obtain ⟨e, he⟩ := KernelFork.IsLimit.lift' hT.exact.fIsKernel d hd |
| 69 | change e ≫ T.f = d at he |
| 70 | obtain ⟨e', he'⟩ := hlift e |
| 71 | change e' ≫ r = e at he' |
| 72 | refine ⟨sA + e' ≫ (ExtPushout.Construction.pushoutExtensionComplex S a).f, ?_, ?_⟩ |
| 73 | · simp only [Preadditive.add_comp, Category.assoc, |
| 74 | (ExtPushout.Construction.pushoutExtensionComplex S a).zero, comp_zero, hsA, add_zero] |
| 75 | · simp only [Preadditive.add_comp, Category.assoc] |
| 76 | change sA ≫ pushoutExtensionTransition S a b r hr + |
| 77 | e' ≫ pushout.inr S.f a ≫ pushoutExtensionTransition S a b r hr = sB |
| 78 | rw [pushoutExtensionTransition_inr, ← Category.assoc] |
| 79 | erw [he'] |
| 80 | change sA ≫ pushoutExtensionTransition S a b r hr + e ≫ T.f = sB |
| 81 | rw [he] |
| 82 | dsimp [d] |
| 83 | abel |
| 84 | |
| 85 | variable [HasExt.{w} C] |
| 86 | |
| 87 | /-- A retraction of the first map kills the extension class. -/ |
| 88 | theorem extClass_eq_zero_of_retraction (hS : S.ShortExact) |
| 89 | (r : S.X₂ ⟶ S.X₁) (hr : S.f ≫ r = 𝟙 _) : hS.extClass = 0 := by |
| 90 | have h := congrArg (fun z : Ext S.X₃ S.X₂ 1 => z.comp (Ext.mk₀ r) (add_zero 1)) |
| 91 | hS.extClass_comp |
| 92 | simpa only [Ext.comp_assoc_of_third_deg_zero, Ext.mk₀_comp_mk₀, hr, |
| 93 | Ext.comp_mk₀_id, Ext.zero_comp] using h |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ExtensionTransition.Construction |