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.OpenModule.MapImageValues |
| 2 | |
| 3 | /-! # Map Composition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OpenModule.MapComposition |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Ambient values are unchanged by restricting a local module map to a smaller open subscheme. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X Y Z : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ Z) |
| 16 | variable [IsOpenImmersion f] [IsOpenImmersion g] {M N : Z.Modules} |
| 17 | |
| 18 | def restrictOpenModuleMap (φ : M.restrict g ⟶ N.restrict g) : |
| 19 | M.restrict (f ≫ g) ⟶ N.restrict (f ≫ g) := |
| 20 | (Scheme.Modules.restrictFunctorComp f g).hom.app M ≫ |
| 21 | (Scheme.Modules.restrictFunctor f).map φ ≫ (Scheme.Modules.restrictFunctorComp f g).inv.app N |
| 22 | |
| 23 | theorem restrictOpenModuleMap_app (φ : M.restrict g ⟶ N.restrict g) (W : X.Opens) : |
| 24 | (restrictOpenModuleMap f g φ).app W = |
| 25 | M.presheaf.map (eqToHom (Scheme.Hom.comp_image f g W).symm).op ≫ |
| 26 | φ.app (f ''ᵁ W) ≫ N.presheaf.map (eqToHom (Scheme.Hom.comp_image f g W)).op := rfl |
| 27 | |
| 28 | theorem openModuleMapValue_comp_image (φ : M.restrict g ⟶ N.restrict g) |
| 29 | (W : X.Opens) (s : Γ(M, (f ≫ g) ''ᵁ W)) : |
| 30 | MapValues.openModuleMapValue (f ≫ g) (restrictOpenModuleMap f g φ) ((f ≫ g) ''ᵁ W) |
| 31 | ((f ≫ g).image_le_opensRange W) s = |
| 32 | MapValues.openModuleMapValue g φ ((f ≫ g) ''ᵁ W) |
| 33 | ((Scheme.Hom.comp_image f g W).trans_le (g.image_le_opensRange (f ''ᵁ W))) s := by |
| 34 | let h := (Scheme.Hom.comp_image f g W).symm.le |
| 35 | let eN := N.presheaf.mapIso (eqToIso (Scheme.Hom.comp_image f g W).symm).op |
| 36 | have : IsIso (homOfLE h) := homOfLE_isIso_of_eq h (Scheme.Hom.comp_image f g W).symm |
| 37 | have : IsIso (N.presheaf.map (homOfLE h).op) := N.presheaf.map_isIso _ |
| 38 | apply (ConcreteCategory.bijective_of_isIso (N.presheaf.map (homOfLE h).op)).1 |
| 39 | rw [MapImageValues.openModuleMapValue_image] |
| 40 | have hn := MapValues.openModuleMapValue_natural g φ h |
| 41 | ((Scheme.Hom.comp_image f g W).trans_le (g.image_le_opensRange (f ''ᵁ W))) |
| 42 | (g.image_le_opensRange (f ''ᵁ W)) s |
| 43 | rw [← hn, MapImageValues.openModuleMapValue_image, restrictOpenModuleMap_app] |
| 44 | change eN.hom (eN.inv (φ.app (f ''ᵁ W) |
| 45 | (M.presheaf.map (homOfLE h).op s))) = φ.app (f ''ᵁ W) (M.presheaf.map (homOfLE h).op s) |
| 46 | exact ConcreteCategory.congr_hom eN.inv_hom_id _ |
| 47 | |
| 48 | theorem openModuleMapValue_comp (φ : M.restrict g ⟶ N.restrict g) |
| 49 | (U : Z.Opens) (hU : U ≤ (f ≫ g).opensRange) : |
| 50 | MapValues.openModuleMapValue (f ≫ g) (restrictOpenModuleMap f g φ) U hU = |
| 51 | MapValues.openModuleMapValue g φ U (hU.trans (by |
| 52 | rw [Scheme.Hom.opensRange_comp] |
| 53 | exact g.image_le_opensRange f.opensRange)) := by |
| 54 | have he : (f ≫ g) ''ᵁ (f ≫ g) ⁻¹ᵁ U = U := |
| 55 | ((f ≫ g).image_preimage_eq_opensRange_inf U).trans (inf_eq_right.mpr hU) |
| 56 | have H : ∀ h₁ : (f ≫ g) ''ᵁ (f ≫ g) ⁻¹ᵁ U ≤ (f ≫ g).opensRange, |
| 57 | ∀ h₂ : (f ≫ g) ''ᵁ (f ≫ g) ⁻¹ᵁ U ≤ g.opensRange, |
| 58 | MapValues.openModuleMapValue (f ≫ g) (restrictOpenModuleMap f g φ) |
| 59 | ((f ≫ g) ''ᵁ (f ≫ g) ⁻¹ᵁ U) h₁ = |
| 60 | MapValues.openModuleMapValue g φ ((f ≫ g) ''ᵁ (f ≫ g) ⁻¹ᵁ U) h₂ := by |
| 61 | intro h₁ h₂ |
| 62 | apply LinearMap.ext |
| 63 | intro s |
| 64 | exact openModuleMapValue_comp_image f g φ ((f ≫ g) ⁻¹ᵁ U) s |
| 65 | have H' := (congrArg (fun V : Z.Opens => ∀ h₁ : V ≤ (f ≫ g).opensRange, |
| 66 | ∀ h₂ : V ≤ g.opensRange, |
| 67 | MapValues.openModuleMapValue (f ≫ g) (restrictOpenModuleMap f g φ) V h₁ = |
| 68 | MapValues.openModuleMapValue g φ V h₂) he).mp H |
| 69 | exact H' hU _ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OpenModule.MapComposition |