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 | import Mathlib.RingTheory.RingHom.StandardSmooth |
| 3 | |
| 4 | /-! # Spec Scalar Transport -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Transport from global functions on Spec to the actual scalar ring |
| 12 | |
| 13 | A morphism to `Spec K` induces a map from `Γ(Spec K, ⊤)` on each open's |
| 14 | sections. Composing with the canonical, proved inverse `K → Γ(Spec K, ⊤)` |
| 15 | gives the intended scalar structure. Standard smooth relative dimension is |
| 16 | unchanged, and the resulting affine structure morphism agrees with the |
| 17 | restriction of the original scheme morphism. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {K : Type u} [CommRing K] {X : Scheme.{u}} |
| 25 | |
| 26 | /-- The actual scalar homomorphism on sections of a scheme over `Spec K`. -/ |
| 27 | def specSectionScalarMap (f : X ⟶ Spec (.of K)) (U : X.Opens) : K →+* Γ(X, U) := |
| 28 | (f.appLE ⊤ U le_top).hom.comp (Scheme.ΓSpecIso (.of K)).inv.hom |
| 29 | |
| 30 | /-- The `K`-algebra structure induced by the actual structure morphism. -/ |
| 31 | abbrev specSectionScalarAlgebra (f : X ⟶ Spec (.of K)) (U : X.Opens) : |
| 32 | Algebra K Γ(X, U) := |
| 33 | (specSectionScalarMap f U).toAlgebra |
| 34 | |
| 35 | /-- Replacing `Γ(Spec K, ⊤)` by `K` through its canonical isomorphism preserves |
| 36 | standard smoothness with its exact relative dimension. -/ |
| 37 | theorem specSectionScalarMap_standardSmooth_iff (d : ℕ) |
| 38 | (f : X ⟶ Spec (.of K)) (U : X.Opens) : |
| 39 | RingHom.IsStandardSmoothOfRelativeDimension d (specSectionScalarMap f U) ↔ |
| 40 | RingHom.IsStandardSmoothOfRelativeDimension d (f.appLE ⊤ U le_top).hom := by |
| 41 | exact (RingHom.isStandardSmoothOfRelativeDimension_respectsIso (n := d)).cancel_left_isIso |
| 42 | (Scheme.ΓSpecIso (.of K)).inv (f.appLE ⊤ U le_top) |
| 43 | |
| 44 | /-- The same transport stated directly for the two explicit algebra structures. -/ |
| 45 | theorem specSectionScalarAlgebra_standardSmooth_iff (d : ℕ) |
| 46 | (f : X ⟶ Spec (.of K)) (U : X.Opens) : |
| 47 | letI := (f.appLE ⊤ U le_top).hom.toAlgebra |
| 48 | letI := specSectionScalarAlgebra f U |
| 49 | Algebra.IsStandardSmoothOfRelativeDimension d K Γ(X, U) ↔ |
| 50 | Algebra.IsStandardSmoothOfRelativeDimension d Γ(Spec (.of K), ⊤) Γ(X, U) := by |
| 51 | exact specSectionScalarMap_standardSmooth_iff d f U |
| 52 | |
| 53 | /-- A standard smooth chart over the global functions of `Spec K` is therefore |
| 54 | standard smooth of the same dimension over the intended scalar ring. -/ |
| 55 | theorem specSectionScalarAlgebra_standardSmooth (d : ℕ) |
| 56 | (f : X ⟶ Spec (.of K)) (U : X.Opens) |
| 57 | (h : RingHom.IsStandardSmoothOfRelativeDimension d (f.appLE ⊤ U le_top).hom) : |
| 58 | letI := specSectionScalarAlgebra f U |
| 59 | Algebra.IsStandardSmoothOfRelativeDimension d K Γ(X, U) := |
| 60 | (specSectionScalarMap_standardSmooth_iff d f U).mpr h |
| 61 | |
| 62 | /-- On an actual affine open, the transported scalar algebra's structural |
| 63 | morphism is exactly the original structural morphism restricted to that open. -/ |
| 64 | theorem specSectionScalarMap_fromSpec (f : X ⟶ Spec (.of K)) |
| 65 | (U : X.Opens) (hU : IsAffineOpen U) : |
| 66 | Spec.map (CommRingCat.ofHom (specSectionScalarMap f U)) = hU.fromSpec ≫ f := by |
| 67 | simpa only [specSectionScalarMap, CommRingCat.ofHom_comp, Spec.map_comp, |
| 68 | CommRingCat.ofHom_hom, IsAffineOpen.fromSpec_top, Scheme.isoSpec_Spec_inv] using |
| 69 | (IsAffineOpen.SpecMap_appLE_fromSpec f (isAffineOpen_top (Spec (.of K))) hU le_top) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |