[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 descending-order-is-max-permuted (conclusion) (back to tree)

⊦ ordered≤(rev(ar)) → max(ar)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof descending-order-is-max-permuted (previous step) (back to tree)

ordered≤(rev(ar)), ¬ max(ar) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: ar

Additional information

Used simplifier rules: array freely generated by [], +;;

Proof step 3 from proof descending-order-is-max-permuted (previous step) (back to tree)

ordered≤(rev([])), ¬ max([]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ordered≤([]); (s) ⊦ rev([]) = []; (s)

Proof step 4 from proof descending-order-is-max-permuted (previous step) (back to tree)

¬ max([]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:maximum-permutation, seq: ⊦ max(ar1) ↔ (∀ ar2. perm(ar1, ar2) → ar2 ≤ ar1), subst:[ar1] → [[]], <all paths>

Additional information

Used terms: []

Proof step 5 from proof descending-order-is-max-permuted (previous step) (back to tree)

⊦ max(ar1) ↔ (∀ ar2. perm(ar1, ar2) → ar2 ≤ ar1)

Lemma maximum-permutation

Proof step 6 from proof descending-order-is-max-permuted (previous step) (back to tree)

∃ ar2. ¬(perm([], ar2) → ar2 ≤ []) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ perm([], y) ↔ y = []; (s)

Proof step 7 from proof descending-order-is-max-permuted (previous step) (back to tree)

¬ [] ≤ [] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:lexicographic-base1, seq: ⊦ [] ≤ [], subst:, <all paths>

Additional information

Used terms:

Proof step 8 from proof descending-order-is-max-permuted (previous step) (back to tree)

⊦ [] ≤ []

Lemma lexicographic-base1

Proof step 9 from proof descending-order-is-max-permuted (previous step) (back to tree)

ordered≤(rev(i + ar0)), ¬ max(i + ar0) ⊦ ordered≤(rev(ar0)) ∧ ¬ max(ar0)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ordered≤(x + y) → ordered≤(x); (s) ⊦ a + x = a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[natarray-oarray-sort] ⊦ x + a = x + a '; (s) ⊦ rev(a ' + x) = rev(x) + a; (s)

Proof step 10 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), ¬ max(i ' + ar0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:maximum-permutation, seq: ⊦ max(ar1) ↔ (∀ ar2. perm(ar1, ar2) → ar2 ≤ ar1), subst:[ar1] → [i ' + ar0], <all paths>

Additional information

Used terms: i ' + ar0

Proof step 11 from proof descending-order-is-max-permuted (previous step) (back to tree)

⊦ max(ar1) ↔ (∀ ar2. perm(ar1, ar2) → ar2 ≤ ar1)

Lemma maximum-permutation

Proof step 12 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), ∃ ar2. ¬(perm(i ' + ar0, ar2) → ar2 ≤ i ' + ar0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 13 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, ar2), ¬ ar2 ≤ i ' + ar0 ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: ar2

Additional information

Used simplifier rules: array freely generated by [], +;; ⊦ perm(x, []) ↔ x = []; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ a ' ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[natarray-oarray-sort]

Proof step 14 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, i0 + ar), ¬ i0 + ar ≤ i ' + ar0, ∀ ar0, i. ¬(max(ar0) ∧ ordered≤(rev(ar0) + i ') ∧ perm(i ' + ar0, ar) ∧ ¬ ar ≤ i ' + ar0) ⊦

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 15 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, i0 ' + ar), ¬ i0 ' + ar ≤ i ' + ar0, ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:lexicographic-rec1, seq: ⊦ n ' + ar1 ≤ m ' + ar2 ↔ (n = m ⊃ ar1 ≤ ar2;n ≤ m), subst:[n, ar1, m, ar2] → [i0, ar, i, ar0], <all paths>

Additional information

Used terms: i0, ar, i, ar0

Proof step 16 from proof descending-order-is-max-permuted (previous step) (back to tree)

⊦ n ' + ar1 ≤ m ' + ar2 ↔ (n = m ⊃ ar1 ≤ ar2;n ≤ m)

Lemma lexicographic-rec1

Proof step 17 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, i0 ' + ar), (i0 = i ⊃ ¬ ar ≤ ar0;¬ i0 ≤ i), ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m ≠ n → (m ≤ n ↔ m < n); (s)

Proof step 18 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, i0 ' + ar), (i0 = i ⊃ ¬ ar ≤ ar0;¬ i0 < i), ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 4

Additional information

Proof step 19 from proof descending-order-is-max-permuted (previous step) (back to tree)

i0 = i, max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, i0 ' + ar), ¬ ar ≤ ar0, ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

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[natarray-oarray-sort] ⊦ perm(a ' + x, a ' + y) ↔ perm(x, y); (s)

Proof step 20 from proof descending-order-is-max-permuted (previous step) (back to tree)

max(ar0), ordered≤(rev(ar0) + i '), perm(ar0, ar), ¬ ar ≤ ar0, ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:maximum-permutation, seq: ⊦ max(ar1) ↔ (∀ ar2. perm(ar1, ar2) → ar2 ≤ ar1), subst:[ar1] → [ar0], <all paths>

Additional information

Used terms: ar0

Proof step 21 from proof descending-order-is-max-permuted (previous step) (back to tree)

⊦ max(ar1) ↔ (∀ ar2. perm(ar1, ar2) → ar2 ≤ ar1)

Lemma maximum-permutation

Proof step 22 from proof descending-order-is-max-permuted (previous step) (back to tree)

ordered≤(rev(ar0) + i '), perm(ar0, ar), ¬ ar ≤ ar0, ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1, ∀ ar2. perm(ar0, ar2) → ar2 ≤ ar0 ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 5 terms: ar

Additional information

Used terms: ar

Proof step 23 from proof descending-order-is-max-permuted (previous step) (back to tree)

i0 ≠ i, max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, i0 ' + ar), ¬ i0 < i, ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ a ≠ b → (a < b ↔ ¬ b < a); (ss)

Proof step 24 from proof descending-order-is-max-permuted (previous step) (back to tree)

i0 ≠ i, i < i0, max(ar0), ordered≤(rev(ar0) + i '), perm(i ' + ar0, i0 ' + ar), ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-perm[natarray-oarray-sort], name:rec, seq: ⊦ a ≠ b → (perm(a ' + x, b ' + y) ↔ a ∈ y ∧ b ∈ x ∧ perm(x -1l b, y -1l a)), subst:[a, x, b, y] → [i, ar0, i0, ar], <all paths>

Additional information

Used terms: i, ar0, i0, ar

Proof step 25 from proof descending-order-is-max-permuted (previous step) (back to tree)

⊦ a ≠ b → (perm(a ' + x, b ' + y) ↔ a ∈ y ∧ b ∈ x ∧ perm(x -1l b, y -1l a))

A spec-lemma

Proof step 26 from proof descending-order-is-max-permuted (previous step) (back to tree)

i0 ≠ i, i < i0, max(ar0), ordered≤(rev(ar0) + i '), perm(ar0 -1l i0, ar -1l i), i ∈ ar, i0 ∈ ar0, ∀ ar1, i1. ¬ max(ar1) ∨ ¬ ordered≤(rev(ar1) + i1 ') ∨ ¬ perm(i1 ' + ar1, ar) ∨ ar ≤ i1 ' + ar1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:not-ordered, seq: ⊦ i > j ∧ i ∈ ar1 ∧ j ∈ ar2 → ¬ ordered≤(ar1 + ar2), subst:[ar1, ar2, i, j] → [rev(ar0), i ', i0, i], <all paths>

Additional information

Used simplifier rules: ⊦ m > n ↔ n < m; (s) ⊦ a ∈ rev(x) ↔ a ∈ x; (s) ⊦ a ∈ b ' ↔ a = b; (s) Used terms: rev(ar0), i ', i0, i

Proof step 27 from proof descending-order-is-max-permuted (previous step) (back to tree)

⊦ i > j ∧ i ∈ ar1 ∧ j ∈ ar2 → ¬ ordered≤(ar1 + ar2)

Lemma not-ordered

Proof Tree for descending-order-is-max-permuted (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