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 Mathlib |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.ExtIsomorphism |
| 3 | |
| 4 | /-! # Zariski Homeomorphism -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ZariskiHomeomorphism |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: Zariski sheaf transport across a homeomorphism in different universes |
| 12 | |
| 13 | The opens equivalence preserves the actual point-covering topology. |
| 14 | Consequently its sheaf equivalence applies even when the underlying |
| 15 | space has been lifted into the larger crystalline coefficient universe. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 19 | |
| 20 | universe u v a b t |
| 21 | |
| 22 | variable {X : Type u} {Y : Type v} [TopologicalSpace X] [TopologicalSpace Y] |
| 23 | (h : X ≃ₜ Y) |
| 24 | |
| 25 | abbrev opensEquiv : Opens X ≌ Opens Y := h.opensCongr.equivalence |
| 26 | |
| 27 | instance functor_dense : (opensEquiv h).functor.IsDenseSubsite |
| 28 | (Opens.grothendieckTopology X) (Opens.grothendieckTopology Y) where |
| 29 | functorPushforward_mem_iff := by |
| 30 | intro U S |
| 31 | constructor |
| 32 | · intro hS x hx |
| 33 | have hx' : h x ∈ (opensEquiv h).functor.obj U := by |
| 34 | change h.symm (h x) ∈ U |
| 35 | simpa only [h.symm_apply_apply] using hx |
| 36 | obtain ⟨V, _, ⟨W, c, d, hc, _⟩, hV⟩ := hS (h x) hx' |
| 37 | refine ⟨W, c, hc, ?_⟩ |
| 38 | have hxW := (leOfHom d) hV |
| 39 | change h.symm (h x) ∈ W at hxW |
| 40 | simpa only [h.symm_apply_apply] using hxW |
| 41 | · intro hS y hy |
| 42 | change h.symm y ∈ U at hy |
| 43 | obtain ⟨W, c, hc, hW⟩ := hS (h.symm y) hy |
| 44 | exact ⟨(opensEquiv h).functor.obj W, (opensEquiv h).functor.map c, |
| 45 | ⟨W, c, 𝟙 _, hc, rfl⟩, hW⟩ |
| 46 | |
| 47 | instance inverse_dense : (opensEquiv h).inverse.IsDenseSubsite |
| 48 | (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X) := |
| 49 | functor_dense h.symm |
| 50 | |
| 51 | def sheafEquiv (A : Type a) [Category.{b} A] : |
| 52 | Sheaf (Opens.grothendieckTopology X) A ≌ Sheaf (Opens.grothendieckTopology Y) A := |
| 53 | (opensEquiv h).sheafCongr _ _ A |
| 54 | |
| 55 | variable (A : Type a) [Category.{b} A] [Abelian A] |
| 56 | |
| 57 | instance sheafEquiv_additive : (sheafEquiv h A).functor.Additive where |
| 58 | map_add := by |
| 59 | intro M N f g |
| 60 | apply Sheaf.hom_ext |
| 61 | ext U |
| 62 | rfl |
| 63 | |
| 64 | variable [HasLimitsOfSize.{max u v, max u v} A] |
| 65 | [HasSheafify (Opens.grothendieckTopology X) A] |
| 66 | [HasSheafify (Opens.grothendieckTopology Y) A] |
| 67 | |
| 68 | def constantTransport (M : A) : |
| 69 | (sheafEquiv h A).functor.obj ((constantSheaf (Opens.grothendieckTopology X) A).obj M) ≅ |
| 70 | (constantSheaf (Opens.grothendieckTopology Y) A).obj M := by |
| 71 | letI : ∀ U : (Opens X)ᵒᵖ, |
| 72 | HasLimitsOfShape (StructuredArrow U (opensEquiv h).inverse.op) A := |
| 73 | fun U => HasLimitsOfShape.of_small.{max u v, max u v} A _ |
| 74 | exact ((opensEquiv h).inverse.pushforwardContinuousSheafificationCompatibility A |
| 75 | (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X)).symm.app |
| 76 | ((Functor.const _).obj M) |
| 77 | |
| 78 | variable [HasExt.{t} (Sheaf (Opens.grothendieckTopology X) A)] |
| 79 | [HasExt.{t} (Sheaf (Opens.grothendieckTopology Y) A)] |
| 80 | [EnoughInjectives (Sheaf (Opens.grothendieckTopology X) A)] |
| 81 | |
| 82 | def extEquiv (M N : Sheaf (Opens.grothendieckTopology X) A) (n : ℕ) : |
| 83 | Abelian.Ext.{t} M N n ≃+ |
| 84 | Abelian.Ext.{t} ((sheafEquiv h A).functor.obj M) ((sheafEquiv h A).functor.obj N) n := |
| 85 | AddEquiv.ofBijective ((sheafEquiv h A).functor.mapExtAddHom M N n) |
| 86 | ((sheafEquiv h A).functor.mapExt_bijective_of_preservesInjectiveObjects M N n) |
| 87 | |
| 88 | def cohomologyEquiv (M : A) (N : Sheaf (Opens.grothendieckTopology X) A) (n : ℕ) : |
| 89 | Abelian.Ext.{t} ((constantSheaf (Opens.grothendieckTopology X) A).obj M) N n ≃+ |
| 90 | Abelian.Ext.{t} ((constantSheaf (Opens.grothendieckTopology Y) A).obj M) |
| 91 | ((sheafEquiv h A).functor.obj N) n := |
| 92 | (extEquiv h A ((constantSheaf (Opens.grothendieckTopology X) A).obj M) N n).trans |
| 93 | (Independent.ExtIsomorphism.sourceEquiv (constantTransport h A M) ((sheafEquiv h A).functor.obj N) n) |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ZariskiHomeomorphism |