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.NumberTheory.PadicHodge.IntegralComparison.Supported.ZeroComplement |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 3 | |
| 4 | /-! # Zero Complement Complex -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.ZeroComplementComplex |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A complex vanishing on the complement has a canonical supported |
| 11 | lift from every neighborhood, and its extension is the original global |
| 12 | complex map. This identity also holds on genuine cohomology. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.SectionsExcision |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u v w |
| 21 | variable {D : Type u} [Category.{v} D] [Abelian D] {X : TopCat.{w}} |
| 22 | (O U : Opens X) (hcover : U ⊔ O = ⊤) |
| 23 | (L : CochainComplex (Sheaf (Opens.grothendieckTopology X) D) ℕ) |
| 24 | |
| 25 | def globalInclusion := (NatTrans.mapHomologicalComplex (SectionsExcision.inclusion ⊤ O le_top) (.up ℕ)).app L |
| 26 | def localInclusion := (NatTrans.mapHomologicalComplex (SectionsExcision.inclusion U (U ⊓ O) inf_le_left) (.up ℕ)).app L |
| 27 | def restrictionMap := (NatTrans.mapHomologicalComplex (SectionsExcision.restriction ⊤ U le_top) (.up ℕ)).app L |
| 28 | def excisionMap := (NatTrans.mapHomologicalComplex (SectionsExcision.excision O U) (.up ℕ)).app L |
| 29 | |
| 30 | theorem excision_inclusion : excisionMap O U L ≫ localInclusion O U L = |
| 31 | globalInclusion O L ≫ restrictionMap U L := by |
| 32 | apply HomologicalComplex.Hom.ext |
| 33 | funext q |
| 34 | exact SectionsExcision.excision_inclusion O U (L.X q) |
| 35 | |
| 36 | variable (hO : ∀ q, IsZero ((L.X q).obj.obj (op O))) |
| 37 | |
| 38 | include hO in |
| 39 | theorem globalInclusion_isIso : IsIso (globalInclusion O L) := by |
| 40 | let : ∀ q, IsIso ((globalInclusion O L).f q) := fun q => |
| 41 | ZeroComplement.inclusion_isIso ⊤ O le_top (L.X q) (hO q) |
| 42 | exact HomologicalComplex.Hom.isIso_of_components _ |
| 43 | |
| 44 | def globalIso := @asIso _ _ _ _ (globalInclusion O L) (globalInclusion_isIso O L hO) |
| 45 | |
| 46 | def lift := (globalIso O L hO).inv ≫ excisionMap O U L |
| 47 | |
| 48 | theorem lift_inclusion : lift O U L hO ≫ localInclusion O U L = restrictionMap U L := by |
| 49 | rw [lift, Category.assoc, excision_inclusion] |
| 50 | exact (globalIso O L hO).inv_hom_id_assoc _ |
| 51 | |
| 52 | theorem lift_extension : lift O U L hO ≫ SectionsExcision.extensionComplex O U hcover L = 𝟙 _ := by |
| 53 | let e := (NatIso.mapHomologicalComplex (SectionsExcision.excisionIso (D := D) O U hcover) (.up ℕ)).app L |
| 54 | change ((globalIso O L hO).inv ≫ e.hom) ≫ (e.inv ≫ globalInclusion O L) = 𝟙 _ |
| 55 | simp only [Category.assoc, Iso.hom_inv_id_assoc] |
| 56 | exact (globalIso O L hO).inv_hom_id |
| 57 | |
| 58 | variable {M : CochainComplex (Sheaf (Opens.grothendieckTopology X) D) ℕ} (a : L ⟶ M) |
| 59 | |
| 60 | theorem map_extension : |
| 61 | (lift O U L hO ≫ ((SectionsExcision.supported U (U ⊓ O) inf_le_left).mapHomologicalComplex (.up ℕ)).map a) ≫ |
| 62 | SectionsExcision.extensionComplex O U hcover M = ((SectionsExcision.sections ⊤).mapHomologicalComplex (.up ℕ)).map a := by |
| 63 | have h := (NatTrans.mapHomologicalComplex (SectionsExcision.extension (D := D) O U hcover) (.up ℕ)).naturality a |
| 64 | change ((SectionsExcision.supported U (U ⊓ O) inf_le_left).mapHomologicalComplex (.up ℕ)).map a ≫ |
| 65 | SectionsExcision.extensionComplex O U hcover M = SectionsExcision.extensionComplex O U hcover L ≫ |
| 66 | ((SectionsExcision.sections ⊤).mapHomologicalComplex (.up ℕ)).map a at h |
| 67 | rw [Category.assoc, h, ← Category.assoc, lift_extension, Category.id_comp] |
| 68 | |
| 69 | theorem homology_extension (i : ℕ) : |
| 70 | HomologicalComplex.homologyMap (lift O U L hO) i ≫ |
| 71 | HomologicalComplex.homologyMap (SectionsExcision.extensionComplex O U hcover L) i = 𝟙 _ := by |
| 72 | simpa only [HomologicalComplex.homologyMap_comp, HomologicalComplex.homologyMap_id] using |
| 73 | congrArg (fun f => HomologicalComplex.homologyMap f i) (lift_extension O U hcover L hO) |
| 74 | |
| 75 | theorem homology_map_extension (i : ℕ) : |
| 76 | (HomologicalComplex.homologyMap (lift O U L hO) i ≫ |
| 77 | HomologicalComplex.homologyMap |
| 78 | (((SectionsExcision.supported U (U ⊓ O) inf_le_left).mapHomologicalComplex (.up ℕ)).map a) i) ≫ |
| 79 | HomologicalComplex.homologyMap (SectionsExcision.extensionComplex O U hcover M) i = |
| 80 | HomologicalComplex.homologyMap (((SectionsExcision.sections ⊤).mapHomologicalComplex (.up ℕ)).map a) i := by |
| 81 | simpa only [HomologicalComplex.homologyMap_comp] using |
| 82 | congrArg (fun f => HomologicalComplex.homologyMap f i) (map_extension O U hcover L hO a) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.ZeroComplementComplex |