Exercise 2.5: Cantor inverse and a bounded cadlag path of infinite variation
ProvedKyprianou.exercise2_5_AllPartsCh02V3Part (i) constructs the Cantor staircase through its self-similar functional equations, then its right-continuous generalised inverse with positive dense jumps and bounded variation under a linear drift; part (ii) constructs a bounded cadlag path with alternating signed dyadic jumps and infinite total variation. The printed summand J(x) was corrected to J(s).
import Mathlib import Definitions.Def_LeanLevy_Processes_LevyProcess import Definitions.Def_Kyprianou_Ch01_LevyTripletExponent import Definitions.Def_KLSModular_LevyStochCalc_Brownian_Construction open MeasureTheory ProbabilityTheory Filter Complex open scoped NNReal ENNReal set_option autoImplicit false
namespace Kyprianou
theorem exercise2_5_AllPartsCh02V3 :
(∃ (F : ℝ → ℝ),
ContinuousOn F (Set.Icc (0 : ℝ) 1) ∧
MonotoneOn F (Set.Icc (0 : ℝ) 1) ∧
F 0 = 0 ∧ F 1 = 1 ∧
(∀ x ∈ Set.Icc (0 : ℝ) (1 / 3),
F x = (1 / 2 : ℝ) * F (3 * x)) ∧
(∀ x ∈ Set.Icc (1 / 3 : ℝ) (2 / 3),
F x = (1 / 2 : ℝ)) ∧
(∀ x ∈ Set.Icc (2 / 3 : ℝ) 1,
F x = (1 / 2 : ℝ) + (1 / 2 : ℝ) * F (3 * x - 2)) ∧
let inverse : ℝ → ℝ := fun x =>
if x < 1 then sInf
{θ : ℝ | θ ∈ Set.Icc (0 : ℝ) 1 ∧ x < F θ}
else 1
∀ (a : ℝ),
let g : ℝ → ℝ := fun x => inverse x - a * x
(MonotoneOn g (Set.Icc (0 : ℝ) 1) ↔ a ≤ 0) ∧
LocallyBoundedVariationOn g (Set.Icc (0 : ℝ) 1) ∧
(∀ x ∈ Set.Icc (0 : ℝ) 1,
ContinuousWithinAt g (Set.Icc x 1) x) ∧
(∀ x ∈ Set.Ioc (0 : ℝ) 1, ∃ l : ℝ,
Tendsto g (nhdsWithin x (Set.Iio x)) (nhds l) ∧
l ≤ g x) ∧
closure {x : ℝ |
x ∈ Set.Icc (0 : ℝ) 1 ∧
∃ l : ℝ,
Tendsto g (nhdsWithin x (Set.Iio x)) (nhds l) ∧
l < g x} = Set.Icc (0 : ℝ) 1) ∧
(∃ f : ℝ → ℝ,
(∀ x ∈ Set.Icc (0 : ℝ) 1, |f x| ≤ 1) ∧
(∀ x ∈ Set.Icc (0 : ℝ) 1,
ContinuousWithinAt f (Set.Icc x 1) x) ∧
(∀ x ∈ Set.Ioc (0 : ℝ) 1,
∃ l : ℝ,
Tendsto f (nhdsWithin x (Set.Iio x)) (nhds l)) ∧
¬ LocallyBoundedVariationOn f (Set.Icc (0 : ℝ) 1) ∧
(∀ (n k : ℕ), 0 < n → Odd k →
(k : ℝ) / (2 : ℝ) ^ n ≤ 1 →
∃ l : ℝ,
Tendsto f
(nhdsWithin ((k : ℝ) / (2 : ℝ) ^ n)
(Set.Iio ((k : ℝ) / (2 : ℝ) ^ n)))
(nhds l) ∧
f ((k : ℝ) / (2 : ℝ) ^ n) - l =
(if k % 4 = 1 then (1 : ℝ) / (2 : ℝ) ^ n
else -(1 : ℝ) / (2 : ℝ) ^ n)))
:= by sorry
end Kyprianou
Read-back
What the Lean code literally says, in plain math · opencode-go/muse-spark-1.3-contributor#minimal
This theorem Kyprianou.exercise2_5_AllPartsCh02V3 has no
hypotheses. It claims a conjunction A /\ B, proved by sorry:
1. First conjunct A: Cantor function and its generalized inverse
Claim:
There exists
F : R -> Rsuch that ...
ContinuousOn F (Icc 0 1): continuous relative to[0,1].MonotoneOn F (Icc 0 1): non-decreasing on[0,1].F 0 = 0,F 1 = 1.forall x in Icc 0 (1/3), F x = 1/2 * F (3*x).forall x in Icc (1/3) (2/3), F x = 1/2.forall x in Icc (2/3) 1, F x = 1/2 + 1/2 * F (3*x-2).
This is the Cantor / Devil's staircase. Overlap at 1/3,2/3
is consistent: 1/2*F 1 = 1/2, 1/2+1/2*F 0 = 1/2.
Let, for that F:
inverse x = if x < 1 then sInf {theta in Icc 0 1 | x < F theta} else 1
i.e. right-quantile generalized inverse, with special case 1
at x >= 1 to avoid sInf {}. For x<1, 1 is in the set
since F 1=1, so non-empty, bounded below by 0; sInf exists.
For very negative x, if F >= 0 on [0,1], the set is all of
[0,1] and inverse x = 0.
Claim: forall a:R, let g x = inverse x - a*x, then:
a. MonotoneOn g (Icc 0 1) <-> a <= 0.
b. LocallyBoundedVariationOn g (Icc 0 1).
c. forall x in Icc 0 1, ContinuousWithinAt g (Icc x 1) x:
right-continuous on [0,1], trivial at x=1 since Icc 1 1
is a singleton.
d. forall x in Ioc 0 1, exists l:R, Tendsto g (nhdsWithin x (Iio x)) (nhds l) /\ l <= g x:
finite left limit exists and is <= value.
e. closure {x in Icc 0 1 | exists l, left-limit l /\ l < g x} = Icc 0 1:
strict left-jump points are dense in [0,1].
Assessment:
No premise implies existence by logic alone; it needs construction.
Mathematically true for the Cantor function: inverse is
non-decreasing, hence BV; g is BV as sum of BV; monotone =>
right-limits/left-limits theory gives c,d in monotone case,
BV theory in a>0 case.
a is non-vacuous and sharp: whole increase of inverse on
[0,1] is 1, so a>1 fails globally; arbitrarily small
a>0 fails locally because F has ratios (3/2)^n, so
inverse has arbitrarily small slopes (2/3)^n between jumps.
This does not follow syntactically from 1-6; it needs
surjectivity onto [0,1], no jumps of F, density of flat
values, strict increase of inverse.
e corresponds to flats of F on removed middle-thirds,
values dyadic rationals, dense. 0 is not itself a jump:
for x<0, inverse=0, g(x)=-a*x, left limit at 0 is 0=g 0;
1 is not necessarily a jump but both are limit points of jumps,
so closure is the whole interval. closure is in R; since
[0,1] is closed, this asserts density.
Missing/needed: monotonicity, non-emptiness, boundedness for
sInf; right-continuity of sInf{F>x}; BV => left/right
limits; uniqueness of F from 1-6 + continuity to transfer
Q(F) from one Cantor function to any such F.
2. Second conjunct B: regulated not BV
Claim:
There exists
f : R -> Rsuch that ...
forall x in Icc 0 1, |f x| <= 1: bounded by1on[0,1], unrestricted outside.forall x in Icc 0 1, ContinuousWithinAt f (Icc x 1) x: right-continuous, trivial at1.forall x in Ioc 0 1, exists l, Tendsto f (nhdsWithin x (Iio x)) (nhds l): finite left limit everywhere in(0,1]; i.e. regulated.~LocallyBoundedVariationOn f (Icc 0 1).forall n k:N, 0<n -> Odd k -> (k: R)/(2:R)^n <= 1 -> exists l,Tendsto f (nhdsWithin (k/2^n) (Iio (k/2^n))) (nhds l) /\f(k/2^n)-l = if k%4=1 then 1/2^n else -1/2^n.
So at every reduced dyadic k/2^n in (0,1], k odd, left-jump
magnitude exactly 1/2^n, sign + if k=1 mod 4, - otherwise.
Since k odd, else means k=3 mod 4.
Assessment:
Non-vacuous: for each n>0, e.g. k=1 satisfies premises.
Reduced odd representation of a dyadic is unique, so 5 is
self-consistent; no point gets two contradictory prescriptions.
Non-odd representations impose nothing.
Mathematically true as existence claim: classic regulated,
bounded, infinite-variation example. 4 does follow from 3+5:
finite variation would dominate sum of |jumps| over finite sets;
for fixed n there are ~2^(n-1) jumps of size 2^-n, sum ~1/2
per level, divergent over n. Bound |f|<=1 is compatible because
signs alternate; it does not follow from 5, it is an extra
construction requirement.
Exceptional cases: n=0 excluded, so jump 1 at integers not
required; k=0 excluded by Odd; points >1 impose nothing;
behaviour outside [0,1] free.
In sum: as written nothing entails anything; both conjuncts are
substantive existence theorems currently sorry-ed, not logical
tautologies. No condition is vacuous, overlaps are consistent,
but all of a,b,c,d,e and 4 require non-trivial analysis beyond
the listed equalities.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.