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.Analysis.Calculus.ParametricIntegral |
| 2 | import Mathlib.MeasureTheory.Function.LocallyIntegrable |
| 3 | import Mathlib.Topology.Compactness.Compact |
| 4 | |
| 5 | /-! # Compact Integral -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianVariety.CompactIntegral.Constructions.ExteriorCohomology |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Compact-parameter integration for ExteriorCohomology |
| 13 | |
| 14 | Joint continuity of the parameter derivatives on a compact integration space |
| 15 | gives a local uniform bound and justifies differentiation under the integral. |
| 16 | -/ |
| 17 | |
| 18 | open Set Filter _root_.MeasureTheory |
| 19 | open scoped _root_.Topology |
| 20 | |
| 21 | variable {V W X : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 22 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 23 | [TopologicalSpace X] [CompactSpace X] [MeasurableSpace X] [BorelSpace X] |
| 24 | {μ : Measure X} [IsFiniteMeasure μ] |
| 25 | |
| 26 | theorem hasFDerivAt_integral_compact |
| 27 | {F : V → X → W} {F' : V → X → V →L[ℝ] W} {s : Set V} {v : V} |
| 28 | (hs : IsOpen s) (hv : v ∈ s) |
| 29 | (hF : ∀ a ∈ s, Continuous (F a)) |
| 30 | (hF' : ∀ a ∈ s, ∀ x, ContinuousAt (Function.uncurry F') (a, x)) |
| 31 | (hd : ∀ a ∈ s, ∀ x, HasFDerivAt (fun b => F b x) (F' a x) a) : |
| 32 | HasFDerivAt (fun a => ∫ x, F a x ∂μ) (∫ x, F' v x ∂μ) v := by |
| 33 | have hc : Continuous (F' v) := by |
| 34 | rw [continuous_iff_continuousAt] |
| 35 | intro x |
| 36 | exact (hF' v hv x).comp (continuousAt_const.prodMk continuousAt_id) |
| 37 | obtain ⟨C, hC⟩ := isCompact_univ.exists_bound_of_continuousOn hc.continuousOn |
| 38 | have hb : ∀ᶠ a in 𝓝 v, ∀ x : X, ‖F' a x‖ ≤ C + 1 := by |
| 39 | have he := isCompact_univ.eventually_forall_of_forall_eventually |
| 40 | (x₀ := v) (P := fun a x => ‖F' a x‖ ≤ C + 1) (fun x _ => |
| 41 | ((hF' v hv x).norm.eventually (gt_mem_nhds |
| 42 | (lt_of_le_of_lt (hC x (mem_univ x)) (lt_add_one C)))).mono (fun _ h => h.le)) |
| 43 | simpa only [mem_univ, forall_true_left] using he |
| 44 | obtain ⟨t, ht, htopen, hvt⟩ := mem_nhds_iff.mp hb |
| 45 | apply hasFDerivAt_integral_of_dominated_of_fderiv_le (F' := F') |
| 46 | (bound := fun _ => C + 1) ((hs.inter htopen).mem_nhds ⟨hv, hvt⟩) |
| 47 | · filter_upwards [hs.mem_nhds hv] with a ha |
| 48 | exact ((hF a ha).integrable_of_hasCompactSupport |
| 49 | (HasCompactSupport.of_compactSpace _)).aestronglyMeasurable |
| 50 | · exact (hF v hv).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 51 | · exact (hc.integrable_of_hasCompactSupport |
| 52 | (HasCompactSupport.of_compactSpace _)).aestronglyMeasurable |
| 53 | · exact ae_of_all _ (fun x a ha => ht ha.2 x) |
| 54 | · exact integrable_const _ |
| 55 | · exact ae_of_all _ (fun x a ha => hd a ha.1 x) |
| 56 | |
| 57 | theorem integral_derivative_eq_zero_of_locally_constant_integral |
| 58 | {F : V → X → W} {F' : V → X → V →L[ℝ] W} {s : Set V} {v : V} {c : W} |
| 59 | (hs : IsOpen s) (hv : v ∈ s) |
| 60 | (hF : ∀ a ∈ s, Continuous (F a)) |
| 61 | (hF' : ∀ a ∈ s, ∀ x, ContinuousAt (Function.uncurry F') (a, x)) |
| 62 | (hd : ∀ a ∈ s, ∀ x, HasFDerivAt (fun b => F b x) (F' a x) a) |
| 63 | (hconst : ∀ a ∈ s, ∫ x, F a x ∂μ = c) : |
| 64 | (∫ x, F' v x ∂μ) = 0 := by |
| 65 | have hi := hasFDerivAt_integral_compact (μ := μ) hs hv hF hF' hd |
| 66 | have he : (fun a => ∫ x, F a x ∂μ) =ᶠ[𝓝 v] fun _ => c := by |
| 67 | filter_upwards [hs.mem_nhds hv] with a ha |
| 68 | exact hconst a ha |
| 69 | exact hi.unique ((hasFDerivAt_const c v).congr_of_eventuallyEq he) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianVariety.CompactIntegral.Constructions.ExteriorCohomology |