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.Analysis.HodgeTheory.Decomposition.KoszulConnection |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.FiniteDimension |
| 3 | |
| 4 | /-! # Koszul Smooth -/ |
| 5 | |
| 6 | namespace OAI.Analysis.HodgeTheory.Decomposition.KoszulSmooth.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Smooth dependence of the explicitly constructed metric connection on |
| 13 | the actual metric and its derivative. -/ |
| 14 | |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | variable {E D : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 18 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 19 | |
| 20 | local instance koszulBilinearNormed : NormedAddCommGroup (E →L[ℝ] E →L[ℝ] ℝ) := inferInstance |
| 21 | local instance koszulBilinearNormedSpace : NormedSpace ℝ (E →L[ℝ] E →L[ℝ] ℝ) := inferInstance |
| 22 | |
| 23 | theorem koszulFirstKind_smoothOn |
| 24 | (T : D → E →L[ℝ] E →L[ℝ] E →L[ℝ] ℝ) {U : Set D} |
| 25 | (hT : ContDiffOn ℝ ∞ T U) : ContDiffOn ℝ ∞ (fun x => KoszulConnection.Constructions.koszulFirstKind (T x)) U := by |
| 26 | have hswap : ContDiffOn ℝ ∞ (fun x => (T x).flip) U := |
| 27 | (ContinuousLinearMap.flipₗᵢ ℝ E E (E →L[ℝ] ℝ)).toContinuousLinearMap.contDiff.comp_contDiffOn hT |
| 28 | have hcycle : ContDiffOn ℝ ∞ (fun x => |
| 29 | (ContinuousLinearMap.flipₗᵢ ℝ E E ℝ).toContinuousLinearMap.comp (T x).flip) U := |
| 30 | contDiffOn_const.clm_comp hswap |
| 31 | exact ((hT.add hswap).sub hcycle).const_smul (1 / 2 : ℝ) |
| 32 | |
| 33 | theorem bilinearMetricSharp_smoothOn (B : D → E →L[ℝ] E →L[ℝ] ℝ) {U : Set D} |
| 34 | (hU : IsOpen U) (hB : ContDiffOn ℝ ∞ B U) |
| 35 | (hpos : ∀ x ∈ U, ∀ u : E, u ≠ 0 → 0 < B x u u) : |
| 36 | ContDiffOn ℝ ∞ (fun x => KoszulConnection.Constructions.bilinearMetricSharp (B x)) U := |
| 37 | (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.InverseMetric.CM.Construction.positive_bilinear_inverse_smoothOn B hU hB hpos).clm_comp contDiffOn_const |
| 38 | |
| 39 | theorem koszulConnection_smoothOn |
| 40 | (B : D → E →L[ℝ] E →L[ℝ] ℝ) (T : D → E →L[ℝ] E →L[ℝ] E →L[ℝ] ℝ) {U : Set D} |
| 41 | (hU : IsOpen U) (hB : ContDiffOn ℝ ∞ B U) (hT : ContDiffOn ℝ ∞ T U) |
| 42 | (hpos : ∀ x ∈ U, ∀ u : E, u ≠ 0 → 0 < B x u u) : |
| 43 | ContDiffOn ℝ ∞ (fun x => KoszulConnection.Constructions.koszulConnection (B x) (T x)) U := by |
| 44 | have hsharp := bilinearMetricSharp_smoothOn B hU hB hpos |
| 45 | apply contDiffOn_clm_apply.mpr |
| 46 | intro u |
| 47 | apply contDiffOn_clm_apply.mpr |
| 48 | intro v |
| 49 | exact hsharp.clm_apply (((koszulFirstKind_smoothOn T hT).clm_apply |
| 50 | (contDiffOn_const (c := u))).clm_apply (contDiffOn_const (c := v))) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | /-! Differentiating the actual inverse metric in a metric-compatible |
| 55 | connection, with no assumed identity for inverse-metric derivatives. -/ |
| 56 | |
| 57 | open scoped ContDiff _root_.Topology |
| 58 | |
| 59 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 60 | |
| 61 | theorem bilinearMetricSharp_derivative |
| 62 | (B : E → E →L[ℝ] E →L[ℝ] ℝ) {U : Set E} (hU : IsOpen U) |
| 63 | (hB : ContDiffOn ℝ ∞ B U) (hpos : ∀ y ∈ U, ∀ v : E, v ≠ 0 → 0 < B y v v) |
| 64 | {x : E} (hx : x ∈ U) (u : E) (Γ : E →L[ℝ] E) |
| 65 | (hΓ : ∀ v w, B x (Γ v) w + B x v (Γ w) = fderiv ℝ B x u v w) |
| 66 | (α : E →L[ℝ] ℝ) : |
| 67 | fderiv ℝ (fun y => KoszulConnection.Constructions.bilinearMetricSharp (B y) α) x u = |
| 68 | -Γ (KoszulConnection.Constructions.bilinearMetricSharp (B x) α) - KoszulConnection.Constructions.bilinearMetricSharp (B x) (α.comp Γ) := by |
| 69 | have hBd := (hB.contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp) |
| 70 | have hS := ((bilinearMetricSharp_smoothOn B hU hB hpos).clm_apply |
| 71 | (contDiffOn_const (c := α))).contDiffAt (hU.mem_nhds hx) |
| 72 | have hSd := hS.differentiableAt (by simp) |
| 73 | apply KoszulConnection.Constructions.positive_bilinear_left_ext (B x) (hpos x hx) |
| 74 | intro w |
| 75 | have heq : (fun y => B y (KoszulConnection.Constructions.bilinearMetricSharp (B y) α) w) =ᶠ[𝓝 x] (fun _ => α w) := by |
| 76 | filter_upwards [hU.mem_nhds hx] with y hy |
| 77 | exact KoszulConnection.Constructions.bilinearMetricSharp_pair (B y) (hpos y hy) α w |
| 78 | have hz : fderiv ℝ (fun y => B y (KoszulConnection.Constructions.bilinearMetricSharp (B y) α) w) x u = 0 := by |
| 79 | rw [heq.fderiv_eq, fderiv_const_apply] |
| 80 | rfl |
| 81 | have hder : fderiv ℝ (fun y => B y (KoszulConnection.Constructions.bilinearMetricSharp (B y) α) w) x u = |
| 82 | fderiv ℝ B x u (KoszulConnection.Constructions.bilinearMetricSharp (B x) α) w + |
| 83 | B x (fderiv ℝ (fun y => KoszulConnection.Constructions.bilinearMetricSharp (B y) α) x u) w := by |
| 84 | rw [fderiv_clm_apply (hBd.clm_apply hSd) (differentiableAt_const w), fderiv_clm_apply hBd hSd] |
| 85 | simp only [fderiv_const_apply, ContinuousLinearMap.comp_zero, zero_add, add_apply, |
| 86 | ContinuousLinearMap.comp_apply, ContinuousLinearMap.flip_apply] |
| 87 | exact add_comm _ _ |
| 88 | rw [hder] at hz |
| 89 | have hmetric := hΓ (KoszulConnection.Constructions.bilinearMetricSharp (B x) α) w |
| 90 | rw [KoszulConnection.Constructions.bilinearMetricSharp_pair (B x) (hpos x hx)] at hmetric |
| 91 | rw [map_sub, map_neg, sub_apply, neg_apply, KoszulConnection.Constructions.bilinearMetricSharp_pair (B x) (hpos x hx)] |
| 92 | change B x (fderiv ℝ (fun y => KoszulConnection.Constructions.bilinearMetricSharp (B y) α) x u) w = |
| 93 | -B x (Γ (KoszulConnection.Constructions.bilinearMetricSharp (B x) α)) w - α (Γ w) |
| 94 | linarith |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.Analysis.HodgeTheory.Decomposition.KoszulSmooth.Constructions |