[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 133 from proof opaqueplus-switch (previous step)

((m0 .. n0)' + ts1)[# ts1] = m3 .. m4, # σ0 = # σ + # σ6, σ0 + mem0 ' = σ + mem2 ' + σ6, # σ6 = # cp(firstn(m8, ts1), r), # σ5 = # runevs(m1, m2, r), (σ0 + mem0 ')[0] = ∅, ts1[m8] = m1 .. m2, mem2 ' + σ1 = σ2 + mem1 ' + σ3, # σ3 = # runevs(m3, m4, r), # σ2 = # cp(firstn(# ts1, (m0 .. n0)' + ts1), r), # σ = # cp(ts0, r), # σ10 = # cp(firstn(m8, (m0 .. n0)' + ts1), r), # σ11 = # runevs(m5, m6, r), mem2 ' + σ9 = σ10 + mem4 ' + σ11, (σ + mem2 ')[0] = ∅, ((m0 .. n0)' + ts1)[m8] = m5 .. m6, ⟦runevs(m5, m6, r)⟧ (mem4 ' + σ11), ⟦cp(firstn(m8, (m0 .. n0)' + ts1), r)⟧ (σ10 + mem4 '), ⟦runevs(m, n, r)⟧ (mem2 ' + mklist(mem2, # runevs(m, n, r))), presrt(r, ts0 + (m .. n)' + (m0 .. n0)' + ts1), transseq(r, ts0 + (m .. n)' + (m0 .. n0)' + ts1), ltr(m, n, r), nowrites(runevs(m, n, r)), ltr(m0, n0, r), nowrites(runevs(m0, n0, r)), transseq(r, ts0 + (m0 .. n0)' + (m .. n)' + ts1), ⟦cp(firstn(# ts1, (m0 .. n0)' + ts1), r)⟧ (σ2 + mem1 '), ⟦runevs(m3, m4, r)⟧ (mem1 ' + σ3), ⟦runevs(m1, m2, r)⟧ (mem0 ' + σ5), ⟦cp(ts0, r)⟧ (σ + mem2 '), m8 < # ts1, ⟦cp(firstn(m8, ts1), r)⟧ (mem2 ' + σ6), m8 + 1 = # ts1 → (mem0 ' + σ5).last = (mem2 ' + σ1).last, mem0 ∈ σ ∨ mem0 = mem2 ∨ mem0 ∈ σ6, mem2 ∈ σ2 ∨ mem2 = mem1 ∨ mem2 ∈ σ3, mem2 ∈ σ10 ∨ mem2 = mem4 ∨ mem2 ∈ σ11 ⊦ ts1 = [], m8 = # ts1, ⟦runevs(m1, m2, r)⟧ ((mem2 ' + σ6).last ' + σ5)

User applied rule insert elim lemma

And closed the goal!

Rule argument

spec: list-last inst: memorylist name: last-elim seq: σ ≠ [] ⊦ mem = σ.last ∧ σ0 = σ.butlast ↔ σ = σ0 + mem ' subst: [σ, mem, σ0] → [mem2 ' + σ6, mem, σ4] flags: []

Additional information

Used simplifier rules: e-01: ⊦ mem ' + σ ≠ []; from specification list[memorylist]%a: ⊦ (σ + σ0) + σ1 = σ + σ0 + σ1; from specification list[memorylist]%in-15: ⊦ σ + mem ' = σ0 → mem ∈ σ0; (forward) from specification list[memorylist]%in-14: ⊦ mem ' + σ = σ0 → mem ∈ σ0; (forward) from specification list[memorylist]%sem-fw: ⊦ ⟦r⟧ (σ) → # σ = # r + 1; (forward) from specification opaque%len: ⊦ #(σ + σ0) = # σ + # σ0; from specification list[memorylist]%len-02: ⊦ # mem ' = 0 +1; from specification list[memorylist]%eq-01: ⊦ m + n = m + n0 ↔ n = n0; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%app-06: ⊦ σ + mem ' = σ0 + mem0 ' ↔ σ = σ0 ∧ mem = mem0; from specification list[memorylist]%app-02-ant: ⊦ ¬ σ + σ0 ≠ [] ↔ σ = [] ∧ σ0 = []; from specification list[memorylist]%e: ⊦ mem ' ≠ []; from specification list[memorylist]%σ ≠ [] ⊦ mem = σ.last ∧ σ0 = σ.butlast ↔ σ = σ0 + mem '; (elim) Used terms: mem2 ' + σ6, mem, σ4