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.DivisorClass.Chern.HolomorphicFrame.Schwartz |
| 2 | |
| 3 | /-! # Adjoint -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Compact.Adjoint |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Applying a locally smooth coefficient to a compact test supported in its chart gives a genuine global Schwartz function. -/ |
| 12 | |
| 13 | open Filter |
| 14 | open scoped ContDiff SchwartzMap _root_.Topology |
| 15 | |
| 16 | variable {E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 17 | [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 18 | |
| 19 | omit [NormedSpace ℝ E] in |
| 20 | theorem operator_apply_tsupport (A : E → F →L[ℝ] G) (f : E → F) : |
| 21 | tsupport (fun x => A x (f x)) ⊆ tsupport f := by |
| 22 | apply closure_mono |
| 23 | intro x hx hzero |
| 24 | apply hx |
| 25 | change A x (f x) = 0 |
| 26 | rw [hzero, map_zero] |
| 27 | |
| 28 | theorem compact_operator_apply_smooth (A : E → F →L[ℝ] G) (f : E → F) |
| 29 | {U : Set E} (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) |
| 30 | (hf : ContDiff ℝ ∞ f) (hs : tsupport f ⊆ U) : |
| 31 | ContDiff ℝ ∞ (fun x => A x (f x)) := by |
| 32 | apply contDiff_iff_contDiffAt.mpr |
| 33 | intro x |
| 34 | by_cases hx : x ∈ U |
| 35 | · exact (hA.clm_apply hf.contDiffOn).contDiffAt (hU.mem_nhds hx) |
| 36 | · exact contDiffAt_const.congr_of_eventuallyEq (notMem_tsupport_iff_eventuallyEq.mp |
| 37 | (fun ht => hx (hs (operator_apply_tsupport A f ht)))) |
| 38 | |
| 39 | omit [NormedSpace ℝ E] in |
| 40 | theorem operator_apply_compact (A : E → F →L[ℝ] G) (f : E → F) (hf : HasCompactSupport f) : |
| 41 | HasCompactSupport (fun x => A x (f x)) := by |
| 42 | apply hf.mono |
| 43 | intro x hx hzero |
| 44 | apply hx |
| 45 | change A x (f x) = 0 |
| 46 | rw [hzero, map_zero] |
| 47 | |
| 48 | def compactOperatorSchwartz (A : E → F →L[ℝ] G) (f : 𝓢(E, F)) |
| 49 | {U : Set E} (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) |
| 50 | (hf : HasCompactSupport f) (hs : tsupport f ⊆ U) : 𝓢(E, G) := |
| 51 | (operator_apply_compact A f hf).toSchwartzMap (compact_operator_apply_smooth A f hU hA (f.smooth ⊤) hs) |
| 52 | |
| 53 | theorem compactOperatorSchwartz_apply (A : E → F →L[ℝ] G) (f : 𝓢(E, F)) |
| 54 | {U : Set E} (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) |
| 55 | (hf : HasCompactSupport f) (hs : tsupport f ⊆ U) (x : E) : |
| 56 | compactOperatorSchwartz A f hU hA hf hs x = A x (f x) := rfl |
| 57 | |
| 58 | end |
| 59 | |
| 60 | section |
| 61 | |
| 62 | /-! Compact Schwartz tests for the adjoints of the actual locally smooth coefficient fields. -/ |
| 63 | |
| 64 | open scoped ContDiff SchwartzMap |
| 65 | |
| 66 | variable {E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 67 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] |
| 68 | [NormedAddCommGroup G] [InnerProductSpace ℝ G] [CompleteSpace G] |
| 69 | |
| 70 | theorem coefficient_adjoint_smooth {U : Set E} (A : E → F →L[ℝ] G) (hA : ContDiffOn ℝ ∞ A U) : |
| 71 | ContDiffOn ℝ ∞ (fun z => (A z).adjoint) U := |
| 72 | (ContinuousLinearMap.adjoint : (F →L[ℝ] G) ≃ₗᵢ[ℝ] (G →L[ℝ] F)).toContinuousLinearEquiv.contDiff.comp_contDiffOn hA |
| 73 | |
| 74 | def compactAdjointSchwartz (A : E → F →L[ℝ] G) (q : 𝓢(E, G)) |
| 75 | {U : Set E} (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) |
| 76 | (hq : HasCompactSupport q) (hs : tsupport q ⊆ U) : 𝓢(E, F) := |
| 77 | compactOperatorSchwartz (fun z => (A z).adjoint) q hU (coefficient_adjoint_smooth A hA) hq hs |
| 78 | |
| 79 | theorem compactAdjointSchwartz_apply (A : E → F →L[ℝ] G) (q : 𝓢(E, G)) |
| 80 | {U : Set E} (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) |
| 81 | (hq : HasCompactSupport q) (hs : tsupport q ⊆ U) (z : E) : |
| 82 | compactAdjointSchwartz A q hU hA hq hs z = (A z).adjoint (q z) := rfl |
| 83 | |
| 84 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 85 | theorem weak_matrix_pair_adjoint (A : G →L[ℝ] G) (B : F →L[ℝ] G) |
| 86 | (C : G →L[ℝ] F) (D : F →L[ℝ] F) (a c : F) (v w : G) : |
| 87 | inner ℝ (A v) w + inner ℝ (B a) w + inner ℝ (C v) c + inner ℝ (D a) c = |
| 88 | inner ℝ v (A.adjoint w + C.adjoint c) + inner ℝ a (B.adjoint w + D.adjoint c) := by |
| 89 | simp only [inner_add_right, ContinuousLinearMap.adjoint_inner_right] |
| 90 | abel |
| 91 | |
| 92 | end |
| 93 | |
| 94 | /-! An actual coefficient product on the compact test support transfers the adjoint Schwartz pairing to the corresponding original L² source. -/ |
| 95 | |
| 96 | open _root_.MeasureTheory |
| 97 | open scoped ContDiff SchwartzMap |
| 98 | |
| 99 | theorem compactAdjointSchwartz_L2_pair {E F G : Type*} |
| 100 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] |
| 101 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] |
| 102 | [NormedAddCommGroup G] [InnerProductSpace ℝ G] [CompleteSpace G] |
| 103 | (A : E → F →L[ℝ] G) (q : 𝓢(E, G)) {U : Set E} |
| 104 | (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) (hq : HasCompactSupport q) (hs : tsupport q ⊆ U) |
| 105 | (a : Lp F 2 (volume : Measure E)) (b : Lp G 2 (volume : Measure E)) |
| 106 | (hab : ∀ᵐ x ∂(volume : Measure E), x ∈ tsupport q → b x = A x (a x)) : |
| 107 | inner ℝ a ((compactAdjointSchwartz A q hU hA hq hs).toLp 2 volume) = inner ℝ b (q.toLp 2 volume) := by |
| 108 | rw [L2.inner_def, L2.inner_def] |
| 109 | apply integral_congr_ae |
| 110 | apply Filter.Eventually.mono (hab.and |
| 111 | (((compactAdjointSchwartz A q hU hA hq hs).coeFn_toLp 2 volume).and (q.coeFn_toLp 2 volume))) |
| 112 | intro x hx |
| 113 | have ht := (hx.2.1.trans (compactAdjointSchwartz_apply A q hU hA hq hs x)) |
| 114 | have hleft := (congrArg (fun v => inner ℝ (a x) v) ht).trans |
| 115 | (ContinuousLinearMap.adjoint_inner_right (A x) (a x) (q x)) |
| 116 | have hright := congrArg (fun v => inner ℝ (b x) v) hx.2.2 |
| 117 | by_cases hqx : x ∈ tsupport q |
| 118 | · exact hleft.trans ((congrArg (fun v => inner ℝ v (q x)) (hx.1 hqx)).symm.trans hright.symm) |
| 119 | · have hzero : q x = 0 := image_eq_zero_of_notMem_tsupport hqx |
| 120 | have heq : inner ℝ (A x (a x)) (q x) = inner ℝ (b x) (q x) := by rw [hzero, inner_zero_right, inner_zero_right] |
| 121 | exact hleft.trans (heq.trans hright.symm) |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Compact.Adjoint |