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

⊦ ¬ a < max(x) → max(ins≤(a, x)) = a

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

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

max(ins≤(a, x)) ≠ a, ¬ a < max(x) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

max(ins≤(a, x)) ≠ a, ¬ a < max(x) ⊦

Heuristic structural induction applied rule structural induction

And obtained the following new goals

Rule argument

term: x

Additional information

Used simplifier rules: max-base: ⊦ max(a ') = a; list freely generated by [], +;; ⊦ ins≤(a, []) = a '; (s)

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

max(ins≤(a, a0 + x0)) ≠ a, ¬ a < max(a0 + x0), ∀ a. ¬(max(ins≤(a, x0)) ≠ a ∧ ¬ a < max(x0)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a + x = a ' + x; (s)

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

max(ins≤(a, a0 ' + x0)) ≠ a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: olist, name:cons-03, seq: ⊦ ordered≤(a ' + x) → ins≤(a, x) = a ' + x, subst:[x, a] → [a0 ' + x0, a], <all paths>

Additional information

Used terms: a0 ' + x0, a

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

⊦ ordered≤(a ' + x) → ins≤(a, x) = a ' + x

A spec-lemma

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

max(ins≤(a, a0 ' + x0)) ≠ a, ¬ a < max(a0 ' + x0), ¬ ordered≤(a ' + a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

max(ins≤(a, a0 ' + x0)) ≠ a, ¬ a < max(a0 ' + x0), ¬ ordered≤(a ' + a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: olist, name:le-r, seq: ⊦ ordered≤(a ' + b ' + x) ↔ ¬ b < a ∧ ordered≤(b ' + x), subst:[a, b, x] → [a, a0, x0], <all paths>

Additional information

Used terms: a, a0, x0

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

⊦ ordered≤(a ' + b ' + x) ↔ ¬ b < a ∧ ordered≤(b ' + x)

A spec-lemma

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

max(ins≤(a, a0 ' + x0)) ≠ a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0), a0 < a ∨ ¬ ordered≤(a0 ' + x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

max(ins≤(a, a0 ' + x0)) ≠ a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0), a0 < a ∨ ¬ ordered≤(a0 ' + x0) ⊦

Heuristic cut applied rule cut formula

And obtained the following new goals

Rule argument

fma: a0 < a

Additional information

Used formulas: a0 < a

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

max(ins≤(a, a0 ' + x0)) ≠ a, a0 < a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0), a0 < a ∨ ¬ ordered≤(a0 ' + x0) ⊦

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) ⊦ b < a → ins≤(a, b ' + x) = b + ins≤(a, x); (s)

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

max(a0 ' + ins≤(a, x0)) ≠ a, a0 < a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(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] → [ins≤(a, x0), a0], <all paths>

Additional information

Used simplifier rules: ⊦ ins≤(a, x) ≠ []; (s) Used terms: ins≤(a, x0), a0

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

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

Lemma max-rec

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

(max(ins≤(a, x0)) < a0 ⊃ a0;max(ins≤(a, x0))) ≠ a, ins≤(a, x0) ≠ [], a0 < a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ins≤(a, x) ≠ []; (s)

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

(max(ins≤(a, x0)) < a0 ⊃ a0;max(ins≤(a, x0))) ≠ a, a0 < a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic cut applied rule cut formula

And obtained the following new goals

Rule argument

fma: max(ins≤(a, x0)) < a0

Additional information

Used formulas: max(ins≤(a, x0)) < a0

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

(max(ins≤(a, x0)) < a0 ⊃ a0;max(ins≤(a, x0))) ≠ a, a0 < a, max(ins≤(a, x0)) < a0, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(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 oelem

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

a0 ≠ a, max(ins≤(a, x0)) < a0, a0 < a, max(ins≤(a, x0)) < a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: olist, name:cons-03, seq: ⊦ ordered≤(a ' + x) → ins≤(a, x) = a ' + x, subst:[x, a] → [x0, a], <all paths>

Additional information

Used simplifier rules: max-ge-first: ⊦ max(a ' + x) < a ↔ false; a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: x0, a

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

⊦ ordered≤(a ' + x) → ins≤(a, x) = a ' + x

A spec-lemma

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

a0 ≠ a, max(ins≤(a, x0)) < a, a0 < a, max(ins≤(a, x0)) < a0, ¬ a < max(a0 ' + x0), ¬ ordered≤(a ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

a0 ≠ a, max(ins≤(a, x0)) < a0, a0 < a, max(ins≤(a, x0)) < a, ¬ a < max(a0 ' + x0), ¬ ordered≤(a ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: olist, name:k-le-r, seq: ⊦ ordered≤(y) ↔ # y ≤ 1 ∨ ¬ y.tail.head < y.head ∧ ordered≤(y.tail), subst:[y] → [a ' + x0], <all paths>

Additional information

Used terms: a ' + x0

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

⊦ ordered≤(y) ↔ # y ≤ 1 ∨ ¬ y.tail.head < y.head ∧ ordered≤(y.tail)

A spec-lemma

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

a0 ≠ a, max(ins≤(a, x0)) < a, a0 < a, max(ins≤(a, x0)) < a0, ¬ a < max(a0 ' + x0), ¬ #(a ' + x0) ≤ 1, ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0), (a ' + x0).tail.head < (a ' + x0).head ∨ ¬ ordered≤((a ' + x0).tail) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: max-rec: ⊦ x ≠ [] → max(a ' + x) = (max(x) < a ⊃ a;max(x)); a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ (a ' + x).tail = x; (s) ⊦ (a ' + x).head = a; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ m + m0 ≤ m ↔ m0 = 0; (s) ⊦ # a ' = 0 +1; (s) ⊦ #(x + y) = # x + # y; (s)

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

a0 ≠ a, x0 ≠ [], max(ins≤(a, x0)) < a0, a0 < a, max(ins≤(a, x0)) < a, ¬ a < (max(x0) < a0 ⊃ a0;max(x0)), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0), x0.head < a ∨ ¬ ordered≤(x0) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-data, name:elim-list-c, seq:x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y, subst:[x, a, y] → [x0, a2, x1]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: x0, a2, y

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

x0 = a2 + x1, a0 ≠ a, x0 ≠ [], max(ins≤(a, x0)) < a, a0 < a, max(ins≤(a, x0)) < a0, ¬ a < (max(x0) < a0 ⊃ a0;max(x0)), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0), a2 < a ∨ ¬ ordered≤(x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: max-ge-first: ⊦ max(a ' + x) < a ↔ false; transitivity: ⊦ a < b ∧ b < c → a < c; (forward) from specification oelem a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a + x = a ' + x; (s) ⊦ b < a → ins≤(a, b ' + x) = b + ins≤(a, x); (s) ⊦ ¬ b < a → ins≤(a, b ' + x) = a + b + x; (s) ⊦ a ' + x ≠ []; (s)

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

a0 ≠ a, a2 < a, a0 < a, max(a2 ' + ins≤(a, x1)) < a0, max(a2 ' + ins≤(a, x1)) < a, ¬ a < (max(a2 ' + x1) < a0 ⊃ a0;max(a2 ' + x1)), ∀ a1. max(ins≤(a1, a2 ' + x1)) = a1 ∨ a1 < max(a2 ' + x1) ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 7 terms: a

Additional information

Used simplifier rules: ⊦ b < a → ins≤(a, b ' + x) = b + ins≤(a, x); (s) ⊦ a + x = a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list lel: ⊦ a < b ∧ a = c → c < b; (forward) from specification oelem ⊦ ¬ a < a; (s) transitivity: ⊦ a < b ∧ b < c → a < c; (forward) from specification oelem nll: ⊦ ¬ b < a ∧ b < c → a < c; (forward) from specification oelem ⊦ a < b → (b < a ↔ false); (ss) Used terms: a

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

(max(ins≤(a, x0)) < a0 ⊃ a0;max(ins≤(a, x0))) ≠ a, a0 < a, ¬ max(ins≤(a, x0)) < a0, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

max(ins≤(a, x0)) ≠ a, a0 < a, ¬ max(ins≤(a, x0)) < a0, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(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, a0], <all paths>

Additional information

Used simplifier rules: max-base: ⊦ max(a ') = a; ⊦ ins≤(a, []) = a '; (s) Used terms: x0, a0

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

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

Lemma max-rec

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

max(ins≤(a, x0)) ≠ a, x0 ≠ [], a0 < a, ¬ max(ins≤(a, x0)) < a0, ¬ a < (max(x0) < a0 ⊃ a0;max(x0)), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

max(ins≤(a, x0)) ≠ a, x0 ≠ [], a0 < a, ¬ max(ins≤(a, x0)) < a0, ¬ a < (max(x0) < a0 ⊃ a0;max(x0)), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 6 terms: a

Additional information

Used simplifier rules: nll: ⊦ ¬ b < a ∧ b < c → a < c; (forward) from specification oelem ⊦ a < b → (b < a ↔ false); (ss) transitivity: ⊦ a < b ∧ b < c → a < c; (forward) from specification oelem ⊦ ¬ a < a; (s) Used terms: a

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

max(ins≤(a, a0 ' + x0)) ≠ a, ¬ a0 < a, ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0), a0 < a ∨ ¬ ordered≤(a0 ' + x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: nnn: ⊦ ¬ c < b ∧ ¬ a < c → ¬ a < b; (forward) from specification oelem a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a + x = a ' + x; (s) ⊦ ¬ b < a → ins≤(a, b ' + x) = a + b + x; (s)

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

max(a ' + a0 ' + x0) ≠ a, ¬ a0 < a, ¬ a < max(a0 ' + x0), ¬ a0 < max(a0 ' + x0), ¬ ordered≤(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(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] → [a0 ' + x0, a], <all paths>

Additional information

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

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

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

Lemma max-rec

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

a0 ' + x0 ≠ [], (max(a0 ' + x0) < a ⊃ a;max(a0 ' + x0)) ≠ a, ¬ a0 < a, ¬ a < max(a0 ' + x0), ¬ a0 < max(a0 ' + x0), ¬ ordered≤(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

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 ≠ []; (s)

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

(max(a0 ' + x0) < a ⊃ a;max(a0 ' + x0)) ≠ a, ¬ a0 < a, ¬ a < max(a0 ' + x0), ¬ a0 < max(a0 ' + x0), ¬ ordered≤(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic cut applied rule cut formula

And closed the goal!

Rule argument

fma: max(a0 ' + x0) < a

Additional information

Used simplifier rules: ⊦ ¬ b < a → (a < b ↔ a ≠ b); (ss) Used formulas: max(a0 ' + x0) < a

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

max(a ' + a0 ' + x0) ≠ a, ordered≤(a ' + a0 ' + x0), ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

max(a ' + a0 ' + x0) ≠ a, ordered≤(a ' + a0 ' + x0), ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(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] → [a0 ' + x0, a], <all paths>

Additional information

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

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

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

Lemma max-rec

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

a0 ' + x0 ≠ [], (max(a0 ' + x0) < a ⊃ a;max(a0 ' + x0)) ≠ a, ordered≤(a ' + a0 ' + x0), ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

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 ≠ []; (s)

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

(max(a0 ' + x0) < a ⊃ a;max(a0 ' + x0)) ≠ a, ordered≤(a ' + a0 ' + x0), ¬ a < max(a0 ' + x0), ∀ a1. max(ins≤(a1, x0)) = a1 ∨ a1 < max(x0) ⊦

Heuristic cut applied rule cut formula

And closed the goal!

Rule argument

fma: max(a0 ' + x0) < a

Additional information

Used simplifier rules: ⊦ ¬ b < a → (a < b ↔ a ≠ b); (ss) Used formulas: max(a0 ' + x0) < a

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