| ¬ σ1 ≠ [], (mem0 ' + σ1).last = (mem ' + σ5).last, # σ6 = # cp(firstn(m6, ts2), r), # ts2 = m6 + 1, (σ3 + mem ')[0] = ∅, # σ3 = # cp(ts0, r), # σ2 = # σ6, ts2[m6] = m0 .. m1, mem ' + σ5 = σ6 + mem3 ' + σ7, # σ7 = # runevs(m0, m1, r), σ0 + mem0 ' = σ3 + mem ' + σ2, # σ0 = # σ3 + # σ6, # σ1 = # σ7, (σ0 + mem0 ')[0] = ∅, ⟦cp(firstn(m6, ts2), r)⟧ (σ6 + mem3 '), ⟦runevs(m0, m1, r)⟧ (mem3 ' + σ7), ⟦cp(firstn(m6, ts2), r)⟧ (mem ' + σ2), nowrites(runevs(m, n, r)), ⟦cp(ts0, r)⟧ (σ3 + mem '), ⟦runevs(m, n, r)⟧ (mem ' + mklist(mem, # runevs(m, n, r))), ctr(m, # r, r + re '), transseq(r, (ts0 + (m .. n)') + firstn(m6, ts2) + restn(m6, ts2)), ltrans(m, n, re.p, r), transseq(r, ts0 + (m .. n)' + ts2), ⟦runevs(m0, m1, r)⟧ (mem0 ' + σ1), read?(re) → (mem ' + σ5).last(re.l) = re.v, read?(re) → (∀ n0. # ts0 < n0 ∧ ¬ # ts0 + m6 + 1 < n0 → nowrites(runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r))), mem ∈ σ6 ∨ mem = mem3 ∨ mem ∈ σ7, mem0 ∈ σ3 ∨ mem0 = mem ∨ mem0 ∈ σ2, ∀ n0. ¬ # ts0 + m6 + 1 < n0 → (∃ σ3. σ3[0] = ∅ ∧ ⟦cp(firstn(n0, ts0 + (m .. n)' + ts2), r) + runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r)⟧ (σ3) ∧ (n0 = # ts0 + m6 + 1 → σ3.last = (mem ' + σ5).last)) ⊦ (σ2 + σ1).last = (mem ' + σ5).last, ts2 = [], re = Begin(re.p), σ2 + σ1 = [], write?(re) |
σ0 + mem3 ' = σ3 + mem ' + σ2, mem ' + σ5 = σ6 + mem3 ', ts2[m6] = m0 .. m1, # σ2 = # σ6, # σ3 = # cp(ts0, r), (σ3 + mem ')[0] = ∅, # ts2 = m6 + 1, # σ6 = # cp(firstn(m6, ts2), r), runevs(m0, m1, r) = [], # σ0 = # σ3 + # σ6, transseq(r, ts0 + (m .. n)' + ts2), ltrans(m, n, re.p, r), transseq(r, (ts0 + (m .. n)') + firstn(m6, ts2) + restn(m6, ts2)), ctr(m, # r, r + re '), ⟦runevs(m, n, r)⟧ (mem ' + mklist(mem, # runevs(m, n, r))), ⟦cp(ts0, r)⟧ (σ3 + mem '), nowrites(runevs(m, n, r)), ⟦cp(firstn(m6, ts2), r)⟧ (mem ' + σ2), ⟦[]⟧ (mem3 '), mem3 ∈ σ2, ⟦cp(firstn(m6, ts2), r)⟧ (σ6 + mem3 '), read?(re) → mem3(re.l) = re.v, ∀ n0. ¬ # ts0 + m6 + 1 < n0 → (∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n0, ts0 + (m .. n)' + ts2), r) + runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r)⟧ (σ) ∧ (n0 = # ts0 + m6 + 1 → σ.last = mem3)), mem3 = mem ∨ mem3 ∈ σ5, mem ∈ σ6 ∨ mem = mem3, read?(re) → (∀ n0. # ts0 < n0 ∧ ¬ # ts0 + m6 + 1 < n0 → nowrites(runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r))) ⊦ σ2.last = mem3, σ2 = [], re = Begin(re.p), ts2 = [], write?(re)
Used simplifier rules: app-getzero: ⊦ (σ + mem ' + σ0)[0] = (σ + mem ')[0];%in-12: ⊦ mem ∈ σ → mem ∈ σ0 + σ; from specification list[memorylist]%in-rec: ⊦ mem ∈ mem0 ' + σ ↔ ¬ ¬(mem = mem0 ∨ mem ∈ σ); from specification list[memorylist]%in-17: ⊦ mem ∈ mem0 ' ↔ mem = mem0; from specification list[memorylist]%in-append: ⊦ mem ∈ σ + σ0 ↔ ¬ ¬(mem ∈ σ ∨ mem ∈ σ0); from specification list[memorylist]%size-01: ⊦ # [] = 0; from specification list-data[run]%last-def: ⊦ (σ + mem ').last = mem; from specification list-last[memorylist]%in-empty: ⊦ ¬ mem ∈ []; from specification list[memorylist]%in-14: ⊦ mem ' + σ = σ0 → mem ∈ σ0; (forward) from specification list[memorylist]%in-15: ⊦ σ + mem ' = σ0 → mem ∈ σ0; (forward) from specification list[memorylist]%ni: ⊦ σ + mem ' = σ0 + σ1 ∧ ¬ mem ∈ σ1 → σ1 = []; (forward) from specification list[memorylist]%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%l: ⊦ # r = 0 ↔ r = []; from specification list-data[run]%one-03: ⊦ 1 = m + 1 ↔ m = 0; from specification nat-basic2%len-02: ⊦ # mem ' = 0 +1; from specification list[memorylist]%sem-fw: ⊦ ⟦r⟧ (σ) → # σ = # r + 1; (forward) from specification opaque%l: ⊦ # σ = 0 ↔ σ = []; from specification list-data[memorylist]%size-01: ⊦ # [] = 0; from specification list-data[memorylist]%l: ⊦ mem '.last = mem; from specification list-last[memorylist]%a: ⊦ (σ + σ0) + σ1 = σ + σ0 + σ1; from specification list[memorylist]%app: ⊦ σ + [] = σ; from specification list[memorylist]