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.AffineScheme |
| 2 | |
| 3 | /-! # Affine Chart Section Coordinates -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Geometric.AffineChartSectionCoordinates |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Regular-function coordinates under actual affine scheme maps. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | theorem specMap_section_naturality {R S : Type} [CommRing R] [CommRing S] |
| 16 | (f : R →+* S) (r : Γ(Spec (.of R), ⊤)) : |
| 17 | (Scheme.ΓSpecIso (.of S)).hom ((Spec.map (CommRingCat.ofHom f)).appTop r) = |
| 18 | f ((Scheme.ΓSpecIso (.of R)).hom r) := |
| 19 | ConcreteCategory.congr_hom (Scheme.ΓSpecIso_naturality (CommRingCat.ofHom f)) r |
| 20 | |
| 21 | theorem specMap_appTop_injective {R S : Type} [CommRing R] [CommRing S] |
| 22 | (f : R →+* S) (hf : Function.Injective f) : |
| 23 | Function.Injective (Spec.map (CommRingCat.ofHom f)).appTop := by |
| 24 | intro a b hab |
| 25 | apply (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (.of R)).hom).injective |
| 26 | apply hf |
| 27 | exact (specMap_section_naturality f a).symm.trans |
| 28 | ((congrArg (Scheme.ΓSpecIso (.of S)).hom hab).trans (specMap_section_naturality f b)) |
| 29 | |
| 30 | theorem specMap_pair_comp_of_ring_eq {A R S : Type} [CommRing A] [CommRing R] [CommRing S] |
| 31 | (i : A →+* R) (f g : R →+* S) (h : f.comp i = g.comp i) : |
| 32 | Spec.map (CommRingCat.ofHom f) ≫ Spec.map (CommRingCat.ofHom i) = |
| 33 | Spec.map (CommRingCat.ofHom g) ≫ Spec.map (CommRingCat.ofHom i) := by |
| 34 | have h' : CommRingCat.ofHom i ≫ CommRingCat.ofHom f = |
| 35 | CommRingCat.ofHom i ≫ CommRingCat.ofHom g := congrArg CommRingCat.ofHom h |
| 36 | exact (Spec.map_comp (CommRingCat.ofHom i) (CommRingCat.ofHom f)).symm.trans |
| 37 | ((congrArg Spec.map h').trans (Spec.map_comp (CommRingCat.ofHom i) (CommRingCat.ofHom g))) |
| 38 | |
| 39 | end |
| 40 | |
| 41 | /-! The actual global sections and units of an affine scheme are |
| 42 | identified with its chosen coordinate ring, naturally in chart maps. -/ |
| 43 | |
| 44 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 45 | |
| 46 | def affineChartSectionEquiv {X : Scheme} {R : Type} [CommRing R] |
| 47 | (e : X ≅ Spec (.of R)) : Γ(X, ⊤) ≃+* R := by |
| 48 | have : IsIso e.inv.appTop := inferInstanceAs (IsIso (Scheme.Γ.map e.inv.op)) |
| 49 | exact (asIso e.inv.appTop ≪≫ Scheme.ΓSpecIso (.of R)).commRingCatIsoToRingEquiv |
| 50 | |
| 51 | theorem affineChartSectionEquiv_apply {X : Scheme} {R : Type} [CommRing R] |
| 52 | (e : X ≅ Spec (.of R)) (r : Γ(X, ⊤)) : |
| 53 | affineChartSectionEquiv e r = (Scheme.ΓSpecIso (.of R)).hom (e.inv.appTop r) := rfl |
| 54 | |
| 55 | theorem affineChartSectionEquiv_natural |
| 56 | {X Y : Scheme} {R S : Type} [CommRing R] [CommRing S] |
| 57 | (eX : X ≅ Spec (.of R)) (eY : Y ≅ Spec (.of S)) |
| 58 | (b : X ⟶ Y) (f : S →+* R) |
| 59 | (hb : eX.hom ≫ Spec.map (CommRingCat.ofHom f) = b ≫ eY.hom) (r : Γ(Y, ⊤)) : |
| 60 | affineChartSectionEquiv eX (b.appTop r) = f (affineChartSectionEquiv eY r) := by |
| 61 | have hh : eX.inv ≫ b = Spec.map (CommRingCat.ofHom f) ≫ eY.inv := by |
| 62 | apply (cancel_mono eY.hom).mp |
| 63 | rw [Category.assoc, ← hb, Iso.inv_hom_id_assoc, Category.assoc, |
| 64 | Iso.inv_hom_id, Category.comp_id] |
| 65 | calc |
| 66 | affineChartSectionEquiv eX (b.appTop r) = |
| 67 | (Scheme.ΓSpecIso (.of R)).hom ((eX.inv ≫ b).appTop r) := rfl |
| 68 | _ = (Scheme.ΓSpecIso (.of R)).hom |
| 69 | ((Spec.map (CommRingCat.ofHom f)).appTop (eY.inv.appTop r)) := by rw [hh]; rfl |
| 70 | _ = f (affineChartSectionEquiv eY r) := specMap_section_naturality f _ |
| 71 | |
| 72 | theorem affineChartUnitEquiv_natural |
| 73 | {X Y : Scheme} {R S : Type} [CommRing R] [CommRing S] |
| 74 | (eX : X ≅ Spec (.of R)) (eY : Y ≅ Spec (.of S)) |
| 75 | (b : X ⟶ Y) (f : S →+* R) |
| 76 | (hb : eX.hom ≫ Spec.map (CommRingCat.ofHom f) = b ≫ eY.hom) (u : Γ(Y, ⊤)ˣ) : |
| 77 | Units.map (affineChartSectionEquiv eX).toMonoidHom (Units.map b.appTop.hom.toMonoidHom u) = |
| 78 | Units.map f.toMonoidHom (Units.map (affineChartSectionEquiv eY).toMonoidHom u) := by |
| 79 | apply Units.ext |
| 80 | exact affineChartSectionEquiv_natural eX eY b f hb (u : Γ(Y, ⊤)) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.RepresentationTheory.Theta.Geometric.AffineChartSectionCoordinates |