| #((σ to n0 + m) + σ0 from m) = #((σ to m + n0) from m) + # σ0, ⌜n1⌝ + ⌜n0⌝ < #((σ to m + n0) from m) + # σ0, ⌜n1⌝ < # σ0, ⌜n1⌝ + ⌜n0⌝ < #((σ to m + n0) from m) ⊦ σ0[n1] = ((σ to m + n0) from m)[n1 + n0], # σ < ⌜m⌝ + ⌜n0⌝ , # σ < ⌜n0⌝ + ⌜m⌝ |
Used simplifier rules: to-fin: ⊦ ⌜x⌝ to n = ⌜x to n⌝ ;%from-fin: ⊦ ⌜x⌝ from n = ⌜x from n⌝ ;%size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ;%sel-fin: ⊦ ⌜x⌝ [n] = x[n];%length-to: ¬ # x < n ⊦ #(x to n) = n;%length-from: ¬ # x < n ⊦ #(x from n) = # x - n;%to-inf: ⊦ ⌜nf⌝ to n = ⌜nf to n⌝ ;%from-fin: ⊦ ⌜x⌝ from n = ⌜x from n⌝ ;%size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ;%size-inf-to: ⊦ #(nf to n) = n;%length-from: ¬ # x < n ⊦ #(x from n) = # x - n;%sel-fin: ⊦ ⌜x⌝ [n] = x[n];%stream freely generated by ⌜ ⌝, ⌜ ⌝;;% ⊦ ¬ m + n < m; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ m + n - m = n; (s)% ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s)%add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf%add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf% ⊦ ⌜n⌝ < ⌜m⌝ + ⌜n0⌝ ↔ n < m + n0; (s)% ⊦ m < n ↔ ¬ n ≤ m; (ss)% ⊦ m < n → (n ≤ m ↔ false); (s)