In the setting of The Real Numbers: Standing Notation and Background, let (X,d) be a metric space and let Ω⊆X be open in (X,d). For a function ψ:Ω→R locally Lipschitz on Ω and x∈Ω, let ∣∇ψ∣(x), ∣∇+ψ∣(x), ∣∇−ψ∣(x) and ∣∇ψ∣∗(x) be its local slope, super-slope, sub-slope and upper envelope of the slope, with [a]+=max{a,0} and [a]−=max{−a,0} as there; and let C(Ω) and C(Ω) be the sub-slope and super-slope test classes. For ψ locally Lipschitz on Ω and x∈Ω, a slope pair of ψ at x is one of (∣∇ψ∣(x),g) with g(a)=∣a∣, (∣∇+ψ∣(x),g) with g(a)=[a]+, and (∣∇−ψ∣(x),g) with g(a)=[a]−.
1. (Order)¶ Let ψ be locally Lipschitz on Ω and x∈Ω. Then ∣∇+ψ∣(x)≤∣∇ψ∣(x), ∣∇−ψ∣(x)≤∣∇ψ∣(x) and ∣∇ψ∣(x)≤∣∇ψ∣∗(x).
2. (Negation)¶ Let ψ be locally Lipschitz on Ω and x∈Ω. Then −ψ is locally Lipschitz on Ω, and ∣∇(−ψ)∣(x)=∣∇ψ∣(x), ∣∇+(−ψ)∣(x)=∣∇−ψ∣(x) and ∣∇−(−ψ)∣(x)=∣∇+ψ∣(x).
3. (Upper bound from difference quotients)¶ Let ψ,φ:Ω→R be locally Lipschitz on Ω, let x∈Ω, let (σ,g) be a slope pair of ψ at x, and let c be a nonnegative real. Suppose that for every real ε>0 there is a real r>0 such that
g(ψ(y)−ψ(x))≤(c+ε)d(x,y)+∣φ(y)−φ(x)∣for all y∈Ω with 0<d(x,y)<r.
Then σ≤c+∣∇φ∣(x).
4. (Lower bound from difference quotients)¶ Let ψ,φ:Ω→R be locally Lipschitz on Ω, let x∈Ω, let (σ,g) be a slope pair of ψ at x, and let c be a real number. Suppose that for all reals ε>0 and r>0 there is y∈Ω with 0<d(x,y)<r and
g(ψ(y)−ψ(x))≥(c−ε)d(x,y)−∣φ(y)−φ(x)∣.
Then c−∣∇φ∣(x)≤σ.
5. (Lipschitz functions)¶ Let ψ:Ω→R and let L be a nonnegative real with ∣ψ(y)−ψ(z)∣≤Ld(y,z) for all y,z∈Ω. Then ψ is locally Lipschitz on Ω, and ∣∇ψ∣(x)≤L and ∣∇ψ∣∗(x)≤L for every x∈Ω.
6. (Squared distances)¶ Suppose that (X,d) has interpolation points. Let x0∈X, let k be a nonnegative real, let C be a real, and let φ:Ω→R be given by φ(x)=kd(x,x0)2+C. Then φ is locally Lipschitz on Ω,
∣∇φ∣(x)=∣∇−φ∣(x)=2kd(x,x0)for every x∈Ω,
and φ∈C(Ω). Moreover −φ∈C(Ω) and ∣∇(−φ)∣(x)=∣∇+(−φ)∣(x)=2kd(x,x0) for every x∈Ω.