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.RepresentationTheory.Theta.Geometric.StandardSmoothLocalization |
| 2 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.BaseAlgebraPoints |
| 4 | |
| 5 | /-! # Spec Localization Properties -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Geometric.SpecLocalizationProperties |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The standard smooth localization properties hold for the literal |
| 12 | global functions on its spectrum, with the canonical geometric scalar map. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory KaehlerDifferential |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | @[instance_reducible] |
| 20 | def specGlobalAlgebra (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] : |
| 21 | Algebra R Γ(Spec (.of S), ⊤) := |
| 22 | ((Scheme.ΓSpecIso (.of S)).inv.hom.comp (algebraMap R S)).toAlgebra |
| 23 | |
| 24 | def specGlobalAlgebraEquiv (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] : |
| 25 | letI := specGlobalAlgebra R S |
| 26 | S ≃ₐ[R] Γ(Spec (.of S), ⊤) := by |
| 27 | letI := specGlobalAlgebra R S |
| 28 | exact { __ := (Scheme.ΓSpecIso (.of S)).commRingCatIsoToRingEquiv.symm, commutes' := fun _ => rfl } |
| 29 | |
| 30 | theorem specGlobalAlgebra_geometric (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] (r : R) : |
| 31 | (Spec.map (CommRingCat.ofHom (algebraMap R S))).appTop ((Scheme.ΓSpecIso (.of R)).inv r) = |
| 32 | (Scheme.ΓSpecIso (.of S)).inv (algebraMap R S r) := |
| 33 | ConcreteCategory.congr_hom (Scheme.ΓSpecIso_inv_naturality (CommRingCat.ofHom (algebraMap R S))).symm r |
| 34 | |
| 35 | theorem specGlobalAlgebra_pointMap (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] : |
| 36 | OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.BaseAlgebraPoints.Construction.globalRingPointEquiv (Spec (.of S)) (.of R) |
| 37 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) = |
| 38 | (Scheme.ΓSpecIso (.of S)).inv.hom.comp (algebraMap R S) := by |
| 39 | ext r |
| 40 | exact specGlobalAlgebra_geometric R S r |
| 41 | |
| 42 | theorem standardSmooth_spec_localization_properties |
| 43 | {R P S : Type u} [CommRing R] [CommRing P] [CommRing S] |
| 44 | [Algebra R P] [Algebra R S] [Algebra P S] [IsScalarTower R P S] |
| 45 | [Nontrivial S] (W : Submonoid P) [IsLocalization W S] |
| 46 | (n : ℕ) [Algebra.IsStandardSmoothOfRelativeDimension n R P] : |
| 47 | letI := specGlobalAlgebra R S |
| 48 | Algebra.FormallySmooth R Γ(Spec (.of S), ⊤) ∧ Module.Flat R Γ(Spec (.of S), ⊤) ∧ |
| 49 | Module.Free Γ(Spec (.of S), ⊤) Ω[Γ(Spec (.of S), ⊤)⁄R] ∧ |
| 50 | Module.Finite Γ(Spec (.of S), ⊤) Ω[Γ(Spec (.of S), ⊤)⁄R] ∧ |
| 51 | Module.finrank Γ(Spec (.of S), ⊤) Ω[Γ(Spec (.of S), ⊤)⁄R] = n := by |
| 52 | let := specGlobalAlgebra R S |
| 53 | let := specGlobalAlgebra P S |
| 54 | have : Nontrivial Γ(Spec (.of S), ⊤) := |
| 55 | RingHom.domain_nontrivial (Scheme.ΓSpecIso (.of S)).hom.hom |
| 56 | have : IsScalarTower R P Γ(Spec (.of S), ⊤) := IsScalarTower.of_algebraMap_eq (by |
| 57 | intro r |
| 58 | change (Scheme.ΓSpecIso (.of S)).inv (algebraMap R S r) = |
| 59 | (Scheme.ΓSpecIso (.of S)).inv (algebraMap P S (algebraMap R P r)) |
| 60 | rw [IsScalarTower.algebraMap_apply R P S]) |
| 61 | have : IsLocalization W Γ(Spec (.of S), ⊤) := |
| 62 | IsLocalization.isLocalization_of_algEquiv W (specGlobalAlgebraEquiv P S) |
| 63 | exact StandardSmoothLocalization.standardSmooth_localization_properties W n |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.RepresentationTheory.Theta.Geometric.SpecLocalizationProperties |