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.Morphisms.Proper |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.Generators |
| 3 | |
| 4 | /-! # Proper Affine Cover -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProperAffineCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: finite affine coordinates supplied by proper geometry |
| 12 | |
| 13 | Properness gives a finite affine cover. Its actual coordinate rings are |
| 14 | finite-type algebras over the ground field, so each chart has finitely |
| 15 | many polynomial generators. No cohomological finiteness is assumed. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {k : Type u} [Field k] {X : Scheme.{u}} |
| 23 | (f : X ⟶ Spec (CommRingCat.of k)) [IsProper f] |
| 24 | |
| 25 | include f in |
| 26 | theorem compact : CompactSpace X := QuasiCompact.compactSpace_of_compactSpace f |
| 27 | |
| 28 | def cover : X.OpenCover := by |
| 29 | let : CompactSpace X := compact f |
| 30 | exact X.affineCover.finiteSubcover |
| 31 | |
| 32 | instance cover_fintype : Fintype (cover f).I₀ := by |
| 33 | let : CompactSpace X := compact f |
| 34 | unfold cover |
| 35 | infer_instance |
| 36 | |
| 37 | instance chart_affine (i : (cover f).I₀) : IsAffine ((cover f).X i) := by |
| 38 | let : CompactSpace X := compact f |
| 39 | change X.affineCover.finiteSubcover.I₀ at i |
| 40 | change IsAffine (X.affineCover.finiteSubcover.X i) |
| 41 | exact Scheme.isAffine_affineCover X (X.affineCover.idx i.val) |
| 42 | |
| 43 | def coordinateRing (i : (cover f).I₀) : CommRingCat.{u} := Γ((cover f).X i, ⊤) |
| 44 | |
| 45 | def chartIso (i : (cover f).I₀) : (cover f).X i ≅ Spec (coordinateRing f i) := |
| 46 | ((cover f).X i).isoSpec |
| 47 | |
| 48 | def chartMap (i : (cover f).I₀) : Spec (coordinateRing f i) ⟶ X := |
| 49 | (chartIso f i).inv ≫ (cover f).f i |
| 50 | |
| 51 | instance chartMap_open (i : (cover f).I₀) : IsOpenImmersion (chartMap f i) := by |
| 52 | unfold chartMap |
| 53 | infer_instance |
| 54 | |
| 55 | theorem chartMap_range (i : (cover f).I₀) : |
| 56 | (chartMap f i).opensRange = ((cover f).f i).opensRange := |
| 57 | Scheme.Hom.opensRange_comp_of_isIso _ _ |
| 58 | |
| 59 | theorem chartMaps_cover : (⨆ i, (chartMap f i).opensRange) = ⊤ := by |
| 60 | simp_rw [chartMap_range] |
| 61 | exact (cover f).iSup_opensRange |
| 62 | |
| 63 | instance coordinateAlgebra (i : (cover f).I₀) : Algebra k (coordinateRing f i) := |
| 64 | (Spec.preimage (chartMap f i ≫ f)).hom.toAlgebra |
| 65 | |
| 66 | theorem chartMap_over (i : (cover f).I₀) : |
| 67 | chartMap f i ≫ f = Spec.map (CommRingCat.ofHom (algebraMap k (coordinateRing f i))) := |
| 68 | (Spec.map_preimage _).symm |
| 69 | |
| 70 | instance coordinate_finiteType (i : (cover f).I₀) : Algebra.FiniteType k (coordinateRing f i) := by |
| 71 | have h : LocallyOfFiniteType |
| 72 | (Spec.map (CommRingCat.ofHom (algebraMap k (coordinateRing f i)))) := by |
| 73 | rw [← chartMap_over f i] |
| 74 | infer_instance |
| 75 | exact (HasRingHomProperty.Spec_iff (P := @LocallyOfFiniteType)).mp h |
| 76 | |
| 77 | /-- Every chart in the finite proper cover has a finite polynomial presentation. -/ |
| 78 | theorem chart_generators (i : (cover f).I₀) : |
| 79 | ∃ (σ : Type u) (_ : Fintype σ) (x : σ → coordinateRing f i), |
| 80 | Function.Surjective (MvPolynomial.aeval x : MvPolynomial σ k →ₐ[k] coordinateRing f i) := |
| 81 | Finite.Generators.exists_generators k (coordinateRing f i) |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProperAffineCover |