| 1 + # al1 + # al2 = # sl, ⌜al1⌝ ^ = ⌜a '⌝ , ⌜al2⌝ ^ = ⌜al0⌝ , ∀ n. ¬ # al1 + # al2 ≤ n → stepf(sl[n], (al1 + al2)[n], sl[n + 1]), ∀ startf, stepf, s, s2, n. move(IOAut(startf, stepf))(s, ⌜al0⌝ , s2) ∧ n ≤ # al0 → (∃ s0. move(IOAut(startf, stepf))(s, ⌜al0 to n⌝ , s0) ∧ move(IOAut(startf, stepf))(s0, ⌜al0 from n⌝ , s2)) ⊦ ∃ s0. move(IOAut(startf, stepf))(sl[0], ⌜a '⌝ + ⌜al0 to m⌝ , s0) ∧ move(IOAut(startf, stepf))(s0, ⌜al0 from m⌝ , sl.last), (# ⌜restn(# al1, sl)⌝ = # ⌜al2⌝ + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # ⌜al2⌝ → stepf(⌜restn(# al1, sl)⌝ [n], ⌜al2⌝ [n], ⌜restn(# al1, sl)⌝ [n +1]))) ∧ sl[# al1] = restn(# al1, sl)[0] ∧ sl.last = restn(# al1, sl).last |
1 + # al1 + # al2 = # sl, ⌜al1⌝ ^ = ⌜a '⌝ , ⌜al2⌝ ^ = ⌜al0⌝ , ∀ n. ¬ # al1 + # al2 ≤ n → stepf(sl[n], (al1 + al2)[n], sl[n + 1]), ∀ startf, stepf, s, s2, n. move(IOAut(startf, stepf))(s, ⌜al0⌝ , s2) ∧ n ≤ # al0 → (∃ s0. move(IOAut(startf, stepf))(s, ⌜al0 to n⌝ , s0) ∧ move(IOAut(startf, stepf))(s0, ⌜al0 from n⌝ , s2)) ⊦ ∃ s0. move(IOAut(startf, stepf))(sl[0], ⌜a '⌝ + ⌜al0 to m⌝ , s0) ∧ move(IOAut(startf, stepf))(s0, ⌜al0 from m⌝ , sl.last), # al2 + 1 = # sl - # al1 ∧ (n < # al2 → stepf(restn(# al1, sl)[n], al2[n], restn(# al1, sl)[n + 1])) ∧ sl[# al1] = restn(# al1, sl)[0] ∧ sl.last = restn(# al1, sl).last
Used simplifier rules: ⊦ m +1 = m + 1;% ⊦ ⌜al⌝ [n] = al[n];% ⊦ ⌜sl⌝ [n] = sl[n];% ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n;% ⊦ n∞1 + n∞2 = n∞2 + n∞1;% ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2;% ⊦ ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n + m = n0;% ⊦ # ⌜al⌝ = ⌜# al⌝ ;%n ≤ # sl ⊦ # restn(n, sl) = # sl - n;% ⊦ ¬ m ≤ n ↔ n < m;% ⊦ m < n ∧ m = n0 → n0 < n; (forward)% ⊦ m < n → n ≠ 0; (forward)% ⊦ # al = 0 ↔ al = [];% ⊦ ¬ m + n < m;% ⊦ (m + n0) + n1 = m + n0 + n1;% ⊦ m + n = n + m;% ⊦ # ⌜sl⌝ = ⌜# sl⌝ ;