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 |
| 2 | |
| 3 | /-! # Integral Geometry -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.IntegralGeometry |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Actual integral-model geometry for crystalline comparison |
| 11 | |
| 12 | The ring of integers is the valuation ring of the spectral extension of the |
| 13 | p-adic norm to a finite extension K. Generic and special fibers are categorical |
| 14 | base changes. The model carries only a scheme and its structure morphism. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open scoped NNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (p : ℕ) [Fact p.Prime] |
| 23 | variable (K : Type u) [Field K] [Algebra ℚ_[p] K] [FiniteDimensional ℚ_[p] K] |
| 24 | |
| 25 | /-- The canonical extension of the p-adic valuation, expressed using the spectral norm. -/ |
| 26 | def fieldValuation : Valuation K ℝ≥0 := by |
| 27 | let _ : NormedField K := spectralNorm.normedField ℚ_[p] K |
| 28 | let _ : IsUltrametricDist K := |
| 29 | IsUltrametricDist.isUltrametricDist_of_forall_norm_add_le_max_norm |
| 30 | (isNonarchimedean_spectralNorm (K := ℚ_[p]) (L := K)) |
| 31 | exact (NormedField.toValued : Valued K ℝ≥0).v |
| 32 | |
| 33 | theorem fieldValuation_algebraMap (a : ℚ_[p]) : |
| 34 | fieldValuation p K (algebraMap ℚ_[p] K a) = ‖a‖₊ := by |
| 35 | apply NNReal.eq |
| 36 | exact spectralNorm_extends a |
| 37 | |
| 38 | theorem fieldValuation_p : fieldValuation p K (p : K) = (p : ℝ≥0)⁻¹ := by |
| 39 | rw [← map_natCast (algebraMap ℚ_[p] K), fieldValuation_algebraMap] |
| 40 | apply NNReal.eq |
| 41 | change ‖(p : ℚ_[p])‖ = (p : ℝ)⁻¹ |
| 42 | exact Padic.norm_p |
| 43 | |
| 44 | def ringOfIntegers : ValuationSubring K := (fieldValuation p K).valuationSubring |
| 45 | |
| 46 | abbrev ResidueField := IsLocalRing.ResidueField (ringOfIntegers p K) |
| 47 | |
| 48 | theorem p_mem_maximalIdeal : (p : ringOfIntegers p K) ∈ IsLocalRing.maximalIdeal (ringOfIntegers p K) := by |
| 49 | apply (Valuation.mem_maximalIdeal_iff K (fieldValuation p K)).mpr |
| 50 | change fieldValuation p K (p : K) < 1 |
| 51 | rw [fieldValuation_p] |
| 52 | exact inv_lt_one_of_one_lt₀ (by exact_mod_cast (Fact.out : p.Prime).one_lt) |
| 53 | |
| 54 | instance residueField_charP : CharP (IntegralGeometry.ResidueField p K) p := by |
| 55 | apply (CharP.charP_iff_prime_eq_zero (Fact.out : p.Prime)).mpr |
| 56 | rw [← map_natCast (IsLocalRing.residue (ringOfIntegers p K))] |
| 57 | exact (IsLocalRing.residue_eq_zero_iff _).mpr (p_mem_maximalIdeal p K) |
| 58 | |
| 59 | /-- An integral model is the actual scheme over Spec(O_K), without cohomological assumptions. -/ |
| 60 | abbrev IntegralModel := Over (Spec (.of (ringOfIntegers p K))) |
| 61 | |
| 62 | section BaseChange |
| 63 | |
| 64 | variable {S : Type u} [CommRing S] |
| 65 | |
| 66 | def fiberFunctor (f : ringOfIntegers p K →+* S) : |
| 67 | IntegralModel p K ⥤ Over (Spec (.of S)) := |
| 68 | Over.pullback (Scheme.Spec.map (CommRingCat.ofHom f).op) |
| 69 | |
| 70 | abbrev fiber (f : ringOfIntegers p K →+* S) (M : IntegralModel p K) : Scheme := |
| 71 | ((fiberFunctor p K f).obj M).left |
| 72 | |
| 73 | abbrev fiberStructureMap (f : ringOfIntegers p K →+* S) (M : IntegralModel p K) : |
| 74 | fiber p K f M ⟶ Spec (.of S) := ((fiberFunctor p K f).obj M).hom |
| 75 | |
| 76 | def fiberEndomorphism (f : ringOfIntegers p K →+* S) (M : IntegralModel p K) : |
| 77 | End M →* End ((fiberFunctor p K f).obj M) := |
| 78 | Functor.mapEnd M (fiberFunctor p K f) |
| 79 | |
| 80 | instance fiber_smooth (f : ringOfIntegers p K →+* S) (M : IntegralModel p K) [Smooth M.hom] : |
| 81 | Smooth (fiberStructureMap p K f M) := by |
| 82 | change Smooth (pullback.snd M.hom (Scheme.Spec.map (CommRingCat.ofHom f).op)) |
| 83 | infer_instance |
| 84 | |
| 85 | instance fiber_proper (f : ringOfIntegers p K →+* S) (M : IntegralModel p K) [IsProper M.hom] : |
| 86 | IsProper (fiberStructureMap p K f M) := by |
| 87 | change IsProper (pullback.snd M.hom (Scheme.Spec.map (CommRingCat.ofHom f).op)) |
| 88 | infer_instance |
| 89 | |
| 90 | end BaseChange |
| 91 | |
| 92 | def genericFiberFunctor : IntegralModel p K ⥤ Over (Spec (.of K)) := |
| 93 | fiberFunctor p K (algebraMap (ringOfIntegers p K) K) |
| 94 | |
| 95 | def specialFiberFunctor : IntegralModel p K ⥤ Over (Spec (.of (IntegralGeometry.ResidueField p K))) := |
| 96 | fiberFunctor p K (IsLocalRing.residue (ringOfIntegers p K)) |
| 97 | |
| 98 | abbrev genericFiber (M : IntegralModel p K) : Scheme := ((genericFiberFunctor p K).obj M).left |
| 99 | |
| 100 | abbrev specialFiber (M : IntegralModel p K) : Scheme := ((specialFiberFunctor p K).obj M).left |
| 101 | |
| 102 | def genericEndomorphism (M : IntegralModel p K) : End M →* End ((genericFiberFunctor p K).obj M) := |
| 103 | Functor.mapEnd M (genericFiberFunctor p K) |
| 104 | |
| 105 | def specialEndomorphism (M : IntegralModel p K) : End M →* End ((specialFiberFunctor p K).obj M) := |
| 106 | Functor.mapEnd M (specialFiberFunctor p K) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.IntegralGeometry |