[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 reorder-step-propFO (conclusion) (back to tree)

⊦ reorder(l, fowl0, fowl1, rfo) ∧ rfo(t) = [] → reorder(l, fowl0 + FO(t) ', fowl1 + FO(t) ', rfo)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], reorder(l, fowl0, fowl1, rfo), ¬ reorder(l, fowl0 + FO(t) ', fowl1 + FO(t) ', rfo) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: fowl0

Additional information

Used simplifier rules: List('a) freely generated by [], +;;

Proof step 3 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], reorder(l, [], fowl1, rfo), ¬ reorder(l, [] + FO(t) ', fowl1 + FO(t) ', rfo) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reorder-base: ⊦ reorder(l, [], fowl0, rfo) ↔ fowl0 = [] ∧ (∀ t. propFOs(t, l, rfo(t)) = []); a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ [] + x = x; (s)

Proof step 4 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], ¬ reorder(l, FO(t) ', FO(t) ', rfo), ∀ t. propFOs(t, l, rfo(t)) = [] ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:reorder-rec-FO, seq:⊦ reorder(l, FO(t) ' + fowl, fowl0, rfo) ↔ (∃ fowl1, fowl2. fowl0 = fowl1 + FO(t) ' + fowl2 ∧ fowl1 | t = [] ∧ reorder(l, fowl, fowl1 + fowl2, rfo)) ∨ fowl0 | t = [] ∧ FO(l) ∈ rfo(t) ∧ reorder(l, fowl, fowl0, rfo(t := rfo(t) -1l FO(l))), subst:[fowl0, t, l, fowl, rfo] → [FO(t) ', t, l, [], rfo]

Additional information

Used simplifier rules: reorder-base: ⊦ reorder(l, [], fowl0, rfo) ↔ fowl0 = [] ∧ (∀ t. propFOs(t, l, rfo(t)) = []); ⊦ x + y = [] ↔ x = [] ∧ y = []; (s) ⊦ [] + x = x; (s) ⊦ a ' = a0 ' ↔ a = a0; (s) ⊦ [] | t = []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: [], l, FO(t) ', rfo, t

Proof step 5 from proof reorder-step-propFO (previous step) (back to tree)

⊦ reorder(l, FO(t) ' + fowl, fowl0, rfo) ↔ (∃ fowl1, fowl2. fowl0 = fowl1 + FO(t) ' + fowl2 ∧ fowl1 | t = [] ∧ reorder(l, fowl, fowl1 + fowl2, rfo)) ∨ fowl0 | t = [] ∧ FO(l) ∈ rfo(t) ∧ reorder(l, fowl, fowl0, rfo(t := rfo(t) -1l FO(l)))

Lemma reorder-rec-FO

Proof step 6 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], reorder(l, fow + fowl, fowl1, rfo), ¬ reorder(l, (fow + fowl) + FO(t) ', fowl1 + FO(t) ', rfo), ∀ rfo, t, l, fowl1. ¬(rfo(t) = [] ∧ reorder(l, fowl, fowl1, rfo) ∧ ¬ reorder(l, fowl + FO(t) ', fowl1 + FO(t) ', rfo)) ⊦

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 + x = a ' + x; (s)

Proof step 7 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], reorder(l, fow ' + fowl, fowl1, rfo), ¬ reorder(l, (fow ' + fowl) + FO(t) ', fowl1 + FO(t) ', rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: fow

Additional information

Used simplifier rules: FOW freely generated by FO, W;;

Proof step 8 from proof reorder-step-propFO (previous step) (back to tree)

fow = FO(t1), rfo(t) = [], reorder(l, fow ' + fowl, fowl1, rfo), ¬ reorder(l, (fow ' + fowl) + FO(t) ', fowl1 + FO(t) ', rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reorder-rec-FO: ⊦ reorder(l, FO(t) ' + fowl, fowl0, rfo) ↔ (∃ fowl1, fowl2. fowl0 = fowl1 + FO(t) ' + fowl2 ∧ fowl1 | t = [] ∧ reorder(l, fowl, fowl1 + fowl2, rfo)) ∨ fowl0 | t = [] ∧ FO(l) ∈ rfo(t) ∧ reorder(l, fowl, fowl0, rfo(t := rfo(t) -1l FO(l))); a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a ' ≠ []; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (s) ⊦ FO(tid).tid = tid; (s) ⊦ fow ' | t = (t = fow.tid ⊃ fow ';[]); (s) ⊦ fowl + fowl0 | t = (fowl | t) + (fowl0 | t); (s)

Proof step 9 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0), fowl1 = fowl2 + FO(t1) ' + fowl3 ∧ fowl2 | t1 = [] ∧ reorder(l, fowl, fowl2 + fowl3, rfo) ∨ fowl1 | t1 = [] ∧ FO(l) ∈ rfo(t1) ∧ reorder(l, fowl, fowl1, rfo(t1 := rfo(t1) -1l FO(l))) ⊦ ∃ fowl2, fowl3. fowl1 + FO(t) ' = fowl2 + FO(t1) ' + fowl3 ∧ fowl2 | t1 = [] ∧ reorder(l, fowl + FO(t) ', fowl2 + fowl3, rfo), fowl1 | t1 = [] ∧ t1 ≠ t ∧ FO(l) ∈ rfo(t1) ∧ reorder(l, fowl + FO(t) ', fowl1 + FO(t) ', rfo(t1 := rfo(t1) -1l FO(l)))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 3

Additional information

Proof step 10 from proof reorder-step-propFO (previous step) (back to tree)

fowl1 = fowl2 + FO(t1) ' + fowl3, rfo(t) = [], fowl2 | t1 = [], reorder(l, fowl, fowl2 + fowl3, rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦ ∃ fowl2, fowl3. fowl1 + FO(t) ' = fowl2 + FO(t1) ' + fowl3 ∧ fowl2 | t1 = [] ∧ reorder(l, fowl + FO(t) ', fowl2 + fowl3, rfo), fowl1 | t1 = [] ∧ t1 ≠ t ∧ FO(l) ∈ rfo(t1) ∧ reorder(l, fowl + FO(t) ', fowl1 + FO(t) ', rfo(t1 := rfo(t1) -1l FO(l)))

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 ' ≠ []; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (s) ⊦ FO(tid).tid = tid; (s) ⊦ fow ' | t = (t = fow.tid ⊃ fow ';[]); (s) ⊦ fowl + fowl0 | t = (fowl | t) + (fowl0 | t); (s)

Proof step 11 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], fowl2 | t1 = [], reorder(l, fowl, fowl2 + fowl3, rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦ ∃ fowl0, fowl4. (fowl2 + FO(t1) ' + fowl3) + FO(t) ' = fowl0 + FO(t1) ' + fowl4 ∧ fowl0 | t1 = [] ∧ reorder(l, fowl + FO(t) ', fowl0 + fowl4, rfo)

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 4 terms: rfo, t, l, fowl2 + fowl3 abort: F discard: F computed: T

Additional information

Used terms: rfo, t, l, fowl2 + fowl3

Proof step 12 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], fowl2 | t1 = [], reorder(l, fowl, fowl2 + fowl3, rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0), rfo(t) ≠ [] ∨ ¬ reorder(l, fowl, fowl2 + fowl3, rfo) ∨ reorder(l, fowl + FO(t) ', (fowl2 + fowl3) + FO(t) ', rfo) ⊦ ∃ fowl0, fowl4. (fowl2 + FO(t1) ' + fowl3) + FO(t) ' = fowl0 + FO(t1) ' + fowl4 ∧ fowl0 | t1 = [] ∧ reorder(l, fowl + FO(t) ', fowl0 + fowl4, rfo)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 13 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], fowl2 | t1 = [], reorder(l, fowl, fowl2 + fowl3, rfo), reorder(l, fowl + FO(t) ', (fowl2 + fowl3) + FO(t) ', rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦ ∃ fowl0, fowl4. (fowl2 + FO(t1) ' + fowl3) + FO(t) ' = fowl0 + FO(t1) ' + fowl4 ∧ fowl0 | t1 = [] ∧ reorder(l, fowl + FO(t) ', fowl0 + fowl4, rfo)

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: fowl2, fowl3 + FO(t) ' abort: F discard: T computed: F

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: fowl2, fowl3 + FO(t) '

Proof step 14 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], fowl1 | t1 = [], reorder(l, fowl, fowl1, rfo(t1 := rfo(t1) -1l FO(l))), FO(l) ∈ rfo(t1), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦ ∃ fowl2, fowl3. fowl1 + FO(t) ' = fowl2 + FO(t1) ' + fowl3 ∧ fowl2 | t1 = [] ∧ reorder(l, fowl + FO(t) ', fowl2 + fowl3, rfo), fowl1 | t1 = [] ∧ t1 ≠ t ∧ FO(l) ∈ rfo(t1) ∧ reorder(l, fowl + FO(t) ', fowl1 + FO(t) ', rfo(t1 := rfo(t1) -1l FO(l)))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 15 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], fowl1 | t1 = [], reorder(l, fowl, fowl1, rfo(t1 := rfo(t1) -1l FO(l))), FO(l) ∈ rfo(t1), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦ ∃ fowl2, fowl3. fowl1 + FO(t) ' = fowl2 + FO(t1) ' + fowl3 ∧ fowl2 | t1 = [] ∧ reorder(l, fowl + FO(t) ', fowl2 + fowl3, rfo), t1 ≠ t ∧ reorder(l, fowl + FO(t) ', fowl1 + FO(t) ', rfo(t1 := rfo(t1) -1l FO(l)))

User applied rule all left

And closed the goal!

Rule argument

pos: left 5 terms: rfo(t1 := rfo(t1) -1l FO(l)), t, l, fowl1 abort: F discard: F computed: T

Additional information

Used simplifier rules: ⊦ [] -1l a = []; (s) ⊦ ¬ a ∈ []; (s) Used terms: rfo(t1 := rfo(t1) -1l FO(l)), t, l, fowl1

Proof step 16 from proof reorder-step-propFO (previous step) (back to tree)

fow = W(v, t1), rfo(t) = [], reorder(l, fow ' + fowl, fowl1, rfo), ¬ reorder(l, (fow ' + fowl) + FO(t) ', fowl1 + FO(t) ', rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: reorder-rec-W: ⊦ reorder(l, W(v, t) ' + fowl0, fowl1, rfo) ↔ fowl1 ≠ [] ∧ fowl1.head = W(v, t) ∧ reorder(l, fowl0, fowl1.tail, rfo); a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ x ≠ [] → (x + y).tail = x.tail + y; (s) ⊦ x ≠ [] → (x + y).head = x.head; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (s)

Proof step 17 from proof reorder-step-propFO (previous step) (back to tree)

fowl1.head = W(v, t1), rfo(t) = [], fowl1 ≠ [], reorder(l, fowl, fowl1.tail, rfo), ¬ reorder(l, fowl + FO(t) ', fowl1.tail + FO(t) ', rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-data, name:elim-add, seq: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail), subst:[x, head, tail] → [fowl1, fow, fowl2]; ['a] → [FOW]

Additional information

Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: fowl1, fow, fowl2

Proof step 18 from proof reorder-step-propFO (previous step) (back to tree)

fow = W(v, t1), fowl1 = fow + fowl2, rfo(t) = [], fowl1 ≠ [], reorder(l, fowl, fowl2, rfo), ¬ reorder(l, fowl + FO(t) ', fowl2 + FO(t) ', rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦

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 ' ≠ []; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (s) ⊦ a + x = a ' + x; (s)

Proof step 19 from proof reorder-step-propFO (previous step) (back to tree)

rfo(t) = [], reorder(l, fowl, fowl2, rfo), ¬ reorder(l, fowl + FO(t) ', fowl2 + FO(t) ', rfo), ∀ rfo0, t0, l0, fowl0. rfo0(t0) ≠ [] ∨ ¬ reorder(l0, fowl, fowl0, rfo0) ∨ reorder(l0, fowl + FO(t0) ', fowl0 + FO(t0) ', rfo0) ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 4 terms: rfo, t, l, fowl2

Additional information

Used terms: rfo, t, l, fowl2

Proof Tree for reorder-step-propFO (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