| str0.last ∈ str, ∀ str1, str. # str1 < # str0 → true → string-right-trim(str, string-right-trim(str, str1)) = string-right-trim(str, str1) ⊦ str0 = "", string-right-trim(str, string-right-trim(str, str0.butlast)) = string-right-trim(str, str0.butlast) |
Used simplifier rules: butlast-length: ⊦ str ≠ "" → # str.butlast = # str - 1;% ⊦ # str = 0 ↔ str = "";% ⊦ m < 1 ↔ m = 0;% ⊦ ¬ m ≤ n ↔ n < m;%n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0;% ⊦ m < n + 1 ↔ ¬ n < m;% ⊦ ¬ n < n;% ⊦ (m + n0) + n1 = m + n0 + n1;% ⊦ m + n = n + m; Used terms: str, str0.butlast