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.DifferentialForms.Manifold.DeRham |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.RadialHomotopyIdentity |
| 3 | import OAI.AlgebraicTopology.DeRham.Comparison.RadialHomotopySmooth |
| 4 | import Mathlib.Analysis.Convex.Star |
| 5 | |
| 6 | /-! # Restricted Forms -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicTopology.Kunneth.RestrictedForms |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The de Rham complex of restrictions of smooth forms to a full-dimensional set. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory Set |
| 18 | open scoped ContDiff Interval |
| 19 | |
| 20 | namespace Constructions |
| 21 | |
| 22 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | |
| 24 | local instance restrictedFormsAddGroup (n : ℕ) : AddCommGroup (OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n) := inferInstance |
| 25 | local instance restrictedFormsModule (n : ℕ) : Module ℂ (OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n) := inferInstance |
| 26 | |
| 27 | def formsVanishingOn (S : Set E) (n : ℕ) : Submodule ℂ (OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n) where |
| 28 | carrier := {a | ∀ x ∈ S, a x = 0} |
| 29 | zero_mem' := fun _ _ => rfl |
| 30 | add_mem' ha hb x hx := by rw [OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.add_apply, ha x hx, hb x hx, add_zero] |
| 31 | smul_mem' c a ha x hx := by |
| 32 | rw [OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.smul_apply, ha x hx] |
| 33 | ext v |
| 34 | change c * (0 : ℂ) = 0 |
| 35 | exact mul_zero c |
| 36 | |
| 37 | /-- Two representatives define the same restricted form precisely when their |
| 38 | covector values agree on the specified set. -/ |
| 39 | abbrev RestrictedForm (S : Set E) (n : ℕ) := OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n ⧸ formsVanishingOn S n |
| 40 | |
| 41 | def restrictForm (S : Set E) (n : ℕ) : OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n →ₗ[ℂ] RestrictedForm S n := |
| 42 | (formsVanishingOn S n).mkQ |
| 43 | |
| 44 | theorem restrictForm_eq_iff (S : Set E) (n : ℕ) (a b : OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n) : |
| 45 | restrictForm S n a = restrictForm S n b ↔ ∀ x ∈ S, a x = b x := by |
| 46 | change Submodule.Quotient.mk a = Submodule.Quotient.mk b ↔ _ |
| 47 | rw [Submodule.Quotient.eq] |
| 48 | change (∀ x ∈ S, (a - b) x = 0) ↔ _ |
| 49 | simp only [OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.sub_apply, sub_eq_zero] |
| 50 | |
| 51 | theorem d_mem_formsVanishingOn {S : Set E} (hS : UniqueDiffOn ℝ S) {n : ℕ} |
| 52 | {a : OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n} (ha : a ∈ formsVanishingOn S n) : |
| 53 | OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d a ∈ formsVanishingOn S (n + 1) := by |
| 54 | intro x hx |
| 55 | have hzero : fderivWithin ℝ (a : OAI.Analysis.DifferentialForms.Manifold.Basic.RawForm E n) S x = 0 := by |
| 56 | have he : EqOn (a : OAI.Analysis.DifferentialForms.Manifold.Basic.RawForm E n) (fun _ => 0) S := ha |
| 57 | rw [fderivWithin_congr' he hx, fderivWithin_const_apply] |
| 58 | have hd := fderivWithin_eq_fderiv (hS x hx) |
| 59 | (a.smooth.differentiable (by simp) x) |
| 60 | change ContinuousAlternatingMap.alternatizeUncurryFin (fderiv ℝ (a : OAI.Analysis.DifferentialForms.Manifold.Basic.RawForm E n) x) = 0 |
| 61 | rw [← hd, hzero] |
| 62 | ext v |
| 63 | rw [ContinuousAlternatingMap.alternatizeUncurryFin_apply] |
| 64 | change (∑ i : Fin (n + 1), (-1 : ℤ) ^ i.val • (0 : ℂ)) = 0 |
| 65 | simp only [smul_zero, Finset.sum_const_zero] |
| 66 | |
| 67 | def restrictedFormD {S : Set E} (hS : UniqueDiffOn ℝ S) (n : ℕ) : |
| 68 | RestrictedForm S n →ₗ[ℂ] RestrictedForm S (n + 1) := |
| 69 | (formsVanishingOn S n).mapQ (formsVanishingOn S (n + 1)) OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d |
| 70 | (fun _ ha => d_mem_formsVanishingOn hS ha) |
| 71 | |
| 72 | @[simp] theorem restrictedFormD_restrict {S : Set E} (hS : UniqueDiffOn ℝ S) (n : ℕ) |
| 73 | (a : OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n) : |
| 74 | restrictedFormD hS n (restrictForm S n a) = restrictForm S (n + 1) (OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d a) := rfl |
| 75 | |
| 76 | theorem restrictedFormD_squared {S : Set E} (hS : UniqueDiffOn ℝ S) (n : ℕ) : |
| 77 | (restrictedFormD hS (n + 1)).comp (restrictedFormD hS n) = 0 := by |
| 78 | apply LinearMap.ext |
| 79 | intro a |
| 80 | obtain ⟨a, rfl⟩ := (formsVanishingOn S n).mkQ_surjective a |
| 81 | change restrictedFormD hS (n + 1) (restrictedFormD hS n (restrictForm S n a)) = 0 |
| 82 | rw [restrictedFormD_restrict, restrictedFormD_restrict, OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d_d, map_zero] |
| 83 | |
| 84 | def restrictedDeRhamComplex {S : Set E} (hS : UniqueDiffOn ℝ S) : |
| 85 | CochainComplex (ModuleCat ℂ) ℕ := |
| 86 | CochainComplex.of (fun n => ModuleCat.of ℂ (RestrictedForm S n)) |
| 87 | (fun n => ModuleCat.ofHom (restrictedFormD hS n)) |
| 88 | (fun n => ModuleCat.hom_ext (restrictedFormD_squared hS n)) |
| 89 | |
| 90 | variable [FiniteDimensional ℝ E] |
| 91 | |
| 92 | def radialPrimitive {n : ℕ} (a : OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E (n + 1)) : OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E n := |
| 93 | OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.ofSmooth (DeRham.Comparison.RadialOne.radialHomotopy (a : OAI.Analysis.DifferentialForms.Manifold.Basic.RawForm E (n + 1))) |
| 94 | (DeRham.Comparison.RadialHomotopySmooth.contDiff_radialHomotopy a.smooth) |
| 95 | |
| 96 | /-- The explicit radial primitive works for a form closed just on the set. -/ |
| 97 | theorem radialPrimitive_d_on {S : Set E} (hS : StarConvex ℝ (0 : E) S) |
| 98 | {n : ℕ} (a : OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm E (n + 1)) |
| 99 | (ha : ∀ x ∈ S, OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d a x = 0) {x : E} (hx : x ∈ S) : |
| 100 | OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d (radialPrimitive a) x = a x := by |
| 101 | have h := DeRham.Comparison.RadialHomotopyIdentity.radialHomotopy_identity (a.smooth.of_le (by simp)) x |
| 102 | have hz : DeRham.Comparison.RadialOne.radialHomotopy (extDeriv (a : OAI.Analysis.DifferentialForms.Manifold.Basic.RawForm E (n + 1))) x = 0 := by |
| 103 | rw [DeRham.Comparison.RadialOne.radialHomotopy] |
| 104 | have he : (∫ t in (0 : ℝ)..1, |
| 105 | DeRham.Comparison.RadialOne.radialIntegrand (extDeriv (a : OAI.Analysis.DifferentialForms.Manifold.Basic.RawForm E (n + 1))) x t) = |
| 106 | ∫ _t in (0 : ℝ)..1, (0 : E [⋀^Fin (n + 1)]→L[ℝ] ℂ) := by |
| 107 | apply intervalIntegral.integral_congr |
| 108 | intro t ht |
| 109 | have ht' : t ∈ Icc (0 : ℝ) 1 := by simpa only [uIcc_of_le zero_le_one] using ht |
| 110 | have hd : extDeriv (a : OAI.Analysis.DifferentialForms.Manifold.Basic.RawForm E (n + 1)) (t • x) = 0 := |
| 111 | ha (t • x) (hS.smul_mem hx ht'.1 ht'.2) |
| 112 | rw [DeRham.Comparison.RadialOne.radialIntegrand, hd] |
| 113 | rw [ContinuousAlternatingMap.curryLeft_zero] |
| 114 | exact smul_zero _ |
| 115 | rw [he, intervalIntegral.integral_zero] |
| 116 | rw [hz, add_zero] at h |
| 117 | exact h |
| 118 | |
| 119 | /-- Positive-degree closed restricted forms have actual restricted primitives. -/ |
| 120 | theorem restrictedFormD_exact {S : Set E} (hS : UniqueDiffOn ℝ S) |
| 121 | (hstar : StarConvex ℝ (0 : E) S) (n : ℕ) (a : RestrictedForm S (n + 1)) |
| 122 | (ha : restrictedFormD hS (n + 1) a = 0) : |
| 123 | ∃ b : RestrictedForm S n, restrictedFormD hS n b = a := by |
| 124 | obtain ⟨a, rfl⟩ := (formsVanishingOn S (n + 1)).mkQ_surjective a |
| 125 | change restrictForm S (n + 2) (OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d a) = 0 at ha |
| 126 | have ha' : ∀ x ∈ S, OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d a x = 0 := |
| 127 | (Submodule.Quotient.mk_eq_zero (formsVanishingOn S (n + 2))).mp ha |
| 128 | refine ⟨restrictForm S n (radialPrimitive a), ?_⟩ |
| 129 | rw [restrictedFormD_restrict] |
| 130 | apply (restrictForm_eq_iff S (n + 1) (OAI.Analysis.DifferentialForms.Manifold.Basic.SmoothForm.d (radialPrimitive a)) a).mpr |
| 131 | intro x hx |
| 132 | exact radialPrimitive_d_on hstar a ha' hx |
| 133 | |
| 134 | end Constructions |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicTopology.Kunneth.RestrictedForms |