| n = # countFun(i, j - 1, intfun), i ≤ j, 0 ≤ j, 0 ≤ i, n→i(n) + i ≤ j, i ≤ j, ∀ j0, i0, n, intfun. i→n(j0) - i→n(i0) < i→n(j) - i→n(i) → i0 ≤ j0 ∧ n→i(n) + i0 ≤ j0 ∧ 0 ≤ i0 ∧ 0 ≤ j0 → countFun(i0, j0, intfun)[n] = intfun(i0 + n→i(n)) ⊦ intfun(j) = intfun(i + n→i(n)) |
⊦ 0 ≤ i ∧ i ≤ j → # countFun(i, j, intfun) = i→n(1 + j - i)
Used simplifier rules: countFun-base-02: ⊦ countFun(j, j - 1, intfun) = [];%Sub-def: ⊦ i + (j - i) = j; from specification int-abs%add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2%add-c: ⊦ i + j = j + i; from specification int-basic2%ini2-abs: ⊦ n→i(i→n(i)) = abs(i); from specification intnat%abssub: ⊦ j ≤ i → abs(i - j) = i - j; from specification int-abs%zero-gels-04: ⊦ i ≤ 0 ∧ 0 ≤ j → i ≤ j; from specification int-abs%sub-le-01: ⊦ i ≤ j - i0 ↔ i + i0 ≤ j; from specification int-abs%succ-01: ⊦ i + 1 ≤ j ↔ i < j; from specification int-abs%lels: ⊦ ¬ i < j ↔ j ≤ i; from specification int-abs%anti: ⊦ i ≤ j → (j ≤ i ↔ i = j); from specification int-abs%size-01: ⊦ # [] = 0; from specification list-data[intlista]%ax-04: ⊦ i + 0 = i; from specification int-basic2 Used terms: intfun, j - 1, i