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.AlgebraicTopology.DeRham.Comparison.CompactFormExtension |
| 2 | |
| 3 | /-! # Compact Map Extension -/ |
| 4 | |
| 5 | namespace OAI.Topology.Euclidean.CompactMapExtension.Globalization |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Smooth vector-valued extensions near a compact set |
| 11 | |
| 12 | A map that is smooth on an open neighborhood of a compact set has a global |
| 13 | smooth representative on a possibly smaller open neighborhood. The proof |
| 14 | uses the already checked scalar cutoff theorem from `CompactFormExtension`. |
| 15 | It applies to arbitrary real normed vector targets, not just form coefficients. |
| 16 | |
| 17 | The extension is asserted to agree with the original map only near the |
| 18 | compact set. No global target-range preservation is claimed. |
| 19 | -/ |
| 20 | |
| 21 | open Filter Set _root_.TopologicalSpace Function |
| 22 | open scoped _root_.Topology ContDiff _root_.Manifold |
| 23 | |
| 24 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 25 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 26 | |
| 27 | /-- A scalar cutoff whose closed support is contained in the domain of |
| 28 | smoothness removes every defect of an arbitrary extension outside that domain. -/ |
| 29 | theorem contDiff_supported_smul {U : Opens E} {f : E → F} |
| 30 | (hf : ContDiffOn ℝ ∞ f U) (rho : E → ℝ) (hrho : ContDiff ℝ ∞ rho) |
| 31 | (hsupport : tsupport rho ⊆ U) : |
| 32 | ContDiff ℝ ∞ (fun x => rho x • f x) := by |
| 33 | rw [contDiff_iff_contDiffAt] |
| 34 | intro x |
| 35 | by_cases hx : x ∈ U |
| 36 | · exact hrho.contDiffAt.smul (hf.contDiffAt (U.isOpen.mem_nhds hx)) |
| 37 | · have hnot : x ∉ tsupport rho := fun h => hx (hsupport h) |
| 38 | have hzero : rho =ᶠ[𝓝 x] (0 : E → ℝ) := |
| 39 | notMem_tsupport_iff_eventuallyEq.mp hnot |
| 40 | apply contDiffAt_const.congr_of_eventuallyEq |
| 41 | filter_upwards [hzero] with y hy |
| 42 | change rho y = 0 at hy |
| 43 | rw [hy] |
| 44 | exact zero_smul ℝ (f y) |
| 45 | |
| 46 | variable [FiniteDimensional ℝ E] |
| 47 | |
| 48 | /-- A smooth map on an open neighborhood of a compact set has a globally |
| 49 | smooth representative with the same germ along that compact set. -/ |
| 50 | theorem exists_contDiff_extension_nhdsSet {U : Opens E} {f : E → F} |
| 51 | (hf : ContDiffOn ℝ ∞ f U) {K : Set E} (hK : IsCompact K) (hKU : K ⊆ U) : |
| 52 | ∃ g : E → F, ContDiff ℝ ∞ g ∧ g =ᶠ[𝓝ˢ K] f := by |
| 53 | obtain ⟨rho, hrho, hsupport, hone⟩ := |
| 54 | AlgebraicTopology.DeRham.Comparison.CompactFormExtension.exists_contDiff_cutoff_nhdsSet U hK hKU |
| 55 | refine ⟨fun x => rho x • f x, contDiff_supported_smul hf rho hrho hsupport, ?_⟩ |
| 56 | filter_upwards [hone] with x hx |
| 57 | change rho x = 1 at hx |
| 58 | rw [hx, one_smul] |
| 59 | |
| 60 | /-- The agreement can be exhibited on an actual open neighborhood contained |
| 61 | in the original smoothness domain. -/ |
| 62 | theorem exists_contDiff_extension_on_open {U : Opens E} {f : E → F} |
| 63 | (hf : ContDiffOn ℝ ∞ f U) {K : Set E} (hK : IsCompact K) (hKU : K ⊆ U) : |
| 64 | ∃ (g : E → F) (V : Opens E), ContDiff ℝ ∞ g ∧ K ⊆ V ∧ V ≤ U ∧ |
| 65 | EqOn g f V := by |
| 66 | obtain ⟨g, hg, hagree⟩ := exists_contDiff_extension_nhdsSet hf hK hKU |
| 67 | have hmem : {x | g x = f x} ∩ (U : Set E) ∈ 𝓝ˢ K := |
| 68 | inter_mem hagree (U.isOpen.mem_nhdsSet.mpr hKU) |
| 69 | obtain ⟨V, hV, hKV, hVsub⟩ := mem_nhdsSet_iff_exists.mp hmem |
| 70 | exact ⟨g, ⟨V, hV⟩, hg, hKV, fun _ hx => (hVsub hx).2, |
| 71 | fun _ hx => (hVsub hx).1⟩ |
| 72 | |
| 73 | omit [FiniteDimensional ℝ E] in |
| 74 | /-- The ordinary zero extension of a map defined on an open subtype is smooth |
| 75 | on that open set. No boundary smoothness is asserted for this raw extension. -/ |
| 76 | theorem contDiffOn_subtype_extend_zero {U : Opens E} {f : U → F} |
| 77 | (hf : ContMDiff (𝓘(ℝ, E)) (𝓘(ℝ, F)) ∞ f) : |
| 78 | ContDiffOn ℝ ∞ (Subtype.val.extend f (0 : E → F)) U := by |
| 79 | intro x hx |
| 80 | have hdiff : ContMDiffAt (𝓘(ℝ, E)) (𝓘(ℝ, F)) ∞ |
| 81 | (Subtype.val.extend f (0 : E → F)) x := by |
| 82 | rw [← contMDiffAt_subtype_iff (x := (⟨x, hx⟩ : U))] |
| 83 | have heq : (fun y : U => Subtype.val.extend f (0 : E → F) y) = f := by |
| 84 | funext y |
| 85 | exact Subtype.val_injective.extend_apply f (0 : E → F) y |
| 86 | rw [heq] |
| 87 | exact hf.contMDiffAt |
| 88 | exact hdiff.contDiffAt.contDiffWithinAt |
| 89 | |
| 90 | /-- The same extension theorem for maps whose actual domain is the open |
| 91 | subtype. It agrees with that map on an open neighborhood of the compact set. -/ |
| 92 | theorem exists_contDiff_subtype_extension_on_open {U : Opens E} {f : U → F} |
| 93 | (hf : ContMDiff (𝓘(ℝ, E)) (𝓘(ℝ, F)) ∞ f) |
| 94 | {K : Set E} (hK : IsCompact K) (hKU : K ⊆ U) : |
| 95 | ∃ (g : E → F) (V : Opens E), ContDiff ℝ ∞ g ∧ K ⊆ V ∧ V ≤ U ∧ |
| 96 | ∀ x : U, (x : E) ∈ V → g x = f x := by |
| 97 | obtain ⟨g, V, hg, hKV, hVU, hagree⟩ := |
| 98 | exists_contDiff_extension_on_open (contDiffOn_subtype_extend_zero hf) hK hKU |
| 99 | refine ⟨g, V, hg, hKV, hVU, ?_⟩ |
| 100 | intro x hx |
| 101 | exact (hagree hx).trans (Subtype.val_injective.extend_apply f (0 : E → F) x) |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.Topology.Euclidean.CompactMapExtension.Globalization |