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.Crystalline.Cohomology.ProperAffineCharts |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 3 | |
| 4 | /-! # Proper Cech Intersections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.ProperCechIntersections.CrystallineProperCechIntersections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Every Čech intersection of the proper affine cover has finite coordinates |
| 12 | |
| 13 | Properness gives a finite affine cover and separatedness makes every |
| 14 | nonempty finite intersection of its members affine. These are the actual |
| 15 | opens occurring in the Čech complex, with their original maps to the |
| 16 | special fibre and their constructed finite-type coordinate rings. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (k : Type u) [Field k] (X : Over (Spec (CommRingCat.of k))) [IsProper X.hom] |
| 24 | |
| 25 | abbrev Index := ProperAffineCharts.CrystallineProperAffineCharts.Index k X |
| 26 | |
| 27 | def opens (i : Index k X) : X.left.Opens := |
| 28 | (ProperAffineCharts.CrystallineProperAffineCharts.inclusion k X i).left.opensRange |
| 29 | |
| 30 | theorem covering : iSup (opens k X) = ⊤ := ProperAffineCharts.CrystallineProperAffineCharts.covering k X |
| 31 | |
| 32 | local instance separated : IsSeparated (terminal.from X.left) := by |
| 33 | rw [← terminal.comp_from X.hom] |
| 34 | infer_instance |
| 35 | |
| 36 | theorem affine_open (i : Index k X) : IsAffineOpen (opens k X i) := by |
| 37 | have : IsAffine (ProperAffineCharts.CrystallineProperAffineCharts.chart k X i).left := by |
| 38 | change IsAffine (Spec (CommRingCat.of (ProperAffineCharts.CrystallineProperAffineCharts.coordinateRing k X i))) |
| 39 | infer_instance |
| 40 | exact isAffineOpen_opensRange (ProperAffineCharts.CrystallineProperAffineCharts.inclusion k X i).left |
| 41 | |
| 42 | variable (n : ℕ) (t : Fin (n + 1) → Index k X) |
| 43 | |
| 44 | def intersection : X.left.Opens := ∏ᶜ (opens k X ∘ t) |
| 45 | |
| 46 | theorem intersection_eq_iInf : intersection k X n t = ⨅ j, opens k X (t j) := by |
| 47 | apply le_antisymm |
| 48 | · exact le_iInf (fun j => leOfHom (Pi.π (opens k X ∘ t) j)) |
| 49 | · exact leOfHom (Pi.lift (fun j => homOfLE (iInf_le (fun j => opens k X (t j)) j))) |
| 50 | |
| 51 | theorem intersection_affineOpen : IsAffineOpen (intersection k X n t) := by |
| 52 | rw [intersection_eq_iInf] |
| 53 | exact IsAffineOpen.iInf (fun j => affine_open k X (t j)) |
| 54 | |
| 55 | instance intersection_affine : IsAffine (intersection k X n t).toScheme := |
| 56 | intersection_affineOpen k X n t |
| 57 | |
| 58 | def coordinateRing : CommRingCat.{u} := Γ((intersection k X n t).toScheme, ⊤) |
| 59 | |
| 60 | def chartIso : (intersection k X n t).toScheme ≅ Spec (coordinateRing k X n t) := |
| 61 | (intersection k X n t).toScheme.isoSpec |
| 62 | |
| 63 | def chartMap : Spec (coordinateRing k X n t) ⟶ X.left := |
| 64 | (chartIso k X n t).inv ≫ (intersection k X n t).ι |
| 65 | |
| 66 | instance chartMap_open : IsOpenImmersion (chartMap k X n t) := by |
| 67 | unfold chartMap |
| 68 | infer_instance |
| 69 | |
| 70 | theorem chartMap_range : (chartMap k X n t).opensRange = intersection k X n t := |
| 71 | (Scheme.Hom.opensRange_comp_of_isIso _ _).trans (Scheme.Opens.opensRange_ι _) |
| 72 | |
| 73 | instance coordinateAlgebra : Algebra k (coordinateRing k X n t) := |
| 74 | (Spec.preimage (chartMap k X n t ≫ X.hom)).hom.toAlgebra |
| 75 | |
| 76 | theorem chartMap_over : chartMap k X n t ≫ X.hom = |
| 77 | Spec.map (CommRingCat.ofHom (algebraMap k (coordinateRing k X n t))) := |
| 78 | (Spec.map_preimage _).symm |
| 79 | |
| 80 | instance coordinate_finiteType : Algebra.FiniteType k (coordinateRing k X n t) := by |
| 81 | have h : LocallyOfFiniteType |
| 82 | (Spec.map (CommRingCat.ofHom (algebraMap k (coordinateRing k X n t)))) := by |
| 83 | rw [← chartMap_over] |
| 84 | infer_instance |
| 85 | exact (HasRingHomProperty.Spec_iff (P := @LocallyOfFiniteType)).mp h |
| 86 | |
| 87 | def chart : Over (Spec (CommRingCat.of k)) := |
| 88 | AffineFrameCover.CrystallineAffineFrameCover.affineScheme k (coordinateRing k X n t) |
| 89 | |
| 90 | def inclusion : chart k X n t ⟶ X := Over.homMk (chartMap k X n t) (chartMap_over k X n t) |
| 91 | |
| 92 | instance inclusion_open : IsOpenImmersion (inclusion k X n t).left := chartMap_open k X n t |
| 93 | |
| 94 | variable (p : ℕ) [Fact p.Prime] [CharP k p] |
| 95 | |
| 96 | def integralComparison (q : ℕ) : |
| 97 | (Finite.Affine.FiniteAffineCrystalline.complex p k (coordinateRing k X n t)).homology q ≅ |
| 98 | ModuleCat.of (Site.CoefficientRing p k) |
| 99 | (Site.integralCohomology p k (chart k X n t) q) := |
| 100 | Finite.Affine.FiniteAffineCrystalline.homologyIso p k (coordinateRing k X n t) q |
| 101 | |
| 102 | def rationalComparison [PerfectRing k p] (q : ℕ) : |
| 103 | (Cohomology.Affine.RationalComparison.AffineRationalCrystallineComparison.complex p k (coordinateRing k X n t)).homology q ≅ |
| 104 | Site.rationalCohomology p k (chart k X n t) q := |
| 105 | Cohomology.Affine.RationalComparison.AffineRationalCrystallineComparison.homologyIso p k (coordinateRing k X n t) q |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.ProperCechIntersections.CrystallineProperCechIntersections |