[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 1 from proof pending-ok-persist (conclusion) (back to tree)

⊦ pendingOk(p) ∧ p(l) = fow ' + fowl → pendingOk(p(l := fowl))

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof pending-ok-persist (previous step) (back to tree)

p(l) = fow ' + fowl, pendingOk(p), ¬ pendingOk(p(l := fowl)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: pendingOk: ⊦ pendingOk(p) ↔ (∀ l, t. #(p(l) |W | t) ≤ 1); a: ⊦ (x + y) + z = x + y + z; from specification list in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list ⊦ # x = 0 ↔ x = []; (s) ⊦ 1 < m ↔ ¬(m = 0 ∨ m = 1); (s) ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 3 from proof pending-ok-persist (previous step) (back to tree)

p(l) = fow ' + fowl, #((l = l0 ⊃ fowl;p(l0)) |W | t) ≠ 1, (l = l0 ⊃ fowl;p(l0)) |W | t ≠ [], fow ∈ p(l), ∀ l, t. #(p(l) |W | t) ≤ 1 ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 2

Additional information

Proof step 4 from proof pending-ok-persist (previous step) (back to tree)

l = l0, p(l) = fow ' + fowl, #(fowl |W | t) ≠ 1, (l = l0 ⊃ fowl;p(l0)) |W | t ≠ [], fow ∈ p(l), ∀ l, t. #(p(l) |W | t) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list

Proof step 5 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ p(l0), ∀ l, t. #(p(l) |W | t) ≤ 1 ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 5 terms: l0, t abort: F discard: T computed: T

Additional information

Used terms: l0, t

Proof step 6 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ p(l0), #(p(l0) |W | t) ≤ 1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:filterwrites-def, seq: ⊦ fowl |W = fowl.filter(λ fow. fow.W?), subst:[fowl] → [p(l0)], <all paths>

Additional information

Used terms: p(l0)

Proof step 7 from proof pending-ok-persist (previous step) (back to tree)

⊦ fowl |W = fowl.filter(λ fow. fow.W?)

Lemma filterwrites-def

Proof step 8 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ p(l0), #(p(l0).filter(λ fow. fow.W?) | t) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 9 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ p(l0), #(p(l0).filter(.W?) | t) ≤ 1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:filtertid-def, seq: ⊦ fowl | t = fowl.filter(λ fow. fow.tid = t), subst:[fowl, t] → [p(l0).filter(.W?), t], <all paths>

Additional information

Used terms: p(l0).filter(.W?), t

Proof step 10 from proof pending-ok-persist (previous step) (back to tree)

⊦ fowl | t = fowl.filter(λ fow. fow.tid = t)

Lemma filtertid-def

Proof step 11 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ p(l0), # p(l0).filter(.W?).filter(λ fow. fow.tid = t) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x.filter(p) = x.count(p); (s)

Proof step 12 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ p(l0), p(l0).filter(.W?).count(λ fow. fow.tid = t) ≤ 1 ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags:

Additional information

Proof step 13 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ fow ' + fowl, (fow ' + fowl).filter(.W?).count(λ fow. fow.tid = t) ≤ 1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: filter-count, name:filter-rec, seq: ⊦ (a ' + x).filter(p) = (p(a) ⊃ a ';[]) + x.filter(p), subst:[p, a, x] → [.W?, fow, fowl]; ['a] → [FOW], <all paths>

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: .W?, fow, fowl

Proof step 14 from proof pending-ok-persist (previous step) (back to tree)

⊦ (a ' + x).filter(p) = (p(a) ⊃ a ';[]) + x.filter(p)

A spec-lemma

Proof step 15 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], fow ∈ fow ' + fowl, ((fow.W? ⊃ fow ';[]) + fowl.filter(.W?)).count(λ fow. fow.tid = t) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a ∈ a0 ' + x ↔ a = a0 ∨ a ∈ x; (s) ⊦ (x + y).count(p) = x.count(p) + y.count(p); (s)

Proof step 16 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, #(fowl |W | t) ≠ 1, fowl |W | t ≠ [], (fow.W? ⊃ fow ';[]).count(λ fow. fow.tid = t) + fowl.filter(.W?).count(λ fow. fow.tid = t) ≤ 1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:filtertid-def, seq: ⊦ fowl | t = fowl.filter(λ fow. fow.tid = t), subst:[fowl, t] → [fowl |W, t], <all paths>

Additional information

Used terms: fowl |W, t

Proof step 17 from proof pending-ok-persist (previous step) (back to tree)

⊦ fowl | t = fowl.filter(λ fow. fow.tid = t)

Lemma filtertid-def

Proof step 18 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, # fowl |W.filter(λ fow. fow.tid = t) ≠ 1, fowl |W.filter(λ fow. fow.tid = t) ≠ [], (fow.W? ⊃ fow ';[]).count(λ fow. fow.tid = t) + fowl.filter(.W?).count(λ fow. fow.tid = t) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x.filter(p) = x.count(p); (s)

Proof step 19 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl |W.count(λ fow. fow.tid = t) ≠ 1, fowl |W.filter(λ fow. fow.tid = t) ≠ [], (fow.W? ⊃ fow ';[]).count(λ fow. fow.tid = t) + fowl.filter(.W?).count(λ fow. fow.tid = t) ≤ 1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:filterwrites-def, seq: ⊦ fowl |W = fowl.filter(λ fow. fow.W?), subst:[fowl] → [fowl], <all paths>

Additional information

Used terms: fowl

Proof step 20 from proof pending-ok-persist (previous step) (back to tree)

⊦ fowl |W = fowl.filter(λ fow. fow.W?)

Lemma filterwrites-def

Proof step 21 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl.filter(λ fow. fow.W?).count(λ fow. fow.tid = t) ≠ 1, fowl.filter(λ fow. fow.W?).filter(λ fow. fow.tid = t) ≠ [], (fow.W? ⊃ fow ';[]).count(λ fow. fow.tid = t) + fowl.filter(.W?).count(λ fow. fow.tid = t) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 22 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = t) ≠ 1, fowl.filter(.W?).filter(λ fow. fow.tid = t) ≠ [], (fow.W? ⊃ fow ';[]).count(λ fow. fow.tid = t) + fowl.filter(.W?).count(λ fow. fow.tid = t) ≤ 1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list, name:some-element, seq: ⊦ x = [] ↔ ¬(∃ a. a ∈ x), subst:[x] → [fowl.filter(.W?).filter(λ fow. fow.tid = t)]; ['a] → [FOW], <all paths>

Additional information

Used terms: fowl.filter(.W?).filter(λ fow. fow.tid = t)

Proof step 23 from proof pending-ok-persist (previous step) (back to tree)

⊦ x = [] ↔ ¬(∃ a. a ∈ x)

A spec-lemma

Proof step 24 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = t) ≠ 1, (fow.W? ⊃ fow ';[]).count(λ fow. fow.tid = t) + fowl.filter(.W?).count(λ fow. fow.tid = t) ≤ 1, ∃ a. a ∈ fowl.filter(.W?).filter(λ fow. fow.tid = t) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a ∈ x.filter(p) ↔ a ∈ x ∧ p(a); (s)

Proof step 25 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≠ 1, fow0.W?, fow0 ∈ fowl, (fow.W? ⊃ fow ';[]).count(λ fow. fow.tid = fow0.tid) + fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≤ 1 ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 5

Additional information

Proof step 26 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≠ 1, fow0.W?, fow.W?, fow0 ∈ fowl, fow '.count(λ fow. fow.tid = fow0.tid) + fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a '.count(p) = (p(a) ⊃ 1;0); (s)

Proof step 27 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≠ 1, fow.W?, fow0.W?, fow0 ∈ fowl, (fow.tid = fow0.tid ⊃ 1;0) + fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≤ 1 ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: FOW, name:elim-W, seq: ⊦ fow.W? → (val = fow.val ∧ tid = fow.tid ↔ fow = W(val, tid)), subst:[fow, val, tid] → [fow, v, t]

Additional information

Used simplifier rules: ⊦ fow.W? → (val = fow.val ∧ tid = fow.tid ↔ fow = W(val, tid)); (elim) Used terms: fow, v, t

Proof step 28 from proof pending-ok-persist (previous step) (back to tree)

fow = W(v, t), p(l0) = fow ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≠ 1, fow0.W?, fow.W?, fow0 ∈ fowl, (t = fow0.tid ⊃ 1;0) + fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list ⊦ W(v, tid).W?; (s)

Proof step 29 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t) ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≠ 1, fow0.W?, fow0 ∈ fowl, W(v, t) ∈ p(l0), (t = fow0.tid ⊃ 1;0) + fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≤ 1 ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: FOW, name:elim-W, seq: ⊦ fow.W? → (val = fow.val ∧ tid = fow.tid ↔ fow = W(val, tid)), subst:[fow, val, tid] → [fow0, v0, t0]

Additional information

Used simplifier rules: ⊦ fow.W? → (val = fow.val ∧ tid = fow.tid ↔ fow = W(val, tid)); (elim) Used terms: fow0, v0, t0

Proof step 30 from proof pending-ok-persist (previous step) (back to tree)

fow0 = W(v0, t0), p(l0) = W(v, t) ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = t0) ≠ 1, fow0.W?, W(v, t) ∈ p(l0), fow0 ∈ fowl, (t = t0 ⊃ 1;0) + fowl.filter(.W?).count(λ fow. fow.tid = t0) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ W(v, tid).W?; (s)

Proof step 31 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t) ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = t0) ≠ 1, W(v0, t0) ∈ fowl, W(v, t) ∈ p(l0), (t = t0 ⊃ 1;0) + fowl.filter(.W?).count(λ fow. fow.tid = t0) ≤ 1 ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 5

Additional information

Proof step 32 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t) ' + fowl, t = t0, fowl.filter(.W?).count(λ fow. fow.tid = t0) ≠ 1, W(v, t) ∈ p(l0), W(v0, t0) ∈ fowl, 1 + fowl.filter(.W?).count(λ fow. fow.tid = t0) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m ≠ 0 → (m + n ≤ 1 ↔ m = 1 ∧ n = 0); (ws)

Proof step 33 from proof pending-ok-persist (previous step) (back to tree)

fowl.filter(.W?).count(λ fow. fow.tid = t0) = 0, p(l0) = W(v, t0) ' + fowl, W(v, t0) ∈ p(l0), W(v0, t0) ∈ fowl ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: filter-count, name:count-zero-filter-nil, seq: ⊦ x.count(p) = 0 ↔ x.filter(p) = [], subst:[x, p] → [fowl.filter(.W?), λ fow. fow.tid = t0]; ['a] → [FOW], <all paths>

Additional information

Used terms: fowl.filter(.W?), λ fow. fow.tid = t0

Proof step 34 from proof pending-ok-persist (previous step) (back to tree)

⊦ x.count(p) = 0 ↔ x.filter(p) = []

A spec-lemma

Proof step 35 from proof pending-ok-persist (previous step) (back to tree)

fowl.filter(.W?).filter(λ fow. fow.tid = t0) = [], p(l0) = W(v, t0) ' + fowl, W(v0, t0) ∈ fowl, W(v, t0) ∈ p(l0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list, name:some-element, seq: ⊦ x = [] ↔ ¬(∃ a. a ∈ x), subst:[x] → [fowl.filter(.W?).filter(λ fow. fow.tid = t0)]; ['a] → [FOW], <all paths>

Additional information

Used terms: fowl.filter(.W?).filter(λ fow. fow.tid = t0)

Proof step 36 from proof pending-ok-persist (previous step) (back to tree)

⊦ x = [] ↔ ¬(∃ a. a ∈ x)

A spec-lemma

Proof step 37 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t0) ' + fowl, W(v, t0) ∈ p(l0), W(v0, t0) ∈ fowl, ∀ a. ¬ a ∈ fowl.filter(.W?).filter(λ fow. fow.tid = t0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a ∈ x.filter(p) ↔ a ∈ x ∧ p(a); (s)

Proof step 38 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t0) ' + fowl, W(v0, t0) ∈ fowl, W(v, t0) ∈ p(l0), ∀ a. ¬ a ∈ fowl ∨ ¬ a.W? ∨ a.tid ≠ t0 ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 4 terms: W(v0, t0)

Additional information

Used simplifier rules: ⊦ W(v, tid).W?; (s) ⊦ W(v, tid).tid = tid; (s) Used terms: W(v0, t0)

Proof step 39 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t) ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = t0) ≠ 1, t ≠ t0, W(v, t) ∈ p(l0), W(v0, t0) ∈ fowl, 0 + fowl.filter(.W?).count(λ fow. fow.tid = t0) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < 1 ↔ m = 0; (s) ⊦ m ≠ n → (m ≤ n ↔ m < n); (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ n + 0 = n; (s)

Proof step 40 from proof pending-ok-persist (previous step) (back to tree)

fowl.filter(.W?).count(λ fow. fow.tid = t0) = 0, p(l0) = W(v, t) ' + fowl, t ≠ t0, W(v, t) ∈ p(l0), W(v0, t0) ∈ fowl ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: filter-count, name:count-zero-filter-nil, seq: ⊦ x.count(p) = 0 ↔ x.filter(p) = [], subst:[x, p] → [fowl.filter(.W?), λ fow. fow.tid = t0]; ['a] → [FOW], <all paths>

Additional information

Used terms: fowl.filter(.W?), λ fow. fow.tid = t0

Proof step 41 from proof pending-ok-persist (previous step) (back to tree)

⊦ x.count(p) = 0 ↔ x.filter(p) = []

A spec-lemma

Proof step 42 from proof pending-ok-persist (previous step) (back to tree)

fowl.filter(.W?).filter(λ fow. fow.tid = t0) = [], p(l0) = W(v, t) ' + fowl, t ≠ t0, W(v0, t0) ∈ fowl, W(v, t) ∈ p(l0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list, name:some-element, seq: ⊦ x = [] ↔ ¬(∃ a. a ∈ x), subst:[x] → [fowl.filter(.W?).filter(λ fow. fow.tid = t0)]; ['a] → [FOW], <all paths>

Additional information

Used terms: fowl.filter(.W?).filter(λ fow. fow.tid = t0)

Proof step 43 from proof pending-ok-persist (previous step) (back to tree)

⊦ x = [] ↔ ¬(∃ a. a ∈ x)

A spec-lemma

Proof step 44 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t) ' + fowl, t ≠ t0, W(v, t) ∈ p(l0), W(v0, t0) ∈ fowl, ∀ a. ¬ a ∈ fowl.filter(.W?).filter(λ fow. fow.tid = t0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a ∈ x.filter(p) ↔ a ∈ x ∧ p(a); (s)

Proof step 45 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = W(v, t) ' + fowl, t ≠ t0, W(v0, t0) ∈ fowl, W(v, t) ∈ p(l0), ∀ a. ¬ a ∈ fowl ∨ ¬ a.W? ∨ a.tid ≠ t0 ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 5 terms: W(v0, t0)

Additional information

Used simplifier rules: ⊦ W(v, tid).W?; (s) ⊦ W(v, tid).tid = tid; (s) Used terms: W(v0, t0)

Proof step 46 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≠ 1, fow0.W?, fow0 ∈ fowl, [].count(λ fow. fow.tid = fow0.tid) + fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) ≤ 1, ¬ fow.W? ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < 1 ↔ m = 0; (s) ⊦ m ≠ n → (m ≤ n ↔ m < n); (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ n + 0 = n; (s) ⊦ [].count(p) = 0; (s)

Proof step 47 from proof pending-ok-persist (previous step) (back to tree)

fowl.filter(.W?).count(λ fow. fow.tid = fow0.tid) = 0, p(l0) = fow ' + fowl, fow0.W?, fow0 ∈ fowl, ¬ fow.W? ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: filter-count, name:count-zero-filter-nil, seq: ⊦ x.count(p) = 0 ↔ x.filter(p) = [], subst:[x, p] → [fowl.filter(.W?), λ fow. fow.tid = fow0.tid]; ['a] → [FOW], <all paths>

Additional information

Used terms: fowl.filter(.W?), λ fow. fow.tid = fow0.tid

Proof step 48 from proof pending-ok-persist (previous step) (back to tree)

⊦ x.count(p) = 0 ↔ x.filter(p) = []

A spec-lemma

Proof step 49 from proof pending-ok-persist (previous step) (back to tree)

fowl.filter(.W?).filter(λ fow. fow.tid = fow0.tid) = [], p(l0) = fow ' + fowl, fow0.W?, fow0 ∈ fowl, ¬ fow.W? ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list, name:some-element, seq: ⊦ x = [] ↔ ¬(∃ a. a ∈ x), subst:[x] → [fowl.filter(.W?).filter(λ fow. fow.tid = fow0.tid)]; ['a] → [FOW], <all paths>

Additional information

Used terms: fowl.filter(.W?).filter(λ fow. fow.tid = fow0.tid)

Proof step 50 from proof pending-ok-persist (previous step) (back to tree)

⊦ x = [] ↔ ¬(∃ a. a ∈ x)

A spec-lemma

Proof step 51 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fow0.W?, fow0 ∈ fowl, ¬ fow.W?, ∀ a. ¬ a ∈ fowl.filter(.W?).filter(λ fow. fow.tid = fow0.tid) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a ∈ x.filter(p) ↔ a ∈ x ∧ p(a); (s)

Proof step 52 from proof pending-ok-persist (previous step) (back to tree)

p(l0) = fow ' + fowl, fow0.W?, fow0 ∈ fowl, ¬ fow.W?, ∀ a. ¬ a ∈ fowl ∨ ¬ a.W? ∨ a.tid ≠ fow0.tid ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 5 terms: fow0

Additional information

Used terms: fow0

Proof step 53 from proof pending-ok-persist (previous step) (back to tree)

p(l) = fow ' + fowl, #(p(l0) |W | t) ≠ 1, l ≠ l0, (l = l0 ⊃ fowl;p(l0)) |W | t ≠ [], fow ∈ p(l), ∀ l, t. #(p(l) |W | t) ≤ 1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 54 from proof pending-ok-persist (previous step) (back to tree)

p(l) = fow ' + fowl, #(p(l0) |W | t) ≠ 1, l ≠ l0, p(l0) |W | t ≠ [], fow ∈ p(l), ∀ l, t. #(p(l) |W | t) ≤ 1 ⊦

User applied rule all left

And closed the goal!

Rule argument

pos: left 6 terms: l0, t abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ m ≠ n → (m ≤ n ↔ m < n); (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ # x = 0 ↔ x = []; (s) Used terms: l0, t

Proof Tree for pending-ok-persist (View conclusion)

The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.

the proof tree