[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 lim-exists (conclusion) (back to tree)

mon(σσ), σσ ≠ [] ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → σσ[n] ⊑ σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ σ to m ⊑ σσ[n]))

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof lim-exists (previous step) (back to tree)

σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → σσ[n] ⊑ σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ σ to m ⊑ σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: prefix-def: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0);

Proof step 3 from proof lim-exists (previous step) (back to tree)

σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: # σσ = ∞

Additional information

Used formulas: # σσ = ∞

Proof step 4 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜m⌝ < ∞; (s)

Proof step 5 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: ∃ n. # σσ[n] = ∞

Additional information

Used formulas: ∃ n. # σσ[n] = ∞

Proof step 6 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ), ∃ n. # σσ[n] = ∞ ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 7 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ∞, # σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: σσ[n] abort: F discard: T computed: T

Additional information

Used terms: σσ[n]

Proof step 8 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[n] = ∞, σσ ≠ [], mon(σσ) ⊦ (∀ n0. ∃ σ1. σσ[n0] + σ1 = σσ[n]) ∧ (∀ m. ¬ # σσ[n] < ⌜m⌝ → (∃ n0, σ1. (σσ[n] to m) + σ1 = σσ[n0]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 9 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[n] = ∞, σσ ≠ [], mon(σσ) ⊦ (∃ σ1. σσ[n0] + σ1 = σσ[n]) ∧ (∃ n0, σ1. (σσ[n] to m) + σ1 = σσ[n0])

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 10 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ∞, # σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ1. σσ[n0] + σ1 = σσ[n]

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:mon-lem, seq:mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n], subst:[σσ, m, n] → [σσ, n0, n]

Additional information

Used simplifier rules: prefix-def: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0); Used terms: σσ, n0, n

Proof step 11 from proof lim-exists (previous step) (back to tree)

mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n]

Lemma mon-lem

Proof step 12 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[n] = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ1. σσ[n0] + σ1 = σσ[n], n0 ≤ n ∧ ⌜n⌝ < # σσ

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 13 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[n] = ∞, n0 ≠ 0, σσ ≠ [], n < n0, mon(σσ) ⊦ ∃ σ1. σσ[n0] + σ1 = σσ[n]

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: [] abort: F discard: T computed: F

Additional information

Used terms: []

Proof step 14 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ∞, # σσ = ∞, σσ[n0] + [] ≠ σσ[n], n0 ≠ 0, σσ ≠ [], n < n0, mon(σσ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ σ + [] = σ; (s)

Proof step 15 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[n] = ∞, σσ[n0] ≠ σσ[n], n0 ≠ 0, σσ ≠ [], n < n0, mon(σσ) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:mon-lem, seq:mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n], subst:[σσ, m, n] → [σσ, n, n0]

Additional information

Used simplifier rules: ⊦ m < n → m ≤ n; (s) ⊦ ⌜m⌝ < ∞; (s) Used terms: σσ, n, n0

Proof step 16 from proof lim-exists (previous step) (back to tree)

mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n]

Lemma mon-lem

Proof step 17 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ∞, # σσ = ∞, σσ[n0] ≠ σσ[n], n0 ≠ 0, σσ ≠ [], n < n0, mon(σσ), σσ[n] ⊑ σσ[n0] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: prefix-def: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0);

Proof step 18 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[n] = ∞, σσ[n] + σ1 = σσ[n0], σσ[n0] ≠ σσ[n], n0 ≠ 0, σσ ≠ [], n < n0, mon(σσ) ⊦

User applied rule structural induction

And closed the goal!

Rule argument

term: σσ[n]

Additional information

Used simplifier rules: stream freely generated by ⌜ ⌝, ⌜ ⌝;; ⊦ ⌜nf⌝ + σ = ⌜nf⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜n⌝ ≠ ∞; (s)

Proof step 19 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ∞, # σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ n0, σ1. (σσ[n] to m) + σ1 = σσ[n0]

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: n, σσ[n] from m abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ ¬ ∞ < n∞; (s) ¬ # σ < ⌜n⌝ ⊦ (σ to n) + (σ from n) = σ ↔ true; (ss) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream Used terms: n, σσ[n] from m

Proof step 20 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: ∀ n. ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝

Additional information

Used formulas: ∀ n. ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝

Proof step 21 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ), ∀ n. ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝ ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule choice left

And obtained the following new goals

Rule argument

pos: left 4

Additional information

Proof step 22 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: infinite-append, name:infinite-append, seq:⊦ ∃ σ, ii. ii(0) = 0 ∧ (∀ n. ii(n + 1) = ii(n) + # lf(n) ∧ ¬ # σ < ⌜ii(n + 1)⌝ ∧ (σ from ii(n)) to # lf(n) = ⌜lf(n)⌝ ) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (finp(σ) ⊃ ∃ n. # σ = ⌜ii(n)⌝ ∧ (∀ m. n ≤ m → lf(m) = [] ∧ ii(m) = ii(n)) ;∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ), subst:[lf] → [f_n->list]

Additional information

Used terms: f_n->list

Proof step 23 from proof lim-exists (previous step) (back to tree)

⊦ ∃ σ, ii. ii(0) = 0 ∧ (∀ n. ii(n + 1) = ii(n) + # lf(n) ∧ ¬ # σ < ⌜ii(n + 1)⌝ ∧ (σ from ii(n)) to # lf(n) = ⌜lf(n)⌝ ) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (finp(σ) ⊃ ∃ n. # σ = ⌜ii(n)⌝ ∧ (∀ m. n ≤ m → lf(m) = [] ∧ ii(m) = ii(n));∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1))

A spec-lemma

Proof step 24 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∃ σ, ii. ii(0) = 0 ∧ (∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ ¬ # σ < ⌜ii(n + 1)⌝ ∧ (σ from ii(n)) to # f_n->list(n) = ⌜f_n->list(n)⌝ ) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (finp(σ) ⊃ ∃ n. # σ = ⌜ii(n)⌝ ∧ (∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n));∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1)) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 25 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), (finp(σ) ⊃ # σ = ⌜ii(n)⌝ ∧ (∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n));∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1)), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ ¬ # σ < ⌜ii(n + 1)⌝ ∧ (σ from ii(n)) to # f_n->list(n) = ⌜f_n->list(n)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 5

Additional information

Proof step 26 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σ = ⌜ii(n)⌝ , ii(0) = 0, σσ ≠ [], finp(σ), mon(σσ), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ ¬ # σ < ⌜ii(n + 1)⌝ ∧ (σ from ii(n)) to # f_n->list(n) = ⌜f_n->list(n)⌝ , ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ = ⌜x0⌝ ↔ x = x0; (s) ⊦ ⌜x⌝ to n = ⌜x to n⌝ ; (s) ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ finp(⌜x⌝ ); (s) ⊦ ⌜n⌝ = ⌜n0⌝ ↔ n = n0; (s) stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic

Proof step 27 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), ii(0) = 0, σσ ≠ [], mon(σσ), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0) ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 2 terms: n abort: F discard: F computed: F

Additional information

Used terms: n

Proof step 28 from proof lim-exists (previous step) (back to tree)

# x = ii(n), # σσ = ∞, ii(0) = 0, # σσ[n] ≠ ∞, σσ ≠ [], mon(σσ), ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-inf, name:notinf-fin, seq: ⊦ n∞ = ∞ ↔ ¬(∃ n. n∞ = ⌜n⌝ ), subst:[n∞] → [# σσ[n]], <all paths>

Additional information

Used terms: # σσ[n]

Proof step 29 from proof lim-exists (previous step) (back to tree)

⊦ n∞ = ∞ ↔ ¬(∃ n. n∞ = ⌜n⌝ )

A spec-lemma

Proof step 30 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), ii(0) = 0, σσ ≠ [], mon(σσ), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∃ n0. # σσ[n] = ⌜n0⌝ ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 31 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: ∀ m. n ≤ m → σσ[m] = σσ[n]

Additional information

Used formulas: ∀ m. n ≤ m → σσ[m] = σσ[n]

Proof step 32 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(0) = 0, σσ ≠ [], mon(σσ), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ m. n ≤ m → σσ[m] = σσ[n] ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: σσ[n] abort: F discard: T computed: T

Additional information

Used terms: σσ[n]

Proof step 33 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ m. n ≤ m → σσ[m] = σσ[n], ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, (∀ n0. ∃ σ1. σσ[n0] + σ1 = σσ[n]) ∧ (∀ m. ¬ # σσ[n] < ⌜m⌝ → (∃ n0, σ1. (σσ[n] to m) + σ1 = σσ[n0]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s)

Proof step 34 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ m. n ≤ m → σσ[m] = σσ[n], ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, (∃ σ1. σσ[n1] + σ1 = σσ[n]) ∧ (¬ n0 < m → (∃ n0, σ1. (σσ[n] to m) + σ1 = σσ[n0]))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 2

Additional information

Proof step 35 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(0) = 0, σσ ≠ [], mon(σσ), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ m. n ≤ m → σσ[m] = σσ[n] ⊦ ∃ n. # σσ[n] = ∞, ∃ σ1. σσ[n1] + σ1 = σσ[n]

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 11 terms: n1 abort: F discard: F computed: F

Additional information

Used terms: n1

Proof step 36 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), n ≤ n1 → σσ[n1] = σσ[n], ∀ m. n ≤ m → σσ[m] = σσ[n], ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ σ1. σσ[n1] + σ1 = σσ[n], ∃ n. # σσ[n] = ∞

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:mon-lem, seq:mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n], subst:[σσ, m, n] → [σσ, n1, n]

Additional information

Used simplifier rules: prefix-def: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0); ⊦ ⌜m⌝ < ∞; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < n → m ≤ n; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ σ0 + σ = σ0 ↔ σ = [] ∨ ¬ finp(σ0); (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream Used terms: σσ, n1, n

Proof step 37 from proof lim-exists (previous step) (back to tree)

mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n]

Lemma mon-lem

Proof step 38 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(0) = 0, σσ ≠ [], mon(σσ), ¬ n0 < m, ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ m. n ≤ m → σσ[m] = σσ[n] ⊦ ∃ n. # σσ[n] = ∞, ∃ n0, σ1. (σσ[n] to m) + σ1 = σσ[n0]

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss)

Proof step 39 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), m ≤ n0, ∀ m. n ≤ m → σσ[m] = σσ[n], ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n0, σ1. (σσ[n] to m) + σ1 = σσ[n0], ∃ n. # σσ[n] = ∞

User applied rule exists right

And closed the goal!

Rule argument

pos: right 1 terms: n, σσ[n] from m abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ m ≤ n → (n < m ↔ false); (s) ¬ # σ < ⌜n⌝ ⊦ (σ to n) + (σ from n) = σ ↔ true; (ss) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream Used terms: n, σσ[n] from m

Proof step 40 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(0) = 0, σσ ≠ [], mon(σσ), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0) ⊦ ∀ m. n ≤ m → σσ[m] = σσ[n], ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 41 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ[m] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m, ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule weakening

And obtained the following new goals

Rule argument

poslist: right 2

Additional information

Proof step 42 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(0) = 0, σσ[m] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m, ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0) ⊦ ∃ n. # σσ[n] = ∞

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: m

Additional information

Used simplifier rules: nat freely generated by 0, +1;; ⊦ m ≤ 0 ↔ m = 0; (s)

Proof step 43 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ[m0 +1] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m0 +1, ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ σσ, x, ii, n, n0, f_n->list. # σσ = ∞ ∧ # x = ii(n) ∧ # σσ[n] = ⌜n0⌝ ∧ ii(0) = 0 ∧ σσ[m0] ≠ σσ[n] ∧ σσ ≠ [] ∧ mon(σσ) ∧ n ≤ m0 ∧ (∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n)) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ) ∧ (∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0)) → (∃ n. # σσ[n] = ∞) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m +1 = m + 1; (s)

Proof step 44 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(0) = 0, σσ[m0 + 1] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m0 + 1, ∀ σσ, x, ii, n, n0, f_n->list. # σσ = ∞ ∧ # x = ii(n) ∧ # σσ[n] = ⌜n0⌝ ∧ ii(0) = 0 ∧ σσ[m0] ≠ σσ[n] ∧ σσ ≠ [] ∧ mon(σσ) ∧ n ≤ m0 ∧ (∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n)) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ) ∧ (∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0)) → (∃ n. # σσ[n] = ∞), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0) ⊦ ∃ n. # σσ[n] = ∞

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 9 terms: σσ, x, ii, n, n0, f_n->list abort: F discard: T computed: T

Additional information

Used terms: σσ, x, ii, n, n0, f_n->list

Proof step 45 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, σσ[m0 + 1] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m0 + 1, # σσ = ∞ ∧ # x = ii(n) ∧ # σσ[n] = ⌜n0⌝ ∧ ii(0) = 0 ∧ σσ[m0] ≠ σσ[n] ∧ σσ ≠ [] ∧ mon(σσ) ∧ n ≤ m0 ∧ (∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n)) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ) ∧ (∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0)) → (∃ n. # σσ[n] = ∞), ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 46 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(0) = 0, σσ[m0 + 1] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m0 + 1, ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0) ⊦ ∃ n. # σσ[n] = ∞, σσ[m0] ≠ σσ[n] ∧ n ≤ m0

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 12 terms: m0 abort: F discard: F computed: F

Additional information

Used terms: m0

Proof step 47 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, ii(0) = 0, ii(m0 + 1) = ii(m0) + # f_n->list(m0), (x from ii(m0)) to # f_n->list(m0) = f_n->list(m0), σσ[m0 + 1] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m0 + 1, ¬ ii(n) < ii(m0 + 1), ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, σσ[m0] ≠ σσ[n] ∧ n ≤ m0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss)

Proof step 48 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , ii(m0 + 1) = ii(m0) + # f_n->list(m0), ii(0) = 0, (x from ii(m0)) to # f_n->list(m0) = f_n->list(m0), σσ[m0 + 1] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m0 + 1, ii(m0 + 1) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0) ⊦ ∃ n. # σσ[n] = ∞, σσ[m0] ≠ σσ[n] ∧ n ≤ m0

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 14 terms: m0 abort: F discard: F computed: T

Additional information

Used terms: m0

Proof step 49 from proof lim-exists (previous step) (back to tree)

# σσ[n] = ⌜n0⌝ , # x = ii(n), # σσ = ∞, σσ[m0 + 1] = σσ[m0] + ⌜f_n->list(m0)⌝ , ii(0) = 0, ii(m0 + 1) = ii(m0) + # f_n->list(m0), (x from ii(m0)) to # f_n->list(m0) = f_n->list(m0), σσ[m0 + 1] ≠ σσ[n], σσ ≠ [], mon(σσ), ii(m0 + 1) ≤ ii(n), n ≤ m0 + 1, ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n) ⊦ ∃ n. # σσ[n] = ∞, σσ[m0] ≠ σσ[n] ∧ n ≤ m0

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 16 terms: m0 abort: F discard: F computed: F

Additional information

Used terms: m0

Proof step 50 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # x = ii(n), # σσ[n] = ⌜n0⌝ , σσ[m0 + 1] = σσ[m0] + ⌜f_n->list(m0)⌝ , ii(m0 + 1) = ii(m0) + # f_n->list(m0), ii(0) = 0, (x from ii(m0)) to # f_n->list(m0) = f_n->list(m0), σσ[m0 + 1] ≠ σσ[n], σσ ≠ [], mon(σσ), n ≤ m0 + 1, ii(m0 + 1) ≤ ii(n), n ≤ m0 → f_n->list(m0) = [] ∧ ii(m0) = ii(n), ∀ m. n ≤ m → f_n->list(m) = [] ∧ ii(m) = ii(n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n0. ii(n0 + 1) = ii(n0) + # f_n->list(n0) ∧ ¬ ii(n) < ii(n0 + 1) ∧ (x from ii(n0)) to # f_n->list(n0) = f_n->list(n0) ⊦ ∃ n. # σσ[n] = ∞, σσ[m0] ≠ σσ[n] ∧ n ≤ m0

User applied rule cut formula

And closed the goal!

Rule argument

fma: n ≤ m0

Additional information

Used simplifier rules: ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < n → (n ≤ m + 1 ↔ n = m + 1); (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ n + 0 = n; (s) ⊦ # [] = 0; (s) ⊦ x to 0 = []; (s) ⊦ ⌜[]⌝ = []; (s) ⊦ σ + [] = σ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream Used formulas: n ≤ m0

Proof step 51 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ¬ finp(σ), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ ¬ # σ < ⌜ii(n + 1)⌝ ∧ (σ from ii(n)) to # f_n->list(n) = ⌜f_n->list(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ = ⌜x0⌝ ↔ x = x0; (s) ⊦ ⌜nf⌝ to n = ⌜nf to n⌝ ; (s) ⊦ ⌜nf⌝ from n = ⌜nf from n⌝ ; (s) ⊦ ¬ finp(⌜nf⌝ ); (s) stream-inf-forward: ⊦ ¬ finp(σ) → (∃ nf. ⌜nf⌝ = σ); (forward) from specification stream-basic ⊦ ¬ ∞ < n∞; (s) ⊦ ¬ finp(σ) → # σ = ∞; (s)

Proof step 52 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝

Additional information

Used formulas: ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝

Proof step 53 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 2 terms: σσ[0] + ⌜nf⌝ abort: F discard: T computed: F

Additional information

Used terms: σσ[0] + ⌜nf⌝

Proof step 54 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, (∀ n. ∃ σ1. σσ[n] + σ1 = σσ[0] + ⌜nf⌝ ) ∧ (∀ m. ¬ #(σσ[0] + ⌜nf⌝ ) < ⌜m⌝ → (∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ ∞ < n∞; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ n∞ + ∞ = ∞; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 55 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ n. # σσ[n] = ∞, (∃ σ1. σσ[n] + σ1 = σσ[0] + ⌜nf⌝ ) ∧ (∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n])

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 2

Additional information

Proof step 56 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ1. σσ[n] + σ1 = σσ[0] + ⌜nf⌝

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 5 terms: n abort: F discard: F computed: F

Additional information

Used terms: n

Proof step 57 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ σ1. σσ[n] + σ1 = σσ[0] + ⌜nf⌝ , ∃ n. # σσ[n] = ∞

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 2, flags: discard

Additional information

Proof step 58 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ σ1. (σσ[0] + ⌜nf to ii(n)⌝ ) + σ1 = σσ[0] + ⌜nf⌝

User applied rule exists right

And closed the goal!

Rule argument

pos: right 2 terms: ⌜nf from ii(n)⌝ abort: F discard: T computed: F

Additional information

Used simplifier rules: ⊦ σ + σ1 = σ + σ2 ↔ σ1 = σ2 ∨ # σ = ∞; (ws) ⊦ ⌜nf to n⌝ + ⌜nf from n⌝ = ⌜nf⌝ ↔ true; (ss) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream Used terms: ⌜nf from ii(n)⌝

Proof step 59 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]

User applied rule exists right

And obtained the following new goals

Rule argument

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

Additional information

Used terms: 0

Proof step 60 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, # σσ[0] ≠ ∞, σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n], ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-inf, name:notinf-fin, seq: ⊦ n∞ = ∞ ↔ ¬(∃ n. n∞ = ⌜n⌝ ), subst:[n∞] → [# σσ[0]], <all paths>

Additional information

Used terms: # σσ[0]

Proof step 61 from proof lim-exists (previous step) (back to tree)

⊦ n∞ = ∞ ↔ ¬(∃ n. n∞ = ⌜n⌝ )

A spec-lemma

Proof step 62 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∃ n. # σσ[0] = ⌜n⌝ ⊦ ∃ n. # σσ[n] = ∞, ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 63 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n], ∃ n. # σσ[n] = ∞

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: m < n

Additional information

Used formulas: m < n

Proof step 64 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , ii(0) = 0, σσ ≠ [], m < n, mon(σσ), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 2 terms: 0, σσ[0] from m abort: F discard: T computed: F

Additional information

Used terms: 0, σσ[0] from m

Proof step 65 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, ii(0) = 0, (σσ[0] + ⌜nf⌝ to m) + (σσ[0] from m) ≠ σσ[0], σσ ≠ [], m < n, mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:append-to-ls, seq: ⊦ ¬ # σ < ⌜n⌝ → σ + σ0 to n = σ to n, subst:[n, σ0, σ] → [m, ⌜nf⌝ , σσ[0]], <all paths>

Additional information

Used simplifier rules: ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ m < n → ¬ n < m; (s) ¬ # σ < ⌜n⌝ ⊦ (σ to n) + (σ from n) = σ ↔ true; (ss) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic Used terms: m, ⌜nf⌝ , σσ[0]

Proof step 66 from proof lim-exists (previous step) (back to tree)

⊦ ¬ # σ < ⌜n⌝ → σ + σ0 to n = σ to n

A spec-lemma

Proof step 67 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , ii(0) = 0, σσ ≠ [], mon(σσ), ¬ m < n, ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss)

Proof step 68 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), n ≤ m, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n], ∃ n. # σσ[n] = ∞

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 10 terms: m - n abort: F discard: T computed: F

Additional information

Used terms: m - n

Proof step 69 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , ii(0) = 0, σσ ≠ [], mon(σσ), n ≤ m, ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∃ m0. ii(m0) ≤ m - n ∧ m - n < ii(m0 + 1) ⊦ ∃ n. # σσ[n] = ∞, ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: 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 < m + n ↔ n ≠ 0; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0; (s) ⊦ m ≤ n → (n < m ↔ false); (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s)

Proof step 70 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ii(m0 + 1) ≠ 0, σσ ≠ [], m < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), mon(σσ), ii(m0) + n ≤ m, n ≤ m, ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 12 terms: m0 abort: F discard: F computed: F

Additional information

Used terms: m0

Proof step 71 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ii(m0 + 1) ≠ 0, σσ ≠ [], ii(m0) < ii(m0 + 1), m < ii(m0 + 1) + n, mon(σσ), n ≤ m, ii(m0) + n ≤ m, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ ⊦ ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n], ∃ n. # σσ[n] = ∞

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 16 terms: m0 + 1 abort: F discard: T computed: F

Additional information

Used terms: m0 + 1

Proof step 72 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , σσ[m0 + 1] = σσ[0] + ⌜nf to ii(m0 + 1)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ii(m0 + 1) ≠ 0, σσ ≠ [], m < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), mon(σσ), ii(m0) + n ≤ m, n ≤ m, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞, ∃ n, σ1. (σσ[0] + ⌜nf⌝ to m) + σ1 = σσ[n]

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 2 terms: m0 + 1, (⌜nf⌝ to ii(m0 + 1)) from (m - n) abort: F discard: T computed: F

Additional information

Used terms: m0 + 1, (⌜nf⌝ to ii(m0 + 1)) from (m - n)

Proof step 73 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0 + 1] = σσ[0] + ⌜nf to ii(m0 + 1)⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, (σσ[0] + ⌜nf⌝ to m) + ((⌜nf⌝ to ii(m0 + 1)) from (m - n)) ≠ σσ[m0 + 1], ii(m0 + 1) + n ≠ 0, ii(m0 + 1) ≠ 0, σσ ≠ [], ii(m0) < ii(m0 + 1), m < ii(m0 + 1) + n, mon(σσ), n ≤ m, ii(m0) + n ≤ m, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; (s) ⊦ ⌜nf⌝ to n = ⌜nf to n⌝ ; (s)

Proof step 74 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , σσ[m0 + 1] = σσ[0] + ⌜nf to ii(m0 + 1)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, (σσ[0] + ⌜nf⌝ to m) + ⌜(nf to ii(m0 + 1)) from (m - n)⌝ ≠ σσ[m0 + 1], ii(m0 + 1) ≠ 0, σσ ≠ [], m < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), mon(σσ), ii(m0) + n ≤ m, n ≤ m, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [m, n, n1]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: m, n, n1

Proof step 75 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0 + 1] = σσ[0] + ⌜nf to ii(m0 + 1)⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, m = n1 + n, ii(m0 + 1) + n ≠ 0, (σσ[0] + ⌜nf⌝ to m) + ⌜(nf to ii(m0 + 1)) from n1⌝ ≠ σσ[m0 + 1], ii(m0 + 1) ≠ 0, σσ ≠ [], ii(m0) < ii(m0 + 1), m < ii(m0 + 1) + n, mon(σσ), n ≤ m, ii(m0) + n ≤ m, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ m ≤ m + n; (s) ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s)

Proof step 76 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , σσ[m0 + 1] = σσ[0] + ⌜nf to ii(m0 + 1)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, (σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ ≠ σσ[m0 + 1], ii(m0 + 1) ≠ 0, σσ ≠ [], n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 4, flags: discard

Additional information

Proof step 77 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, (σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ ≠ σσ[0] + ⌜nf to ii(m0 + 1)⌝ , ii(m0 + 1) ≠ 0, σσ ≠ [], ii(m0) < ii(m0 + 1), n1 < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:extensionality, seq: ⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0[n] = σ1[n]), subst:[σ1, σ0] → [σσ[0] + ⌜nf to ii(m0 + 1)⌝ , (σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ ], <all paths>

Additional information

Used terms: σσ[0] + ⌜nf to ii(m0 + 1)⌝ , (σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝

Proof step 78 from proof lim-exists (previous step) (back to tree)

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

A spec-lemma

Proof step 79 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ii(m0 + 1) ≠ 0, σσ ≠ [], n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), #((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ ) ≠ #(σσ[0] + ⌜nf to ii(m0 + 1)⌝ ) ∨ (∃ n0. ¬ ( ⌜n0⌝ < #((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ ) → ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n0] = (σσ[0] + ⌜nf to ii(m0 + 1)⌝ )[n0])) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ n < m → (m - n) + n = m; (s) ⊦ ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n + m = n0; (s) ⊦ ⌜n⌝ + n∞1 = ⌜n⌝ + n∞2 ↔ n∞1 = n∞2; (s) ⊦ ⌜n1⌝ < ⌜n0⌝ + ⌜n⌝ + ⌜m⌝ ↔ n1 < n0 + n + m; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ #(nf to n) = n; (s) ¬ # x < n ⊦ #(x from n) = # x - n; (s) ⊦ m < n → ¬ n < m; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; (s) ⊦ ¬ ∞ < n∞; (s) ⊦ n∞ + ∞ = ∞; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜nf to n⌝ = ⌜n⌝ ; (s)

Proof step 80 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n0] ≠ (σσ[0] + ⌜nf to ii(m0 + 1)⌝ )[n0], ii(m0 + 1) ≠ 0, σσ ≠ [], n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), n0 < ii(m0 + 1) + n, mon(σσ), ii(m0) ≤ n1, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:get-append-ls, seq: ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m], subst:[m, σ1, σ] → [n0, ⌜nf to ii(m0 + 1)⌝ , σσ[0]], <all paths>

Additional information

Used terms: n0, ⌜nf to ii(m0 + 1)⌝ , σσ[0]

Proof step 81 from proof lim-exists (previous step) (back to tree)

⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]

A spec-lemma

Proof step 82 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n0] ≠ (σσ[0] + ⌜nf to ii(m0 + 1)⌝ )[n0], ii(m0 + 1) ≠ 0, σσ ≠ [], n0 < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), n1 < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ¬ ⌜n0⌝ < # σσ[0], ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) m < n ⊦ (nf to n)[m] = nf(m); (s) ⊦ m < n → (n ≤ m ↔ false); (s) n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ ⌜n⌝ .n = n; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]; (s)

Proof step 83 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n0] ≠ nf(n0 - n), ii(m0 + 1) ≠ 0, σσ ≠ [], n0 < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), n1 < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, n ≤ n0, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n0, n, n2]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n0, n, n2

Proof step 84 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, n0 = n2 + n, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n0] ≠ nf(n2), ii(m0 + 1) ≠ 0, σσ ≠ [], n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), n0 < ii(m0 + 1) + n, mon(σσ), n ≤ n0, ii(m0) ≤ n1, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

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

Proof step 85 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n2 + n] ≠ nf(n2), ii(m0 + 1) ≠ 0, σσ ≠ [], ii(m0) < ii(m0 + 1), n1 < ii(m0 + 1), n2 < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:get-append-notls, seq: ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n], subst:[m, σ1, σ] → [n2 + n, ⌜(nf to ii(m0 + 1)) from n1⌝ , σσ[0] + ⌜nf⌝ to n1 + n], <all paths>

Additional information

Used terms: n2 + n, ⌜(nf to ii(m0 + 1)) from n1⌝ , σσ[0] + ⌜nf⌝ to n1 + n

Proof step 86 from proof lim-exists (previous step) (back to tree)

⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]

A spec-lemma

Proof step 87 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n2 + n] ≠ nf(n2), ii(m0 + 1) ≠ 0, σσ ≠ [], ⌜n2 + n⌝ < #(σσ[0] + ⌜nf⌝ to n1 + n), n2 < ii(m0 + 1), n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

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 f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic m < n, ¬ # σ < ⌜n⌝ ⊦ (σ to n)[m] = σ[m]; (s) ⊦ ¬ ∞ < n∞; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ n∞ + ∞ = ∞; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; (s) ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; (s) ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]; (s)

Proof step 88 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, (σσ[0] + ⌜nf⌝ )[n2 + n] ≠ nf(n2), ii(m0 + 1) ≠ 0, n1 ≠ 0, σσ ≠ [], n2 < n1, n2 < ii(m0 + 1), n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), n2 + 1 < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:get-append-notls, seq: ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n], subst:[m, σ1, σ] → [n2 + n, ⌜nf⌝ , σσ[0]], <all paths>

Additional information

Used simplifier rules: ⊦ ⌜nf⌝ [n] = nf(n); (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ⌜n⌝ .n = n; (s) ⊦ m + n - m = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ¬ m + n < m; (s) 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 Used terms: n2 + n, ⌜nf⌝ , σσ[0]

Proof step 89 from proof lim-exists (previous step) (back to tree)

⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]

A spec-lemma

Proof step 90 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ⌜(nf to ii(m0 + 1)) from n1⌝ [n2 + n - (#(σσ[0] + ⌜nf⌝ to n1 + n)).n] ≠ nf(n2), ii(m0 + 1) ≠ 0, σσ ≠ [], n2 < ii(m0 + 1), n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, ¬ ⌜n2 + n⌝ < #(σσ[0] + ⌜nf⌝ to n1 + n), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat m < n ⊦ (nf to n)[m] = nf(m); (s) ⊦ m < n → (n ≤ m ↔ false); (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ n < m → (m - n) + n = m; (s) ⊦ m ≠ n → (m ≤ n ↔ m < n); (s) ⊦ m ≤ n → (n - m = 0 ↔ n = m); (s) ⊦ m < m + n ↔ n ≠ 0; (s) fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat ⊦ m < n ↔ ¬ n ≤ m; (ss) m + m0 < # x ⊦ (x from m)[m0] = x[m + m0]; (s) ⊦ #(nf to n) = n; (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; (s) ⊦ ¬ ∞ < n∞; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ n∞ + ∞ = ∞; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ m + n - n + n1 = m - n1; (s) ⊦ ⌜n⌝ .n = n; (s) n∞ ≠ ∞ ⊦ (⌜m⌝ + n∞).n = m + n∞.n; (s) ⊦ ⌜n⌝ ≠ ∞; (s)

Proof step 91 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ii(m0 + 1) ≠ 0, nf(n1 + (n2 - n1)) ≠ nf(n2), σσ ≠ [], ii(m0) < ii(m0 + 1), n2 < ii(m0 + 1), n1 < ii(m0 + 1), mon(σσ), ii(m0) ≤ n1, n1 ≤ n2, ii(m0) ≤ n2, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic elimination applied rule apply elim lemma

And closed the goal!

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n2, n1, n3]

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n2, n1, n3

Proof step 92 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n0] ≠ σσ[0][n0], ii(m0 + 1) ≠ 0, σσ ≠ [], n0 < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), n1 < ii(m0 + 1), ⌜n0⌝ < # σσ[0], mon(σσ), ii(m0) ≤ n1, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s)

Proof step 93 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, ((σσ[0] + ⌜nf⌝ to n1 + n) + ⌜(nf to ii(m0 + 1)) from n1⌝ )[n0] ≠ σσ[0][n0], ii(m0 + 1) ≠ 0, n ≠ 0, σσ ≠ [], n0 < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), n1 < ii(m0 + 1), n0 < n, mon(σσ), ii(m0) ≤ n1, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:get-append-ls, seq: ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m], subst:[m, σ1, σ] → [n0, ⌜(nf to ii(m0 + 1)) from n1⌝ , σσ[0] + ⌜nf⌝ to n1 + n], <all paths>

Additional information

Used simplifier rules: ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]; (s) ⊦ ⌜n⌝ ≠ ∞; (s) n∞ ≠ ∞ ⊦ (⌜m⌝ + n∞).n = m + n∞.n; (s) ⊦ ⌜n⌝ .n = n; (s) ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ n∞ + ∞ = ∞; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ ¬ ∞ < n∞; (s) ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ m < n → ⌜m⌝ < ⌜n⌝ + n∞0; (s) 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 Used terms: n0, ⌜(nf to ii(m0 + 1)) from n1⌝ , σσ[0] + ⌜nf⌝ to n1 + n

Proof step 94 from proof lim-exists (previous step) (back to tree)

⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]

A spec-lemma

Proof step 95 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, (σσ[0] + ⌜nf⌝ to n1 + n)[n0] ≠ σσ[0][n0], ii(m0 + 1) ≠ 0, n ≠ 0, σσ ≠ [], n0 < n, n1 < ii(m0 + 1), ii(m0) < ii(m0 + 1), n0 < ii(m0 + 1) + n, ⌜n0⌝ < #(σσ[0] + ⌜nf⌝ to n1 + n), mon(σσ), ii(m0) ≤ n1, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ m < n → ⌜m⌝ < ⌜n⌝ + n∞0; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; (s) ⊦ ¬ ∞ < n∞; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ n∞ + ∞ = ∞; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) m < n, ¬ # σ < ⌜n⌝ ⊦ (σ to n)[m] = σ[m]; (s) ⊦ ¬ m + n < m; (s) fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat ⊦ m < n ↔ ¬ n ≤ m; (ss)

Proof step 96 from proof lim-exists (previous step) (back to tree)

# σσ[0] = ⌜n⌝ , # σσ = ∞, σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, ii(m0 + 1) + n ≠ 0, (σσ[0] + ⌜nf⌝ )[n0] ≠ σσ[0][n0], ii(m0 + 1) ≠ 0, n ≠ 0, σσ ≠ [], n0 < ii(m0 + 1) + n, ii(m0) < ii(m0 + 1), n1 < ii(m0 + 1), n0 < n, mon(σσ), ii(m0) ≤ n1, ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:get-append-ls, seq: ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m], subst:[m, σ1, σ] → [n0, ⌜nf⌝ , σσ[0]], <all paths>

Additional information

Used simplifier rules: ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]; (s) ⊦ ⌜nf⌝ [n] = nf(n); (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ ⌜n⌝ .n = n; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m < n → (n ≤ m ↔ false); (s) Used terms: n0, ⌜nf⌝ , σσ[0]

Proof step 97 from proof lim-exists (previous step) (back to tree)

⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]

A spec-lemma

Proof step 98 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∀ n. σσ[n] = σσ[0] + ⌜nf to ii(n)⌝ , ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 99 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ[n] ≠ σσ[0] + ⌜nf to ii(n)⌝ , σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞

User applied rule weakening

And obtained the following new goals

Rule argument

poslist: right 1

Additional information

Proof step 100 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ[n] ≠ σσ[0] + ⌜nf to ii(n)⌝ , σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: n

Additional information

Used simplifier rules: nat freely generated by 0, +1;; ⊦ σ0 + σ = σ0 ↔ σ = [] ∨ ¬ finp(σ0); (s) ⊦ ⌜x⌝ = [] ↔ x = []; (s) ⊦ nf to n = [] ↔ n = 0; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream

Proof step 101 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ[n0 +1] ≠ σσ[0] + ⌜nf to ii(n0 +1)⌝ , σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ σσ, ii, nf, f_n->list. # σσ = ∞ ∧ ii(0) = 0 ∧ σσ[n0] ≠ σσ[0] + ⌜nf to ii(n0)⌝ ∧ σσ ≠ [] ∧ mon(σσ) ∧ (∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n)) ∧ (∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1)) → (∃ n. # σσ[n] = ∞) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m +1 = m + 1; (s)

Proof step 102 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ[n0 + 1] ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), ∀ σσ, ii, nf, f_n->list. # σσ = ∞ ∧ ii(0) = 0 ∧ σσ[n0] ≠ σσ[0] + ⌜nf to ii(n0)⌝ ∧ σσ ≠ [] ∧ mon(σσ) ∧ (∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n)) ∧ (∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1)) → (∃ n. # σσ[n] = ∞), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 6 terms: σσ, ii, nf, f_n->list abort: F discard: T computed: T

Additional information

Used terms: σσ, ii, nf, f_n->list

Proof step 103 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, σσ[n0 + 1] ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), # σσ = ∞ ∧ ii(0) = 0 ∧ σσ[n0] ≠ σσ[0] + ⌜nf to ii(n0)⌝ ∧ σσ ≠ [] ∧ mon(σσ) ∧ (∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n)) ∧ (∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ ) ∧ (∀ m, n. m ≤ n → ii(m) ≤ ii(n)) ∧ (∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1)) → (∃ n. # σσ[n] = ∞), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 104 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n0] = σσ[0] + ⌜nf to ii(n0)⌝ , ii(0) = 0, σσ[n0 + 1] ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n), ∀ n0. σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 8 terms: n0 abort: F discard: T computed: T

Additional information

Used terms: n0

Proof step 105 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n0] = σσ[0] + ⌜nf to ii(n0)⌝ , σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ii(0) = 0, σσ[n0 + 1] ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ii(n + 1) = ii(n) + # f_n->list(n) ∧ (nf from ii(n)) to # f_n->list(n) = f_n->list(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 10 terms: n0 abort: F discard: T computed: F

Additional information

Used terms: n0

Proof step 106 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , σσ[n0] = σσ[0] + ⌜nf to ii(n0)⌝ , ii(0) = 0, ii(n0 + 1) = ii(n0) + # f_n->list(n0), (nf from ii(n0)) to # f_n->list(n0) = f_n->list(n0), σσ[n0 + 1] ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 107 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n0] = σσ[0] + ⌜nf to ii(n0)⌝ , σσ[n0 + 1] = σσ[n0] + ⌜f_n->list(n0)⌝ , ii(n0 + 1) = ii(n0) + # f_n->list(n0), ii(0) = 0, (nf from ii(n0)) to # f_n->list(n0) = f_n->list(n0), σσ[n0 + 1] ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 3, flags: discard

Additional information

Proof step 108 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n0] = σσ[0] + ⌜nf to ii(n0)⌝ , ii(0) = 0, ii(n0 + 1) = ii(n0) + # f_n->list(n0), (nf from ii(n0)) to # f_n->list(n0) = f_n->list(n0), σσ[n0] + ⌜f_n->list(n0)⌝ ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 2, flags: discard

Additional information

Proof step 109 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(n0 + 1) = ii(n0) + # f_n->list(n0), ii(0) = 0, (nf from ii(n0)) to # f_n->list(n0) = f_n->list(n0), (σσ[0] + ⌜nf to ii(n0)⌝ ) + ⌜f_n->list(n0)⌝ ≠ σσ[0] + ⌜nf to ii(n0 + 1)⌝ , σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ ⌜x⌝ + ⌜y⌝ = ⌜z⌝ ↔ x + y = z; (s) ⊦ σ + σ1 = σ + σ2 ↔ σ1 = σ2 ∨ # σ = ∞; (ws)

Proof step 110 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, ii(n0 + 1) = ii(n0) + # f_n->list(n0), (nf from ii(n0)) to # f_n->list(n0) = f_n->list(n0), # σσ[0] ≠ ∞, (nf to ii(n0)) + f_n->list(n0) ≠ nf to ii(n0 + 1), σσ ≠ [], mon(σσ), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 4, flags: rotate, discard

Additional information

Proof step 111 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(n0 + 1) = ii(n0) + #((nf from ii(n0)) to # f_n->list(n0)), ii(0) = 0, # σσ[0] ≠ ∞, (nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0)) ≠ nf to ii(n0 + 1), σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ #(nf to n) = n; (s)

Proof step 112 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, ii(n0 + 1) = ii(n0) + # f_n->list(n0), # σσ[0] ≠ ∞, (nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0)) ≠ nf to ii(n0 + 1), σσ ≠ [], mon(σσ), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-getput, name:extension, seq: ⊦ x = y ↔ # x = # y ∧ (∀ n. n < # x → x[n] = y[n]), subst:[y, x] → [nf to ii(n0 + 1), (nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0))], <all paths>

Additional information

Used terms: nf to ii(n0 + 1), (nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0))

Proof step 113 from proof lim-exists (previous step) (back to tree)

⊦ x = y ↔ # x = # y ∧ (∀ n. n < # x → x[n] = y[n])

A spec-lemma

Proof step 114 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(n0 + 1) = ii(n0) + # f_n->list(n0), ii(0) = 0, # σσ[0] ≠ ∞, σσ ≠ [], mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), #((nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0))) ≠ #(nf to ii(n0 + 1)) ∨ (∃ n. ¬ ( n < #((nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0))) → ((nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0)))[n] = (nf to ii(n0 + 1))[n])) ⊦ ∃ n. # σσ[n] = ∞

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic m < n ⊦ (nf to n)[m] = nf(m); (s) ⊦ m ≤ n → (n < m ↔ false); (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ #(nf to n) = n; (s) ⊦ #(x + y) = # x + # y; (s)

Proof step 115 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(n0 + 1) = ii(n0) + # f_n->list(n0), ii(0) = 0, # σσ[0] ≠ ∞, ((nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0)))[n] ≠ nf(n), ii(n0 + 1) ≠ 0, σσ ≠ [], n < ii(n0 + 1), mon(σσ), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del, name:get-append-less, seq: ⊦ n < # x → (x + y)[n] = x[n], subst:[n, y, x] → [n, (nf from ii(n0)) to # f_n->list(n0), nf to ii(n0)], <all paths>

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ #(nf to n) = n; (s) ⊦ m ≤ n → (n < m ↔ false); (s) m < n ⊦ (nf to n)[m] = nf(m); (s) Used terms: n, (nf from ii(n0)) to # f_n->list(n0), nf to ii(n0)

Proof step 116 from proof lim-exists (previous step) (back to tree)

⊦ n < # x → (x + y)[n] = x[n]

A spec-lemma

Proof step 117 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(0) = 0, ii(n0 + 1) = ii(n0) + # f_n->list(n0), # σσ[0] ≠ ∞, ((nf to ii(n0)) + ((nf from ii(n0)) to # f_n->list(n0)))[n] ≠ nf(n), ii(n0 + 1) ≠ 0, σσ ≠ [], n < ii(n0 + 1), mon(σσ), ¬ n < #(nf to ii(n0)), ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1) ⊦ ∃ n. # σσ[n] = ∞

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 ⊦ # x = 0 ↔ x = []; (s) ⊦ m < m + n ↔ n ≠ 0; (s) lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ #(nf to n) = n; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ ¬ n < # x → (x + y)[n] = y[n - # x]; (s)

Proof step 118 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, ii(n0 + 1) = ii(n0) + # f_n->list(n0), ii(0) = 0, # σσ[0] ≠ ∞, ((nf from ii(n0)) to # f_n->list(n0))[n - ii(n0)] ≠ nf(n), f_n->list(n0) ≠ [], ii(n0 + 1) ≠ 0, σσ ≠ [], n < ii(n0 + 1), ii(n0) < ii(n0 + 1), mon(σσ), ii(n0) ≤ n, ∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1), ∀ m, n. m ≤ n → ii(m) ≤ ii(n) ⊦ ∃ n. # σσ[n] = ∞

Heuristic elimination applied rule apply elim lemma

And closed the goal!

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n, ii(n0), n1]

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m ≤ m + n; (s) lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ m ≤ n → (n < m ↔ false); (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic m < n ⊦ (nf to n)[m] = nf(m); (s) ⊦ ((nf from n))(m) = nf(m + n); (s) n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n, ii(n0), n1

Proof step 119 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∀ n. ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝ , ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 120 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞, ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:mon-def, seq: ⊦ mon(σσ) ↔ (∀ n. ⌜n⌝ + ⌜1⌝ < # σσ → σσ[n] ⊑ σσ[n + 1]), subst:[σσ] → [σσ], <all paths>

Additional information

Used terms: σσ

Proof step 121 from proof lim-exists (previous step) (back to tree)

⊦ mon(σσ) ↔ (∀ n. ⌜n⌝ + ⌜1⌝ < # σσ → σσ[n] ⊑ σσ[n + 1])

Lemma mon-def

Proof step 122 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], ∀ n. ⌜n⌝ + ⌜1⌝ < # σσ → σσ[n] ⊑ σσ[n + 1] ⊦ ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝ , ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: prefix-def: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0); add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜n⌝ ≠ ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s) ⊦ n∞ < ∞ ↔ n∞ ≠ ∞; (s)

Proof step 123 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], ∀ n0. ∃ σ1. σσ[n0] + σ1 = σσ[n0 + 1] ⊦ ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝ , ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 3 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 124 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ ≠ [], ∃ σ1. σσ[n] + σ1 = σσ[n + 1] ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞, ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 125 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n] + σ1 = σσ[n + 1], σσ ≠ [] ⊦ ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝ , ∃ n. # σσ[n] = ∞, ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: σ1

Additional information

Used simplifier rules: stream freely generated by ⌜ ⌝, ⌜ ⌝;;

Proof step 126 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n] + ⌜list⌝ = σσ[n + 1], σσ ≠ [] ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞, ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝

Heuristic quantifier closing applied rule exists right

And closed the goal!

Rule argument

pos: right 3 terms: list

Additional information

Used terms: list

Proof step 127 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n] + ⌜f_n->elem⌝ = σσ[n + 1], σσ ≠ [] ⊦ ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n])), ∃ n. # σσ[n] = ∞, ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 2 terms: n + 1 abort: F discard: T computed: F

Additional information

Used terms: n + 1

Proof step 128 from proof lim-exists (previous step) (back to tree)

# σσ = ∞, σσ[n] + ⌜f_n->elem⌝ = σσ[n + 1], # σσ[n + 1] ≠ ∞, σσ ≠ [] ⊦ ∃ x. σσ[n + 1] = σσ[n] + ⌜x⌝ , ∃ σ. (∀ n. ∃ σ1. σσ[n] + σ1 = σ) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n, σ1. (σ to m) + σ1 = σσ[n]))

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 2, flags: rotate, discard

Additional information

Used simplifier rules: ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ n∞ + ∞ = ∞; (s) 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 append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream

Proof step 129 from proof lim-exists (previous step) (back to tree)

# σσ ≠ ∞, σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-inf, name:notinf-fin, seq: ⊦ n∞ = ∞ ↔ ¬(∃ n. n∞ = ⌜n⌝ ), subst:[n∞] → [# σσ], <all paths>

Additional information

Used terms: # σσ

Proof step 130 from proof lim-exists (previous step) (back to tree)

⊦ n∞ = ∞ ↔ ¬(∃ n. n∞ = ⌜n⌝ )

A spec-lemma

Proof step 131 from proof lim-exists (previous step) (back to tree)

σσ ≠ [], mon(σσ), ∃ n. # σσ = ⌜n⌝ ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 132 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n⌝ , σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: n

Additional information

Used simplifier rules: nat freely generated by 0, +1;; ⊦ # σ = ⌜0⌝ ↔ σ = []; (s)

Proof step 133 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n⌝ , n = n0 +1, σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ⌜n⌝ < # σσ → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

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 < n + 1 ↔ ¬ n < m; (s) ⊦ n∞ = ⌜m⌝ + ⌜n0⌝ → (⌜n⌝ < n∞ ↔ n < m + n0); (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ m +1 = m + 1; (s)

Proof step 134 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: σσ[n0] abort: F discard: F computed: F

Additional information

Used terms: σσ[n0]

Proof step 135 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n]))), (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σσ[n0])) ∧ (∀ m. ¬ # σσ[n0] < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σσ[n0] to m) + σ1 = σσ[n])))

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 136 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ) ⊦ ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n]))), (¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σσ[n0])) ∧ (¬ # σσ[n0] < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σσ[n0] to m) + σ1 = σσ[n])))

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 2

Additional information

Proof step 137 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ), ¬ n0 < n ⊦ ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n]))), ∃ σ1. σσ[n] + σ1 = σσ[n0]

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss)

Proof step 138 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ), n ≤ n0 ⊦ ∃ σ1. σσ[n] + σ1 = σσ[n0], ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:mon-lem, seq:mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n], subst:[σσ, m, n] → [σσ, n, n0]

Additional information

Used simplifier rules: prefix-def: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0); 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 Used terms: σσ, n, n0

Proof step 139 from proof lim-exists (previous step) (back to tree)

mon(σσ), m ≤ n, ⌜n⌝ < # σσ ⊦ σσ[m] ⊑ σσ[n]

Lemma mon-lem

Proof step 140 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ), ¬ # σσ[n0] < ⌜m⌝ ⊦ ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n]))), ∃ n. ¬ n0 < n ∧ (∃ σ1. (σσ[n0] to m) + σ1 = σσ[n])

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 141 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ), ¬ # σσ[n0] < ⌜m⌝ ⊦ ∃ n. ¬ n0 < n ∧ (∃ σ1. (σσ[n0] to m) + σ1 = σσ[n]), ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n])))

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: n0 abort: F discard: F computed: T

Additional information

Used terms: n0

Proof step 142 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ), ¬ # σσ[n0] < ⌜m⌝ ⊦ ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n]))), ∃ n. ¬ n0 < n ∧ (∃ σ1. (σσ[n0] to m) + σ1 = σσ[n]), ¬ n0 < n0 ∧ (∃ σ1. (σσ[n0] to m) + σ1 = σσ[n0])

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 143 from proof lim-exists (previous step) (back to tree)

# σσ = ⌜n0⌝ + ⌜1⌝ , σσ ≠ [], mon(σσ), ¬ # σσ[n0] < ⌜m⌝ ⊦ ∃ n. ¬ n0 < n ∧ (∃ σ1. (σσ[n0] to m) + σ1 = σσ[n]), ∃ σ. (∀ n. ¬ n0 < n → (∃ σ1. σσ[n] + σ1 = σ)) ∧ (∀ m. ¬ # σ < ⌜m⌝ → (∃ n. ¬ n0 < n ∧ (∃ σ1. (σ to m) + σ1 = σσ[n]))), ∃ σ1. (σσ[n0] to m) + σ1 = σσ[n0]

User applied rule exists right

And closed the goal!

Rule argument

pos: right 3 terms: σσ[n0] from m abort: F discard: F computed: F

Additional information

Used simplifier rules: ¬ # σ < ⌜n⌝ ⊦ (σ to n) + (σ from n) = σ ↔ true; (ss) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream Used terms: σσ[n0] from m

Proof Tree for lim-exists (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