[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 stutf-alltakenmax (conclusion) (back to tree)

⊦ stutf(nσ) ∧ ⌜m⌝ < # nσ ∧ n < nσ[m] → (∃ m0. m0 < m ∧ nσ[m0] = n ∧ nσ[m0 + 1] = n + 1)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof stutf-alltakenmax (previous step) (back to tree)

⌜m⌝ < # nσ, n < nσ[m], stutf(nσ) ⊦ ∃ m0. m0 < m ∧ nσ[m0] = n ∧ nσ[m0 + 1] = n + 1

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

Proof step 3 from proof stutf-alltakenmax (previous step) (back to tree)

⌜m⌝ < # nσ, n < nσ[m], stutf(nσ) ⊦ ∃ m0. m0 < m ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

User applied rule induction

And obtained the following new goals

Rule argument

indvar: m wfpred: <

Additional information

Used simplifier rules: <; (wellfounded) Used terms: m

Proof step 4 from proof stutf-alltakenmax (previous step) (back to tree)

⌜m⌝ < # nσ, n < nσ[m], stutf(nσ), ∀ m0, nσ, n. m0 < m → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. m0 < m ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 5 from proof stutf-alltakenmax (previous step) (back to tree)

n < nσ[m], ⌜m⌝ < # nσ, stutf(nσ), ∀ m0, nσ, n. m0 < m → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. m0 < m ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: m

Additional information

Used simplifier rules: stutf-zero: ⊦ stutf(nσ) → nσ[0] = 0; nat freely generated by 0, +1;; ⊦ ¬ n < 0; (s)

Proof step 6 from proof stutf-alltakenmax (previous step) (back to tree)

m = m2 +1, ⌜m⌝ < # nσ, n < nσ[m], stutf(nσ), ∀ m0, nσ, n. m0 < m → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. m0 < m ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ m +1 = m + 1; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 7 from proof stutf-alltakenmax (previous step) (back to tree)

⌜m2⌝ + ⌜1⌝ < # nσ, n < nσ[m2 + 1], stutf(nσ), ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: m2 abort: F discard: F computed: F

Additional information

Used terms: m2

Proof step 8 from proof stutf-alltakenmax (previous step) (back to tree)

n < nσ[m2 + 1], ⌜m2⌝ + ⌜1⌝ < # nσ, stutf(nσ), ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, ¬ m2 < m2 ∧ nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 9 from proof stutf-alltakenmax (previous step) (back to tree)

⌜m2⌝ + ⌜1⌝ < # nσ, n < nσ[m2 + 1], stutf(nσ), ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:stutf-def, seq:⊦ stutf(nσ) ↔ nσ ≠ [] ∧ nσ[0] = 0 ∧ (∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1), subst:[nσ] → [nσ]

Additional information

Used terms: nσ

Proof step 10 from proof stutf-alltakenmax (previous step) (back to tree)

⊦ stutf(nσ) ↔ nσ ≠ [] ∧ nσ[0] = 0 ∧ (∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1)

Lemma stutf-def

Proof step 11 from proof stutf-alltakenmax (previous step) (back to tree)

n < nσ[m2 + 1], ⌜m2⌝ + ⌜1⌝ < # nσ, stutf(nσ), stutf(nσ) ↔ nσ ≠ [] ∧ nσ[0] = 0 ∧ (∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1), ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: stutf-nonempty: ⊦ stutf(nσ) → (nσ = [] ↔ false); stutf-zero: ⊦ stutf(nσ) → nσ[0] = 0;

Proof step 12 from proof stutf-alltakenmax (previous step) (back to tree)

nσ ≠ [], ⌜m2⌝ + ⌜1⌝ < # nσ, n < nσ[m2 + 1], stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 5 terms: m2 abort: F discard: F computed: T

Additional information

Used terms: m2

Proof step 13 from proof stutf-alltakenmax (previous step) (back to tree)

nσ ≠ [], n < nσ[m2 + 1], ⌜m2⌝ + ⌜1⌝ < # nσ, stutf(nσ), ⌜m2⌝ + ⌜1⌝ < # nσ → nσ[m2 + 1] = nσ[m2] ∨ nσ[m2 + 1] = nσ[m2] + 1, ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 14 from proof stutf-alltakenmax (previous step) (back to tree)

nσ ≠ [], ⌜m2⌝ + ⌜1⌝ < # nσ, n < nσ[m2 + 1], stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, nσ[m2 + 1] = nσ[m2] ∨ nσ[m2 + 1] = nσ[m2] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 6

Additional information

Proof step 15 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m2 + 1] = nσ[m2], nσ ≠ [], n < nσ[m2 + 1], ⌜m2⌝ + ⌜1⌝ < # nσ, stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 16 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m2 + 1] = nσ[m2], nσ ≠ [], n < nσ[m2], ⌜m2⌝ + ⌜1⌝ < # nσ, stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

User applied rule apply induction

And obtained the following new goals

Rule argument

subst: [m0, nσ, n] → [m2, nσ, n]

Additional information

Used simplifier rules: lsle-trans: ⊦ n∞ < n∞1 ∧ ¬ n∞2 < n∞1 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ¬ m + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf ⊦ m +1 = m + 1; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) Used terms: m2, nσ, n

Proof step 17 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m2 + 1] = nσ[m2], nσ ≠ [], ⌜m2⌝ + ⌜1⌝ < # nσ, n < nσ[m2], stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∃ m1. m1 < m2 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 18 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m1 + 1] = nσ[m1] + 1, nσ[m2 + 1] = nσ[m2], nσ ≠ [], m1 < m2, ⌜m2⌝ + ⌜1⌝ < # nσ, nσ[m1] < nσ[m2], stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = nσ[m1] ∧ nσ[m0 + 1] = nσ[m0] + 1

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: m1

Additional information

Used simplifier rules: ⊦ m < n → ¬ n < m; (s) Used terms: m1

Proof step 19 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m2 + 1] = nσ[m2] + 1, nσ ≠ [], n < nσ[m2 + 1], ⌜m2⌝ + ⌜1⌝ < # nσ, stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1, nσ[m2] = n ∧ nσ[m2 + 1] = nσ[m2] + 1

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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m ≠ n → (m < n + 1 ↔ m < n); (s) ⊦ m + 1 ≠ 0; (s)

Proof step 20 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m2 + 1] = nσ[m2] + 1, nσ[m2] ≠ n, nσ ≠ [], n < nσ[m2], ⌜m2⌝ + ⌜1⌝ < # nσ, stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

User applied rule apply induction

And obtained the following new goals

Rule argument

subst: [m0, nσ, n] → [m2, nσ, n]

Additional information

Used simplifier rules: lsle-trans: ⊦ n∞ < n∞1 ∧ ¬ n∞2 < n∞1 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ¬ m + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf ⊦ m +1 = m + 1; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) Used terms: m2, nσ, n

Proof step 21 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m2 + 1] = nσ[m2] + 1, nσ[m2] ≠ n, nσ ≠ [], ⌜m2⌝ + ⌜1⌝ < # nσ, n < nσ[m2], stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∃ m1. m1 < m2 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = n ∧ nσ[m0 + 1] = nσ[m0] + 1

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 22 from proof stutf-alltakenmax (previous step) (back to tree)

nσ[m1 + 1] = nσ[m1] + 1, nσ[m2 + 1] = nσ[m2] + 1, nσ[m2] ≠ nσ[m1], nσ ≠ [], m1 < m2, ⌜m2⌝ + ⌜1⌝ < # nσ, nσ[m1] < nσ[m2], stutf(nσ), ∀ n. ⌜n⌝ + ⌜1⌝ < # nσ → nσ[n + 1] = nσ[n] ∨ nσ[n + 1] = nσ[n] + 1, ∀ m0, nσ, n. m0 < m2 +1 → ⌜m0⌝ < # nσ ∧ n < nσ[m0] ∧ stutf(nσ) → (∃ m1. m1 < m0 ∧ nσ[m1] = n ∧ nσ[m1 + 1] = nσ[m1] + 1) ⊦ ∃ m0. ¬ m2 < m0 ∧ nσ[m0] = nσ[m1] ∧ nσ[m0 + 1] = nσ[m0] + 1

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: m1

Additional information

Used simplifier rules: ⊦ m < n → ¬ n < m; (s) Used terms: m1

Proof Tree for stutf-alltakenmax (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