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 | |
| 3 | /-! # Immersion Global Sections -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Open.ImmersionGlobalSections |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The canonical sections isomorphism of an open immersion commutes |
| 12 | with an actual map between open subfamilies of the same ambient scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem openImmersionTopSectionIso_inv {X Y : Scheme.{0}} (f : X ⟶ Y) [IsOpenImmersion f] : |
| 17 | (IsOpenImmersion.ΓIsoTop f).inv = f.appLE f.opensRange ⊤ (by rw [f.preimage_opensRange]) := by |
| 18 | simp only [IsOpenImmersion.ΓIsoTop, Iso.trans_inv, Functor.mapIso_inv, Iso.op_inv, |
| 19 | eqToIso.inv, eqToHom_op, Iso.symm_inv, Scheme.Hom.appIso_hom', Scheme.Hom.map_appLE] |
| 20 | |
| 21 | theorem openImmersionTopSectionIso_natural {X Y Z : Scheme.{0}} |
| 22 | (f : X ⟶ Y) (i : Y ⟶ Z) (j : X ⟶ Z) [IsOpenImmersion i] [IsOpenImmersion j] |
| 23 | (hf : f ≫ i = j) (h : j.opensRange ≤ i.opensRange) : |
| 24 | f.appTop ≫ (IsOpenImmersion.ΓIsoTop j).hom = |
| 25 | (IsOpenImmersion.ΓIsoTop i).hom ≫ Z.presheaf.map (homOfLE h).op := by |
| 26 | apply (cancel_epi (IsOpenImmersion.ΓIsoTop i).inv).mp |
| 27 | apply (cancel_mono (IsOpenImmersion.ΓIsoTop j).inv).mp |
| 28 | simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id, Iso.inv_hom_id_assoc] |
| 29 | have ei : (⊤ : Y.Opens) ≤ i ⁻¹ᵁ i.opensRange := by rw [i.preimage_opensRange] |
| 30 | have ef : (⊤ : X.Opens) ≤ f ⁻¹ᵁ (⊤ : Y.Opens) := le_top |
| 31 | have ej : (⊤ : X.Opens) ≤ j ⁻¹ᵁ j.opensRange := by rw [j.preimage_opensRange] |
| 32 | have ej' : (⊤ : X.Opens) ≤ j ⁻¹ᵁ i.opensRange := ej.trans (j.preimage_mono h) |
| 33 | have ht : f.appTop = f.appLE ⊤ ⊤ ef := (f.appLE_eq_app (U := ⊤)).symm |
| 34 | calc |
| 35 | (IsOpenImmersion.ΓIsoTop i).inv ≫ f.appTop = i.appLE i.opensRange ⊤ ei ≫ f.appLE ⊤ ⊤ ef := |
| 36 | congrArg₂ (· ≫ ·) (openImmersionTopSectionIso_inv i) ht |
| 37 | _ = (f ≫ i).appLE i.opensRange ⊤ (ef.trans ((TopologicalSpace.Opens.map f.base).map (homOfLE ei)).le) := |
| 38 | Scheme.Hom.appLE_comp_appLE f i i.opensRange ⊤ ⊤ ei ef |
| 39 | _ = j.appLE i.opensRange ⊤ ej' := by subst j; rfl |
| 40 | _ = Z.presheaf.map (homOfLE h).op ≫ j.appLE j.opensRange ⊤ ej := |
| 41 | (j.map_appLE ej (homOfLE h).op).symm |
| 42 | _ = Z.presheaf.map (homOfLE h).op ≫ (IsOpenImmersion.ΓIsoTop j).inv := |
| 43 | congrArg (fun q => Z.presheaf.map (homOfLE h).op ≫ q) (openImmersionTopSectionIso_inv j).symm |
| 44 | |
| 45 | end |
| 46 | |
| 47 | /-! The actual global-section isomorphism of an open immersion |
| 48 | sends pullbacks of global functions to their ordinary restrictions. -/ |
| 49 | |
| 50 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 51 | |
| 52 | theorem openImmersionTopSection_global {X Y : Scheme.{0}} (f : X ⟶ Y) [IsOpenImmersion f] |
| 53 | (s : Γ(Y, ⊤)) : |
| 54 | (IsOpenImmersion.ΓIsoTop f).hom (f.appTop s) = |
| 55 | Y.presheaf.map (homOfLE (show f.opensRange ≤ ⊤ from le_top)).op s := by |
| 56 | have ef : (⊤ : X.Opens) ≤ f ⁻¹ᵁ f.opensRange := by rw [f.preimage_opensRange] |
| 57 | have h : Y.presheaf.map (homOfLE (show f.opensRange ≤ ⊤ from le_top)).op ≫ |
| 58 | (IsOpenImmersion.ΓIsoTop f).inv = f.appTop := by |
| 59 | calc |
| 60 | _ = Y.presheaf.map (homOfLE (show f.opensRange ≤ ⊤ from le_top)).op ≫ f.appLE f.opensRange ⊤ ef := |
| 61 | congrArg (fun q => Y.presheaf.map (homOfLE (show f.opensRange ≤ ⊤ from le_top)).op ≫ q) |
| 62 | (openImmersionTopSectionIso_inv f) |
| 63 | _ = f.appLE ⊤ ⊤ (ef.trans ((TopologicalSpace.Opens.map f.base).map (homOfLE le_top)).le) := |
| 64 | f.map_appLE ef (homOfLE le_top).op |
| 65 | _ = f.appTop := f.appLE_eq_app |
| 66 | have he : f.appTop ≫ (IsOpenImmersion.ΓIsoTop f).hom = |
| 67 | Y.presheaf.map (homOfLE (show f.opensRange ≤ ⊤ from le_top)).op := by |
| 68 | apply (cancel_mono (IsOpenImmersion.ΓIsoTop f).inv).mp |
| 69 | rw [Category.assoc, Iso.hom_inv_id, Category.comp_id] |
| 70 | exact h.symm |
| 71 | exact ConcreteCategory.congr_hom he s |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Open.ImmersionGlobalSections |