[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 finfrag-repla-sametrace (conclusion) (back to tree)

⊦ nounsharedextC ∧ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcsl⌝ , ⌜pal⌝ ) ∧ afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α) ∧ ⌜πa((s ×c cs)' + pcsl, pal)⌝ ^ ⊑ α ^ → ⌜repla((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ ^ = ⌜pal⌝ ^

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof finfrag-repla-sametrace (previous step) (back to tree)

⌜repla((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcsl⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + pcsl, pal)⌝ ^ ⊑ α ^ ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: # pcsl = # pal

Additional information

Used formulas: # pcsl = # pal

Proof step 3 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl = # pal, ⌜repla((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcsl⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + pcsl, pal)⌝ ^ ⊑ α ^ ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: pcsl

Additional information

Used simplifier rules: repla-base: ⊦ repla((s ×c cs)', [], ⌜as '⌝ + aσ, α) = []; Pcstatelist freely generated by [], +;; ⊦ # [] = 0; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] ⊦ ⌜[]⌝ = []; (s) ⊦ σ + [] = σ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceC-IOstatestream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ ⌜[]⌝ = []; (s) ⊦ [] ^ = []; (s)

Proof step 4 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(pcs + pcsl0) = # pal, ⌜repla((s ×c cs)' + (pcs + pcsl0), pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcs + pcsl0⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + (pcs + pcsl0), pal)⌝ ^ ⊑ α ^, ∀ pal, s, cs, as, aσ, α, ainit, astep, init, cinit, step, cstep. ¬ ( # pcsl0 = # pal ∧ ⌜repla((s ×c cs)' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^ ∧ afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α) ∧ nounsharedextC ∧ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ) ∧ ⌜πa((s ×c cs)' + pcsl0, pal)⌝ ^ ⊑ α ^) ⊦

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[IOrefine-def-RP-traceC-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ a + x = a ' + x; (s) ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s)

Proof step 5 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 + 1 = # pal, ⌜repla((s ×c cs)' + pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + pcs ' + pcsl0, pal)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pcsl0 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: pcs

Additional information

Used simplifier rules: Pcstate freely generated by ×c;;

Proof step 6 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 + 1 = # pal, pcs = s1 ×c cs1, ⌜repla((s ×c cs)' + pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + pcs ' + pcsl0, pal)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pcsl0 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 7 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 + 1 = # pal, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pal)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pcsl0 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: pal

Additional information

Used simplifier rules: Pactionlist freely generated by [], +;; ⊦ # [] = 0; (s) ⊦ m + n = 0 ↔ m = 0 ∧ n = 0; (ws) ⊦ # x = 0 ↔ x = []; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic

Proof step 8 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 + 1 = # pal, pal = pa + pal1, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pal)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pcsl0 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ a + x = a ' + x; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] ⊦ (⌜al⌝ + α2)^ = ⌜al⌝ ^ + α2 ^; (s) 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 +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s)

Proof step 9 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pa '⌝ + ⌜pal1⌝ ), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[IOrefine-def-RP-traceC], name: frag-rec, seq:⊦ pcfrag(PCIOAut(startf, stepf))(⌜s '⌝ + σ, ⌜a '⌝ + α) ↔ stepf(s, a, hd(σ)) ∧ pcfrag(PCIOAut(startf, stepf))(σ, α), subst:[α, startf, stepf, a, σ, s] → [⌜pal1⌝ , pcinit(init, cinit), pcstep(step, cstep), pa, ⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , s ×c cs], <all paths>

Additional information

Used terms: s ×c cs, ⌜pal1⌝ , pa, ⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , pcinit(init, cinit), pcstep(step, cstep)

Proof step 10 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ pcfrag(PCIOAut(startf, stepf))(⌜s '⌝ + σ, ⌜a '⌝ + α) ↔ stepf(s, a, hd(σ)) ∧ pcfrag(PCIOAut(startf, stepf))(σ, α)

A spec-lemma

Proof step 11 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), pcstep(step, cstep)(s ×c cs, pa, hd(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ )), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

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[IOrefine-def-RP-traceC-IOstatestream] ⊦ hd(⌜a '⌝ + ⌜x⌝ ) = a; (s)

Proof step 12 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), pcstep(step, cstep)(s ×c cs, pa, s1 ×c cs1), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PC-IO-Automaton, name: pcstep-def, seq:⊦ pcstep(rstep, cstep)(s ×c cs, pa, s0 ×c cs0) ↔ s = s0 ∧ (∃ a. cstep(cs, a, cs0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ cs = cs0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ cext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ cstep(cs, a, cs0) ∧ pa = ren(a)), subst:[cs, s0, pa, cstep, cs0, rstep, s] → [cs, s1, pa, cstep, cs1, step, s], <all paths>

Additional information

Used terms: cs, s1, cstep, cs1, step, s, pa

Proof step 13 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ pcstep(rstep, cstep)(s ×c cs, pa, s0 ×c cs0) ↔ s = s0 ∧ (∃ a. cstep(cs, a, cs0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ cs = cs0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ cext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ cstep(cs, a, cs0) ∧ pa = ren(a))

A spec-lemma

Proof step 14 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^, s = s1 ∧ (∃ a. cstep(cs, a, cs1) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ cs = cs1 ∧ (∃ ra. step(s, ra, s1) ∧ pa = rren(ra)) ∧ ¬ cext(pa) ∨ (∃ a, ra. step(s, ra, s1) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ cstep(cs, a, cs1) ∧ pa = ren(a)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ren(a) = τ ↔ a = τ; (s)

Proof step 15 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^, s = s1 ∧ cstep(cs, a, cs1) ∧ pa = ren(a) ∧ ¬ rext(ren(a)) ∨ cs = cs1 ∧ step(s, ra, s1) ∧ pa = rren(ra) ∧ ¬ cext(rren(ra)) ∨ step(s, ra0, s1) ∧ a0 ≠ τ ∧ ren(a0) = rren(ra0) ∧ cstep(cs, a0, cs1) ∧ pa = ren(a0) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 8

Additional information

Proof step 16 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, pa = ren(a), s = s1, ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, a, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ rext(ren(a)), ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: projaction-rec-addC: ⊦ # pcsl = # pal ∧ cstep(cs, a, cs0) ∧ ¬ rext(ren(a)) → πa((s ×c cs)' + (s ×c cs0)' + pcsl, ren(a) ' + pal) = a + πa((s ×c cs0) + pcsl, pal); nounsharedC-simp: ⊦ nounsharedextC → (rext(ren(a)) ↔ a ≠ τ); repla-rec-skip: ⊦ cstep(cs, τ, cs0) → repla((s ×c cs)' + (s ×c cs0)' + pcsl, τ ' + pal, ⌜as '⌝ + aσ, α) = repla((s ×c cs0)' + pcsl, pal, ⌜as '⌝ + aσ, α); append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ [] + σ = σ; (s) ⊦ ⌜τ '⌝ ^ = []; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] ⊦ [] + σ = σ; (s) ⊦ ⌜τ '⌝ ^ = []; (s) ⊦ ren(τ) = τ; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ (⌜al⌝ + α2)^ = ⌜al⌝ ^ + α2 ^; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[actionstream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ a + x = a ' + x; (s) ⊦ a + x = a ' + x; (s)

Proof step 17 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, τ, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 8 terms: pal1, s1, cs1, as, aσ, α, ainit, astep, init, cinit, step, cstep

Additional information

Used terms: pal1, s1, cs1, as, aσ, α, ainit, astep, init, cinit, step, cstep

Proof step 18 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, cs = cs1, pa = rren(ra), ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra, s1), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: repla-rec-addS: ⊦ step(s, ra, s0) ∧ ¬ cext(rren(ra)) → repla((s ×c cs)' + (s0 ×c cs)' + pcsl, rren(ra) ' + pal, ⌜as '⌝ + aσ, α) = rren(ra) ' + repla((s0 ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α); projaction-rec-skip: ⊦ # pcsl = # pal ∧ step(s, ra, s0) ∧ ¬ cext(rren(ra)) → πa((s ×c cs)' + (s0 ×c cs)' + pcsl, rren(ra) ' + pal) = πa((s0 ×c cs)' + pcsl, pal); a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] ⊦ # ⌜al⌝ ^ ≠ ∞; (s) ⊦ σ + σ1 = σ + σ2 ↔ σ1 = σ2 ∨ # σ = ∞; (ws) ⊦ (⌜al⌝ + α2)^ = ⌜al⌝ ^ + α2 ^; (s) ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream]

Proof step 19 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal1⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 9 terms: pal1, s1, cs1, as, aσ, α, ainit, astep, init, cinit, step, cstep

Additional information

Used terms: pal1, s1, cs1, as, aσ, α, ainit, astep, init, cinit, step, cstep

Proof step 20 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, pa = ren(a0), ren(a0) = rren(ra0), ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pa '⌝ ^ + ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s ×c cs)' + (s1 ×c cs1)' + pcsl0, pa ' + pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: projaction-rec-addboth: pa = rren(ra), pa ≠ τ ⊦ # pcsl = # pal ∧ cstep(cs, a, cs0) ∧ rren(ra) = ren(a) ∧ step(s, ra, s0) → πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal) = a + πa((s0 ×c cs0) + pcsl, pal); append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ a ≠ τ → (⌜a '⌝ + β)^ = ⌜a '⌝ + β ^; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[actionstream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] ⊦ a + x = a ' + x; (s) ⊦ a + x = a ' + x; (s) ⊦ ren(a) = τ ↔ a = τ; (s) ⊦ rren(τ) = τ; (s) ⊦ rren(ra) = τ ↔ ra = τ; (s)

Proof step 21 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, rren(ra0) ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜rren(ra0) '⌝ ^ + ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜a0 '⌝ + ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name: remtau-split-one-pfx, seq: ⊦ ⌜a '⌝ + β ⊑ α ^ ↔ a ≠ τ ∧ (∃ n, α0. α = ⌜mklist(τ, n)⌝ + ⌜a '⌝ + α0 ∧ β ⊑ α0 ^), subst:[a, β, α] → [a0, ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^, α], <all paths>

Additional information

Used terms: a0, ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^, α

Proof step 22 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ ⌜a '⌝ + β ⊑ α ^ ↔ a ≠ τ ∧ (∃ n, α0. α = ⌜mklist(τ, n)⌝ + ⌜a '⌝ + α0 ∧ β ⊑ α0 ^)

Lemma remtau-split-one-pfx

Proof step 23 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s ×c cs)' + (s1 ×c cs1)' + pcsl0, rren(ra0) ' + pal1, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜rren(ra0) '⌝ ^ + ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^, ∃ n, α0. α = ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 ∧ ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: repla-rec-addboth: ⊦ step(s, ra, s0) ∧ cstep(cs, a, cs0) ∧ rren(ra) = ren(a) ∧ a ≠ τ → repla ((s ×c cs)' + (s0 ×c cs0)' + pcsl, rren(ra) ' + pal, aσ, ⌜mklist(τ, n)⌝ + ⌜a '⌝ + α) = mklist(τ, n) + ren(a) ' + repla((s0 ×c cs0)' + pcsl, pal, aσ from n + 1, α); append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] ⊦ # ⌜al⌝ ^ ≠ ∞; (s) ⊦ σ + σ1 = σ + σ2 ↔ σ1 = σ2 ∨ # σ = ∞; (ws) ⊦ [] + σ = σ; (s) ⊦ (⌜al⌝ + α2)^ = ⌜al⌝ ^ + α2 ^; (s) ⊦ ⌜mklist(τ, n)⌝ ^ = []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜a '⌝ + σ from n + 1 = σ from n; (s)

Proof step 24 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ pal0, s0, cs0, as0, aσ0, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ ⌜repla((s0 ×c cs0)' + pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ^ = ⌜pal0⌝ ^ ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl0, pal0)⌝ ^ ⊑ α0 ^ ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 11 terms: pal1, s1, cs1, aσ[n], aσ from n + 1, α0, ainit, astep, init, cinit, step, cstep abort: F discard: T computed: F

Additional information

Used terms: pal1, s1, cs1, aσ[n], aσ from n + 1, α0, ainit, astep, init, cinit, step, cstep

Proof step 25 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, # pal1 ≠ # pal1 ∨ ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ^ = ⌜pal1⌝ ^ ∨ ¬ afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ) ∨ ¬ ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 26 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ^ = ⌜pal1⌝ ^ ∨ ¬ afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 11

Additional information

Proof step 27 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ^ = ⌜pal1⌝ ^, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: from-succ, seq: ⊦ ⌜n⌝ < # σ → σ from n = σ[n] + (σ from n + 1), subst:[σ, n] → [aσ, n], <all paths>

Additional information

Used simplifier rules: ⊦ a + σ = ⌜a '⌝ + σ; (s) Used terms: aσ, n

Proof step 28 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 29 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ^ = ⌜pal1⌝ ^, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n⌝ < # aσ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[traceA], name: frag, seq:⊦ afrag(AIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1])), subst:[startf, stepf, σ, β] → [ainit, astep, ⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0], <all paths>

Additional information

Used terms: ainit, astep, ⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0

Proof step 30 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ afrag(AIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1]))

A spec-lemma

Proof step 31 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(⌜as '⌝ + aσ) = #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) + ⌜1⌝ , # pcsl0 = # pal1, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ^ = ⌜pal1⌝ ^, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n⌝ < # aσ, ∀ n0. ⌜n0⌝ < #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], (⌜as '⌝ + aσ)[n0 +1]) ⊦

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[traceA-IOstatestream] c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) ⊦ m +1 = m + 1; (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 ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # mklist(a, n) = n; (s) ⊦ n < m → (⌜(* n)⌝ + n∞1 = ⌜(* m)⌝ + n∞2 ↔ n∞1 = ⌜m - n⌝ + n∞2); (s) ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 32 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ^ = ⌜pal1⌝ ^, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n⌝ < # aσ, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 2, flags: discard

Additional information

Used simplifier rules: ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) ⊦ ¬ n∞ + n∞1 < n∞1; (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

Proof step 33 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[traceA], name: frag, seq:⊦ afrag(AIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1])), subst:[startf, stepf, σ, β] → [ainit, astep, ⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0], <all paths>

Additional information

Used terms: ainit, astep, ⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0

Proof step 34 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ afrag(AIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1]))

A spec-lemma

Proof step 35 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(⌜as '⌝ + aσ) = #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) + ⌜1⌝ , # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), ∀ n0. ⌜n0⌝ < #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], (⌜as '⌝ + aσ)[n0 +1]) ⊦

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[traceA-IOstatestream] c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) ⊦ m +1 = m + 1; (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 ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # mklist(a, n) = n; (s) ⊦ n < m → (⌜(* n)⌝ + n∞1 = ⌜(* m)⌝ + n∞2 ↔ n∞1 = ⌜m - n⌝ + n∞2); (s) ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 36 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[traceA], name: frag, seq:⊦ afrag(AIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1])), subst:[startf, stepf, σ, β] → [ainit, astep, ⌜aσ[n] '⌝ + (aσ from n + 1), α0], <all paths>

Additional information

Used terms: ainit, astep, ⌜aσ[n] '⌝ + (aσ from n + 1), α0

Proof step 37 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ afrag(AIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1]))

A spec-lemma

Proof step 38 from proof finfrag-repla-sametrace (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), #(⌜aσ[n] '⌝ + (aσ from n + 1)) ≠ # α0 + ⌜1⌝ ∨ (∃ n0. ¬(⌜n0⌝ < # α0 → astep((⌜aσ[n] '⌝ + (aσ from n + 1))[n0], α0[n0], (⌜aσ[n] '⌝ + (aσ from n + 1))[n0 +1]))) ⊦

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[traceA-IOstatestream] c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) ⊦ m +1 = m + 1; (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 ⊦ n∞ + ⌜0⌝ = n∞; (s) ⊦ m ≤ n → (⌜(* n)⌝ + n∞1 = ⌜(* m)⌝ + n∞2 ↔ ⌜n - m⌝ + n∞1 = n∞2); (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 39 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), #(aσ from n + 1) ≠ # α0 ∨ ¬(⌜n0⌝ < # α0 → astep((⌜aσ[n] '⌝ + (aσ from n + 1))[n0], α0[n0], (aσ from n + 1)[n0])) ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: #(aσ from n + 1) ≠ # α0

Additional information

Used formulas: #(aσ from n + 1) ≠ # α0

Proof step 40 from proof finfrag-repla-sametrace (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), #(aσ from n + 1) ≠ # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), #(aσ from n + 1) ≠ # α0 ∨ ¬(⌜n0⌝ < # α0 → astep((⌜aσ[n] '⌝ + (aσ from n + 1))[n0], α0[n0], (aσ from n + 1)[n0])) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 41 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), #(aσ from n + 1) ≠ # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: fin-size-from, seq: ⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝ , subst:[σ, n] → [aσ, n + 1], <all paths>

Additional information

Used terms: aσ, n + 1

Proof step 42 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝

A spec-lemma

Proof step 43 from proof finfrag-repla-sametrace (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), #(aσ from n + 1) ≠ # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦ ⌜n + 1⌝ < # aσ ∧ finp(aσ)

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 ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) ⊦ ⌜n⌝ < n∞ + ⌜n⌝ ↔ n∞ ≠ ⌜0⌝ ; (s) ⊦ n∞0 + ⌜1⌝ = n∞ → (⌜n⌝ + ⌜1⌝ < n∞ ↔ ⌜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)

Proof step 44 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), #(aσ from n + 1) ≠ # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦ α0 ≠ [] ∧ finp(aσ)

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: ⊦ ¬ finp(σ) → # σ = ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s) stream-inf-forward: ⊦ ¬ finp(σ) → (∃ nf. ⌜nf⌝ = σ); (forward) from specification stream-basic[traceA-IOstatestream] ⊦ ⌜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 ⊦ ¬ ∞ < n∞; (s) ⊦ ⌜nf⌝ from n = ⌜nf from n⌝ ; (s) ⊦ # ⌜nf⌝ = ∞; (s)

Proof step 45 from proof finfrag-repla-sametrace (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), α0 = [], #(aσ from n + 1) ≠ # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

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[actionstream] ⊦ (⌜x⌝ + ⌜x0⌝ )[m] = (x + x0)[m]; (s) ⊦ σ + [] = σ; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < 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 ⊦ n∞ + ⌜0⌝ = n∞; (s) ⊦ # [] = ⌜0⌝ ; (s) ⊦ σ ⊑ [] ↔ σ = []; (s) ⊦ [] ^ = []; (s) ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s)

Proof step 46 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ , ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ = [], ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, [])⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, aσ from n + 1 ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ∀ n0. ¬ n < n0 → astep((⌜as '⌝ + aσ)[n0], (mklist(τ, n) + a0 ')[n0], aσ[n0]) ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: aσ

Additional information

Used simplifier rules: Astatestream freely generated by ⌜ ⌝, ⌜ ⌝;; ⊦ # ⌜nf⌝ = ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (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

Proof step 47 from proof finfrag-repla-sametrace (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ , # pcsl0 = # pal1, ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ = [], aσ = ⌜asl⌝ , ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, [])⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, aσ from n + 1 ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ∀ n0. ¬ n < n0 → astep((⌜as '⌝ + aσ)[n0], (mklist(τ, n) + a0 ')[n0], aσ[n0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ [n] = x[n]; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ (⌜x⌝ + ⌜x0⌝ )[m] = (x + x0)[m]; (s) ⊦ ⌜x⌝ = [] ↔ x = []; (s) ⊦ ⌜x⌝ from n = ⌜x from 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 ⊦ ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n + m = n0; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s)

Proof step 48 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, 1 + n = # asl, ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ = [], ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜asl from n⌝ , [])⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, asl from n + 1 ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ∀ n0. ¬ n < n0 → astep((as ' + asl)[n0], (mklist(τ, n) + a0 ')[n0], asl[n0]) ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 2, flags:

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic

Proof step 49 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, 1 + n = # asl, ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ = [], ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜asl from n⌝ , [])⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, asl from # asl ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ∀ n0. ¬ n < n0 → astep((as ' + asl)[n0], (mklist(τ, n) + a0 ')[n0], asl[n0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: from-all, seq: ⊦ x from # x = [], subst:[x] → [asl], <all paths>

Additional information

Used terms: asl

Proof step 50 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ x from # x = []

A spec-lemma

Proof step 51 from proof finfrag-repla-sametrace (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜(# aσ).n - n + 1⌝ ≠ # α0, ⌜n + 1⌝ < # aσ, cstep(cs, a0, cs1), finp(aσ), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ [n] = x[n]; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ (⌜x⌝ + ⌜x0⌝ )[m] = (x + x0)[m]; (s) ⊦ finp(⌜x⌝ ); (s) ⊦ ⌜n⌝ .n = n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; (s) stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic[traceA-IOstatestream] 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 ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) ⊦ ⌜n⌝ < n∞ + ⌜n⌝ ↔ n∞ ≠ ⌜0⌝ ; (s) ⊦ n∞0 + ⌜1⌝ = n∞ → (⌜n⌝ + ⌜1⌝ < n∞ ↔ ⌜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)

Proof step 52 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜# asl⌝ = ⌜1⌝ + ⌜n⌝ + # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜asl from n⌝ , α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, α0 ≠ [], ⌜# asl - n + 1⌝ ≠ # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((as ' + asl)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], asl[n0]) ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: α0

Additional information

Used simplifier rules: Actionstream freely generated by ⌜ ⌝, ⌜ ⌝;; ⊦ # ⌜nf⌝ = ∞; (s) ⊦ ⌜m⌝ + ∞ = ∞; (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 ⊦ ⌜n⌝ ≠ ∞; (s)

Proof step 53 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, ren(a0) = rren(ra0), α0 = ⌜al⌝ , ⌜# asl⌝ = ⌜1⌝ + ⌜n⌝ + # α0, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜asl from n⌝ , α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, α0 ≠ [], ⌜# asl - n + 1⌝ ≠ # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((as ' + asl)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], asl[n0]) ⊦

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[actionstream] ⊦ (⌜x⌝ + ⌜x0⌝ + ⌜x1⌝ )[m] = (x + x0 + x1)[m]; (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 ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜n⌝ = ⌜n0⌝ ↔ n = n0; (s) ⊦ ⌜x⌝ = [] ↔ x = []; (s) ⊦ ⌜n1⌝ + ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n1 + n + m = n0; (s)

Proof step 54 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, 1 + n + # al = # asl, ren(a0) = rren(ra0), # asl - n + 1 ≠ # al, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜asl from n⌝ , ⌜al⌝ )⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, al ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ ⌜al⌝ ^, ∀ n0. ¬ n + # al < n0 → astep((as ' + asl)[n0], (mklist(τ, n) + a0 ' + al)[n0], asl[n0]) ⊦

User 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] → [# asl, n + 1, n1]

Additional information

Used simplifier rules: ⊦ m + 1 ≤ n ↔ m < n; (s) eqs: ⊦ m = n + n0 ∧ m = n + n1 → n0 = n1; (forward) from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: # asl, n + 1, n1

Proof step 55 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, 1 + n + # al = # asl, ren(a0) = rren(ra0), # asl - n + 1 ≠ # al, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜asl from n⌝ , ⌜al⌝ )⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, al ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ ⌜al⌝ ^, ¬ n + 1 ≤ # asl, ∀ n0. ¬ n + # al < n0 → astep((as ' + asl)[n0], (mklist(τ, n) + a0 ' + al)[n0], asl[n0]) ⊦

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

Proof step 56 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, 1 + n + # al = # asl, ren(a0) = rren(ra0), # asl - n + 1 ≠ # al, ⌜repla((s1 ×c cs1)' + pcsl0, pal1, ⌜asl from n⌝ , ⌜al⌝ )⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, al ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), # asl ≤ n, ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ ⌜al⌝ ^, ∀ n0. ¬ n + # al < n0 → astep((as ' + asl)[n0], (mklist(τ, n) + a0 ' + al)[n0], asl[n0]) ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 2, flags: rotate, discard

Additional information

Used simplifier rules: ⊦ m + n - n + n1 = m - n1; (s) ⊦ n ≤ m → m + n0 - n = (m - n) + n0; (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

Proof step 57 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), #(aσ from n + 1) ≠ # α0 ∨ ¬(⌜n0⌝ < # α0 → astep((⌜aσ[n] '⌝ + (aσ from n + 1))[n0], α0[n0], (aσ from n + 1)[n0])) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 58 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n0⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((⌜aσ[n] '⌝ + (aσ from n + 1))[n0], α0[n0], (aσ from n + 1)[n0]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: get-append-notls, seq: ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n], subst:[σ, σ1, m] → [⌜aσ[n] '⌝ , aσ from n + 1, n0], <all paths>

Additional information

Used terms: ⌜aσ[n] '⌝ , aσ from n + 1, n0

Proof step 59 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 60 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n0⌝ < # ⌜aσ[n] '⌝ , ⌜n0⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((⌜aσ[n] '⌝ + (aσ from n + 1))[n0], α0[n0], (aσ from n + 1)[n0]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

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[traceA-IOstatestream] ⊦ (⌜a '⌝ + σ)[0] = a; (s) ⊦ ⌜0⌝ < # σ ↔ σ ≠ []; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s)

Proof step 61 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, α0 ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n], α0[0], (aσ from n + 1)[0]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: get-from, seq: ⊦ ⌜n⌝ + ⌜m⌝ < # σ → (σ from n)[m] = σ[n + m], subst:[σ, n, m] → [aσ, n + 1, 0], <all paths>

Additional information

Used simplifier rules: ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ n∞0 + ⌜1⌝ = n∞ → (⌜n⌝ + ⌜1⌝ < n∞ ↔ ⌜n⌝ < n∞0); (s) ⊦ ⌜n⌝ < n∞ + ⌜n⌝ ↔ n∞ ≠ ⌜0⌝ ; (s) ⊦ # σ = ⌜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: aσ, n + 1, 0

Proof step 62 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 63 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, α0 ≠ [], ⌜n + 1⌝ + ⌜0⌝ < # aσ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n], α0[0], aσ[(n + 1) + 0]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic 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 ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) ⊦ ⌜n⌝ < n∞ + ⌜n⌝ ↔ n∞ ≠ ⌜0⌝ ; (s) ⊦ n∞0 + ⌜1⌝ = n∞ → (⌜n⌝ + ⌜1⌝ < n∞ ↔ ⌜n⌝ < n∞0); (s) ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 64 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, α0 ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n], α0[0], aσ[1 + n]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 14 terms: n + 1 abort: F discard: T computed: F

Additional information

Used terms: n + 1

Proof step 65 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, α0 ≠ [], cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n], α0[0], aσ[1 + n]), ¬ ⌜n⌝ + # α0 < ⌜n + 1⌝ → astep((⌜as '⌝ + aσ)[n + 1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n + 1], aσ[n + 1]) ⊦

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[traceA-IOstatestream] c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ (⌜a '⌝ + σ)[n + 1] = σ[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 ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) ⊦ n∞ < ⌜1⌝ ↔ n∞ = ⌜0⌝ ; (s) ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 66 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, α0 ≠ [], astep(aσ[n], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n + 1], aσ[n + 1]), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n], α0[0], aσ[1 + n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # mklist(a, n) = 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 n ≠ 0 ⊦ (⌜a '⌝ + σ)[(* n)] = σ[n - 1]; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]; (s) ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ⌜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: ⌜mklist(τ, n)⌝ , ⌜a0 '⌝ + α0, n + 1

Proof step 67 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 68 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n0⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n0⌝ < # ⌜aσ[n] '⌝ , ¬ astep((aσ from n + 1)[n0 - (# ⌜aσ[n] '⌝ ).n], α0[n0], (aσ from n + 1)[n0]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜n⌝ .n = n; (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s)

Proof step 69 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, n0 ≠ 0, ⌜n0⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((aσ from n + 1)[n0 - 1], α0[n0], (aσ from n + 1)[n0]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: n0, m

Proof step 70 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, n0 = n1 + 1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, n0 ≠ 0, ⌜n0⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((aσ from n + 1)[n1], α0[n0], (aσ from n + 1)[n0]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

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⌝ + ⌜n⌝ ; (s) ⊦ m + 1 ≠ 0; (s)

Proof step 71 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((aσ from n + 1)[n1], α0[n1 + 1], (aσ from n + 1)[n1 + 1]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: get-from, seq: ⊦ ⌜n⌝ + ⌜m⌝ < # σ → (σ from n)[m] = σ[n + m], subst:[σ, n, m] → [aσ, n + 1, n1 + 1], <all paths>

Additional information

Used terms: aσ, n + 1, n1 + 1

Proof step 72 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 73 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n + 1⌝ + ⌜n1 + 1⌝ < # aσ, ¬ astep((aσ from n + 1)[n1], α0[n1 + 1], (aσ from n + 1)[n1 + 1]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: 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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 74 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, ¬ astep((aσ from n + 1)[n1], α0[n1 + 1], (aσ from n + 1)[n1 + 1]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 2, flags: discard

Additional information

Used simplifier rules: ⊦ m ≤ n → (⌜(* n)⌝ + n∞1 < ⌜(* m)⌝ + n∞2 ↔ ⌜n - m⌝ + n∞1 < n∞2); (s) ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; (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

Proof step 75 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, ⌜n + 1⌝ + ⌜n1 + 1⌝ < # aσ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((aσ from n + 1)[n1], α0[n1 + 1], aσ[(n + 1) + n1 + 1]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic 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)⌝ = ⌜n + m⌝ ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 76 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((aσ from n + 1)[n1], α0[n1 + 1], aσ[2 + n + n1]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: get-from, seq: ⊦ ⌜n⌝ + ⌜m⌝ < # σ → (σ from n)[m] = σ[n + m], subst:[σ, n, m] → [aσ, n + 1, n1], <all paths>

Additional information

Used simplifier rules: ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) lsle-trans: ⊦ n∞ < n∞1 ∧ ¬ n∞2 < n∞1 → n∞ < n∞2; (forward) from specification nat-inf ⊦ m ≤ n → (⌜(* n)⌝ + n∞1 < ⌜(* m)⌝ + n∞2 ↔ ⌜n - m⌝ + n∞1 < n∞2); (s) ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ¬ m + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic 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: aσ, n + 1, n1

Proof step 77 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 78 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, ⌜n1⌝ + ⌜1⌝ < # α0, ⌜n + 1⌝ + ⌜n1⌝ < # aσ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: 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 ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)

Proof step 79 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 16 terms: 2 + n + n1 abort: F discard: T computed: F

Additional information

Used terms: 2 + n + n1

Proof step 80 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, ⌜n1⌝ + ⌜1⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]), ¬ ⌜n⌝ + # α0 < ⌜2 + n + n1⌝ → astep((⌜as '⌝ + aσ)[2 + n + n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[2 + n + n1], aσ[2 + n + n1]) ⊦

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 ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; (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)

Proof step 81 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]), ¬ # α0 < ⌜2⌝ + ⌜n1⌝ → astep((⌜as '⌝ + aσ)[2 + n + n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[2 + n + n1], aσ[2 + n + n1]) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 16

Additional information

Proof step 82 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, # α0 < ⌜2⌝ + ⌜n1⌝ , (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, ⌜n1⌝ + ⌜1⌝ < # α0, cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: fin-size-from, seq: ⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝ , subst:[σ, n] → [aσ, n + 1], <all paths>

Additional information

Used simplifier rules: ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ n∞0 + ⌜1⌝ = n∞ → (⌜n⌝ + ⌜1⌝ < n∞ ↔ ⌜n⌝ < n∞0); (s) ⊦ ⌜n⌝ < n∞ + ⌜n⌝ ↔ n∞ ≠ ⌜0⌝ ; (s) ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic[traceA-IOstatestream] ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ m ≤ n → (⌜(* m)⌝ + n∞2 < ⌜(* n)⌝ + n∞1 ↔ n∞2 < ⌜n - m⌝ + n∞1); (s) ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ⌜n⌝ < ⌜m⌝ + ⌜n0⌝ ↔ n < m + n0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic trans-nat: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification nat-basic ⊦ ⌜n1⌝ + ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n1 + n + m = n0; (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 n < n0 ⊦ (* n) ≠ m0 + (* n0); (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜n⌝ .n = n; (s) ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; (s) ⊦ m +1 = m + 1; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ ¬ n < n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) ⊦ [] ^ = []; (s) ⊦ σ ⊑ [] ↔ σ = []; (s) ⊦ ⌜0⌝ < n∞ ↔ n∞ ≠ ⌜0⌝ ; (s) ⊦ n < m → (⌜(* n)⌝ = ⌜(* m)⌝ + n∞2 ↔ false); (s) ⊦ # [] = ⌜0⌝ ; (s) ⊦ m < n → (⌜n⌝ + n∞ < ⌜m⌝ ↔ false); (s) ⊦ ¬ finp(σ) → # σ = ∞; (s) ⊦ n∞ < ∞ ↔ n∞ ≠ ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s) ⊦ ⌜n⌝ ≠ ∞; (s) stream-inf-forward: ⊦ ¬ finp(σ) → (∃ nf. ⌜nf⌝ = σ); (forward) from specification stream-basic[traceA-IOstatestream] ⊦ ¬ ∞ < n∞; (s) Used terms: aσ, n + 1

Proof step 83 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝

A spec-lemma

Proof step 84 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, ⌜n1⌝ + ⌜1⌝ < # α0, astep((⌜as '⌝ + aσ)[2 + n + n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[2 + n + n1], aσ[2 + n + n1]), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: get-append-notls, seq: ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n], subst:[σ, σ1, m] → [⌜as '⌝ , aσ, 2 + n + n1], <all paths>

Additional information

Used simplifier rules: ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]; (s) ⊦ ⌜x⌝ [n] = x[n]; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ ⌜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 ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ m < n → (⌜n⌝ + n∞ < ⌜m⌝ ↔ false); (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: ⌜as '⌝ , aσ, 2 + n + n1

Proof step 85 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 86 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, astep(aσ[2 + n + n1 - (# ⌜as '⌝ ).n], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[2 + n + n1], aσ[2 + n + n1]), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜2 + n + n1⌝ < # ⌜as '⌝ , ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]) ⊦

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 → (⌜n⌝ + n∞ < ⌜m⌝ ↔ false); (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (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 ≤ m → m + n0 - n = (m - n) + n0; (s) ⊦ ⌜n⌝ .n = n; (s)

Proof step 87 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, ⌜n1⌝ + ⌜1⌝ < # α0, astep(aσ[1 + n + n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[2 + n + n1], aσ[2 + n + n1]), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[actionstream], name: get-append-notls, seq: ⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n], subst:[σ, σ1, m] → [⌜mklist(τ, n)⌝ , ⌜a0 '⌝ + α0, 2 + n + n1], <all paths>

Additional information

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

Proof step 88 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 89 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl0 = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, #(aσ from n + 1) = # α0, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, ⌜n1⌝ + ⌜1⌝ < # α0, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, astep(aσ[1 + n + n1], (⌜a0 '⌝ + α0)[2 + n + n1 - (# ⌜mklist(τ, n)⌝ ).n], aσ[2 + n + n1]), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜2 + n + n1⌝ < # ⌜mklist(τ, n)⌝ , ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]) ⊦

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 ⊦ ¬ m + n < m; (s) ⊦ ⌜n1⌝ + ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n1 + n + m < n0; (s) ⊦ # mklist(a, n) = n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ m + n - m = n; (s) ⊦ ⌜n⌝ .n = n; (s)

Proof step 90 from proof finfrag-repla-sametrace (previous step) (back to tree)

#(aσ from n + 1) = # α0, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl0 = # pal1, ren(a0) = rren(ra0), ⌜repla((s1 ×c cs1)' + pcsl0, pal1, aσ from n, α0)⌝ ^ ≠ ⌜pal1⌝ ^, a0 ≠ τ, (⌜n⌝ + ⌜1⌝ ) + ⌜n1⌝ < # aσ, ⌜2⌝ + ⌜n⌝ + ⌜n1⌝ < # aσ, ⌜n1⌝ + ⌜1⌝ < # α0, astep(aσ[1 + n + n1], (⌜a0 '⌝ + α0)[2 + n1], aσ[2 + n + n1]), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl0⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl0, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[(n + 1) + n1], α0[n1 + 1], aσ[2 + n + n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ ⌜n⌝ .n = n; (s) ⊦ n ≤ m → m + n0 - n = (m - n) + n0; (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) ⊦ ⌜x⌝ [n] = x[n]; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ m < n → (⌜n⌝ + n∞ < ⌜m⌝ ↔ false); (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: ⌜a0 '⌝ , α0, 2 + n1

Proof step 91 from proof finfrag-repla-sametrace (previous step) (back to tree)

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

A spec-lemma

Proof step 92 from proof finfrag-repla-sametrace (previous step) (back to tree)

# pcsl ≠ # pal, ⌜repla((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ ^ ≠ ⌜pal⌝ ^, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcsl⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + pcsl, pal)⌝ ^ ⊑ α ^ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[IOrefine-def-RP-traceC], name: frag, seq:⊦ pcfrag(PCIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1])), subst:[startf, stepf, σ, β] → [pcinit(init, cinit), pcstep(step, cstep), ⌜(s ×c cs)'⌝ + ⌜pcsl⌝ , ⌜pal⌝ ], <all paths>

Additional information

Used simplifier rules: ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceC-IOstatestream] ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ m ≤ n → (⌜(* n)⌝ + n∞1 = ⌜(* m)⌝ + n∞2 ↔ ⌜n - m⌝ + n∞1 = n∞2); (s) ⊦ n∞ + ⌜0⌝ = n∞; (s) ⊦ ⌜n⌝ = ⌜n0⌝ ↔ n = n0; (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: pcinit(init, cinit), pcstep(step, cstep), ⌜(s ×c cs)'⌝ + ⌜pcsl⌝ , ⌜pal⌝

Proof step 93 from proof finfrag-repla-sametrace (previous step) (back to tree)

⊦ pcfrag(PCIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1]))

A spec-lemma

Proof Tree for finfrag-repla-sametrace (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