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.Comparison.Betti.Godement.Functor |
| 2 | |
| 3 | /-! # Supported Extension -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Godement.SupportedExtension |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual extension by zero of stalk families, and compatibility with a |
| 10 | sheaf differential when the section vanishes on the complementary open set. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 13 | |
| 14 | variable {X : TopCat.{0}} {F G : TopCat.Sheaf (ModuleCat.{0} ℂ) X} |
| 15 | |
| 16 | def extendFamily (U : Opens X) (s : (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.obj (op U)) : |
| 17 | (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.obj (op ⊤) := by |
| 18 | classical |
| 19 | exact fun x => if hx : x.val ∈ U then s ⟨x.val, hx⟩ else 0 |
| 20 | |
| 21 | theorem extendFamily_restrict (U : Opens X) (s : (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.obj (op U)) : |
| 22 | (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.map (homOfLE (show U ≤ ⊤ from le_top)).op (extendFamily U s) = s := by |
| 23 | classical |
| 24 | funext x |
| 25 | exact dite_eq_left x.property |
| 26 | |
| 27 | theorem extendFamily_zero (U V : Opens X) (s : (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.obj (op U)) |
| 28 | (hs : ∀ x : U, x.val ∈ V → s x = 0) : |
| 29 | (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.map (homOfLE (show V ≤ ⊤ from le_top)).op (extendFamily U s) = 0 := by |
| 30 | classical |
| 31 | funext x |
| 32 | change (if hx : x.val ∈ U then s ⟨x.val, hx⟩ else (0 : F.presheaf.stalk x.val)) = 0 |
| 33 | split_ifs with hx |
| 34 | · exact hs ⟨x.val, hx⟩ x.property |
| 35 | · rfl |
| 36 | |
| 37 | theorem map_extendFamily_eq (d : HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F ⟶ HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf G) |
| 38 | (U V : Opens X) (hcover : U ⊔ V = ⊤) |
| 39 | (s : (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.obj (op U)) |
| 40 | (b : (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf G).obj.obj (op ⊤)) |
| 41 | (hs : ∀ x : U, x.val ∈ V → s x = 0) |
| 42 | (hb : (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf G).obj.map (homOfLE (show V ≤ ⊤ from le_top)).op b = 0) |
| 43 | (hd : d.hom.app (op U) s = |
| 44 | (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf G).obj.map (homOfLE (show U ≤ ⊤ from le_top)).op b) : |
| 45 | d.hom.app (op ⊤) (extendFamily U s) = b := by |
| 46 | funext x |
| 47 | have hx : x.val ∈ U ⊔ V := by rw [hcover]; trivial |
| 48 | rcases hx with hx | hx |
| 49 | · have hnat := ConcreteCategory.congr_hom |
| 50 | (d.hom.naturality (homOfLE (show U ≤ ⊤ from le_top)).op) (extendFamily U s) |
| 51 | change d.hom.app (op U) |
| 52 | ((HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.map (homOfLE (show U ≤ ⊤ from le_top)).op (extendFamily U s)) = |
| 53 | (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf G).obj.map (homOfLE (show U ≤ ⊤ from le_top)).op |
| 54 | (d.hom.app (op ⊤) (extendFamily U s)) at hnat |
| 55 | rw [extendFamily_restrict, hd] at hnat |
| 56 | exact (congrFun hnat ⟨x.val, hx⟩).symm |
| 57 | · have hnat := ConcreteCategory.congr_hom |
| 58 | (d.hom.naturality (homOfLE (show V ≤ ⊤ from le_top)).op) (extendFamily U s) |
| 59 | change d.hom.app (op V) |
| 60 | ((HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf F).obj.map (homOfLE (show V ≤ ⊤ from le_top)).op (extendFamily U s)) = |
| 61 | (HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions.stalkFamilySheaf G).obj.map (homOfLE (show V ≤ ⊤ from le_top)).op |
| 62 | (d.hom.app (op ⊤) (extendFamily U s)) at hnat |
| 63 | rw [extendFamily_zero U V s hs, map_zero] at hnat |
| 64 | exact (congrFun hnat ⟨x.val, hx⟩).symm.trans (congrFun hb ⟨x.val, hx⟩).symm |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.Comparison.Betti.Godement.SupportedExtension |