theoremwordAffine_slope_le_one (S : System ι) (u : List ι) :
|(S.wordAffine u).1| ≤1:=by
proof · 5
lines
induction u with
| nil => simp [System.wordAffine]
| cons i u ih =>
simpa only [System.wordAffine, abs_mul, mul_one] using
mul_le_mul (S.ratio_lt_one i).le ih (abs_nonneg _) (bynorm_num : (0:ℝ) ≤1)
theoremequal_map_prefix (S : System ι) (u w : List ι)
(he : S.wordAffine u = S.wordAffine (u ++ w)) : w = [] :=by
proof · 10
lines
have hs := congrArg Prod.fst he
rw [S.wordAffine_append] at hs
havehn : (S.wordAffine u).1≠0:= abs_pos.mp (wordAffine_slope_pos S u)
havehw : (S.wordAffine w).1 = 1:=by
apply mul_left_cancel₀ hn
simpa using hs.symm
by_contra hne
have hc := wordAffine_slope_lt_one S hne
rw [hw, abs_one] at hc
exact (lt_irrefl 1) hc
Prefix comparison extracted directly from equality of concatenations.
theoremprefix_comparison {α : Type uα} (u v x y : List α)
(h : u ++ x = v ++ y) :
(∃ w, v = u ++ w) ∨ (∃ w, u = v ++ w) :=by
proof · 11
lines
induction u generalizing v with
| nil => exact Or.inl ⟨v, rfl⟩
| cons a u ih =>
cases v with
| nil => exact Or.inr ⟨a :: u, rfl⟩
| cons b v =>
simp only [List.cons_append, List.cons.injEq] at h
obtain ⟨rfl, ht⟩ := h
rcases ih v ht with ⟨w, hw⟩ | ⟨w, hw⟩
· exact Or.inl ⟨w, by simp [hw]⟩
· exact Or.inr ⟨w, by simp [hw]⟩
Source lemma lem:overlap-lengths, with complete signed affine maps.
theoremoverlap_lengths (S : System ι) {u v : List ι}
(_hu : u ≠ []) (_hv : v ≠ []) (hne : u ≠ v)
(he : S.wordAffine u = S.wordAffine v) :
∃a b : List ι, a ≠ [] ∧ b ≠ [] ∧ a.length = b.length ∧
a ≠ b ∧S.wordAffine a = S.wordAffine b :=by
proof · 15
lines
refine ⟨u ++ v, v ++ u, ?_, ?_, ?_, ?_, ?_⟩
· intro hempty
exact _hu (List.append_eq_nil_iff.mp hempty).1
· intro hempty
exact _hv (List.append_eq_nil_iff.mp hempty).1
· simp [Nat.add_comm]
· intro hc
rcases prefix_comparison u v v u hc with ⟨w, hw⟩ | ⟨w, hw⟩
· have hw0 := equal_map_prefix S u w (hw ▸ he)
apply hne
simpa [hw0] using hw.symm
· have hw0 := equal_map_prefix S v w (hw ▸ he.symm)
apply hne
simpa [hw0] using hw
· simp only [S.wordAffine_append, he]
theoremsameLength_list_injective (S : System ι) (h : SameLengthNoExactOverlapsS)
(u v : List ι) (hl : u.length = v.length)
(he : S.wordAffine u = S.wordAffine v) : u = v :=by
proof · 7
lines
induction u usingList.ofFnRec with
| h n f =>
induction v usingList.ofFnRec with
| h m g =>
simp only [List.length_ofFn] at hl
subst m
exact congrArg List.ofFn (h n he)
Adding the empty word does not strengthen the usual overlap assumption.
theoremnoExactOverlaps_iff_nonempty (S : System ι) :
NoExactOverlapsS↔∀u v : List ι, u ≠ [] → v ≠ [] →S.wordAffine u = S.wordAffine v → u = v :=by
proof · 12
lines
constructor
· intro h u v _ _ he
exact h he
· intro h u v he
by_cases hu : u = []
· subst u
have hv := equal_map_prefix S [] v (by simpa using he)
exact hv.symm
by_cases hv : v = []
· subst v
exact equal_map_prefix S [] u (by simpa using he.symm)
exact h u v hu hv he
theoremnoExactOverlaps_iff_sameLength (S : System ι) :
NoExactOverlapsS↔SameLengthNoExactOverlapsS:=by
proof · 7
lines
refine ⟨noExactOverlaps_sameLength S, ?_⟩
intro h
apply (noExactOverlaps_iff_nonempty S).mpr
intro u v hu hv he
by_contra hne
obtain ⟨a,b,_,_,hl,hab,heab⟩ := overlap_lengths S hu hv hne he
exact hab (sameLength_list_injective S h a b hl heab)
Native product entropy of the symbol word; no random-walk entropy hypothesis.
noncomputabledefthreeMapSystem (lam t : ℝ) (hlam : 0 < lam) (hlam1 : lam < 1)
(p : Fin3→ℝ) (hp : ∀ i, 0 < p i) (hp1 : ∑ i, p i = 1) : System (Fin3) where
body · 7
lines
ratio :=fun _ => lam
offset := ![0, 1, t]
weight := p
ratio_pos :=fun _ =>by simpa [abs_of_pos hlam] using hlam
ratio_lt_one :=fun _ =>by simpa [abs_of_pos hlam] using hlam1
weight_pos := hp
weight_sum := hp1
theoremthree_maps_dimension (lam t : ℝ) (hlam : 0 < lam) (hlam1 : lam < 1)
(p : Fin3→ℝ) (hp : ∀ i, 0 < p i) (hp1 : ∑ i, p i = 1)
(μ : Measureℝ) [IsProbabilityMeasure μ]
(hμ : (threeMapSystem lam t hlam hlam1 p hp hp1).SelfSimilar μ)
(h : NoExactOverlaps (threeMapSystem lam t hlam hlam1 p hp hp1)) :
lowerHausdorffDimension μ = ENNReal.ofReal
(min 1 ((-(∑ i, p i * Real.log (p i))) / Real.log (1/lam))) :=by
proof · 4
lines
simpa [symbolEntropy, threeMapSystem, Real.negMulLog, neg_mul,
Finset.sum_neg_distrib] using
homogeneous_dimension (threeMapSystem lam t hlam hlam1 p hp hp1) hlam
(fun _ => rfl) μ hμ h