Theorem 3.42 — C_c^∞(ℝ̄ⁿ₊) is dense in W^{k,p}(ℝⁿ₊)
ProvedHunterPDE.Compactness.halfSpace_densityThe space of smooth functions is dense in : for every and there is with
The approximants are smooth up to the boundary but need not vanish there. This is what makes the trace map (Theorem 3.44) definable by continuity.
Formalization Note. The dimension is , , and . The page gives no range of ; this is the range of the whole-space analogue, Theorem 3.24, and density fails for . is the closed half-space, not the open one.
import Mathlib import Definitions.Def_HunterPDE_Compactness_Sobolev import Definitions.Def_HunterPDE_Compactness_HalfSpace open MeasureTheory open scoped ENNReal
namespace HunterPDE.Compactness
/-- Theorem 3.42 of Hunter, *Notes on PDEs* (revised 6/18/2014), p. 72: the space `C_c^∞(ℝ̄ⁿ₊)`
of smooth functions (smooth up to the boundary, vanishing on `ℝ̄ⁿ₊` outside a compact set, not
necessarily zero on `∂ℝⁿ₊`) is dense in `W^{k,p}(ℝⁿ₊)`: every `f ∈ W^{k,p}(ℝⁿ₊)` is approximated
in the `W^{k,p}(ℝⁿ₊)` norm by such functions. Dimension `n = m + 1`, `k ∈ ℕ`, and `1 ≤ p < ∞`
(the range of the whole-space analogue, Theorem 3.24; density fails for `p = ∞`). -/
theorem halfSpace_density (m k : ℕ) (p : ℝ≥0∞) (hp : 1 ≤ p) (hp' : p ≠ ∞)
(f : EuclideanSpace ℝ (Fin (m + 1)) → ℝ) (hf : MemW k p (upperHalfSpace m) f)
(ε : ℝ≥0∞) (hε : 0 < ε) :
∃ φ : EuclideanSpace ℝ (Fin (m + 1)) → ℝ, IsSmoothCompactClosedHalfSpace φ ∧
sobolevNorm k p (upperHalfSpace m) (f - φ) < ε := by sorry
end HunterPDE.Compactness
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Notation. Let , and let : the hypotheses say and .
- is the open upper half-space.
- is its closure.
- is the set of multi-indices with .
Sobolev membership. "" means: for each there is a satisfying an imported predicate "weak -derivative of on ". That predicate's definition is not included.
Sobolev norm. is built from imported chosen functions , whose definition is not included:
Claim. Let with , and let . Then there is a function with both of these properties:
- is within the closed set (differentiability relative to at its boundary points), and there is a compact with on . Nothing is required of outside , and need not vanish on .
- The pointwise difference satisfies .
The statement does not assert or .
Degenerate cases.
- . , and the norm is the norm of the imported .
- . .
- . The claim only asks for some such with finite.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.