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.FieldTheory.PrimitiveElement |
| 2 | import Mathlib.NumberTheory.NumberField.CMField |
| 3 | import Mathlib.Tactic.LinearCombination |
| 4 | |
| 5 | /-! # Norm One Generator -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.NormOneGenerator |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Primitive norm-one generators reduce CM actions to polarized |
| 12 | similitudes of bounded degree after clearing a fixed denominator. -/ |
| 13 | |
| 14 | open IntermediateField |
| 15 | |
| 16 | variable {E : Type*} [Field E] [Algebra ℚ E] |
| 17 | |
| 18 | def conjugateRatio (c : E ≃ₐ[ℚ] E) (a : E) (t : ℚ) : E := |
| 19 | (a + algebraMap ℚ E t) / (c a + algebraMap ℚ E t) |
| 20 | |
| 21 | theorem nonfixed_add_rat_ne_zero (c : E ≃ₐ[ℚ] E) (a : E) (ha : c a ≠ a) (t : ℚ) : |
| 22 | a + algebraMap ℚ E t ≠ 0 := by |
| 23 | intro h |
| 24 | have he : a = -algebraMap ℚ E t := eq_neg_of_add_eq_zero_left h |
| 25 | apply ha |
| 26 | rw [he, map_neg, c.commutes] |
| 27 | |
| 28 | theorem conjugate_add_rat_ne_zero (c : E ≃ₐ[ℚ] E) (hc : Function.Involutive c) |
| 29 | (a : E) (ha : c a ≠ a) (t : ℚ) : c a + algebraMap ℚ E t ≠ 0 := by |
| 30 | intro h |
| 31 | have he := congrArg c h |
| 32 | simp only [map_add, c.commutes, map_zero] at he |
| 33 | rw [hc a] at he |
| 34 | exact nonfixed_add_rat_ne_zero c a ha t he |
| 35 | |
| 36 | theorem conjugateRatio_injective (c : E ≃ₐ[ℚ] E) (hc : Function.Involutive c) |
| 37 | (a : E) (ha : c a ≠ a) : Function.Injective (conjugateRatio c a) := by |
| 38 | intro s t h |
| 39 | have hd := (div_eq_div_iff (conjugate_add_rat_ne_zero c hc a ha s) |
| 40 | (conjugate_add_rat_ne_zero c hc a ha t)).mp h |
| 41 | have he : (c a - a) * (algebraMap ℚ E s - algebraMap ℚ E t) = 0 := by |
| 42 | linear_combination hd |
| 43 | have he' := (mul_eq_zero.mp he).resolve_left (sub_ne_zero.mpr ha) |
| 44 | exact (algebraMap ℚ E).injective (sub_eq_zero.mp he') |
| 45 | |
| 46 | theorem primitive_norm_one_of_primitive |
| 47 | [Algebra.IsAlgebraic ℚ E] |
| 48 | (c : E ≃ₐ[ℚ] E) (hc : Function.Involutive c) (a : E) |
| 49 | (ha : c a ≠ a) (hprim : IntermediateField.adjoin ℚ {a} = ⊤) : |
| 50 | ∃ u : E, IntermediateField.adjoin ℚ {u} = ⊤ ∧ u * c u = 1 := by |
| 51 | have : Finite (IntermediateField ℚ E) := |
| 52 | Field.finite_intermediateField_of_exists_primitive_element ℚ E ⟨a, hprim⟩ |
| 53 | let u := conjugateRatio c a |
| 54 | obtain ⟨s, t, hst, hfield⟩ := Finite.exists_ne_map_eq_of_infinite |
| 55 | (fun t : ℚ => IntermediateField.adjoin ℚ {u t}) |
| 56 | let L := IntermediateField.adjoin ℚ {u s} |
| 57 | have hus : u s ∈ L := mem_adjoin_simple_self ℚ (u s) |
| 58 | have hut : u t ∈ L := by |
| 59 | change u t ∈ IntermediateField.adjoin ℚ {u s} |
| 60 | rw [hfield] |
| 61 | exact mem_adjoin_simple_self ℚ (u t) |
| 62 | have hue : u s - u t ≠ 0 := sub_ne_zero.mpr (fun h => hst (conjugateRatio_injective c hc a ha h)) |
| 63 | have hs : u s * (c a + algebraMap ℚ E s) = a + algebraMap ℚ E s := |
| 64 | div_mul_cancel₀ _ (conjugate_add_rat_ne_zero c hc a ha s) |
| 65 | have ht : u t * (c a + algebraMap ℚ E t) = a + algebraMap ℚ E t := |
| 66 | div_mul_cancel₀ _ (conjugate_add_rat_ne_zero c hc a ha t) |
| 67 | have hrecover : c a = |
| 68 | ((algebraMap ℚ E s - algebraMap ℚ E t) - |
| 69 | (u s * algebraMap ℚ E s - u t * algebraMap ℚ E t)) / (u s - u t) := by |
| 70 | apply (eq_div_iff hue).mpr |
| 71 | linear_combination hs - ht |
| 72 | have hca : c a ∈ L := by |
| 73 | rw [hrecover] |
| 74 | exact L.div_mem (L.sub_mem (L.sub_mem (L.algebraMap_mem s) (L.algebraMap_mem t)) |
| 75 | (L.sub_mem (L.mul_mem hus (L.algebraMap_mem s)) (L.mul_mem hut (L.algebraMap_mem t)))) |
| 76 | (L.sub_mem hus hut) |
| 77 | have haL : a ∈ L := by |
| 78 | have he : a = u s * (c a + algebraMap ℚ E s) - algebraMap ℚ E s := by |
| 79 | linear_combination -hs |
| 80 | rw [he] |
| 81 | exact L.sub_mem (L.mul_mem hus (L.add_mem hca (L.algebraMap_mem s))) (L.algebraMap_mem s) |
| 82 | have hL : L = ⊤ := top_unique (hprim ▸ (adjoin_simple_le_iff.mpr haL)) |
| 83 | refine ⟨u s, hL, ?_⟩ |
| 84 | change (a + algebraMap ℚ E s) / (c a + algebraMap ℚ E s) * |
| 85 | c ((a + algebraMap ℚ E s) / (c a + algebraMap ℚ E s)) = 1 |
| 86 | rw [map_div₀, map_add, map_add, c.commutes, hc] |
| 87 | field_simp [nonfixed_add_rat_ne_zero c a ha s, conjugate_add_rat_ne_zero c hc a ha s] |
| 88 | exact div_self (mul_ne_zero (nonfixed_add_rat_ne_zero c a ha s) |
| 89 | (conjugate_add_rat_ne_zero c hc a ha s)) |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.NormOneGenerator |