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.Geometry.Manifold.ContMDiffMFDeriv |
| 2 | import Mathlib.Analysis.Calculus.ParametricIntegral |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.FiniteDimension |
| 4 | import Mathlib.MeasureTheory.Function.LocallyIntegrable |
| 5 | |
| 6 | /-! # Integration -/ |
| 7 | |
| 8 | namespace OAI.LieTheory.Semisimple.Integration.Constructions.CharacterTriviality |
| 9 | |
| 10 | /-! Compact parameter integrals used to regularize the character in CharacterTriviality. -/ |
| 11 | |
| 12 | open Set Filter _root_.Metric _root_.MeasureTheory |
| 13 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 14 | |
| 15 | variable {P F X : Type*} |
| 16 | [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] |
| 17 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 18 | [TopologicalSpace X] [T2Space X] [SecondCountableTopology X] |
| 19 | [MeasurableSpace X] [BorelSpace X] |
| 20 | {μ : Measure X} [IsFiniteMeasureOnCompacts μ] |
| 21 | |
| 22 | theorem hasFDerivAt_integral_compact |
| 23 | {f : P → X → F} {f' : P → X → P →L[ℝ] F} |
| 24 | {U : Set P} {K : Set X} (hU : IsOpen U) (hK : IsCompact K) |
| 25 | (hKm : MeasurableSet K) {x : P} (hx : x ∈ U) |
| 26 | (hf : ContinuousOn (Function.uncurry f) (U ×ˢ K)) |
| 27 | (hf' : ContinuousOn (Function.uncurry f') (U ×ˢ K)) |
| 28 | (hd : ∀ p ∈ U, ∀ y ∈ K, HasFDerivAt (fun z => f z y) (f' p y) p) : |
| 29 | HasFDerivAt (fun p => ∫ y in K, f p y ∂μ) (∫ y in K, f' x y ∂μ) x := by |
| 30 | obtain ⟨r, hr, hball⟩ := nhds_basis_closedBall.mem_iff.mp (hU.mem_nhds hx) |
| 31 | obtain ⟨C, hC⟩ := ((isCompact_closedBall x r).prod hK).exists_bound_of_continuousOn |
| 32 | (hf'.mono (prod_mono hball Subset.rfl)) |
| 33 | have hfc (p : P) (hp : p ∈ U) : ContinuousOn (f p) K := |
| 34 | hf.comp (continuous_const.prodMk continuous_id).continuousOn (fun y hy => ⟨hp, hy⟩) |
| 35 | have hfc' : ContinuousOn (f' x) K := |
| 36 | hf'.comp (continuous_const.prodMk continuous_id).continuousOn (fun y hy => ⟨hx, hy⟩) |
| 37 | have hfinite : IsFiniteMeasure (μ.restrict K) := ⟨by simpa using hK.measure_lt_top⟩ |
| 38 | exact (hasFDerivAt_integral_of_dominated_of_fderiv_le |
| 39 | (μ := μ.restrict K) (s := ball x r) (bound := fun _ => C) |
| 40 | (ball_mem_nhds x hr) |
| 41 | (by |
| 42 | filter_upwards [hU.mem_nhds hx] with p hp |
| 43 | exact (hfc p hp).aestronglyMeasurable hKm) |
| 44 | ((hfc x hx).integrableOn_compact hK) |
| 45 | (hfc'.aestronglyMeasurable hKm) |
| 46 | (by |
| 47 | filter_upwards [ae_restrict_mem hKm] with y hy p hp |
| 48 | exact hC (p, y) ⟨ball_subset_closedBall hp, hy⟩) |
| 49 | (integrable_const C) |
| 50 | (by |
| 51 | filter_upwards [ae_restrict_mem hKm] with y hy p hp |
| 52 | exact hd p (hball (ball_subset_closedBall hp)) y hy)) |
| 53 | |
| 54 | variable {H : Type*} [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 55 | [ChartedSpace H X] [IsManifold (𝓘(ℝ, H)) ∞ X] |
| 56 | |
| 57 | omit [FiniteDimensional ℝ P] [T2Space X] [SecondCountableTopology X] |
| 58 | [MeasurableSpace X] [BorelSpace X] in |
| 59 | theorem contMDiffOn_partialFDeriv |
| 60 | {k : P × X → F} {U : Set P} (hU : IsOpen U) |
| 61 | (hk : ContMDiffOn ((𝓘(ℝ, P)).prod (𝓘(ℝ, H))) (𝓘(ℝ, F)) ∞ k (U ×ˢ univ)) : |
| 62 | ContMDiffOn ((𝓘(ℝ, P)).prod (𝓘(ℝ, H))) (𝓘(ℝ, P →L[ℝ] F)) ∞ |
| 63 | (fun p => fderiv ℝ (fun z => k (z, p.2)) p.1) (U ×ˢ univ) := by |
| 64 | intro p hp |
| 65 | have hkp : ContMDiffAt (((𝓘(ℝ, P)).prod (𝓘(ℝ, H))).prod (𝓘(ℝ, P))) |
| 66 | (𝓘(ℝ, F)) ∞ (fun q : (P × X) × P => k (q.2, q.1.2)) (p, p.1) := |
| 67 | ((hk p hp).contMDiffAt ((hU.prod isOpen_univ).mem_nhds hp)).comp (p, p.1) |
| 68 | (contMDiffAt_snd.prodMk (contMDiffAt_snd.comp _ contMDiffAt_fst)) |
| 69 | have hder := hkp.mfderiv (fun (p : P × X) (z : P) => k (z, p.2)) |
| 70 | (fun (p : P × X) => p.1) |
| 71 | contMDiffAt_fst (m := ∞) (by simp) |
| 72 | simp only [inTangentCoordinates_model_space, mfderiv_eq_fderiv] at hder |
| 73 | exact hder.contMDiffWithinAt |
| 74 | |
| 75 | theorem hasFDerivAt_weightedIntegral |
| 76 | {k : P × X → ℂ} {U : Set P} {K : Set X} (hU : IsOpen U) (hK : IsCompact K) |
| 77 | (hk : ContMDiffOn ((𝓘(ℝ, P)).prod (𝓘(ℝ, H))) (𝓘(ℝ, ℂ)) ∞ k (U ×ˢ univ)) |
| 78 | {w : X → ℂ} (hw : Continuous w) {x : P} (hx : x ∈ U) : |
| 79 | HasFDerivAt (fun p => ∫ y in K, w y • k (p, y) ∂μ) |
| 80 | (∫ y in K, w y • fderiv ℝ (fun z => k (z, y)) x ∂μ) x := by |
| 81 | have hD := contMDiffOn_partialFDeriv hU hk |
| 82 | apply hasFDerivAt_integral_compact hU hK hK.measurableSet hx |
| 83 | · exact (hw.comp continuous_snd).continuousOn.smul |
| 84 | (hk.continuousOn.mono (prod_mono Subset.rfl (subset_univ _))) |
| 85 | · exact (hw.comp continuous_snd).continuousOn.smul |
| 86 | (hD.continuousOn.mono (prod_mono Subset.rfl (subset_univ _))) |
| 87 | · intro p hp y _ |
| 88 | have hc := ((hk (p, y) ⟨hp, mem_univ _⟩).contMDiffAt |
| 89 | ((hU.prod isOpen_univ).mem_nhds ⟨hp, mem_univ _⟩)).comp p |
| 90 | (contMDiffAt_id.prodMk contMDiffAt_const) |
| 91 | exact (hc.contDiffAt.differentiableAt (by simp)).hasFDerivAt.const_smul (w y) |
| 92 | |
| 93 | theorem contDiffOn_nat_weightedIntegral (n : ℕ) |
| 94 | {k : P × X → ℂ} {U : Set P} {K : Set X} (hU : IsOpen U) (hK : IsCompact K) |
| 95 | (hk : ContMDiffOn ((𝓘(ℝ, P)).prod (𝓘(ℝ, H))) (𝓘(ℝ, ℂ)) ∞ k (U ×ˢ univ)) |
| 96 | {w : X → ℂ} (hw : Continuous w) : |
| 97 | ContDiffOn ℝ n (fun p => ∫ y in K, w y • k (p, y) ∂μ) U := by |
| 98 | induction n generalizing k with |
| 99 | | zero => |
| 100 | rw [Nat.cast_zero, contDiffOn_zero] |
| 101 | have hd : DifferentiableOn ℝ (fun p => ∫ y in K, w y • k (p, y) ∂μ) U := |
| 102 | fun p hp => (hasFDerivAt_weightedIntegral hU hK hk hw hp).differentiableAt.differentiableWithinAt |
| 103 | exact hd.continuousOn |
| 104 | | succ n ih => |
| 105 | rw [Nat.cast_succ, contDiffOn_succ_iff_fderiv_apply hU.uniqueDiffOn] |
| 106 | refine ⟨fun p hp => (hasFDerivAt_weightedIntegral hU hK hk hw hp).differentiableAt.differentiableWithinAt, |
| 107 | by simp, ?_⟩ |
| 108 | intro v |
| 109 | have hD := contMDiffOn_partialFDeriv hU hk |
| 110 | have hkv : ContMDiffOn ((𝓘(ℝ, P)).prod (𝓘(ℝ, H))) (𝓘(ℝ, ℂ)) ∞ |
| 111 | (fun p => fderiv ℝ (fun z => k (z, p.2)) p.1 v) (U ×ˢ univ) := |
| 112 | hD.clm_apply contMDiffOn_const |
| 113 | apply (ih hkv).congr |
| 114 | intro x hx |
| 115 | rw [fderivWithin_of_isOpen hU hx, (hasFDerivAt_weightedIntegral hU hK hk hw hx).fderiv, |
| 116 | ContinuousLinearMap.integral_apply] |
| 117 | · rfl |
| 118 | · have hcont : ContinuousOn (fun y => w y • fderiv ℝ (fun z => k (z, y)) x) K := |
| 119 | hw.continuousOn.smul ((hD.continuousOn.comp |
| 120 | (continuous_const.prodMk continuous_id).continuousOn |
| 121 | (fun y _ => ⟨hx, mem_univ y⟩))) |
| 122 | exact hcont.integrableOn_compact hK |
| 123 | |
| 124 | theorem contDiffOn_weightedIntegral |
| 125 | {k : P × X → ℂ} {U : Set P} {K : Set X} (hU : IsOpen U) (hK : IsCompact K) |
| 126 | (hk : ContMDiffOn ((𝓘(ℝ, P)).prod (𝓘(ℝ, H))) (𝓘(ℝ, ℂ)) ∞ k (U ×ˢ univ)) |
| 127 | {w : X → ℂ} (hw : Continuous w) : |
| 128 | ContDiffOn ℝ ∞ (fun p => ∫ y in K, w y • k (p, y) ∂μ) U := |
| 129 | contDiffOn_infty.mpr fun n => contDiffOn_nat_weightedIntegral n hU hK hk hw |
| 130 | |
| 131 | end OAI.LieTheory.Semisimple.Integration.Constructions.CharacterTriviality |