| ⊦ ((ls(r, x) * P))(H) ↔ (∃ a, y, r0. ((r => a × r0 * ls(r0, y) * P))(H) ∧ x = a ' + y), r = null |
x = a0 + x0 ⊦ ((ls(r, x) * P))(H) ↔ (∃ a, y, r0. ((r => a × r0 * ls(r0, y) * P))(H) ∧ x = a ' + y), r = null
Used simplifier rules: ls-base: ⊦ ls(r, []) = (emp ∧ ⌜r = null⌝ );%list freely generated by [], +;;% ⊦ ⌜false⌝ = false; (s)% ⊦ (false ∧ P) = false; (s)%and-ass: ⊦ ((P0 ∧ P1) ∧ P2) = (P0 ∧ P1 ∧ P2); from specification heap-sep%and-com: ⊦ (P0 ∧ P1) = (P1 ∧ P0); from specification heap-sep% ⊦ false * P = false; (s)%sep-ass: ⊦ (P0 * P1) * P2 = P0 * P1 * P2; from specification heap-sep%sep-com: ⊦ P0 * P1 = P1 * P0; from specification heap-sep% ⊦ ¬ false(H); (s)% ⊦ a ' + x ≠ []; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list