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.AlgebraicGeometry.OpenImmersion |
| 2 | import Mathlib.AlgebraicGeometry.Restrict |
| 3 | |
| 4 | /-! # Range Section Pullback -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.CycleClass.Thom.Open.RangeSectionPullback.Constructions.Sections |
| 11 | |
| 12 | /-! Global sections on an open immersion's source give actual global |
| 13 | sections of its literal open range, with the native germ compatibility. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | variable {X Y : Scheme} (f : X ⟶ Y) [IsOpenImmersion f] |
| 21 | |
| 22 | theorem gammaIsoTop_inv : (IsOpenImmersion.ΓIsoTop f).inv = |
| 23 | f.appLE f.opensRange ⊤ (by rw [f.preimage_opensRange]) := by |
| 24 | simp only [IsOpenImmersion.ΓIsoTop, Iso.trans_inv, Functor.mapIso_inv, Iso.op_inv, |
| 25 | eqToIso.inv, eqToHom_op, Iso.symm_inv, Scheme.Hom.appIso_hom', Scheme.Hom.map_appLE] |
| 26 | |
| 27 | def rangeSection (s : Γ(X, ⊤)) : Γ(f.opensRange.toScheme, ⊤) := |
| 28 | f.opensRange.topIso.inv ((IsOpenImmersion.ΓIsoTop f).hom s) |
| 29 | |
| 30 | theorem rangeSection_topIso (s : Γ(X, ⊤)) : |
| 31 | f.opensRange.topIso.hom (rangeSection f s) = (IsOpenImmersion.ΓIsoTop f).hom s := |
| 32 | Iso.inv_hom_id_apply _ _ |
| 33 | |
| 34 | theorem rangeSection_germ (x : X) (s : Γ(X, ⊤)) : |
| 35 | f.stalkMap x (Y.presheaf.germ f.opensRange (f x) ⟨x, rfl⟩ |
| 36 | (f.opensRange.topIso.hom (rangeSection f s))) = X.presheaf.germ ⊤ x trivial s := by |
| 37 | rw [rangeSection_topIso] |
| 38 | have h : f.appLE f.opensRange ⊤ (by rw [f.preimage_opensRange]) ≫ X.presheaf.germ ⊤ x trivial = |
| 39 | Y.presheaf.germ f.opensRange (f x) ⟨x, rfl⟩ ≫ f.stalkMap x := by |
| 40 | rw [Scheme.Hom.appLE, Category.assoc, X.presheaf.germ_res, f.germ_stalkMap] |
| 41 | have he := ConcreteCategory.congr_hom h ((IsOpenImmersion.ΓIsoTop f).hom s) |
| 42 | rw [← gammaIsoTop_inv] at he |
| 43 | simpa only [CommRingCat.comp_apply, Iso.hom_inv_id_apply] using he.symm |
| 44 | |
| 45 | end AlgebraicGeometry.CycleClass.Thom.Open.RangeSectionPullback.Constructions.Sections |
| 46 | |
| 47 | namespace AlgebraicGeometry.CycleClass.Thom.Open.RangeSectionPullback.Constructions |
| 48 | |
| 49 | /-! Pullback through the actual isomorphism onto an open immersion's |
| 50 | range recovers the original global sections. -/ |
| 51 | |
| 52 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 53 | |
| 54 | open OAI.AlgebraicGeometry.CycleClass.Thom.Open.RangeSectionPullback.Constructions.Sections |
| 55 | |
| 56 | set_option backward.isDefEq.respectTransparency false |
| 57 | set_option backward.isDefEq.respectTransparency.types false |
| 58 | |
| 59 | variable {X Y : Scheme} (f : X ⟶ Y) [IsOpenImmersion f] |
| 60 | |
| 61 | theorem rangeIso_appTop : f.opensRange.topIso.inv ≫ f.isoOpensRange.hom.appTop = (IsOpenImmersion.ΓIsoTop f).inv := by |
| 62 | have ht : f.opensRange.topIso.inv = f.opensRange.ι.appLE f.opensRange ⊤ f.opensRange.ι_preimage_self.ge := by |
| 63 | simp only [Scheme.Opens.topIso_inv, Scheme.Opens.ι_appLE] |
| 64 | rfl |
| 65 | have hk : f.isoOpensRange.hom.appTop = f.isoOpensRange.hom.appLE ⊤ ⊤ (by rw [Scheme.Hom.preimage_top]) := by |
| 66 | simp [Scheme.Hom.appLE, Scheme.Hom.appTop] |
| 67 | rw [ht, hk, Scheme.Hom.appLE_comp_appLE] |
| 68 | simp only [Scheme.Hom.isoOpensRange_hom_ι, Sections.gammaIsoTop_inv] |
| 69 | |
| 70 | theorem rangeSection_pullback (s : Γ(X, ⊤)) : f.isoOpensRange.hom.appTop (Sections.rangeSection f s) = s := by |
| 71 | have h := ConcreteCategory.congr_hom (rangeIso_appTop f) ((IsOpenImmersion.ΓIsoTop f).hom s) |
| 72 | exact h.trans (Iso.hom_inv_id_apply _ s) |
| 73 | |
| 74 | end AlgebraicGeometry.CycleClass.Thom.Open.RangeSectionPullback.Constructions |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI |