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.RepresentationTheory.Weil.Local.QuadraticNormAt |
| 2 | import Mathlib.Topology.Algebra.OpenSubgroup |
| 3 | |
| 4 | /-! # Quadratic Norm Subgroup -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.QuadraticNormSubgroup.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The nonzero sums of two squares form an open subgroup containing all squares. -/ |
| 11 | |
| 12 | open Set Filter |
| 13 | open scoped _root_.Topology |
| 14 | |
| 15 | def quadraticNormSubgroup (k : Type*) [Field k] : Subgroup kˣ where |
| 16 | carrier := {a | ∃ x y : k, x ^ 2 + y ^ 2 = a.val} |
| 17 | one_mem' := ⟨1, 0, by simp⟩ |
| 18 | mul_mem' := by |
| 19 | rintro a b ⟨x, y, hx⟩ ⟨u, v, hu⟩ |
| 20 | refine ⟨x * u - y * v, x * v + y * u, ?_⟩ |
| 21 | change _ = a.val * b.val |
| 22 | rw [← hx, ← hu] |
| 23 | ring |
| 24 | inv_mem' := by |
| 25 | rintro a ⟨x, y, hx⟩ |
| 26 | refine ⟨x / a.val, y / a.val, ?_⟩ |
| 27 | rw [Units.val_inv_eq_inv_val] |
| 28 | rw [div_pow, div_pow, ← add_div, hx] |
| 29 | field_simp |
| 30 | |
| 31 | theorem square_mem_quadraticNormSubgroup {k : Type*} [Field k] (a : kˣ) : |
| 32 | a ^ 2 ∈ quadraticNormSubgroup k := ⟨a.val, 0, by simp⟩ |
| 33 | |
| 34 | def squareUnitsSubgroup (k : Type*) [CommGroup k] : Subgroup k := |
| 35 | (powMonoidHom 2 : k →* k).range |
| 36 | |
| 37 | theorem squareUnitsSubgroup_le_quadraticNormSubgroup {k : Type*} [Field k] : |
| 38 | squareUnitsSubgroup kˣ ≤ quadraticNormSubgroup k := by |
| 39 | rintro a ⟨b, rfl⟩ |
| 40 | exact square_mem_quadraticNormSubgroup b |
| 41 | |
| 42 | theorem mem_squareUnitsSubgroup_iff {k : Type*} [Field k] (a : kˣ) : |
| 43 | a ∈ squareUnitsSubgroup kˣ ↔ ∃ x : k, x ^ 2 = a.val := by |
| 44 | constructor |
| 45 | · rintro ⟨b, hb⟩ |
| 46 | exact ⟨b.val, congrArg Units.val hb⟩ |
| 47 | · rintro ⟨x, hx⟩ |
| 48 | have hx0 : x ≠ 0 := by |
| 49 | intro he |
| 50 | exact a.ne_zero (by simpa [he] using hx.symm) |
| 51 | refine ⟨Units.mk0 x hx0, ?_⟩ |
| 52 | apply Units.ext |
| 53 | exact hx |
| 54 | |
| 55 | theorem squareUnitsSubgroup_isOpen |
| 56 | {k : Type*} [NontriviallyNormedField k] [CompleteSpace k] [CharZero k] : |
| 57 | IsOpen (squareUnitsSubgroup kˣ : Set kˣ) := by |
| 58 | apply Subgroup.isOpen_of_mem_nhds (g := (1 : kˣ)) |
| 59 | have h := (Units.continuous_val.continuousAt (x := (1 : kˣ))).preimage_mem_nhds |
| 60 | (QuadraticNormAt.Construction.square_range_mem_nhds_one (k := k)) |
| 61 | apply Filter.mem_of_superset h |
| 62 | intro a ha |
| 63 | exact (mem_squareUnitsSubgroup_iff a).mpr ha |
| 64 | |
| 65 | theorem quadraticNormSubgroup_isOpen |
| 66 | {k : Type*} [NontriviallyNormedField k] [CompleteSpace k] [CharZero k] : |
| 67 | IsOpen (quadraticNormSubgroup k : Set kˣ) := by |
| 68 | apply Subgroup.isOpen_of_mem_nhds (g := (1 : kˣ)) |
| 69 | exact Filter.mem_of_superset |
| 70 | (squareUnitsSubgroup_isOpen.mem_nhds (Subgroup.one_mem _)) |
| 71 | squareUnitsSubgroup_le_quadraticNormSubgroup |
| 72 | |
| 73 | theorem localField_quadraticNormSubgroup_isOpen |
| 74 | {k : Type} [NormedField k] [CompleteSpace k] [CharZero k] |
| 75 | (hnd : ¬ DiscreteTopology k) : IsOpen (quadraticNormSubgroup k : Set kˣ) := by |
| 76 | rcases NormedField.discreteTopology_or_nontriviallyNormedField k with hd | ⟨_, rfl⟩ |
| 77 | · exact (hnd hd).elim |
| 78 | · exact quadraticNormSubgroup_isOpen |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.RepresentationTheory.Weil.Local.QuadraticNormSubgroup.Construction |