| ⊦ encode(m, n) = 0 ↔ m = 0 ∧ n = 0 |
⊦ encode(m, n) = ((m + n) * (m + n + 1)) / 2 + n
Used simplifier rules: ⊦ m * (n + 1) = m * n + m; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic%mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult%mult-c: ⊦ m * n = n * m; from specification nat-mult% ⊦ m + n = 0 ↔ m = 0 ∧ n = 0; (ws)% ⊦ n + 0 = n; (s)% ⊦ m / 2 = 0 ↔ m = 0 ∨ m = 1; (s)% ⊦ m * m + m ≠ 1; (s) Used terms: n, m