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.NumberTheory.PadicHodge.IntegralComparison.Closed.PowerLift |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.FromOpenFrames |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ReindexedOpenFrameTransitions |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 5 | |
| 6 | /-! # Nilpotent Frame Transitions -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.NilpotentFrameTransitions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! An actual frame cocycle on the closed reduction lifts after a |
| 13 | p-power to the ambient p-nilpotent scheme. Affine pair and triple |
| 14 | intersections provide the canonical unit lifts. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | variable {X Y : Scheme.{u}} |
| 23 | |
| 24 | def restrictUnits (U V : X.Opens) (h : V ≤ U) : Γ(X, U)ˣ →* Γ(X, V)ˣ := |
| 25 | Units.map (X.presheaf.map (homOfLE h).op).hom.toMonoidHom |
| 26 | |
| 27 | theorem restrictUnits_comp (U V W : X.Opens) (hV : V ≤ U) (hW : W ≤ V) (a : Γ(X, U)ˣ) : |
| 28 | restrictUnits V W hW (restrictUnits U V hV a) = restrictUnits U W (hW.trans hV) a := by |
| 29 | apply Units.ext |
| 30 | exact (ConcreteCategory.congr_hom |
| 31 | (X.presheaf.map_comp (homOfLE hV).op (homOfLE hW).op) a.val).symm |
| 32 | |
| 33 | theorem restrictUnits_id (U : X.Opens) (a : Γ(X, U)ˣ) : restrictUnits U U le_rfl a = a := by |
| 34 | apply Units.ext |
| 35 | exact ConcreteCategory.congr_hom (X.presheaf.map_id (Opposite.op U)) a.val |
| 36 | |
| 37 | variable (p : ℕ) [Fact p.Prime] (n : ℕ) (f : Y ⟶ X) [IsClosedImmersion f] |
| 38 | [X.IsSeparated] |
| 39 | (hn : ∀ V : X.Opens, (p : Γ(X, V)) ^ (n + 1) = 0) |
| 40 | (hker : ∀ (V : X.Opens) (_hV : IsAffineOpen V), |
| 41 | RingHom.ker (f.app V).hom = Ideal.span {(p : Γ(X, V))}) |
| 42 | {ι : Type u} (U : ι → X.Opens) (hU : ∀ i, IsAffineOpen (U i)) |
| 43 | (D : OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OpenFrame.Transitions.OpenFrameTransitions (fun i => f ⁻¹ᵁ U i)) |
| 44 | |
| 45 | def value (V : X.Opens) (i j : ι) (hi : V ≤ U i) (hj : V ≤ U j) : Γ(X, V)ˣ := |
| 46 | restrictUnits (U i ⊓ U j) V (le_inf hi hj) |
| 47 | (Closed.PowerLift.units p n f hn hker (U i ⊓ U j) ((hU i).inf (hU j)) |
| 48 | (D.value (f ⁻¹ᵁ (U i ⊓ U j)) i j |
| 49 | ((TopologicalSpace.Opens.map f.base).monotone inf_le_left) |
| 50 | ((TopologicalSpace.Opens.map f.base).monotone inf_le_right))) |
| 51 | |
| 52 | theorem value_restrict (V W : X.Opens) (h : W ≤ V) (i j : ι) |
| 53 | (hi : V ≤ U i) (hj : V ≤ U j) : |
| 54 | restrictUnits V W h (NilpotentFrameTransitions.value p n f hn hker U hU D V i j hi hj) = |
| 55 | NilpotentFrameTransitions.value p n f hn hker U hU D W i j (h.trans hi) (h.trans hj) := |
| 56 | restrictUnits_comp _ _ _ _ _ _ |
| 57 | |
| 58 | theorem value_eq_on (V : X.Opens) (i j : ι) (hi : V ≤ U i) (hj : V ≤ U j) |
| 59 | (W : X.Opens) (hW : IsAffineOpen W) (wi : W ≤ U i) (wj : W ≤ U j) (hVW : V ≤ W) : |
| 60 | NilpotentFrameTransitions.value p n f hn hker U hU D V i j hi hj = |
| 61 | restrictUnits W V hVW (Closed.PowerLift.units p n f hn hker W hW |
| 62 | (D.value (f ⁻¹ᵁ W) i j ((TopologicalSpace.Opens.map f.base).monotone wi) |
| 63 | ((TopologicalSpace.Opens.map f.base).monotone wj))) := by |
| 64 | unfold NilpotentFrameTransitions.value |
| 65 | rw [← restrictUnits_comp (U i ⊓ U j) W V (le_inf wi wj) hVW] |
| 66 | congr 1 |
| 67 | rw [restrictUnits, Closed.PowerLift.units_restriction p n f hn hker |
| 68 | (U i ⊓ U j) W ((hU i).inf (hU j)) hW (le_inf wi wj)] |
| 69 | congr 1 |
| 70 | apply Units.ext |
| 71 | exact D.restrict (f ⁻¹ᵁ (U i ⊓ U j)) (f ⁻¹ᵁ W) |
| 72 | ((TopologicalSpace.Opens.map f.base).monotone (le_inf wi wj)) i j |
| 73 | ((TopologicalSpace.Opens.map f.base).monotone inf_le_left) |
| 74 | ((TopologicalSpace.Opens.map f.base).monotone inf_le_right) |
| 75 | |
| 76 | theorem value_self (V : X.Opens) (i : ι) (hi : V ≤ U i) : |
| 77 | NilpotentFrameTransitions.value p n f hn hker U hU D V i i hi hi = 1 := by |
| 78 | rw [value_eq_on p n f hn hker U hU D V i i hi hi (U i) (hU i) le_rfl le_rfl hi, |
| 79 | D.self, map_one, map_one] |
| 80 | |
| 81 | theorem value_affine (V : X.Opens) (hV : IsAffineOpen V) (i j : ι) |
| 82 | (hi : V ≤ U i) (hj : V ≤ U j) : |
| 83 | NilpotentFrameTransitions.value p n f hn hker U hU D V i j hi hj = |
| 84 | Closed.PowerLift.units p n f hn hker V hV |
| 85 | (D.value (f ⁻¹ᵁ V) i j ((TopologicalSpace.Opens.map f.base).monotone hi) |
| 86 | ((TopologicalSpace.Opens.map f.base).monotone hj)) := by |
| 87 | rw [value_eq_on p n f hn hker U hU D V i j hi hj V hV hi hj le_rfl, restrictUnits_id] |
| 88 | |
| 89 | theorem value_comp (V : X.Opens) (i j k : ι) |
| 90 | (hi : V ≤ U i) (hj : V ≤ U j) (hk : V ≤ U k) : |
| 91 | NilpotentFrameTransitions.value p n f hn hker U hU D V i j hi hj * NilpotentFrameTransitions.value p n f hn hker U hU D V j k hj hk = |
| 92 | NilpotentFrameTransitions.value p n f hn hker U hU D V i k hi hk := by |
| 93 | let W := (U i ⊓ U j) ⊓ U k |
| 94 | have hW : IsAffineOpen W := ((hU i).inf (hU j)).inf (hU k) |
| 95 | have wi : W ≤ U i := inf_le_left.trans inf_le_left |
| 96 | have wj : W ≤ U j := inf_le_left.trans inf_le_right |
| 97 | have wk : W ≤ U k := inf_le_right |
| 98 | have hVW : V ≤ W := le_inf (le_inf hi hj) hk |
| 99 | rw [value_eq_on p n f hn hker U hU D V i j hi hj W hW wi wj hVW, |
| 100 | value_eq_on p n f hn hker U hU D V j k hj hk W hW wj wk hVW, |
| 101 | value_eq_on p n f hn hker U hU D V i k hi hk W hW wi wk hVW, |
| 102 | ← map_mul, ← map_mul, D.comp] |
| 103 | |
| 104 | def transitions : OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OpenFrame.Transitions.OpenFrameTransitions U where |
| 105 | value := NilpotentFrameTransitions.value p n f hn hker U hU D |
| 106 | restrict V W h i j hi hj := congrArg Units.val |
| 107 | (value_restrict p n f hn hker U hU D V W h i j hi hj) |
| 108 | self := value_self p n f hn hker U hU D |
| 109 | comp := value_comp p n f hn hker U hU D |
| 110 | |
| 111 | def lineBundle (hcover : ∀ x : X, ∃ i, x ∈ U i) : OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X := |
| 112 | OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.FromOpenFrames.lineBundleFromOpenFrames (transitions p n f hn hker U hU D) hcover |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.NumberTheory.PadicHodge.IntegralComparison.NilpotentFrameTransitions |