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.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM |
| 2 | import Mathlib.Geometry.Manifold.MFDeriv.Atlas |
| 3 | import Mathlib.Geometry.Manifold.MFDeriv.FDeriv |
| 4 | |
| 5 | /-! # Exponential Chart ODE -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.ExponentialChartODE.Abelian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The actual invariant-vector-field exponential satisfies the derivative |
| 13 | ODE of the actual group multiplication in any differentiable chart at |
| 14 | the identity. The tangent velocity is the actual derivative of the |
| 15 | inverse chart; no exponential/chart differential comparison is assumed. |
| 16 | -/ |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential |
| 19 | open scoped _root_.Manifold ContDiff |
| 20 | |
| 21 | variable {E V G : Type} |
| 22 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 24 | [TopologicalSpace G] [ChartedSpace E G] [Group G] |
| 25 | [LieGroup (𝓘(ℝ, E)) ∞ G] |
| 26 | |
| 27 | def chartVelocity (c : OpenPartialHomeomorph G V) (v : V) : GroupLieAlgebra (𝓘(ℝ, E)) G := |
| 28 | mfderiv (𝓘(ℝ, V)) (𝓘(ℝ, E)) c.symm 0 v |
| 29 | |
| 30 | theorem chartMultiplication_fderiv |
| 31 | (c : OpenPartialHomeomorph G V) (hc : c.MDifferentiable (𝓘(ℝ, E)) (𝓘(ℝ, V))) |
| 32 | (h1 : (1 : G) ∈ c.source) (h0 : c 1 = 0) |
| 33 | (x v : V) (hx : x ∈ c.target) : |
| 34 | fderiv ℝ (fun y => c (c.symm x * c.symm y)) 0 v = |
| 35 | mfderiv (𝓘(ℝ, E)) (𝓘(ℝ, V)) c (c.symm x) |
| 36 | (mulInvariantVectorField (chartVelocity c v) (c.symm x)) := by |
| 37 | have hz : (0 : V) ∈ c.target := h0 ▸ c.map_source h1 |
| 38 | have hinv0 : c.symm 0 = (1 : G) := by |
| 39 | rw [← h0, c.left_inv h1] |
| 40 | let L : G → G := fun g => c.symm x * g |
| 41 | have hL : MDifferentiable (𝓘(ℝ, E)) (𝓘(ℝ, E)) L := |
| 42 | (contMDiff_mul_left (n := ∞)).mdifferentiable (by simp) |
| 43 | have hInv := hc.mdifferentiableAt_symm hz |
| 44 | have hprod : L (c.symm 0) = c.symm x := by |
| 45 | change c.symm x * c.symm 0 = c.symm x |
| 46 | rw [hinv0, mul_one] |
| 47 | have hC : MDifferentiableAt (𝓘(ℝ, E)) (𝓘(ℝ, V)) c (L (c.symm 0)) := by |
| 48 | rw [hprod] |
| 49 | exact hc.mdifferentiableAt (c.map_target hx) |
| 50 | have hinner := mfderiv_comp (I := 𝓘(ℝ, V)) (I' := 𝓘(ℝ, E)) (I'' := 𝓘(ℝ, E)) |
| 51 | (0 : V) (hL (c.symm 0)) hInv |
| 52 | have houter := mfderiv_comp (I := 𝓘(ℝ, V)) (I' := 𝓘(ℝ, E)) (I'' := 𝓘(ℝ, V)) |
| 53 | (0 : V) hC ((hL (c.symm 0)).comp 0 hInv) |
| 54 | rw [hinner] at houter |
| 55 | rw [mfderiv_eq_fderiv] at houter |
| 56 | have h := congrArg (fun f : V →L[ℝ] V => f v) houter |
| 57 | change fderiv ℝ (fun y => c (c.symm x * c.symm y)) 0 v = |
| 58 | mfderiv (𝓘(ℝ, E)) (𝓘(ℝ, V)) c (L (c.symm 0)) |
| 59 | (mfderiv (𝓘(ℝ, E)) (𝓘(ℝ, E)) L (c.symm 0) |
| 60 | (mfderiv (𝓘(ℝ, V)) (𝓘(ℝ, E)) c.symm 0 v)) at h |
| 61 | erw [hprod, hinv0] at h |
| 62 | exact h |
| 63 | |
| 64 | theorem inverse_chartMultiplication_field |
| 65 | (c : OpenPartialHomeomorph G V) (hc : c.MDifferentiable (𝓘(ℝ, E)) (𝓘(ℝ, V))) |
| 66 | (h1 : (1 : G) ∈ c.source) (h0 : c 1 = 0) |
| 67 | (x v : V) (hx : x ∈ c.target) : |
| 68 | mfderiv (𝓘(ℝ, V)) (𝓘(ℝ, E)) c.symm x |
| 69 | (fderiv ℝ (fun y => c (c.symm x * c.symm y)) 0 v) = |
| 70 | mulInvariantVectorField (chartVelocity c v) (c.symm x) := by |
| 71 | rw [chartMultiplication_fderiv c hc h1 h0 x v hx] |
| 72 | have hd := hc.symm_comp_deriv (c.map_target hx) |
| 73 | rw [c.right_inv hx] at hd |
| 74 | exact congrArg (fun D : E →L[ℝ] E => |
| 75 | D (mulInvariantVectorField (chartVelocity (E := E) c v) (c.symm x))) hd |
| 76 | |
| 77 | /-- A solution of the multiplication ODE inside the chart transports |
| 78 | to an integral curve of the actual invariant vector field. -/ |
| 79 | theorem chartODE_isMIntegralCurveOn |
| 80 | (c : OpenPartialHomeomorph G V) (hc : c.MDifferentiable (𝓘(ℝ, E)) (𝓘(ℝ, V))) |
| 81 | (h1 : (1 : G) ∈ c.source) (h0 : c 1 = 0) |
| 82 | (v : V) (δ : ℝ → V) (J : Set ℝ) |
| 83 | (htarget : ∀ t ∈ J, δ t ∈ c.target) |
| 84 | (hδ : ∀ t ∈ J, |
| 85 | HasDerivAt δ (fderiv ℝ (fun y => c (c.symm (δ t) * c.symm y)) 0 v) t) : |
| 86 | IsMIntegralCurveOn (c.symm ∘ δ) |
| 87 | (mulInvariantVectorField (chartVelocity (E := E) c v)) J := by |
| 88 | intro t ht |
| 89 | have hd := (hc.mdifferentiableAt_symm (htarget t ht)).hasMFDerivAt.comp t |
| 90 | (hδ t ht).hasFDerivAt.hasMFDerivAt |
| 91 | apply hd.hasMFDerivWithinAt.congr_mfderiv |
| 92 | apply ContinuousLinearMap.ext |
| 93 | intro r |
| 94 | change ℝ at r |
| 95 | change mfderiv (𝓘(ℝ, V)) (𝓘(ℝ, E)) c.symm (δ t) |
| 96 | (r • fderiv ℝ (fun y => c (c.symm (δ t) * c.symm y)) 0 v) = |
| 97 | r • mulInvariantVectorField (chartVelocity (E := E) c v) (c.symm (δ t)) |
| 98 | let L : V →L[ℝ] E := mfderiv (𝓘(ℝ, V)) (𝓘(ℝ, E)) c.symm (δ t) |
| 99 | have hw : L (fderiv ℝ (fun y => c (c.symm (δ t) * c.symm y)) 0 v) = |
| 100 | mulInvariantVectorField (chartVelocity (E := E) c v) (c.symm (δ t)) := |
| 101 | inverse_chartMultiplication_field c hc h1 h0 _ v (htarget t ht) |
| 102 | change L (r • fderiv ℝ (fun y => c (c.symm (δ t) * c.symm y)) 0 v) = _ |
| 103 | rw [map_smul, hw] |
| 104 | rfl |
| 105 | |
| 106 | variable [CompleteSpace E] [T2Space G] |
| 107 | |
| 108 | /-- The actual global invariant integral curve satisfies the local |
| 109 | ordinary differential equation in the chart coordinates. -/ |
| 110 | theorem curve_in_chart_hasDerivAt |
| 111 | (c : OpenPartialHomeomorph G V) (hc : c.MDifferentiable (𝓘(ℝ, E)) (𝓘(ℝ, V))) |
| 112 | (h1 : (1 : G) ∈ c.source) (h0 : c 1 = 0) |
| 113 | (v : V) (t : ℝ) (ht : AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve (E := E) (chartVelocity (E := E) c v) t ∈ c.source) : |
| 114 | HasDerivAt (fun τ => c (AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve (E := E) (chartVelocity (E := E) c v) τ)) |
| 115 | (fderiv ℝ (fun y => c (c.symm (c (AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve (E := E) (chartVelocity (E := E) c v) t)) * c.symm y)) 0 v) t := by |
| 116 | let γ : ℝ → G := AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve (E := E) (chartVelocity (E := E) c v) |
| 117 | let w : E := mulInvariantVectorField (chartVelocity (E := E) c v) (γ t) |
| 118 | let D : E →L[ℝ] V := mfderiv (𝓘(ℝ, E)) (𝓘(ℝ, V)) c (γ t) |
| 119 | have hd : HasMFDerivAt (𝓘(ℝ, ℝ)) (𝓘(ℝ, V)) (c ∘ γ) t |
| 120 | (D.comp ((1 : ℝ →L[ℝ] ℝ).smulRight w)) := |
| 121 | (hc.mdifferentiableAt ht).hasMFDerivAt.comp t |
| 122 | (AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve_integral (E := E) (chartVelocity (E := E) c v) t) |
| 123 | have hfd : HasFDerivAt (c ∘ γ) (D.comp ((1 : ℝ →L[ℝ] ℝ).smulRight w)) t := hd.hasFDerivAt |
| 124 | have h : HasDerivAt (c ∘ γ) (D w) t := by |
| 125 | simpa only [ContinuousLinearMap.comp_apply, ContinuousLinearMap.smulRight_apply, |
| 126 | one_apply_eq_self, one_smul] using hfd.hasDerivAt |
| 127 | rw [chartMultiplication_fderiv c hc h1 h0 _ v (c.map_source ht), c.left_inv ht] |
| 128 | exact h |
| 129 | |
| 130 | /-- Uniqueness identifies any constructed chart-ODE solution starting |
| 131 | at zero with the actual exponential throughout its interval of definition. -/ |
| 132 | theorem chartODE_eq_exponential |
| 133 | (c : OpenPartialHomeomorph G V) (hc : c.MDifferentiable (𝓘(ℝ, E)) (𝓘(ℝ, V))) |
| 134 | (h1 : (1 : G) ∈ c.source) (h0 : c 1 = 0) |
| 135 | (v : V) (δ : ℝ → V) (εδ : ℝ) (hε : 0 < εδ) (hδ0 : δ 0 = 0) |
| 136 | (htarget : ∀ t ∈ Set.Ioo (-εδ) εδ, δ t ∈ c.target) |
| 137 | (hδ : ∀ t ∈ Set.Ioo (-εδ) εδ, |
| 138 | HasDerivAt δ (fderiv ℝ (fun y => c (c.symm (δ t) * c.symm y)) 0 v) t) : |
| 139 | ∀ t ∈ Set.Ioo (-εδ) εδ, |
| 140 | c.symm (δ t) = AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.exp (E := E) (t • chartVelocity (E := E) c v) := by |
| 141 | let : LieGroup (𝓘(ℝ, E)) (minSmoothness ℝ 3) G := by |
| 142 | rw [minSmoothness_of_isRCLikeNormedField] |
| 143 | infer_instance |
| 144 | have hv : ContMDiff (𝓘(ℝ, E)) (𝓘(ℝ, E)).tangent 1 |
| 145 | (fun x : G => (⟨x, mulInvariantVectorField (chartVelocity (E := E) c v) x⟩ : |
| 146 | TangentBundle (𝓘(ℝ, E)) G)) := |
| 147 | (contMDiff_mulInvariantVectorField (chartVelocity (E := E) c v)).of_le (by simp) |
| 148 | have hinit : (c.symm ∘ δ) 0 = AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve (E := E) (chartVelocity (E := E) c v) 0 := by |
| 149 | simp only [Function.comp_apply, hδ0, AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve_zero] |
| 150 | rw [← h0, c.left_inv h1] |
| 151 | have heq := isMIntegralCurveOn_Ioo_eqOn_of_contMDiff_boundaryless |
| 152 | (show (0 : ℝ) ∈ Set.Ioo (-εδ) εδ by constructor <;> linarith) hv |
| 153 | (chartODE_isMIntegralCurveOn c hc h1 h0 v δ _ htarget hδ) |
| 154 | ((AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.curve_integral (E := E) (chartVelocity (E := E) c v)).isMIntegralCurveOn _) hinit |
| 155 | intro t ht |
| 156 | rw [AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExponentialM.Constructions.Exponential.exp_smul] |
| 157 | exact heq ht |
| 158 | |
| 159 | end |
| 160 | |
| 161 | end OAI.ArithmeticGeometry.Descent.CMVariety.ExponentialChartODE.Abelian |