[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 lsleninv-1 (conclusion) (back to tree)

⊦ stutf(nσ) ∧ ⌜m⌝ < # nσ ∧ n < nσ[m] → (⌜n⌝ < leninv(nσ) ↔ true)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof lsleninv-1 (previous step) (back to tree)

¬(⌜n⌝ < leninv(nσ) ↔ true), ⌜m⌝ < # nσ, n < nσ[m], stutf(nσ) ⊦

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 lsleninv-1 (previous step) (back to tree)

⌜m⌝ < # nσ, n < nσ[m], stutf(nσ), ¬ ⌜n⌝ < leninv(nσ) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: leninv(nσ)

Additional information

Used simplifier rules: natinf freely generated by ∞, ⌜ ⌝;; ⊦ ⌜m⌝ < ∞; (s)

Proof step 4 from proof lsleninv-1 (previous step) (back to tree)

⌜n0⌝ = leninv(nσ), n < nσ[m], ⌜m⌝ < # nσ, stutf(nσ), ¬ ⌜n⌝ < leninv(nσ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s)

Proof step 5 from proof lsleninv-1 (previous step) (back to tree)

⌜n0⌝ = leninv(nσ), n < nσ[m], ⌜m⌝ < # nσ, n0 < nσ[m], stutf(nσ), n0 ≤ n ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: n0

Additional information

Used simplifier rules: nat freely generated by 0, +1;;

Proof step 6 from proof lsleninv-1 (previous step) (back to tree)

n0 = 0, ⌜n0⌝ = leninv(nσ), n0 < nσ[m], ⌜m⌝ < # nσ, n < nσ[m], stutf(nσ), n0 ≤ n ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 7 from proof lsleninv-1 (previous step) (back to tree)

⌜0⌝ = leninv(nσ), n < nσ[m], ⌜m⌝ < # nσ, stutf(nσ) ⊦

User applied rule flip equation

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 8 from proof lsleninv-1 (previous step) (back to tree)

leninv(nσ) = ⌜0⌝ , ⌜m⌝ < # nσ, n < nσ[m], stutf(nσ) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:leninv-zero, seq: ⊦ stutf(nσ) → (leninv(nσ) = ⌜0⌝ ↔ nσ = ⌜λ n. 0⌝ ), subst:[nσ] → [nσ], <all paths>

Additional information

Used simplifier rules: ⊦ # ⌜nf⌝ = ∞; (s) ⊦ ⌜m⌝ < ∞; (s) ⊦ ⌜nf⌝ [n] = nf(n); (s) ⊦ ¬ n < 0; (s) Used terms: nσ

Proof step 9 from proof lsleninv-1 (previous step) (back to tree)

⊦ stutf(nσ) → (leninv(nσ) = ⌜0⌝ ↔ nσ = ⌜λ n. 0⌝ )

Lemma leninv-zero

Proof step 10 from proof lsleninv-1 (previous step) (back to tree)

n0 = n1 +1, ⌜n0⌝ = leninv(nσ), n0 < nσ[m], ⌜m⌝ < # nσ, n < nσ[m], stutf(nσ), n0 ≤ n ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m +1 = m + 1; (s) ⊦ m < n → n ≠ 0; (s) trans: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification nat-basic lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic 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 + 1 ≤ n ↔ m < n; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 11 from proof lsleninv-1 (previous step) (back to tree)

⌜n1⌝ + ⌜1⌝ = leninv(nσ), n1 < nσ[m], ⌜m⌝ < # nσ, n < nσ[m], n1 < n, n1 + 1 < nσ[m], stutf(nσ) ⊦

User applied rule flip equation

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 12 from proof lsleninv-1 (previous step) (back to tree)

leninv(nσ) = ⌜n1⌝ + ⌜1⌝ , n1 + 1 < nσ[m], n1 < n, n < nσ[m], ⌜m⌝ < # nσ, n1 < nσ[m], stutf(nσ) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:leninv-succ, seq:⊦ stutf(nσ) → ( leninv(nσ) = ⌜n⌝ + ⌜1⌝ ↔ (# nσ = ∞ ⊃ ∃ m. nσ[m] = n ∧ (∀ m0. m < m0 → nσ[m0] = n + 1) ;nσ[(# nσ).n - 1] = n )), subst:[n, nσ] → [n1, nσ], <all paths>

Additional information

Used terms: n1, nσ

Proof step 13 from proof lsleninv-1 (previous step) (back to tree)

⊦ stutf(nσ) → (leninv(nσ) = ⌜n⌝ + ⌜1⌝ ↔ (# nσ = ∞ ⊃ ∃ m. nσ[m] = n ∧ (∀ m0. m < m0 → nσ[m0] = n + 1);nσ[(# nσ).n - 1] = n))

Lemma leninv-succ

Proof step 14 from proof lsleninv-1 (previous step) (back to tree)

n1 < nσ[m], ⌜m⌝ < # nσ, n < nσ[m], n1 < n, n1 + 1 < nσ[m], stutf(nσ), (# nσ = ∞ ⊃ ∃ m. nσ[m] = n1 ∧ (∀ m0. m < m0 → nσ[m0] = n1 + 1);nσ[(# nσ).n - 1] = n1) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 15 from proof lsleninv-1 (previous step) (back to tree)

n1 + 1 < nσ[m], n1 < n, n < nσ[m], ⌜m⌝ < # nσ, n1 < nσ[m], stutf(nσ), (# nσ = ∞ ⊃ nσ[m0] = n1 ∧ (∀ m1. m0 < m1 → nσ[m1] = nσ[m0] + 1);nσ[(# nσ).n - 1] = n1) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:stutf-alltaken, seq: ⊦ stutf(nσ) ∧ ⌜m⌝ < # nσ ∧ n ≤ nσ[m] → (∃ m0. m0 ≤ m ∧ nσ[m0] = n), subst:[nσ, m, n] → [nσ, m, n]

Additional information

Used terms: nσ, m, n

Proof step 16 from proof lsleninv-1 (previous step) (back to tree)

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

Lemma stutf-alltaken

Proof step 17 from proof lsleninv-1 (previous step) (back to tree)

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

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 ⊦ m < n → m ≤ n; (s)

Proof step 18 from proof lsleninv-1 (previous step) (back to tree)

n1 + 1 < nσ[m], n1 < nσ[m1], nσ[m1] < nσ[m], ⌜m⌝ < # nσ, n1 < nσ[m], stutf(nσ), m1 ≤ m, (# nσ = ∞ ⊃ nσ[m0] = n1 ∧ (∀ m1. m0 < m1 → nσ[m1] = nσ[m0] + 1);nσ[(# nσ).n - 1] = n1) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 8

Additional information

Proof step 19 from proof lsleninv-1 (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜m⌝ < ∞; (s) ⊦ m +1 = m + 1; (s) trans: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification nat-basic lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic

Proof step 20 from proof lsleninv-1 (previous step) (back to tree)

# nσ = ∞, nσ[m0] < nσ[m], nσ[m1] < nσ[m], nσ[m0] < nσ[m1], nσ[m0] + 1 < nσ[m], stutf(nσ), m1 ≤ m, ∀ m1. m0 < m1 → nσ[m1] = nσ[m0] + 1 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:monle-leq, seq: ⊦ mon≤(nσ) ∧ m ≤ n ∧ ⌜n⌝ < # nσ → nσ[m] ≤ nσ[n], subst:[nσ, m, n] → [nσ, m1, m0]

Additional information

Used terms: nσ, m1, m0

Proof step 21 from proof lsleninv-1 (previous step) (back to tree)

⊦ mon≤(nσ) ∧ m ≤ n ∧ ⌜n⌝ < # nσ → nσ[m] ≤ nσ[n]

Lemma monle-leq

Proof step 22 from proof lsleninv-1 (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: stutf-monle: ⊦ stutf(nσ) → (mon≤(nσ) ↔ true); ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ ⌜m⌝ < ∞; (s) ⊦ m < n → (n ≤ m ↔ false); (s)

Proof step 23 from proof lsleninv-1 (previous step) (back to tree)

# nσ = ∞, nσ[m0] + 1 < nσ[m], nσ[m0] < nσ[m1], nσ[m1] < nσ[m], nσ[m0] < nσ[m], m0 < m1, m0 < m, stutf(nσ), m1 ≤ m, ∀ m1. m0 < m1 → nσ[m1] = nσ[m0] + 1 ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 10 terms: m

Additional information

Used simplifier rules: eqle-one: ⊦ m = n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m < n → (n ≤ m ↔ false); (s) Used terms: m

Proof step 24 from proof lsleninv-1 (previous step) (back to tree)

nσ[(# nσ).n - 1] = n1, # nσ ≠ ∞, n1 < nσ[m], ⌜m⌝ < # nσ, nσ[m1] < nσ[m], n1 < nσ[m1], n1 + 1 < nσ[m], stutf(nσ), m1 ≤ m ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m +1 = m + 1; (s) trans: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification nat-basic lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic

Proof step 25 from proof lsleninv-1 (previous step) (back to tree)

# nσ ≠ ∞, nσ[(# nσ).n - 1] < nσ[m], ⌜m⌝ < # nσ, nσ[m1] < nσ[m], nσ[(# nσ).n - 1] < nσ[m1], nσ[(# nσ).n - 1] + 1 < nσ[m], stutf(nσ), m1 ≤ m ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat-inf, name:elim, seq: ⊦ n∞ ≠ ∞ → (n = n∞.n ↔ n∞ = ⌜n⌝ ), subst:[n∞, n] → [# nσ, n]

Additional information

Used simplifier rules: ⊦ n∞ ≠ ∞ → (n = n∞.n ↔ n∞ = ⌜n⌝ ); (elim) Used terms: # nσ, n

Proof step 26 from proof lsleninv-1 (previous step) (back to tree)

# nσ = ⌜n⌝ , # nσ ≠ ∞, nσ[n - 1] + 1 < nσ[m], nσ[n - 1] < nσ[m1], nσ[m1] < nσ[m], ⌜m⌝ < # nσ, nσ[n - 1] < nσ[m], stutf(nσ), m1 ≤ m ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ m +1 = m + 1; (s) ⊦ ⌜n⌝ ≠ ∞; (s) trans: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification nat-basic lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic

Proof step 27 from proof lsleninv-1 (previous step) (back to tree)

# nσ = ⌜n⌝ , m1 < n, m < n, nσ[m1] < nσ[m], nσ[n - 1] < nσ[m1], nσ[n - 1] < nσ[m], nσ[n - 1] + 1 < nσ[m], stutf(nσ), m1 ≤ m ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-pred-c, seq:n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1, subst:[n, m] → [n, m0]

Additional information

Used simplifier rules: stutf-nonempty: ⊦ stutf(nσ) → (nσ = [] ↔ false); ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: n, m0

Proof step 28 from proof lsleninv-1 (previous step) (back to tree)

# nσ = ⌜n⌝ , n = m0 + 1, n ≠ 0, nσ[m0] + 1 < nσ[m], nσ[m0] < nσ[m], nσ[m0] < nσ[m1], nσ[m1] < nσ[m], m < n, m1 < n, stutf(nσ), m1 ≤ m ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m +1 = m + 1; (s) trans: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification nat-basic lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat ⊦ m < n ↔ ¬ n ≤ m; (ss) 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 ≠ 0; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 29 from proof lsleninv-1 (previous step) (back to tree)

# nσ = ⌜m0⌝ + ⌜1⌝ , nσ[m0] < nσ[m], nσ[m0] < nσ[m1], nσ[m1] < nσ[m], nσ[m0] + 1 < nσ[m], stutf(nσ), m ≤ m0, m1 ≤ m, m1 ≤ m0 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:monle-leq, seq: ⊦ mon≤(nσ) ∧ m ≤ n ∧ ⌜n⌝ < # nσ → nσ[m] ≤ nσ[n], subst:[nσ, m, n] → [nσ, m1, m0]

Additional information

Used simplifier rules: stutf-monle: ⊦ stutf(nσ) → (mon≤(nσ) ↔ true); 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 ⊦ n∞ = ⌜m⌝ + ⌜n0⌝ → (⌜n⌝ < n∞ ↔ n < m + n0); (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ m < n → (n ≤ m ↔ false); (s) Used terms: nσ, m1, m0

Proof step 30 from proof lsleninv-1 (previous step) (back to tree)

⊦ mon≤(nσ) ∧ m ≤ n ∧ ⌜n⌝ < # nσ → nσ[m] ≤ nσ[n]

Lemma monle-leq

Proof Tree for lsleninv-1 (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