Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Scalings, test functions, distributions and the spaces Csα\mathcal{C}^\alpha_sCsα​

Definition
Hairer_TestFunctions

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysisdistributionsregularity-structuresspde

Analytic preliminaries for Hairer's theory of regularity structures.

A scaling of Rd\mathbb{R}^dRd is a tuple s=(s1,…,sd)s = (s_1,\dots,s_d)s=(s1​,…,sd​) of integers si≥1s_i \ge 1si​≥1; its dimension is ∣s∣=∑isi|s| = \sum_i s_i∣s∣=∑i​si​ and the associated quasi-norm is ∥x∥s=max⁡i∣xi∣1/si\|x\|_s = \max_i |x_i|^{1/s_i}∥x∥s​=maxi​∣xi​∣1/si​.

testFunctions d is the space C0∞(Rd)C^\infty_0(\mathbb{R}^d)C0∞​(Rd) of smooth compactly supported real functions on Rd\mathbb{R}^dRd (points of Rd\mathbb{R}^dRd being represented as Fin d → ℝ), taken as a submodule of all real-valued functions, and a distribution is a linear functional on it. The pairing Distrib.eval ξ φ is ⟨ξ,φ⟩\langle \xi,\varphi\rangle⟨ξ,φ⟩ for a test function φ\varphiφ and is set to 000 on functions that are not test functions.

For δ>0\delta>0δ>0 and x∈Rdx \in \mathbb{R}^dx∈Rd, the rescaled test function is

(Ss,xδφ)(y)=δ−∣s∣ φ ⁣(y1−x1δs1,…,yd−xdδsd),(S^{\delta}_{s,x}\varphi)(y) = \delta^{-|s|}\,\varphi\!\left(\frac{y_1-x_1}{\delta^{s_1}}, \dots,\frac{y_d-x_d}{\delta^{s_d}}\right),(Ss,xδ​φ)(y)=δ−∣s∣φ(δs1​y1​−x1​​,…,δsd​yd​−xd​​),

and the lemma scaledTest_mem records that rescaling maps test functions to test functions.

IsTestBall s r η is Hairer's class Bs,0r\mathcal{B}^r_{s,0}Bs,0r​: η\etaη is smooth with compact support contained in {∥y∥s≤1}\{\|y\|_s \le 1\}{∥y∥s​≤1} and ∥η∥Cr≤1\|\eta\|_{C^r} \le 1∥η∥Cr​≤1, i.e. all iterated derivatives of order at most rrr are bounded by 111. (Hairer allows all CrC^rCr functions of this kind; restricting to smooth ones defines the same spaces below.)

Finally, MemCalpha s α ξ is Definition 3.7: for α<0\alpha<0α<0, the distribution ξ\xiξ lies in the Hölder-Besov space Csα\mathcal{C}^\alpha_sCsα​ if for every compact KKK there is a constant CCC with

∣⟨ξ,Ss,xδη⟩∣≤C δα|\langle \xi, S^{\delta}_{s,x}\eta\rangle| \le C\,\delta^{\alpha}∣⟨ξ,Ss,xδ​η⟩∣≤Cδα

for all x∈Kx \in Kx∈K, all δ∈(0,1]\delta \in (0,1]δ∈(0,1] and all η∈Bs,0r\eta \in \mathcal{B}^r_{s,0}η∈Bs,0r​ with r=−⌊α⌋r = -\lfloor \alpha \rfloorr=−⌊α⌋.

Definition code
import Mathlib

/-!
# Scalings, test functions, distributions and the spaces `C^α_s`

Analytic preliminaries of

  M. Hairer, *A theory of regularity structures*, Invent. Math. 198 (2014) 269–504,
  arXiv:1303.5113,

namely the scaled quasi-norm on `ℝ^d` (§2.3), the rescaled test functions
`S^δ_{s,x}`, the class `B^r_{s,0}` of test functions, and the Hölder–Besov spaces
`C^α_s` of negative regularity (Definition 3.7).
-/

set_option autoImplicit false

open scoped Classical

noncomputable section

namespace Hairer

/-- Points of `ℝ^d`. -/
abbrev Pt (d : ℕ) : Type := Fin d → ℝ

/-- A *scaling* of `ℝ^d` in the sense of Hairer §2.3: a `d`-tuple of integers `s i ≥ 1`. -/
def IsScaling {d : ℕ} (s : Fin d → ℕ) : Prop := ∀ i, 1 ≤ s i

/-- The effective dimension `|s| = ∑ᵢ sᵢ` of a scaling. -/
def scaleDim {d : ℕ} (s : Fin d → ℕ) : ℕ := ∑ i, s i

/-- The scaled quasi-norm `‖x‖_s = maxᵢ |xᵢ|^{1/sᵢ}` associated with a scaling `s`. -/
def snorm {d : ℕ} (s : Fin d → ℕ) (x : Pt d) : ℝ := ⨆ i, |x i| ^ ((1 : ℝ) / (s i : ℝ))

/-- The space `C^∞_0(ℝ^d)` of smooth, compactly supported test functions, as a
subspace of all real-valued functions on `ℝ^d`. -/
def testFunctions (d : ℕ) : Submodule ℝ (Pt d → ℝ) where
  carrier := {φ | ContDiff ℝ (⊤ : ℕ∞) φ ∧ HasCompactSupport φ}
  add_mem' := fun ⟨h1, h2⟩ ⟨g1, g2⟩ => ⟨h1.add g1, h2.add g2⟩
  zero_mem' := ⟨contDiff_const, by simpa using (HasCompactSupport.zero (α := Pt d) (β := ℝ))⟩
  smul_mem' := fun c _ ⟨h1, h2⟩ => ⟨h1.const_smul c, h2.smul_left⟩

/-- A distribution on `ℝ^d`: a linear functional on smooth compactly supported test
functions. -/
abbrev Distrib (d : ℕ) : Type := testFunctions d →ₗ[ℝ] ℝ

/-- The pairing `⟨ξ, φ⟩` of a distribution with a function, extended by `0` to
functions that are not test functions. -/
def Distrib.eval {d : ℕ} (ξ : Distrib d) (φ : Pt d → ℝ) : ℝ :=
  if h : φ ∈ testFunctions d then ξ ⟨φ, h⟩ else 0

/-- The rescaled test function
`(S^δ_{s,x} φ)(y) = δ^{-|s|} φ((y₁-x₁)/δ^{s₁}, …, (y_d-x_d)/δ^{s_d})`. -/
def scaledTest {d : ℕ} (s : Fin d → ℕ) (δ : ℝ) (x : Pt d) (φ : Pt d → ℝ) : Pt d → ℝ :=
  fun y => δ ^ (-(scaleDim s : ℝ)) * φ fun i => (y i - x i) / δ ^ (s i)

/-- The homeomorphism `y ↦ ((yᵢ - xᵢ)/δ^{sᵢ})ᵢ` of `ℝ^d` underlying `scaledTest`. -/
def scaleHomeo {d : ℕ} (s : Fin d → ℕ) {δ : ℝ} (hδ : δ ≠ 0) (x : Pt d) : Pt d ≃ₜ Pt d :=
  Homeomorph.piCongrRight fun i =>
    (Homeomorph.subRight (x i)).trans (Homeomorph.mulRight₀ (δ ^ (s i))⁻¹ (by simp [hδ]))

@[simp] theorem scaleHomeo_apply {d : ℕ} (s : Fin d → ℕ) {δ : ℝ} (hδ : δ ≠ 0) (x y : Pt d) :
    scaleHomeo s hδ x y = fun i => (y i - x i) / δ ^ (s i) := by
  funext i
  simp [scaleHomeo, Homeomorph.piCongrRight, Homeomorph.subRight, Homeomorph.mulRight₀,
    Equiv.mulRight₀, div_eq_mul_inv]

/-- Rescaling maps test functions to test functions. -/
theorem scaledTest_mem {d : ℕ} (s : Fin d → ℕ) {δ : ℝ} (hδ : 0 < δ) (x : Pt d)
    {φ : Pt d → ℝ} (hφ : φ ∈ testFunctions d) : scaledTest s δ x φ ∈ testFunctions d := by
  obtain ⟨hs, hc⟩ := hφ
  refine ⟨contDiff_const.mul (hs.comp (contDiff_pi.2 fun i =>
    ((contDiff_apply ℝ ℝ i).sub contDiff_const).div_const _)), ?_⟩
  have h2 : scaledTest s δ x φ =
      (fun _ : Pt d => δ ^ (-(scaleDim s : ℝ))) * (φ ∘ (scaleHomeo s hδ.ne' x)) := by
    funext y
    simp [scaledTest, Function.comp]
  rw [h2]
  exact (hc.comp_homeomorph _).mul_left

/-- The class `B^r_{s,0}` of test functions of Hairer §3.2: smooth functions supported in
the unit ball of the scaled distance `‖·‖_s`, all of whose derivatives up to order `r`
are bounded by `1` (that is, `‖η‖_{C^r} ≤ 1`).

Hairer tests against all `C^r` functions of this kind; restricting to smooth ones
defines the same spaces `C^α_s`. -/
structure IsTestBall {d : ℕ} (s : Fin d → ℕ) (r : ℕ) (η : Pt d → ℝ) : Prop where
  smooth : ContDiff ℝ (⊤ : ℕ∞) η
  compactSupport : HasCompactSupport η
  support : tsupport η ⊆ {y | snorm s y ≤ 1}
  derivBound : ∀ k ≤ r, ∀ y, ‖iteratedFDeriv ℝ k η y‖ ≤ 1

/-- The integer `r = -⌊α⌋` used in Hairer's Definition 3.7 to test distributions of
regularity `α < 0`. -/
def negReg (α : ℝ) : ℕ := (-⌊α⌋).toNat

/-- **Definition 3.7 (Hairer).** For `α < 0`, a distribution `ξ` belongs to `C^α_s` if,
for every compact set `K`, there is a constant `C` such that
`|⟨ξ, S^δ_{s,x} η⟩| ≤ C δ^α` uniformly over `x ∈ K`, `δ ∈ (0,1]` and `η ∈ B^r_{s,0}`,
where `r = -⌊α⌋`. -/
def MemCalpha {d : ℕ} (s : Fin d → ℕ) (α : ℝ) (ξ : Distrib d) : Prop :=
  ∀ K : Set (Pt d), IsCompact K → ∃ C : ℝ, ∀ x ∈ K, ∀ δ : ℝ, 0 < δ → δ ≤ 1 →
    ∀ η : Pt d → ℝ, IsTestBall s (negReg α) η →
      |ξ.eval (scaledTest s δ x η)| ≤ C * δ ^ α

end Hairer
Source
M. Hairer, A theory of regularity structures, Inventiones Mathematicae 198 (2014) 269-504, arXiv:1303.5113 (v4), Section 2.3 (scalings, rescaled test functions) and Definition 3.7 (p. 31)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

This bundle introduces a chain of definitions about functions on a finite-dimensional real coordinate space, together with two proved auxiliary facts. Throughout, ddd is a natural number and a point is an element of Rd\mathbb{R}^dRd, formalized as a function from the ddd-element index set {0,…,d−1}\{0,\dots,d-1\}{0,…,d−1} to R\mathbb{R}R; the value d=0d=0d=0 is allowed, in which case R0\mathbb{R}^0R0 is a one-point space.

Scalings. For a tuple s=(s0,…,sd−1)s=(s_0,\dots,s_{d-1})s=(s0​,…,sd−1​) of natural numbers, the predicate "sss is a scaling" asserts exactly that si≥1s_i\ge 1si​≥1 for every index iii; for d=0d=0d=0 this holds vacuously. The associated effective dimension is the natural number ∣s∣=∑isi|s|=\sum_{i} s_i∣s∣=∑i​si​, which is 000 when d=0d=0d=0. The associated scaled quasi-norm of a point xxx is defined as

∥x∥s  =  sup⁡i∣xi∣1/si,\|x\|_s \;=\; \sup_{i} |x_i|^{1/s_i},∥x∥s​=isup​∣xi​∣1/si​,

where the exponent 1/si1/s_i1/si​ is a real exponent and the power is the real power function. Two degenerate readings are forced by the definition and are not excluded by it: when d=0d=0d=0 the supremum is over an empty index family and equals 000; and if some si=0s_i=0si​=0 (which the scaling predicate forbids but this definition does not), the exponent is 1/0=01/0=01/0=0 and the term equals 111 even at xi=0x_i=0xi​=0. The definition is a supremum over a finite family, hence attained when d≥1d\ge 1d≥1.

Test functions and distributions. The test functions on Rd\mathbb{R}^dRd form the linear subspace of all real-valued functions on Rd\mathbb{R}^dRd consisting of those φ\varphiφ that are infinitely differentiable and have compact support; the bundle proves this collection is closed under addition and scalar multiplication and contains 000. A distribution is then any R\mathbb{R}R-linear map from this subspace of test functions to R\mathbb{R}R. No continuity, boundedness, or seminorm-estimate condition is imposed: this is the full algebraic dual of the space of smooth compactly supported functions. The pairing ⟨ξ,φ⟩\langle\xi,\varphi\rangle⟨ξ,φ⟩ is defined for an arbitrary function φ:Rd→R\varphi:\mathbb{R}^d\to\mathbb{R}φ:Rd→R as the value of ξ\xiξ at φ\varphiφ when φ\varphiφ is a test function, and as the junk value 000 otherwise; so every statement written with this pairing is automatically satisfied in a trivial way whenever the function being paired fails to be smooth with compact support.

Rescaled test functions. For a tuple sss, a real number δ\deltaδ, a point xxx and an arbitrary function φ:Rd→R\varphi:\mathbb{R}^d\to\mathbb{R}φ:Rd→R, the rescaled function Ss,xδφS^{\delta}_{s,x}\varphiSs,xδ​φ is

(Ss,xδφ)(y)  =  δ−∣s∣ φ(y0−x0δs0,…,yd−1−xd−1δsd−1),\bigl(S^{\delta}_{s,x}\varphi\bigr)(y) \;=\; \delta^{-|s|}\,\varphi\Bigl(\tfrac{y_0-x_0}{\delta^{s_0}},\dots,\tfrac{y_{d-1}-x_{d-1}}{\delta^{s_{d-1}}}\Bigr),(Ss,xδ​φ)(y)=δ−∣s∣φ(δs0​y0​−x0​​,…,δsd−1​yd−1​−xd−1​​),

with δ−∣s∣\delta^{-|s|}δ−∣s∣ a real power and each δsi\delta^{s_i}δsi​ a natural-number power. The definition is total: it also applies to δ≤0\delta\le 0δ≤0, where the real power and the divisions take their conventional total-function values (in particular each division by 000 yields 000).

Two proved auxiliary facts. (i) For δ≠0\delta\neq 0δ=0 the map y↦((yi−xi)/δsi)iy\mapsto\bigl((y_i-x_i)/\delta^{s_i}\bigr)_iy↦((yi​−xi​)/δsi​)i​ is a homeomorphism of Rd\mathbb{R}^dRd, and a simplification lemma records that this homeomorphism is given by exactly that formula. (ii) For every δ>0\delta>0δ>0, every point xxx and every test function φ\varphiφ, the rescaled function Ss,xδφS^{\delta}_{s,x}\varphiSs,xδ​φ is again a test function, i.e. smooth with compact support.

The class of unit test functions. For a tuple sss and a natural number rrr, a function η:Rd→R\eta:\mathbb{R}^d\to\mathbb{R}η:Rd→R is declared to be in the class Bs,0r\mathcal{B}^r_{s,0}Bs,0r​ when all four of the following hold: η\etaη is infinitely differentiable; η\etaη has compact support; the closure of the support of η\etaη is contained in {y:∥y∥s≤1}\{y:\|y\|_s\le 1\}{y:∥y∥s​≤1}; and for every natural number k≤rk\le rk≤r and every point yyy, the operator norm of the kkk-th iterated Fréchet derivative of η\etaη at yyy is at most 111 (for k=0k=0k=0 this says ∣η(y)∣≤1|\eta(y)|\le 1∣η(y)∣≤1 everywhere). Smoothness is required, not merely CrC^rCr regularity. The class is never empty: the zero function satisfies all four conditions, so any statement quantified over this class includes the trivial test function η=0\eta=0η=0.

The integer attached to a regularity exponent. For a real α\alphaα, the natural number r(α)r(\alpha)r(α) is defined as max⁡(0,−⌊α⌋)\max\bigl(0,-\lfloor\alpha\rfloor\bigr)max(0,−⌊α⌋); it is 000 for every α≥0\alpha\ge 0α≥0, and equals −⌊α⌋-\lfloor\alpha\rfloor−⌊α⌋ for α<0\alpha<0α<0 (e.g. r(−1.5)=2r(-1.5)=2r(−1.5)=2, r(−1)=1r(-1)=1r(−1)=1).

The space Csα\mathcal{C}^{\alpha}_sCsα​. Finally, for a tuple sss, a real number α\alphaα and a distribution ξ\xiξ, membership of ξ\xiξ in Csα\mathcal{C}^{\alpha}_sCsα​ is defined to mean:

∀ K⊆Rd compact, ∃ C∈R, ∀x∈K, ∀δ∈(0,1], ∀η∈Bs,0r(α):∣⟨ξ, Ss,xδη⟩∣  ≤  C δα,\forall\,K\subseteq\mathbb{R}^d \text{ compact},\ \exists\, C\in\mathbb{R},\ \forall x\in K,\ \forall \delta\in(0,1],\ \forall \eta\in\mathcal{B}^{r(\alpha)}_{s,0}:\quad \bigl|\langle \xi,\ S^{\delta}_{s,x}\eta\rangle\bigr|\;\le\; C\,\delta^{\alpha},∀K⊆Rd compact, ∃C∈R, ∀x∈K, ∀δ∈(0,1], ∀η∈Bs,0r(α)​:​⟨ξ, Ss,xδ​η⟩​≤Cδα,

with δα\delta^{\alpha}δα the real power. The constant CCC is chosen after the compact set KKK and before xxx, δ\deltaδ and η\etaη, so it is uniform in those three; CCC is not required to be positive or even nonnegative, and α\alphaα is not required to be negative — for α≥0\alpha\ge0α≥0 the test class is the one with r=0r=0r=0, i.e. only the sup-norm of η\etaη is constrained. The empty set is among the compact sets KKK, for which the condition is vacuous.

Human review
  • Endorsed by Shuze Chen · Sep 12, 2026

  • Endorsed by LG · Sep 12, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me