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.PrincipalSquareClasses |
| 2 | |
| 3 | /-! # Uniformizer -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.Local.Uniformizer.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! A uniformizer and discrete norm values, obtained directly from compact ultrametric balls. -/ |
| 12 | |
| 13 | open Set _root_.Metric |
| 14 | |
| 15 | theorem exists_local_uniformizer |
| 16 | {k : Type} [NormedField k] [LocallyCompactSpace k] [IsUltrametricDist k] |
| 17 | (hnd : ¬ DiscreteTopology k) : |
| 18 | ∃ π : kˣ, ‖π.val‖ < 1 ∧ ∀ x : k, ‖x‖ < 1 → ‖x‖ ≤ ‖π.val‖ := by |
| 19 | rcases NormedField.discreteTopology_or_nontriviallyNormedField k with hd | ⟨_, rfl⟩ |
| 20 | · exact (hnd hd).elim |
| 21 | let : ProperSpace k := FunctionsMetaplectic.Construction.localField_proper k hnd |
| 22 | have hc : IsCompact (Metric.ball (0 : k) 1) := |
| 23 | (isCompact_closedBall (0 : k) 1).of_isClosed_subset |
| 24 | (IsUltrametricDist.isClosed_ball 0 1) Metric.ball_subset_closedBall |
| 25 | obtain ⟨x, hx, hmax⟩ := hc.exists_isMaxOn ⟨0, by simp⟩ continuous_norm.continuousOn |
| 26 | obtain ⟨y, hy0, hy1⟩ := NormedField.exists_norm_lt_one k |
| 27 | have hxy : ‖y‖ ≤ ‖x‖ := hmax (by simpa only [Metric.mem_ball, dist_zero_right] using hy1) |
| 28 | have hx0 : x ≠ 0 := norm_pos_iff.mp (hy0.trans_le hxy) |
| 29 | refine ⟨Units.mk0 x hx0, ?_, fun z hz => hmax ?_⟩ |
| 30 | · change ‖x‖ < 1 |
| 31 | simpa only [Metric.mem_ball, dist_zero_right] using hx |
| 32 | · simpa only [Metric.mem_ball, dist_zero_right] using hz |
| 33 | |
| 34 | theorem norm_eq_uniformizer_pow_of_le_one |
| 35 | {k : Type*} [NormedField k] (π : kˣ) (hπ : ‖π.val‖ < 1) |
| 36 | (hmax : ∀ x : k, ‖x‖ < 1 → ‖x‖ ≤ ‖π.val‖) |
| 37 | (x : k) (hx0 : x ≠ 0) (hx1 : ‖x‖ ≤ 1) : |
| 38 | ∃ n : ℕ, ‖x‖ = ‖π.val‖ ^ n := by |
| 39 | have hπ0 : 0 < ‖π.val‖ := norm_pos_iff.mpr π.ne_zero |
| 40 | obtain ⟨n, hn, hn'⟩ := exists_nat_pow_near_of_lt_one (norm_pos_iff.mpr hx0) hx1 hπ0 hπ |
| 41 | have hp0 : 0 < ‖π.val‖ ^ n := pow_pos hπ0 n |
| 42 | have hy : ‖x / π.val ^ n‖ = ‖x‖ / ‖π.val‖ ^ n := by rw [norm_div, norm_pow] |
| 43 | have hyle : ‖x / π.val ^ n‖ ≤ 1 := by rw [hy, div_le_one hp0]; exact hn' |
| 44 | have hygt : ‖π.val‖ < ‖x / π.val ^ n‖ := by |
| 45 | rw [hy, lt_div_iff₀ hp0] |
| 46 | simpa only [pow_succ, mul_comm] using hn |
| 47 | have hyeq : ‖x / π.val ^ n‖ = 1 := by |
| 48 | apply le_antisymm hyle |
| 49 | by_contra! hh |
| 50 | exact (not_lt_of_ge (hmax _ hh)) hygt |
| 51 | refine ⟨n, ?_⟩ |
| 52 | rw [hy, div_eq_one_iff_eq (ne_of_gt hp0)] at hyeq |
| 53 | exact hyeq |
| 54 | |
| 55 | theorem norm_eq_uniformizer_zpow |
| 56 | {k : Type*} [NormedField k] (π : kˣ) (hπ : ‖π.val‖ < 1) |
| 57 | (hmax : ∀ x : k, ‖x‖ < 1 → ‖x‖ ≤ ‖π.val‖) (x : kˣ) : |
| 58 | ∃ n : ℤ, ‖x.val‖ = ‖π.val‖ ^ n := by |
| 59 | by_cases hx1 : ‖x.val‖ ≤ 1 |
| 60 | · obtain ⟨n, hn⟩ := norm_eq_uniformizer_pow_of_le_one π hπ hmax x.val x.ne_zero hx1 |
| 61 | exact ⟨n, by simpa only [zpow_natCast] using hn⟩ |
| 62 | · have hxinv : ‖x.val⁻¹‖ ≤ 1 := by |
| 63 | rw [norm_inv] |
| 64 | exact (inv_le_one₀ (norm_pos_iff.mpr x.ne_zero)).mpr (le_of_not_ge hx1) |
| 65 | obtain ⟨n, hn⟩ := norm_eq_uniformizer_pow_of_le_one π hπ hmax x.val⁻¹ (inv_ne_zero x.ne_zero) hxinv |
| 66 | refine ⟨-(n : ℤ), ?_⟩ |
| 67 | rw [norm_inv] at hn |
| 68 | simpa only [inv_inv, zpow_neg, zpow_natCast] using congrArg (fun t : ℝ => t⁻¹) hn |
| 69 | |
| 70 | end |
| 71 | |
| 72 | /-! Splitting the local field's multiplicative group into norm-one units and uniformizer powers. -/ |
| 73 | |
| 74 | variable {k : Type*} [NormedField k] |
| 75 | |
| 76 | def uniformizerUnitsHom (π : kˣ) : PrincipalSquareClasses.Construction.normUnitSubgroup k × Multiplicative ℤ →* kˣ where |
| 77 | toFun p := p.1.val * π ^ Multiplicative.toAdd p.2 |
| 78 | map_one' := by simp |
| 79 | map_mul' p q := by |
| 80 | change (p.1.val * q.1.val) * π ^ (Multiplicative.toAdd p.2 + Multiplicative.toAdd q.2) = _ |
| 81 | rw [zpow_add] |
| 82 | change _ = (p.1.val * π ^ Multiplicative.toAdd p.2) * (q.1.val * π ^ Multiplicative.toAdd q.2) |
| 83 | ac_rfl |
| 84 | |
| 85 | theorem uniformizerUnitsHom_norm (π : kˣ) (p : PrincipalSquareClasses.Construction.normUnitSubgroup k × Multiplicative ℤ) : |
| 86 | ‖(uniformizerUnitsHom π p).val‖ = ‖π.val‖ ^ Multiplicative.toAdd p.2 := by |
| 87 | change ‖p.1.val.val * (π ^ Multiplicative.toAdd p.2).val‖ = _ |
| 88 | rw [norm_mul, Units.val_zpow_eq_zpow_val, norm_zpow, |
| 89 | show ‖p.1.val.val‖ = 1 from p.1.property, one_mul] |
| 90 | |
| 91 | theorem uniformizerUnitsHom_injective (π : kˣ) (hπ : ‖π.val‖ < 1) : |
| 92 | Function.Injective (uniformizerUnitsHom π) := by |
| 93 | intro p q he |
| 94 | have hn := congrArg (fun x : kˣ => ‖x.val‖) he |
| 95 | rw [uniformizerUnitsHom_norm, uniformizerUnitsHom_norm] at hn |
| 96 | have hm : Multiplicative.toAdd p.2 = Multiplicative.toAdd q.2 := |
| 97 | (zpow_right_inj₀ (norm_pos_iff.mpr π.ne_zero) hπ.ne).mp hn |
| 98 | apply Prod.ext |
| 99 | · apply Subtype.ext |
| 100 | change p.1.val * π ^ Multiplicative.toAdd p.2 = q.1.val * π ^ Multiplicative.toAdd q.2 at he |
| 101 | rw [hm] at he |
| 102 | exact mul_right_cancel he |
| 103 | · exact congrArg Multiplicative.ofAdd hm |
| 104 | |
| 105 | theorem uniformizerUnitsHom_surjective (π : kˣ) (hπ : ‖π.val‖ < 1) |
| 106 | (hmax : ∀ x : k, ‖x‖ < 1 → ‖x‖ ≤ ‖π.val‖) : |
| 107 | Function.Surjective (uniformizerUnitsHom π) := by |
| 108 | intro x |
| 109 | obtain ⟨n, hn⟩ := norm_eq_uniformizer_zpow π hπ hmax x |
| 110 | let u : PrincipalSquareClasses.Construction.normUnitSubgroup k := ⟨x / π ^ n, by |
| 111 | change ‖(x / π ^ n).val‖ = 1 |
| 112 | rw [Units.val_div_eq_div_val, Units.val_zpow_eq_zpow_val, norm_div, norm_zpow, hn] |
| 113 | exact div_self (zpow_ne_zero n (norm_ne_zero_iff.mpr π.ne_zero))⟩ |
| 114 | refine ⟨(u, Multiplicative.ofAdd n), ?_⟩ |
| 115 | change (x / π ^ n) * π ^ n = x |
| 116 | exact div_mul_cancel x (π ^ n) |
| 117 | |
| 118 | def uniformizerUnitsEquiv (π : kˣ) (hπ : ‖π.val‖ < 1) |
| 119 | (hmax : ∀ x : k, ‖x‖ < 1 → ‖x‖ ≤ ‖π.val‖) : |
| 120 | PrincipalSquareClasses.Construction.normUnitSubgroup k × Multiplicative ℤ ≃* kˣ := |
| 121 | MulEquiv.ofBijective (uniformizerUnitsHom π) |
| 122 | ⟨uniformizerUnitsHom_injective π hπ, uniformizerUnitsHom_surjective π hπ hmax⟩ |
| 123 | |
| 124 | theorem exists_localUnits_decomposition |
| 125 | {k : Type} [NormedField k] [LocallyCompactSpace k] [IsUltrametricDist k] |
| 126 | (hnd : ¬ DiscreteTopology k) : Nonempty (kˣ ≃* PrincipalSquareClasses.Construction.normUnitSubgroup k × Multiplicative ℤ) := by |
| 127 | obtain ⟨π, hπ, hmax⟩ := exists_local_uniformizer hnd |
| 128 | exact ⟨(uniformizerUnitsEquiv π hπ hmax).symm⟩ |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.RepresentationTheory.Weil.Local.Uniformizer.Construction |