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.AbelianModuli.HilbertConstruction.TopologicalSheafRestriction |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.Ab |
| 3 | |
| 4 | /-! # Two Open Sections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TwoOpenSections.IntrinsicCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual section sequence for two open subsets is left exact. It is short exact for flasque sheaves. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 12 | universe u |
| 13 | variable {X : TopCat.{u}} (F : TopCat.Sheaf AddCommGrpCat.{u} X) (U V : Opens X) |
| 14 | |
| 15 | def twoOpenSectionsRestriction : F.obj.obj (op (U ⊔ V)) →+ |
| 16 | (F.obj.obj (op U) × F.obj.obj (op V)) := |
| 17 | (F.obj.map (homOfLE le_sup_left).op).hom.prod |
| 18 | (F.obj.map (homOfLE le_sup_right).op).hom |
| 19 | |
| 20 | def twoOpenSectionsDifference : (F.obj.obj (op U) × F.obj.obj (op V)) →+ |
| 21 | F.obj.obj (op (U ⊓ V)) := |
| 22 | ((F.obj.map (homOfLE inf_le_left).op).hom.comp (AddMonoidHom.fst _ _)) - |
| 23 | ((F.obj.map (homOfLE inf_le_right).op).hom.comp (AddMonoidHom.snd _ _)) |
| 24 | |
| 25 | theorem twoOpenSectionsRestriction_naturality |
| 26 | {G : TopCat.Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 27 | (x : F.obj.obj (op (U ⊔ V))) : |
| 28 | twoOpenSectionsRestriction G U V (f.hom.app (op (U ⊔ V)) x) = |
| 29 | (f.hom.app (op U) (twoOpenSectionsRestriction F U V x).1, |
| 30 | f.hom.app (op V) (twoOpenSectionsRestriction F U V x).2) := by |
| 31 | apply Prod.ext |
| 32 | · exact (ConcreteCategory.congr_hom (f.hom.naturality (homOfLE le_sup_left).op) x).symm |
| 33 | · exact (ConcreteCategory.congr_hom (f.hom.naturality (homOfLE le_sup_right).op) x).symm |
| 34 | |
| 35 | theorem twoOpenSectionsDifference_naturality |
| 36 | {G : TopCat.Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 37 | (x : F.obj.obj (op U) × F.obj.obj (op V)) : |
| 38 | f.hom.app (op (U ⊓ V)) (twoOpenSectionsDifference F U V x) = |
| 39 | twoOpenSectionsDifference G U V (f.hom.app (op U) x.1, f.hom.app (op V) x.2) := by |
| 40 | change f.hom.app (op (U ⊓ V)) |
| 41 | (F.obj.map (homOfLE inf_le_left).op x.1 - F.obj.map (homOfLE inf_le_right).op x.2) = |
| 42 | G.obj.map (homOfLE inf_le_left).op (f.hom.app (op U) x.1) - |
| 43 | G.obj.map (homOfLE inf_le_right).op (f.hom.app (op V) x.2) |
| 44 | rw [map_sub] |
| 45 | exact congrArg₂ (fun a b => a - b) |
| 46 | (ConcreteCategory.congr_hom (f.hom.naturality (homOfLE inf_le_left).op) x.1) |
| 47 | (ConcreteCategory.congr_hom (f.hom.naturality (homOfLE inf_le_right).op) x.2) |
| 48 | |
| 49 | theorem twoOpenSections_comp (x : F.obj.obj (op (U ⊔ V))) : |
| 50 | twoOpenSectionsDifference F U V (twoOpenSectionsRestriction F U V x) = 0 := by |
| 51 | change F.obj.map (homOfLE inf_le_left).op |
| 52 | (F.obj.map (homOfLE le_sup_left).op x) - |
| 53 | F.obj.map (homOfLE inf_le_right).op |
| 54 | (F.obj.map (homOfLE le_sup_right).op x) = 0 |
| 55 | rw [sub_eq_zero] |
| 56 | simp only [← ConcreteCategory.comp_apply, ← F.obj.map_comp] |
| 57 | exact congrArg (fun k => F.obj.map k x) (Subsingleton.elim _ _) |
| 58 | |
| 59 | def twoOpenSectionsShortComplex : ShortComplex AddCommGrpCat.{u} := |
| 60 | ShortComplex.mk (AddCommGrpCat.ofHom (twoOpenSectionsRestriction F U V)) |
| 61 | (AddCommGrpCat.ofHom (twoOpenSectionsDifference F U V)) (by |
| 62 | ext x |
| 63 | exact twoOpenSections_comp F U V x) |
| 64 | |
| 65 | theorem twoOpenSectionsRestriction_injective : Function.Injective (twoOpenSectionsRestriction F U V) := by |
| 66 | intro x y hxy |
| 67 | have hu := congrArg Prod.fst hxy |
| 68 | have hv := congrArg Prod.snd hxy |
| 69 | apply TopCat.Presheaf.IsSheaf.section_ext F.property |
| 70 | intro z hz |
| 71 | rcases hz with hz | hz |
| 72 | · exact ⟨U, le_sup_left, hz, hu⟩ |
| 73 | · exact ⟨V, le_sup_right, hz, hv⟩ |
| 74 | |
| 75 | theorem twoOpenSections_exact : (twoOpenSectionsShortComplex F U V).Exact := by |
| 76 | rw [ShortComplex.ab_exact_iff] |
| 77 | rintro ⟨x, y⟩ hxy |
| 78 | have h : F.obj.map (homOfLE inf_le_left).op x = |
| 79 | F.obj.map (homOfLE inf_le_right).op y := sub_eq_zero.mp hxy |
| 80 | have h' : F.obj.map (homOfLE (show V ⊓ U ≤ V from inf_le_left)).op y = |
| 81 | F.obj.map (homOfLE (show V ⊓ U ≤ U from inf_le_right)).op x := by |
| 82 | have hh := congrArg (F.obj.map (homOfLE (show V ⊓ U ≤ U ⊓ V by rw [inf_comm])).op) h |
| 83 | have hleft : F.obj.map (homOfLE (show V ⊓ U ≤ U ⊓ V by rw [inf_comm])).op |
| 84 | (F.obj.map (homOfLE inf_le_right).op y) = |
| 85 | F.obj.map (homOfLE (show V ⊓ U ≤ V from inf_le_left)).op y := by |
| 86 | rw [← ConcreteCategory.comp_apply, ← F.obj.map_comp] |
| 87 | exact congrArg (fun k => F.obj.map k y) (Subsingleton.elim _ _) |
| 88 | have hright : F.obj.map (homOfLE (show V ⊓ U ≤ U ⊓ V by rw [inf_comm])).op |
| 89 | (F.obj.map (homOfLE inf_le_left).op x) = |
| 90 | F.obj.map (homOfLE (show V ⊓ U ≤ U from inf_le_right)).op x := by |
| 91 | rw [← ConcreteCategory.comp_apply, ← F.obj.map_comp] |
| 92 | exact congrArg (fun k => F.obj.map k x) (Subsingleton.elim _ _) |
| 93 | exact hleft.symm.trans (hh.symm.trans hright) |
| 94 | let W : Fin 2 → Opens X := ![U, V] |
| 95 | let sf : (i : Fin 2) → F.obj.obj (op (W i)) |
| 96 | | 0 => x |
| 97 | | 1 => y |
| 98 | have hcomp : TopCat.Presheaf.IsCompatible F.obj W sf := by |
| 99 | intro i j |
| 100 | fin_cases i <;> fin_cases j |
| 101 | · rfl |
| 102 | · exact h |
| 103 | · exact h' |
| 104 | · rfl |
| 105 | let inclusions (i : Fin 2) : W i ⟶ U ⊔ V := |
| 106 | homOfLE (by |
| 107 | fin_cases i |
| 108 | · exact le_sup_left |
| 109 | · exact le_sup_right) |
| 110 | obtain ⟨z, hz, _⟩ := F.existsUnique_gluing' W (U ⊔ V) inclusions |
| 111 | (sup_le (le_iSup W (0 : Fin 2)) (le_iSup W (1 : Fin 2))) sf hcomp |
| 112 | exact ⟨z, Prod.ext (hz 0) (hz 1)⟩ |
| 113 | |
| 114 | theorem twoOpenSectionsDifference_surjective [F.IsFlasque] : |
| 115 | Function.Surjective (twoOpenSectionsDifference F U V) := by |
| 116 | intro z |
| 117 | obtain ⟨x, hx⟩ := (AddCommGrpCat.epi_iff_surjective |
| 118 | (F.obj.map (homOfLE (show U ⊓ V ≤ U from inf_le_left)).op)).mp inferInstance z |
| 119 | refine ⟨(x, 0), ?_⟩ |
| 120 | change F.obj.map (homOfLE inf_le_left).op x - F.obj.map (homOfLE inf_le_right).op 0 = z |
| 121 | rw [map_zero, sub_zero] |
| 122 | exact hx |
| 123 | |
| 124 | theorem twoOpenSections_shortExact [F.IsFlasque] : (twoOpenSectionsShortComplex F U V).ShortExact := by |
| 125 | have : Mono (twoOpenSectionsShortComplex F U V).f := |
| 126 | (AddCommGrpCat.mono_iff_injective _).mpr (twoOpenSectionsRestriction_injective F U V) |
| 127 | have : Epi (twoOpenSectionsShortComplex F U V).g := |
| 128 | (AddCommGrpCat.epi_iff_surjective _).mpr (twoOpenSectionsDifference_surjective F U V) |
| 129 | exact { exact := twoOpenSections_exact F U V } |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TwoOpenSections.IntrinsicCech |