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.LieTheory.Semisimple.Integration |
| 2 | import Mathlib.Geometry.Manifold.Algebra.LieGroup |
| 3 | import Mathlib.Geometry.Manifold.Algebra.Structures |
| 4 | import Mathlib.Geometry.Manifold.BumpFunction |
| 5 | import Mathlib.Analysis.Complex.Circle |
| 6 | import Mathlib.Topology.Algebra.ContinuousMonoidHom |
| 7 | import Mathlib.MeasureTheory.Group.Integral |
| 8 | import Mathlib.MeasureTheory.Measure.Haar.Basic |
| 9 | |
| 10 | /-! # Regularity -/ |
| 11 | |
| 12 | namespace OAI.LieTheory.Semisimple.Regularity.Constructions.CharacterTriviality |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! Automatic smoothness of circle-valued characters, by compact smoothing. -/ |
| 17 | |
| 18 | open Set Filter _root_.Metric _root_.MeasureTheory |
| 19 | open scoped _root_.Manifold ContDiff _root_.Topology Pointwise |
| 20 | |
| 21 | variable {E G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | [FiniteDimensional ℝ E] [Group G] [TopologicalSpace G] |
| 23 | [T2Space G] [SecondCountableTopology G] [ChartedSpace E G] |
| 24 | [LieGroup (𝓘(ℝ, E)) ∞ G] [IsTopologicalGroup G] |
| 25 | [MeasurableSpace G] [BorelSpace G] |
| 26 | {μ : Measure G} [IsFiniteMeasureOnCompacts μ] [μ.IsOpenPosMeasure] |
| 27 | |
| 28 | omit [SecondCountableTopology G] [IsTopologicalGroup G] in |
| 29 | theorem exists_bump_character_integral_ne_zero (χ : G →ₜ* Circle) : |
| 30 | ∃ b : SmoothBumpFunction (𝓘(ℝ, E)) (1 : G), |
| 31 | (∫ y, (b y : ℂ) * (χ y : ℂ) ∂μ) ≠ 0 := by |
| 32 | have hc : Continuous (fun y : G => (χ y : ℂ)) := continuous_subtype_val.comp χ.continuous |
| 33 | have hn : {y : G | 0 < (χ y : ℂ).re} ∈ 𝓝 1 := by |
| 34 | apply (isOpen_lt continuous_const (Complex.continuous_re.comp hc)).mem_nhds |
| 35 | simp |
| 36 | obtain ⟨b, _, hb⟩ := (SmoothBumpFunction.nhds_basis_tsupport (I := 𝓘(ℝ, E)) (1 : G)).mem_iff.mp hn |
| 37 | refine ⟨b, ?_⟩ |
| 38 | have hint : Integrable (fun y : G => (b y : ℂ) * (χ y : ℂ)) μ := |
| 39 | ((Complex.continuous_ofReal.comp b.continuous).mul hc).integrable_of_hasCompactSupport |
| 40 | ((b.hasCompactSupport.comp_left rfl).mul_right) |
| 41 | have hpos : 0 < ∫ y, b y * (χ y : ℂ).re ∂μ := by |
| 42 | apply integral_pos_of_integrable_nonneg_nonzero (x := (1 : G)) |
| 43 | (b.continuous.mul (Complex.continuous_re.comp hc)) |
| 44 | · exact (b.continuous.mul (Complex.continuous_re.comp hc)).integrable_of_hasCompactSupport |
| 45 | b.hasCompactSupport.mul_right |
| 46 | · intro y |
| 47 | by_cases hy : b y = 0 |
| 48 | · simp [hy] |
| 49 | · exact mul_nonneg b.nonneg (le_of_lt (hb (subset_tsupport b hy))) |
| 50 | · simp |
| 51 | have hreal : (∫ y, (b y : ℂ) * (χ y : ℂ) ∂μ).re = ∫ y, b y * (χ y : ℂ).re ∂μ := by |
| 52 | have h := (Complex.reCLM.integral_comp_comm hint).symm |
| 53 | simpa only [Complex.reCLM_apply, Complex.mul_re, Complex.ofReal_re, |
| 54 | Complex.ofReal_im, zero_mul, sub_zero] using h |
| 55 | intro hz |
| 56 | rw [← hreal, hz, Complex.zero_re] at hpos |
| 57 | exact (lt_irrefl 0) hpos |
| 58 | |
| 59 | variable [μ.IsMulLeftInvariant] |
| 60 | |
| 61 | omit [T2Space G] [SecondCountableTopology G] [IsFiniteMeasureOnCompacts μ] |
| 62 | [μ.IsOpenPosMeasure] in |
| 63 | theorem character_smoothing_identity (χ : G →ₜ* Circle) |
| 64 | (b : G → ℝ) (x : G) : |
| 65 | (∫ y, (χ y : ℂ) * (b (x⁻¹ * y) : ℂ) ∂μ) = |
| 66 | (χ x : ℂ) * ∫ y, (b y : ℂ) * (χ y : ℂ) ∂μ := by |
| 67 | rw [← integral_mul_left_eq_self (fun y => (χ y : ℂ) * (b (x⁻¹ * y) : ℂ)) x] |
| 68 | simp only [inv_mul_cancel_left, map_mul, Circle.coe_mul] |
| 69 | simp_rw [mul_assoc, mul_comm (χ _ : ℂ) (b _ : ℂ)] |
| 70 | exact integral_const_mul _ _ |
| 71 | |
| 72 | include μ in |
| 73 | theorem contMDiffAt_character_one (χ : G →ₜ* Circle) : |
| 74 | ContMDiffAt (𝓘(ℝ, E)) (𝓘(ℝ, ℂ)) ∞ (fun y => (χ y : ℂ)) (1 : G) := by |
| 75 | obtain ⟨b, hb⟩ := exists_bump_character_integral_ne_zero (E := E) (μ := μ) χ |
| 76 | let c : ℂ := ∫ y, (b y : ℂ) * (χ y : ℂ) ∂μ |
| 77 | let e := extChartAt (𝓘(ℝ, E)) (1 : G) |
| 78 | obtain ⟨r, hr, hball⟩ := nhds_basis_closedBall.mem_iff.mp |
| 79 | ((isOpen_extChartAt_target (I := 𝓘(ℝ, E)) (1 : G)).mem_nhds (mem_extChartAt_target 1)) |
| 80 | let U := ball (e 1) r |
| 81 | let L := e.symm '' closedBall (e 1) r |
| 82 | have hL : IsCompact L := (isCompact_closedBall _ _).image_of_continuousOn |
| 83 | ((continuousOn_extChartAt_symm (1 : G)).mono hball) |
| 84 | let K := L * tsupport b |
| 85 | have hK : IsCompact K := hL.mul b.hasCompactSupport |
| 86 | let k : E × G → ℂ := fun p => (b ((e.symm p.1)⁻¹ * p.2) : ℂ) |
| 87 | have hk : ContMDiffOn ((𝓘(ℝ, E)).prod (𝓘(ℝ, E))) (𝓘(ℝ, ℂ)) ∞ k (U ×ˢ univ) := by |
| 88 | have he : ContMDiffOn (𝓘(ℝ, E)) (𝓘(ℝ, E)) ∞ e.symm U := |
| 89 | (contMDiffOn_extChartAt_symm (I := 𝓘(ℝ, E)) (n := ∞) (1 : G)).mono |
| 90 | (fun _ hy => hball (ball_subset_closedBall hy)) |
| 91 | have hm : ContMDiffOn ((𝓘(ℝ, E)).prod (𝓘(ℝ, E))) (𝓘(ℝ, E)) ∞ |
| 92 | (fun p : E × G => (e.symm p.1)⁻¹ * p.2) (U ×ˢ univ) := |
| 93 | ((he.comp contMDiffOn_fst (fun (p : E × G) (hp : p ∈ U ×ˢ univ) => hp.1)).inv.mul |
| 94 | contMDiffOn_snd) |
| 95 | exact Complex.ofRealCLM.contDiff.contMDiff.comp_contMDiffOn (b.contMDiff.comp_contMDiffOn hm) |
| 96 | have hc : Continuous (fun y : G => (χ y : ℂ)) := continuous_subtype_val.comp χ.continuous |
| 97 | have hs := Integration.Constructions.CharacterTriviality.contDiffOn_weightedIntegral (μ := μ) (H := E) (k := k) isOpen_ball hK hk hc |
| 98 | have heq (p : E) (hp : p ∈ U) : |
| 99 | (∫ y in K, (χ y : ℂ) • k (p, y) ∂μ) = (χ (e.symm p) : ℂ) * c := by |
| 100 | have hsupport : Function.support (fun y => (χ y : ℂ) • k (p, y)) ⊆ K := by |
| 101 | intro y hy |
| 102 | have hby : b ((e.symm p)⁻¹ * y) ≠ 0 := by |
| 103 | intro hz |
| 104 | apply hy |
| 105 | simp [k, hz] |
| 106 | exact ⟨e.symm p, ⟨p, ball_subset_closedBall hp, rfl⟩, |
| 107 | (e.symm p)⁻¹ * y, subset_tsupport b hby, mul_inv_cancel_left _ _⟩ |
| 108 | rw [setIntegral_eq_integral_of_forall_compl_eq_zero |
| 109 | (fun y hy => by |
| 110 | by_contra hy' |
| 111 | exact hy (hsupport hy'))] |
| 112 | exact character_smoothing_identity (μ := μ) χ b (e.symm p) |
| 113 | have hsχ : ContDiffOn ℝ ∞ (fun p => (χ (e.symm p) : ℂ)) U := by |
| 114 | apply (hs.mul (contDiffOn_const (c := c⁻¹))).congr |
| 115 | intro p hp |
| 116 | rw [heq p hp] |
| 117 | exact (mul_inv_cancel_right₀ hb _).symm |
| 118 | have hat := ((hsχ (e 1) (mem_ball_self hr)).contDiffAt (ball_mem_nhds _ hr)).contMDiffAt.comp |
| 119 | (1 : G) (contMDiffAt_extChartAt (I := 𝓘(ℝ, E)) (n := ∞)) |
| 120 | apply hat.congr_of_eventuallyEq |
| 121 | filter_upwards [extChartAt_source_mem_nhds (I := 𝓘(ℝ, E)) (1 : G)] with y hy |
| 122 | change (χ y : ℂ) = (χ (e.symm (e y)) : ℂ) |
| 123 | rw [e.left_inv hy] |
| 124 | |
| 125 | include μ in |
| 126 | theorem contMDiff_character (χ : G →ₜ* Circle) : |
| 127 | ContMDiff (𝓘(ℝ, E)) (𝓘(ℝ, ℂ)) ∞ (fun y => (χ y : ℂ)) := by |
| 128 | intro x |
| 129 | have h1 := contMDiffAt_character_one (E := E) (μ := μ) χ |
| 130 | have hx : ContMDiffAt (𝓘(ℝ, E)) (𝓘(ℝ, ℂ)) ∞ |
| 131 | (fun y : G => (χ (x⁻¹ * y) : ℂ)) x := by |
| 132 | apply h1.comp_of_eq (contMDiffAt_const.mul contMDiffAt_id) |
| 133 | exact inv_mul_cancel x |
| 134 | have hmul := (((ContinuousLinearMap.mul ℝ ℂ) (χ x : ℂ)).contDiff (n := ∞)).contMDiff.contMDiffAt.comp x hx |
| 135 | apply hmul.congr_of_eventuallyEq |
| 136 | filter_upwards [] with y |
| 137 | change (χ y : ℂ) = (χ x : ℂ) * (χ (x⁻¹ * y) : ℂ) |
| 138 | simp only [map_mul, map_inv, Circle.coe_mul, Circle.coe_inv] |
| 139 | exact (mul_inv_cancel_left₀ (Circle.coe_ne_zero _) _).symm |
| 140 | |
| 141 | end |
| 142 | |
| 143 | end OAI.LieTheory.Semisimple.Regularity.Constructions.CharacterTriviality |