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.GroupSchemes.Classification |
| 2 | import OAI.AlgebraicGeometry.GroupSchemes.LikeCharacters |
| 3 | import Mathlib.Algebra.CharP.Reduced |
| 4 | |
| 5 | /-! # Height One Counts -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.HeightOneCounts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Point and character counts for the actual height-one FiniteEtale towers. |
| 14 | Their product is the finite-level rank. This is the numerical ingredient |
| 15 | for ordinary CM specialization once the full CM factors are constructed. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry WithConv |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | section Characters |
| 21 | |
| 22 | variable {k A B : Type*} [Field k] [CommRing A] [HopfAlgebra k A] |
| 23 | [CommRing B] [Algebra k B] |
| 24 | |
| 25 | theorem groupLike_convolution_power (c : GroupLike k A) (f : WithConv (A →ₐ[k] B)) (n : ℕ) : |
| 26 | (f ^ n).ofConv c.val = (f.ofConv c.val) ^ n := by |
| 27 | induction n with |
| 28 | | zero => |
| 29 | rw [pow_zero, pow_zero, AlgHom.convOne_apply, c.isGroupLikeElem_val.counit_eq_one, map_one] |
| 30 | | succ n ih => |
| 31 | rw [pow_succ, pow_succ, AlgHom.convMul_apply, c.isGroupLikeElem_val.comul_eq_tmul_self] |
| 32 | simpa using congrArg (fun x => x * f.ofConv c.val) ih |
| 33 | |
| 34 | end Characters |
| 35 | |
| 36 | variable {k : Type} [Field k] [IsAlgClosed k] {q : ℕ} [Fact q.Prime] [CharP k q] |
| 37 | (G : GroupSchemes.FiniteEtale.PDivisibleGroup k q 1) |
| 38 | |
| 39 | omit [IsAlgClosed k] [Fact q.Prime] [CharP k q] in |
| 40 | theorem heightOne_character_value_power (n : ℕ) (c : (G.level n).characterGroup) : |
| 41 | (G.level n).characterValue c ^ (q ^ n) = 1 := by |
| 42 | let A := (G.level n).algebra |
| 43 | let : Algebra k A := (G.level n).coordinateHopf.toAlgebra |
| 44 | let := (G.level n).coordinateHopf |
| 45 | let e := (G.level n).coordinatePoints A |
| 46 | let f : WithConv (A →ₐ[k] A) := toConv (AlgHom.id k A) |
| 47 | have hp : f ^ (q ^ n) = 1 := by |
| 48 | apply e.injective |
| 49 | exact (map_pow e f (q ^ n)).trans ((G.annihilated k n A (e f)).trans e.map_one.symm) |
| 50 | have h := groupLike_convolution_power (show GroupLike k A from c) f (q ^ n) |
| 51 | rw [hp, AlgHom.convOne_apply, (show GroupLike k A from c).isGroupLikeElem_val.counit_eq_one, |
| 52 | map_one] at h |
| 53 | exact h.symm |
| 54 | |
| 55 | omit [IsAlgClosed k] in |
| 56 | theorem heightOne_character_eq_one_of_split (n : ℕ) |
| 57 | (hsplit : Algebra.IsFiniteSplit k (G.level n).algebra) (c : (G.level n).characterGroup) : c = 1 := by |
| 58 | let A := (G.level n).algebra |
| 59 | let : Algebra.IsFiniteSplit k A := hsplit |
| 60 | let : IsReduced A := Algebra.FormallyUnramified.isReduced_of_field k A |
| 61 | have hi : Function.Injective (algebraMap k A) := by |
| 62 | apply Function.LeftInverse.injective (g := (G.level n).coordinateAugmentation) |
| 63 | intro x |
| 64 | exact (G.level n).coordinateAugmentation.commutes x |
| 65 | let : ExpChar A q := expChar_of_injective_algebraMap hi q |
| 66 | have hc := heightOne_character_value_power G n c |
| 67 | have he : (G.level n).characterValue c = 1 := by |
| 68 | apply (iterateFrobenius_inj A q n) |
| 69 | change (G.level n).characterValue c ^ (q ^ n) = 1 ^ (q ^ n) |
| 70 | exact hc.trans (one_pow _).symm |
| 71 | exact GroupLike.val_injective he |
| 72 | |
| 73 | theorem heightOne_point_character_card (n : ℕ) : |
| 74 | Nat.card (G.level n).rationalPoints * Nat.card (G.level n).characterGroup = q ^ n := by |
| 75 | rcases G.first_local_or_split with hlocal | hsplit |
| 76 | · let : IsLocalRing (G.level n).algebra := G.local_of_first_local hlocal n |
| 77 | let : Subsingleton (G.level n).rationalPoints := |
| 78 | ⟨fun x y => ((G.level n).point_eq_one_of_local x).trans |
| 79 | ((G.level n).point_eq_one_of_local y).symm⟩ |
| 80 | let : Algebra.IsFiniteSplit k (G.level n).cartierDual.algebra := G.dual_split_of_first_local hlocal n |
| 81 | rw [Nat.card_unique (α := (G.level n).rationalPoints), one_mul, |
| 82 | (G.level n).characterGroup_card, G.rank, Nat.mul_one] |
| 83 | · have hs := G.split_of_first_split hsplit n |
| 84 | let : Algebra.IsFiniteSplit k (G.level n).algebra := hs |
| 85 | let : Subsingleton (G.level n).characterGroup := |
| 86 | ⟨fun x y => (heightOne_character_eq_one_of_split G n hs x).trans |
| 87 | (heightOne_character_eq_one_of_split G n hs y).symm⟩ |
| 88 | rw [Nat.card_unique (α := (G.level n).characterGroup), mul_one, |
| 89 | (G.level n).rationalPoints_card, G.rank, Nat.mul_one] |
| 90 | |
| 91 | end |
| 92 | |
| 93 | /-! A self-dual finite product of height-one factors has the ordinary |
| 94 | geometric point count. The point and character identifications are |
| 95 | actual equivalences; the count follows from FiniteEtale and finite products. -/ |
| 96 | |
| 97 | variable {k I : Type} {X Y : Type*} [Field k] [IsAlgClosed k] [Fintype I] |
| 98 | {q : ℕ} [Fact q.Prime] [CharP k q] |
| 99 | |
| 100 | theorem heightOne_product_point_character_card |
| 101 | (G : I → GroupSchemes.FiniteEtale.PDivisibleGroup k q 1) (n : ℕ) : |
| 102 | Nat.card (∀ i, ((G i).level n).rationalPoints) * |
| 103 | Nat.card (∀ i, ((G i).level n).characterGroup) = q ^ (n * Fintype.card I) := by |
| 104 | rw [Nat.card_pi, Nat.card_pi, ← Finset.prod_mul_distrib] |
| 105 | simp only [heightOne_point_character_card, Finset.prod_const, Finset.card_univ, ← pow_mul] |
| 106 | |
| 107 | theorem ordinary_count_of_selfDual_heightOne_factors |
| 108 | (G : I → GroupSchemes.FiniteEtale.PDivisibleGroup k q 1) (g : ℕ) |
| 109 | (hI : Fintype.card I = 2 * g) |
| 110 | (ep : X ≃ (∀ i, ((G i).level 1).rationalPoints)) |
| 111 | (ec : Y ≃ (∀ i, ((G i).level 1).characterGroup)) (ed : X ≃ Y) : |
| 112 | Nat.card X = q ^ g := by |
| 113 | have h := heightOne_product_point_character_card G 1 |
| 114 | rw [← Nat.card_congr ep, ← Nat.card_congr ec, ← Nat.card_congr ed, |
| 115 | Nat.one_mul, hI] at h |
| 116 | have hs : Nat.card X ^ 2 = (q ^ g) ^ 2 := by |
| 117 | rw [pow_two, h, ← pow_mul, Nat.mul_comm g 2] |
| 118 | exact Nat.pow_left_injective (by decide : 2 ≠ 0) hs |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.HeightOneCounts |