[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 27 from proof infinite-append-butlast (previous step)

(# lf(n0).tail + m0) + 1 = ii(n0 + 1), m0 + # lf(n0) - 1 = # lf(n0).tail + m0, ii(n0) = m0 + 1, ii(0) = 0, (σ from m0 + 1) to # lf(n0).tail = ⌜lf(n0).tail⌝ , ⌜m0⌝ < # σ, ⌜# lf(n0).tail⌝ + ⌜m0⌝ < # σ, (finp(σ) ⊃ # σ = ⌜ii(n)⌝ ∧ (∀ m. n ≤ m → (m = 0 ⊃ lf(0);lf(m).tail) = [] ∧ ii(m) = ii(n));∀ n. ∃ m. ii(m) ≤ n ∧ n < ii(m + 1)), ∀ n. σ[ii(n + 1) - 1] = lf(n + 1).head, ∀ n. lf(n).last = lf(n + 1).head ∧ lf(n) ≠ [], ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. ii(n + 1) = ii(n) + # (n = 0 ⊃ lf(0);lf(n).tail) ∧ ¬ # σ < ⌜ii(n + 1)⌝ ∧ (σ from ii(n)) to # (n = 0 ⊃ lf(0);lf(n).tail) = ⌜(n = 0 ⊃ lf(0);lf(n).tail)⌝ , ∀ n. n ≠ 0 → ii(n) ≠ 0 ⊦ ⌜σ[m0] '⌝ + (σ from m0 + 1) to # lf(n0) = ⌜lf(n0)⌝

User applied rule insert elim lemma

And obtained the following new goals

Rule argument

spec: list-data name: elim-1 seq: ⊦ x ≠ [] → (a = x.head ∧ x0 = x.tail ↔ x = a + x0) subst: [x, a, x0] → [lf(n0), a, x]

Additional information

Used simplifier rules: ⊦ # [] = 0; (s)% ⊦ n + 0 = n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ σ to 0 = []; (s)% ⊦ ⌜[]⌝ = []; (s)% ⊦ x ≠ [] → (a = x.head ∧ x0 = x.tail ↔ x = a + x0); (elim) Used terms: lf(n0), a, x