[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 max-ordered (conclusion) (back to tree)

⊦ x ≠ [] ∧ max(x + x0) = max(x) ∧ ordered≤(x0) ∧ x1 ⊑ x0 → (max(x + x1) = max(x + x0) ↔ true)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof max-ordered (previous step) (back to tree)

max(x + x0) = max(x), ¬(max(x + x1) = max(x + x0) ↔ true), x ≠ [], ordered≤(x0), x1 ⊑ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 3 from proof max-ordered (previous step) (back to tree)

max(x + x0) = max(x), max(x + x1) ≠ max(x), x ≠ [], ordered≤(x0), x1 ⊑ x0 ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: x

Additional information

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

Proof step 4 from proof max-ordered (previous step) (back to tree)

max((a + x2) + x0) = max(a + x2), a + x2 ≠ [], max((a + x2) + x1) ≠ max(a + x2), ordered≤(x0), x1 ⊑ x0, ∀ x0, x1. ¬(max(x2 + x0) = max(x2) ∧ max(x2 + x1) ≠ max(x2) ∧ x2 ≠ [] ∧ ordered≤(x0) ∧ x1 ⊑ x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a + x = a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a ' + x ≠ []; (s)

Proof step 5 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(a ' + x2), max((a ' + x2) + x1) ≠ max(a ' + x2), ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-rec, seq: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)), subst:[x, a] → [x2 + x1, a], <all paths>

Additional information

Used simplifier rules: max-base: ⊦ max(a ') = a; ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ [] + x = x; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x2 + x1, a

Proof step 6 from proof max-ordered (previous step) (back to tree)

⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x))

Lemma max-rec

Proof step 7 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(a ' + x2), x2 + x1 ≠ [], (max(x2 + x1) < a ⊃ a;max(x2 + x1)) ≠ max(a ' + x2), ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 8 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(a ' + x2), x2 + x1 ≠ [], (max(x2 + x1) < a ⊃ a;max(x2 + x1)) ≠ max(a ' + x2), ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 3

Additional information

Proof step 9 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(a ' + x2), x2 + x1 ≠ [], a ≠ max(a ' + x2), max(x2 + x1) < a, ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-rec, seq: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)), subst:[x, a] → [x2, a], <all paths>

Additional information

Used simplifier rules: max-base: ⊦ max(a ') = a; ⊦ [] + x = x; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x2, a

Proof step 10 from proof max-ordered (previous step) (back to tree)

⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x))

Lemma max-rec

Proof step 11 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = (max(x2) < a ⊃ a;max(x2)), x2 + x1 ≠ [], a ≠ (max(x2) < a ⊃ a;max(x2)), x2 ≠ [], max(x2 + x1) < a, ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 12 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(x2), x2 + x1 ≠ [], a ≠ (max(x2) < a ⊃ a;max(x2)), x2 ≠ [], max(x2 + x1) < a, ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-rec, seq: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)), subst:[x, a] → [x2 + x0, a], <all paths>

Additional information

Used simplifier rules: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x2 + x0, a

Proof step 13 from proof max-ordered (previous step) (back to tree)

⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x))

Lemma max-rec

Proof step 14 from proof max-ordered (previous step) (back to tree)

(max(x2 + x0) < a ⊃ a;max(x2 + x0)) = max(x2), x2 + x0 ≠ [], x2 + x1 ≠ [], a ≠ (max(x2) < a ⊃ a;max(x2)), x2 ≠ [], max(x2 + x1) < a, ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 15 from proof max-ordered (previous step) (back to tree)

(max(x2 + x0) < a ⊃ a;max(x2 + x0)) = max(x2), x2 + x0 ≠ [], x2 + x1 ≠ [], a ≠ (max(x2) < a ⊃ a;max(x2)), x2 ≠ [], max(x2 + x1) < a, ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic if-then-else split applied rule case distinction

And closed the goal!

Rule argument

pos: left 1

Additional information

Used simplifier rules: max-ge: ⊦ x ≠ [] → (max(x + x0) < max(x) ↔ false); ⊦ a ≠ b → (a < b ↔ ¬ b < a); (ss) transitivity: ⊦ a < b ∧ b < c → a < c; (forward) from specification weakord[tord] a: ⊦ (x + y) + z = x + y + z; from specification list

Proof step 16 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(a ' + x2), x2 + x1 ≠ [], max(x2 + x1) ≠ max(a ' + x2), ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 17 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(a ' + x2), x2 + x1 ≠ [], max(x2 + x1) ≠ max(a ' + x2), ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-rec, seq: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)), subst:[x, a] → [x2, a], <all paths>

Additional information

Used terms: x2, a

Proof step 18 from proof max-ordered (previous step) (back to tree)

⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x))

Lemma max-rec

Proof step 19 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(a ' + x2), x2 = [], x2 + x1 ≠ [], max(x2 + x1) ≠ max(a ' + x2), ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: max-base: ⊦ max(a ') = a; a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ [] + x = x; (s) ⊦ a ≠ b → (a < b ↔ ¬ b < a); (ss) ⊦ x + [] = x; (s)

Proof step 20 from proof max-ordered (previous step) (back to tree)

max(a ' + x0) = a, max(x1) ≠ a, x1 ≠ [], a < max(x1), ordered≤(x0), x1 ⊑ x0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-rec, seq: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)), subst:[x, a] → [x0, a], <all paths>

Additional information

Used simplifier rules: max-base: ⊦ max(a ') = a; ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ x ⊑ [] ↔ x = []; (s) Used terms: x0, a

Proof step 21 from proof max-ordered (previous step) (back to tree)

⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x))

Lemma max-rec

Proof step 22 from proof max-ordered (previous step) (back to tree)

(max(x0) < a ⊃ a;max(x0)) = a, max(x1) ≠ a, x0 ≠ [], x1 ≠ [], a < max(x1), ordered≤(x0), x1 ⊑ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 23 from proof max-ordered (previous step) (back to tree)

(max(x0) < a ⊃ a;max(x0)) = a, max(x1) ≠ a, x0 ≠ [], x1 ≠ [], a < max(x1), ordered≤(x0), x1 ⊑ x0 ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 24 from proof max-ordered (previous step) (back to tree)

a = a, max(x1) ≠ a, x0 ≠ [], x1 ≠ [], a < max(x1), max(x0) < a, ordered≤(x0), x1 ⊑ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: transitivity: ⊦ a < b ∧ b < c → a < c; (forward) from specification weakord[tord]

Proof step 25 from proof max-ordered (previous step) (back to tree)

max(x1) ≠ a, x0 ≠ [], x1 ≠ [], max(x0) < a, a < max(x1), max(x0) < max(x1), ordered≤(x0), x1 ⊑ x0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: olist, name:orderedle-all, seq: ⊦ ordered≤(x) ↔ (∀ m, n. m ≤ n ∧ n < # x → ¬ x[n] < x[m]), subst:[x] → [x0], <all paths>

Additional information

Used terms: x0

Proof step 26 from proof max-ordered (previous step) (back to tree)

⊦ ordered≤(x) ↔ (∀ m, n. m ≤ n ∧ n < # x → ¬ x[n] < x[m])

A spec-lemma

Proof step 27 from proof max-ordered (previous step) (back to tree)

max(x1) ≠ a, x0 ≠ [], x1 ≠ [], max(x0) < max(x1), a < max(x1), max(x0) < a, x1 ⊑ x0, ∀ m, n. m ≤ n ∧ n < # x0 → ¬ x0[n] < x0[m] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last, name:prefix, seq: ⊦ x ⊑ y ↔ (∃ z. x + z = y), subst:[x, y] → [x1, x0]; ['a] → [tord], <all paths>

Additional information

Used simplifier rules: max-ge: ⊦ x ≠ [] → (max(x + x0) < max(x) ↔ false); a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x1, x0

Proof step 28 from proof max-ordered (previous step) (back to tree)

⊦ x ⊑ y ↔ (∃ z. x + z = y)

A spec-lemma

Proof step 29 from proof max-ordered (previous step) (back to tree)

max(x0) = a, max(x1) ≠ a, x0 ≠ [], x1 ≠ [], a < max(x1), ordered≤(x0), x1 ⊑ x0, ¬ max(x0) < a ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ a < a; (s)

Proof step 30 from proof max-ordered (previous step) (back to tree)

max(x1) ≠ max(x0), x0 ≠ [], x1 ≠ [], max(x0) < max(x1), ordered≤(x0), x1 ⊑ x0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last, name:prefix, seq: ⊦ x ⊑ y ↔ (∃ z. x + z = y), subst:[x, y] → [x1, x0]; ['a] → [tord], <all paths>

Additional information

Used simplifier rules: max-ge: ⊦ x ≠ [] → (max(x + x0) < max(x) ↔ false); a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x1, x0

Proof step 31 from proof max-ordered (previous step) (back to tree)

⊦ x ⊑ y ↔ (∃ z. x + z = y)

A spec-lemma

Proof step 32 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = (max(x2) < a ⊃ a;max(x2)), x2 + x1 ≠ [], max(x2 + x1) ≠ (max(x2) < a ⊃ a;max(x2)), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ x2 = [] ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 33 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = (max(x2) < a ⊃ a;max(x2)), x2 + x1 ≠ [], max(x2 + x1) ≠ (max(x2) < a ⊃ a;max(x2)), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 3

Additional information

Proof step 34 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = (max(x2) < a ⊃ a;max(x2)), x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2) < a, ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: transitivity: ⊦ a < b ∧ b < c → a < c; (forward) from specification weakord[tord] ⊦ a ≠ b → (a < b ↔ ¬ b < a); (ss)

Proof step 35 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = a, x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2) < a, a < max(x2 + x1), max(x2) < max(x2 + x1), ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-rec, seq: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)), subst:[x, a] → [x2 + x0, a], <all paths>

Additional information

Used simplifier rules: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x2 + x0, a

Proof step 36 from proof max-ordered (previous step) (back to tree)

⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x))

Lemma max-rec

Proof step 37 from proof max-ordered (previous step) (back to tree)

(max(x2 + x0) < a ⊃ a;max(x2 + x0)) = a, x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2) < max(x2 + x1), a < max(x2 + x1), max(x2) < a, ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 38 from proof max-ordered (previous step) (back to tree)

(max(x2 + x0) < a ⊃ a;max(x2 + x0)) = a, x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2) < a, a < max(x2 + x1), max(x2) < max(x2 + x1), ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 39 from proof max-ordered (previous step) (back to tree)

a = a, x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2) < max(x2 + x1), a < max(x2 + x1), max(x2) < a, max(x2 + x0) < a, ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: transitivity: ⊦ a < b ∧ b < c → a < c; (forward) from specification weakord[tord]

Proof step 40 from proof max-ordered (previous step) (back to tree)

x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2 + x0) < a, max(x2) < a, a < max(x2 + x1), max(x2) < max(x2 + x1), max(x2 + x0) < max(x2 + x1), ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 12 terms: x0, x1 abort: F discard: T computed: T

Additional information

Used terms: x0, x1

Proof step 41 from proof max-ordered (previous step) (back to tree)

x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2 + x0) < max(x2 + x1), max(x2) < max(x2 + x1), a < max(x2 + x1), max(x2) < a, max(x2 + x0) < a, ordered≤(x0), x1 ⊑ x0, max(x2 + x0) ≠ max(x2) ∨ max(x2 + x1) = max(x2) ∨ ¬ ordered≤(x0) ∨ ¬ x1 ⊑ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 42 from proof max-ordered (previous step) (back to tree)

x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2 + x0) < a, max(x2) < a, a < max(x2 + x1), max(x2) < max(x2 + x1), max(x2 + x0) < max(x2 + x1), ordered≤(x0), x1 ⊑ x0, max(x2 + x0) ≠ max(x2) ∨ max(x2 + x1) = max(x2) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last, name:prefix, seq: ⊦ x ⊑ y ↔ (∃ z. x + z = y), subst:[x, y] → [x1, x0]; ['a] → [tord], <all paths>

Additional information

Used simplifier rules: max-ge: ⊦ x ≠ [] → (max(x + x0) < max(x) ↔ false); a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x1, x0

Proof step 43 from proof max-ordered (previous step) (back to tree)

⊦ x ⊑ y ↔ (∃ z. x + z = y)

A spec-lemma

Proof step 44 from proof max-ordered (previous step) (back to tree)

max(x2 + x0) = a, x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ a, x2 ≠ [], max(x2) < max(x2 + x1), a < max(x2 + x1), max(x2) < a, ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x0) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ a < a; (s)

Proof step 45 from proof max-ordered (previous step) (back to tree)

x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ max(x2 + x0), x2 ≠ [], max(x2) < max(x2 + x0), max(x2 + x0) < max(x2 + x1), max(x2) < max(x2 + x1), ordered≤(x0), x1 ⊑ x0, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last, name:prefix, seq: ⊦ x ⊑ y ↔ (∃ z. x + z = y), subst:[x, y] → [x1, x0]; ['a] → [tord], <all paths>

Additional information

Used simplifier rules: max-ge: ⊦ x ≠ [] → (max(x + x0) < max(x) ↔ false); a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x1, x0

Proof step 46 from proof max-ordered (previous step) (back to tree)

⊦ x ⊑ y ↔ (∃ z. x + z = y)

A spec-lemma

Proof step 47 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = (max(x2) < a ⊃ a;max(x2)), x2 + x1 ≠ [], max(x2 + x1) ≠ max(x2), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2) < a, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 48 from proof max-ordered (previous step) (back to tree)

max((a ' + x2) + x0) = max(x2), x2 + x1 ≠ [], max(x2 + x1) ≠ max(x2), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2) < a, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-rec, seq: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)), subst:[x, a] → [x2 + x0, a], <all paths>

Additional information

Used simplifier rules: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x2 + x0, a

Proof step 49 from proof max-ordered (previous step) (back to tree)

⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x))

Lemma max-rec

Proof step 50 from proof max-ordered (previous step) (back to tree)

(max(x2 + x0) < a ⊃ a;max(x2 + x0)) = max(x2), x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ max(x2), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2) < a, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 51 from proof max-ordered (previous step) (back to tree)

(max(x2 + x0) < a ⊃ a;max(x2 + x0)) = max(x2), x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ max(x2), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2) < a, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Used simplifier rules: max-ge: ⊦ x ≠ [] → (max(x + x0) < max(x) ↔ false); a: ⊦ (x + y) + z = x + y + z; from specification list

Proof step 52 from proof max-ordered (previous step) (back to tree)

max(x2 + x0) = max(x2), x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ max(x2), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2 + x0) < a, ¬ max(x2) < a, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 53 from proof max-ordered (previous step) (back to tree)

max(x2 + x0) = max(x2), x2 + x0 ≠ [], x2 + x1 ≠ [], max(x2 + x1) ≠ max(x2), x2 ≠ [], ordered≤(x0), x1 ⊑ x0, ¬ max(x2) < a, ¬ max(x2 + x1) < a, ∀ x, x3. max(x2 + x) ≠ max(x2) ∨ max(x2 + x3) = max(x2) ∨ ¬ ordered≤(x) ∨ ¬ x3 ⊑ x ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 10 terms: x0, x1

Additional information

Used terms: x0, x1

Proof Tree for max-ordered (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