[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-repl-frag (conclusion) (back to tree)

⊦ nounsharedextC ∧ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcsl⌝ , ⌜pal⌝ ) ∧ afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α) ∧ ⌜πa(pcsl, pal)⌝ ^ ⊑ α ^ → pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜repls(pcsl, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla(pcsl, pal, ⌜as '⌝ + aσ, α)⌝ )

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof finfrag-repl-frag (previous step) (back to tree)

afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcsl⌝ , ⌜pal⌝ ), ⌜πa(pcsl, pal)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜repls(pcsl, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla(pcsl, pal, ⌜as '⌝ + aσ, α)⌝ ) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: pcsl

Additional information

Used simplifier rules: Pcstatelist freely generated by [], +;; ⊦ ⌜[]⌝ = []; (s) ⊦ ¬ pcfrag(PCIOAut(startf, stepf))([], α); (s)

Proof step 3 from proof finfrag-repl-frag (previous step) (back to tree)

afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcs + pcsl0⌝ , ⌜pal⌝ ), ⌜πa(pcs + pcsl0, pal)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜repls(pcs + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla(pcs + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit, astep, as, aσ, α, init, cinit, step, cstep, pal. ¬ ( afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α) ∧ nounsharedextC ∧ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcsl0⌝ , ⌜pal⌝ ) ∧ ⌜πa(pcsl0, pal)⌝ ^ ⊑ α ^ ∧ ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜repls(pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla(pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ )) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a + x = a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s)

Proof step 4 from proof finfrag-repl-frag (previous step) (back to tree)

afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa(pcs ' + pcsl0, pal)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls(pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla(pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa(pcsl0, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ) ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: # pcsl0 = # pal

Additional information

Used formulas: # pcsl0 = # pal

Proof step 5 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl0 = # pal, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa(pcs ' + pcsl0, pal)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls(pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla(pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa(pcsl0, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α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-repl-frag (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 7 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl0 = # 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)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa(pcsl0, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ) ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: pcsl0

Additional information

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

Proof step 8 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl0 = # pal, pcsl0 = pcs + pcsl, 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)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa(pcsl0, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a + x = a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceC-IOstatestream] ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s)

Proof step 9 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl + 1 = # pal, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcs '⌝ + ⌜pcsl⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + pcs ' + pcsl, pal)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + pcs ' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + pcs ' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜pcs '⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa(pcs ' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls(pcs ' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla(pcs ' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 10 from proof finfrag-repl-frag (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 11 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl + 1 = # pal, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pal)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 12 from proof finfrag-repl-frag (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a + x = a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (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 13 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pa '⌝ + ⌜pal1⌝ ), ⌜πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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, ⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , s ×c cs], <all paths>

Additional information

Used terms: s ×c cs, ⌜pal1⌝ , pa, ⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , pcinit(init, cinit), pcstep(step, cstep)

Proof step 14 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 15 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), pcstep(step, cstep)(s ×c cs, pa, hd(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ )), ⌜πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 16 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), pcstep(step, cstep)(s ×c cs, pa, s0 ×c cs0), ⌜πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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, s0, pa, cstep, cs0, step, s], <all paths>

Additional information

Used terms: cs, s0, cstep, cs0, step, s, pa

Proof step 17 from proof finfrag-repl-frag (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 18 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), ⌜πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ), s = s0 ∧ (∃ a. cstep(cs, a, cs0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ cs = cs0 ∧ (∃ ra. step(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ cext(pa) ∨ (∃ a, ra. step(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ cstep(cs, a, cs0) ∧ 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 19 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 8

Additional information

Proof step 20 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, pa = ren(a), s = s0, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, a, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), ⌜πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ), ¬ rext(ren(a)), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 ≠ τ); repls-rec-skip: ⊦ cstep(cs, τ, cs0) → repls((s ×c cs)' + (s ×c cs0)' + pcsl, τ ' + pal, ⌜as '⌝ + aσ, α) = repls((s ×c cs0)' + pcsl, pal, ⌜as '⌝ + 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σ, α); 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] ⊦ ren(τ) = τ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ [] + σ = σ; (s) ⊦ ⌜τ '⌝ ^ = []; (s) ⊦ (⌜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 21 from proof finfrag-repl-frag (previous step) (back to tree)

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

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

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

Additional information

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

Proof step 22 from proof finfrag-repl-frag (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: 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); repls-rec-addS: ⊦ step(s, ra, s0) ∧ ¬ cext(rren(ra)) → repls((s ×c cs)' + (s0 ×c cs)' + pcsl, rren(ra) ' + pal, ⌜as '⌝ + aσ, α) = (s ×a as)' + repls((s0 ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α); 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σ, α); 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[traceA-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s)

Proof step 23 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[IOrefine-def-RP-traceA], name: frag-rec, seq:⊦ pafrag(PAIOAut(startf, stepf))(⌜s '⌝ + σ, ⌜a '⌝ + α) ↔ stepf(s, a, hd(σ)) ∧ pafrag(PAIOAut(startf, stepf))(σ, α), subst:[startf, a, stepf, α, s, σ] → [painit(init, ainit), rren(ra), pastep(step, astep), ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , s ×a as, ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ], <all paths>

Additional information

Used terms: pastep(step, astep), ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , rren(ra), painit(init, ainit), ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , s ×a as

Proof step 24 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 25 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 8 terms: ainit, astep, as, aσ, α, init, cinit, step, cstep, pal1 abort: F discard: T computed: T

Additional information

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

Proof step 26 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), hd(⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ )) ∨ ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), ¬ afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α) ∨ ¬ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^ ∨ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 27 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), hd(⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ )) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[IOrefine-def-RP-traceA-IOstatestream], name: hd-selzero, seq: ⊦ σ ≠ [] → hd(σ) = σ[0], subst:[σ] → [⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ], <all paths>

Additional information

Used simplifier rules: ⊦ ⌜x⌝ = [] ↔ x = []; (s) ⊦ ⌜[]⌝ = []; (s) ⊦ ¬ pafrag(PAIOAut(startf, stepf))([], α); (s) Used terms: ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝

Proof step 28 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ σ ≠ [] → hd(σ) = σ[0]

A spec-lemma

Proof step 29 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ≠ [], afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ [0]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ x ≠ [] → x[0] = hd(x); (s) ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ ⌜x⌝ = [] ↔ x = []; (s)

Proof step 30 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) ≠ [], afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), hd(repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α))) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:finfrag-repls-head, seq: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)⌝ ^ ⊑ α ^ ⊦ repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α) ≠ [] ∧ hd(repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)) = s ×a as, subst:[cs, s, as, α, init, cinit, cstep, pal, ainit, astep, pcsl, aσ, step] → [cs0, s0, as, α, init, cinit, cstep, pal1, ainit, astep, pcsl, aσ, step]

Additional information

Used terms: cs0, astep, α, init, as, ainit, cstep, aσ, step, cinit, s0, pcsl, pal1

Proof step 31 from proof finfrag-repl-frag (previous step) (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)⌝ ^ ⊑ α ^ ⊦ repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α) ≠ [] ∧ hd(repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)) = s ×a as

Lemma finfrag-repls-head

Proof step 32 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, hd(repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)) = s0 ×a as, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) ≠ [], afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), hd(repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α))) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 33 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, hd(repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)) = s0 ×a as, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) ≠ [], afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), s0 ×a as) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-data[IOrefine-def-RP-traceA-IOstatestream], name:elim-add, seq: ⊦ x ≠ [] → (head = hd(x) ∧ tail = tl(x) ↔ x = head + tail), subst:[x, head, tail] → [repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α), pas, x0]

Additional information

Used simplifier rules: ⊦ x ≠ [] → (head = hd(x) ∧ tail = tl(x) ↔ x = head + tail); (elim) Used terms: repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α), head, tail

Proof step 34 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, pas = s0 ×a as, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = pas + x0, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) ≠ [], afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), s0 ×a as) ⊦

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-traceA-IOstatestream] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ a ' + x ≠ []; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ a + x = a ' + x; (s)

Proof step 35 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ¬ pastep(step, astep)(s ×a as, rren(ra), s0 ×a as) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PA-IO-Automaton, name: pastep-def, seq:⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a)), subst:[s0, as, pa, as0, astep, rstep, s] → [s0, as, rren(ra), as, astep, step, s], <all paths>

Additional information

Used terms: astep, s0, as, as, step, s, rren(ra)

Proof step 36 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a))

A spec-lemma

Proof step 37 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ a, ra0. ¬(step(s, ra0, s0) ∧ rren(ra) ≠ τ ∧ rren(ra) = rren(ra0) ∧ astep(as, a, as) ∧ rren(ra) = ren(a)), s ≠ s0 ∨ (∀ a. ¬(astep(as, a, as) ∧ rren(ra) = ren(a))) ∨ rext(rren(ra)), as ≠ as ∨ (∀ ra0. ¬(step(s, ra0, s0) ∧ rren(ra) = rren(ra0))) ∨ aext(rren(ra)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ aext(τ); (s) ⊦ rren(τ) = τ; (s) ⊦ rren(ra) = rren(ra0) ↔ ra = ra0; (s) ⊦ rren(ra) = τ ↔ ra = τ; (s)

Proof step 38 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, ra ≠ τ, aext(rren(ra)), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ a. ¬ astep(as, a, as) ∨ rren(ra) ≠ ren(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σ, α], <all paths>

Additional information

Used terms: ainit, astep, ⌜as '⌝ + aσ, α

Proof step 39 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 40 from proof finfrag-repl-frag (previous step) (back to tree)

#(⌜as '⌝ + aσ) = # α + ⌜1⌝ , # pcsl = # pal1, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, ra ≠ τ, aext(rren(ra)), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ a. ¬ astep(as, a, as) ∨ rren(ra) ≠ ren(a), ∀ n. ⌜n⌝ < # α → astep((⌜as '⌝ + aσ)[n], α[n], (⌜as '⌝ + 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) ⊦ 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 41 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = # α, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, ra ≠ τ, aext(rren(ra)), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ a. ¬ astep(as, a, as) ∨ rren(ra) ≠ ren(a), ∀ n. ⌜n⌝ < # α → astep((⌜as '⌝ + aσ)[n], α[n], aσ[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PA-IO-Automaton, name: aext-def, seq: ⊦ aext(pa) ↔ (∃ a. a ≠ τ ∧ ren(a) = pa), subst:[pa] → [rren(ra)], <all paths>

Additional information

Used terms: rren(ra)

Proof step 42 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ aext(pa) ↔ (∃ a. a ≠ τ ∧ ren(a) = pa)

A spec-lemma

Proof step 43 from proof finfrag-repl-frag (previous step) (back to tree)

# aσ = # α, # pcsl = # pal1, repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, ra ≠ τ, nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ n. ⌜n⌝ < # α → astep((⌜as '⌝ + aσ)[n], α[n], aσ[n]), ∀ a. ¬ astep(as, a, as) ∨ rren(ra) ≠ ren(a), ∃ a. a ≠ τ ∧ ren(a) = rren(ra) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 44 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = # α, ren(a) = rren(ra), repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, a ≠ τ, ra ≠ τ, nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ cext(rren(ra)), ∀ a. ¬ astep(as, a, as) ∨ rren(ra) ≠ ren(a), ∀ n. ⌜n⌝ < # α → astep((⌜as '⌝ + aσ)[n], α[n], aσ[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PC-IO-Automaton, name: cext-def, seq: ⊦ cext(pa) ↔ (∃ a. a ≠ τ ∧ ren(a) = pa), subst:[pa] → [rren(ra)], <all paths>

Additional information

Used terms: rren(ra)

Proof step 45 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ cext(pa) ↔ (∃ a. a ≠ τ ∧ ren(a) = pa)

A spec-lemma

Proof step 46 from proof finfrag-repl-frag (previous step) (back to tree)

# aσ = # α, # pcsl = # pal1, ren(a) = rren(ra), repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, a ≠ τ, ra ≠ τ, nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ∀ n. ⌜n⌝ < # α → astep((⌜as '⌝ + aσ)[n], α[n], aσ[n]), ∀ a. ¬ astep(as, a, as) ∨ rren(ra) ≠ ren(a), ∀ a. ¬(a ≠ τ ∧ ren(a) = rren(ra)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 47 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = # α, ren(a) = rren(ra), repls((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α) = (s0 ×a as)' + x0, a ≠ τ, ra ≠ τ, nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜(s0 ×a as)'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜as '⌝ + aσ, α)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ∀ a. ¬ astep(as, a, as) ∨ rren(ra) ≠ ren(a), ∀ n. ⌜n⌝ < # α → astep((⌜as '⌝ + aσ)[n], α[n], aσ[n]), ∀ a0. a0 = τ ∨ ren(a0) ≠ rren(ra) ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 14 terms: a

Additional information

Used terms: a

Proof step 48 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, pa = ren(a0), ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal1, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 49 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜a0 '⌝ + ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s ×c cs)' + (s0 ×c cs0)' + pcsl, rren(ra0) ' + pal1, ⌜as '⌝ + aσ, α)⌝ , ⌜repla((s ×c cs)' + (s0 ×c cs0)' + pcsl, rren(ra0) ' + pal1, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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((s0 ×c cs0)' + pcsl, pal1)⌝ ^, α], <all paths>

Additional information

Used terms: a0, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^, α

Proof step 50 from proof finfrag-repl-frag (previous step) (back to tree)

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

Lemma remtau-split-one-pfx

Proof step 51 from proof finfrag-repl-frag (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: repls-rec-addboth: ⊦ step(s, ra, s0) ∧ cstep(cs, a, cs0) ∧ rren(ra) = ren(a) ∧ a ≠ τ → repls ((s ×c cs)' + (s0 ×c cs0)' + pcsl, rren(ra) ' + pal, aσ, ⌜mklist(τ, n)⌝ + ⌜a '⌝ + α) = lift((aσ to n).l, s) + (s ×a aσ[n])' + repls((s0 ×c cs0)' + pcsl, pal, aσ from n + 1, α); 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, α); 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) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s)

Proof step 52 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: afrag(AIOAut(ainit, astep))(aσ from n, α0)

Additional information

Used formulas: afrag(AIOAut(ainit, astep))(aσ from n, α0)

Proof step 53 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(aσ from n, α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, aσ from n, α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, aσ from n, α0)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 terms: aσ, n

Proof step 54 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 55 from proof finfrag-repl-frag (previous step) (back to tree)

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

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⌝ from n = ⌜nf from n⌝ ; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ ⌜m⌝ < ∞; (s)

Proof step 56 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, aσ = ⌜asl⌝ , ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(aσ from n, α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n⌝ < # aσ, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, aσ from n, α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, aσ from n, α0)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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-actionstream] ⊦ ⌜x⌝ from n = ⌜x from n⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ (⌜x⌝ + ⌜x0⌝ )[m] = (x + x0)[m]; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s)

Proof step 57 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + ⌜asl⌝ , ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜asl from n⌝ , α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), # asl ≤ n, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + ⌜asl⌝ to n).l, s)⌝ + ⌜(s ×a (as ' + asl)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 '⌝ + ⌜asl⌝ , ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0], <all paths>

Additional information

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

Proof step 58 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 59 from proof finfrag-repl-frag (previous step) (back to tree)

#(⌜as '⌝ + ⌜asl⌝ ) = #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) + ⌜1⌝ , # pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜asl from n⌝ , α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), # asl ≤ n, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + ⌜asl⌝ to n).l, s)⌝ + ⌜(s ×a (as ' + asl)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ), ∀ n0. ⌜n0⌝ < #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) → astep((⌜as '⌝ + ⌜asl⌝ )[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], (⌜as '⌝ + ⌜asl⌝ )[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 ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) ⊦ m +1 = m + 1; (s) ⊦ (⌜x⌝ + ⌜x0⌝ )[m] = (x + x0)[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⌝ < ⌜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) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 60 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), ⌜# asl⌝ = ⌜1⌝ + ⌜n⌝ + # α0, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜asl from n⌝ , α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), # asl ≤ n, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + ⌜asl⌝ to n).l, s)⌝ + ⌜(s ×a (as ' + asl)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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 61 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), α0 = ⌜al⌝ , ⌜# asl⌝ = ⌜1⌝ + ⌜n⌝ + # α0, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜asl from n⌝ , α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), # asl ≤ n, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + ⌜asl⌝ to n).l, s)⌝ + ⌜(s ×a (as ' + asl)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , α0)⌝ ), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((as ' + asl)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], asl[n0]), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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[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) ⊦ ⌜n1⌝ + ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n1 + n + m = n0; (s)

Proof step 62 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, 1 + n + # al = # asl, ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜asl from n⌝ , ⌜al⌝ ), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), # asl ≤ n, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ ⌜al⌝ ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + ⌜asl⌝ to n).l, s)⌝ + ⌜(s ×a (as ' + asl)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , ⌜al⌝ )⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜asl from n⌝ , ⌜al⌝ )⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ), ∀ 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 + 1 ≤ n ↔ m < n; (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

Proof step 63 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ[n] + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, aσ[n] + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, aσ[n] + (aσ from n + 1), α0)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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-actionstream] ⊦ a + σ = ⌜a '⌝ + σ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream]

Proof step 64 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 65 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 66 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: IOtrace[traceA], name:frag-split, seq:⊦ afrag(AIOAut(startf, stepf))(σ, α) ∧ ⌜n⌝ < # α → afrag*(AIOAut(startf, stepf))(σ to n + 1, α to n) ∧ afrag(AIOAut(startf, stepf))(σ from n, α from n), subst:[n, α, startf, σ, stepf] → [n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0, ainit, ⌜as '⌝ + aσ, astep]

Additional information

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

Proof step 67 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ afrag(AIOAut(startf, stepf))(σ, α) ∧ ⌜n⌝ < # α → afrag*(AIOAut(startf, stepf))(σ to n + 1, α to n) ∧ afrag(AIOAut(startf, stepf))(σ from n, α from n)

A spec-lemma

Proof step 68 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) ∧ ⌜n⌝ < #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) → afrag*(AIOAut(ainit, astep))(⌜as '⌝ + aσ to n + 1, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n) ∧ afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ finp(σ to m); (s) ⊦ afrag*(AIOAut(startf, stepf))(σ, β) ↔ afrag(AIOAut(startf, stepf))(σ, β) ∧ finp(β); (s) 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 + σ = ⌜a '⌝ + σ; (s) ⊦ ⌜a '⌝ + σ to n + 1 = a + (σ to 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∞ + n∞1 < n∞1; (s) ⊦ ⌜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)

Proof step 69 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: IOtrace[IOrefine-def-RP-traceA], name:frag-split-new, seq:⊦ ¬ # α < ⌜n⌝ ∧ ⌜n⌝ < # σ → ( pafrag(PAIOAut(startf, stepf))(σ, α) ↔ pafrag*(PAIOAut(startf, stepf))(σ to n + 1, α to n) ∧ pafrag(PAIOAut(startf, stepf))(σ from n, α from n)), subst:[startf, α, σ, stepf, n] → [painit(init, ainit), ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , pastep(step, astep), n]

Additional information

Used terms: pastep(step, astep), n, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , painit(init, ainit), ⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝

Proof step 70 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ ¬ # α < ⌜n⌝ ∧ ⌜n⌝ < # σ → (pafrag(PAIOAut(startf, stepf))(σ, α) ↔ pafrag*(PAIOAut(startf, stepf))(σ to n + 1, α to n) ∧ pafrag(PAIOAut(startf, stepf))(σ from n, α from n))

A spec-lemma

Proof step 71 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ #(⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) < ⌜n⌝ ∧ ⌜n⌝ < # (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) → ( pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ↔ pafrag*(PAIOAut(painit(init, ainit), pastep(step, astep))) ( ⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n + 1, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n) ∧ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) ( ⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ finp(σ to m); (s) ⊦ pafrag*(PAIOAut(startf, stepf))(σ, β) ↔ pafrag(PAIOAut(startf, stepf))(σ, β) ∧ finp(β); (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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ¬ m + n < m; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ ¬ n∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ ⌜n1⌝ + ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n1 + n + m < n0; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # mklist(a, n) = n; (s)

Proof step 72 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n + 1, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n) ∧ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n)

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 73 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n + 1, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[IOrefine-def-RP-traceA-IOstatestream], name: append-to-gr-01, seq: ⊦ # x < m → ⌜x⌝ + σ to m = ⌜x⌝ + (σ to (m - # x)), subst:[x, σ, m] → [lift((⌜as '⌝ + aσ to n).l, s), ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n + 1], <all paths>

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ¬ 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 ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: lift((⌜as '⌝ + aσ to n).l, s), ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n + 1

Proof step 74 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ # x < m → ⌜x⌝ + σ to m = ⌜x⌝ + (σ to (m - # x))

A spec-lemma

Proof step 75 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, # lift((⌜as '⌝ + aσ to n).l, s) < n + 1, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) ( ⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ( ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to (n + 1 - # lift((⌜as '⌝ + aσ to n).l, s))), ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] ⊦ ⌜a '⌝ + σ to 1 = ⌜a '⌝ ; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m + n - m = n; (s) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = 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∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ ¬ n < n; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s)

Proof step 76 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ to n) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[IOrefine-def-RP-actionstream], name: append-to-le-01, seq: ⊦ m ≤ # x → ⌜x⌝ + σ to m = ⌜x to m⌝ , subst:[x, σ, m] → [mklist(τ, n), ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n], <all paths>

Additional information

Used simplifier rules: ⊦ # mklist(a, n) = n; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ ¬ n < n; (s) Used terms: mklist(τ, n), ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n

Proof step 77 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ m ≤ # x → ⌜x⌝ + σ to m = ⌜x to m⌝

A spec-lemma

Proof step 78 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), n ≤ # mklist(τ, n), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ , ⌜mklist(τ, n) to n⌝ ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m ≤ m; (s) ⊦ # mklist(a, n) = n; (s)

Proof step 79 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ , ⌜mklist(τ, n) to n⌝ ) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[IOrefine-def-RP-actionstream], name: fin-finlen-tolen, seq: ⊦ # x = n → x to n = x, subst:[x, n] → [mklist(τ, n), n], <all paths>

Additional information

Used simplifier rules: ⊦ # mklist(a, n) = n; (s) Used terms: mklist(τ, n), n

Proof step 80 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ # x = n → x to n = x

A spec-lemma

Proof step 81 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # mklist(τ, n) = n, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ , ⌜mklist(τ, n)⌝ ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # mklist(a, n) = n; (s)

Proof step 82 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep)))(⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ , ⌜mklist(τ, n)⌝ ) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[IOrefine-def-RP-traceA], name: frag, seq:⊦ pafrag(PAIOAut(startf, stepf))(σ, β) ↔ # σ = # β + ⌜1⌝ ∧ (∀ n. ⌜n⌝ < # β → stepf(σ[n], β[n], σ[n +1])), subst:[startf, stepf, σ, β] → [painit(init, ainit), pastep(step, astep), ⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ , ⌜mklist(τ, n)⌝ ], <all paths>

Additional information

Used terms: painit(init, ainit), pastep(step, astep), ⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ , ⌜mklist(τ, n)⌝

Proof step 83 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 84 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), #(⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ ) ≠ # ⌜mklist(τ, n)⌝ + ⌜1⌝ ∨ (∃ n0. ¬ ( ⌜n0⌝ < # ⌜mklist(τ, n)⌝ → pastep(step, astep) ((⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ )[n0], ⌜mklist(τ, n)⌝ [n0], (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ )[n0 +1]))) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] ⊦ (⌜x⌝ + ⌜x0⌝ )[m] = (x + x0)[m]; (s) ⊦ m +1 = m + 1; (s) ⊦ m < n → mklist(a, n)[m] = a; (s) ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ # mklist(a, n) = n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (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⌝ = ⌜n0⌝ ↔ n = n0; (s) ⊦ 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) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ ¬ n∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 85 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 < n, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep) ((lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0], τ, (lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0 + 1]) ⊦

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σ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n], <all paths>

Additional information

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

Proof step 86 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 87 from proof finfrag-repl-frag (previous step) (back to tree)

#(⌜as '⌝ + (aσ to n)) = #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n) + ⌜1⌝ , # pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep) ((lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0], τ, (lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0 + 1]), ∀ n0. ⌜n0⌝ < #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n) → astep((⌜as '⌝ + (aσ to n))[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n)[n0], (⌜as '⌝ + (aσ to n))[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 m < n, ¬ # σ < ⌜n⌝ ⊦ (σ to n)[m] = σ[m]; (s) ⊦ n∞ < n∞0 → ¬ n∞0 < n∞; (s) ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) ⊦ m +1 = m + 1; (s) m < n, ¬ # σ < ⌜n⌝ ⊦ (σ to n)[m] = σ[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∞ + n∞1 < n∞1; (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) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; (s) ⊦ ⌜n⌝ = ⌜n0⌝ ↔ n = n0; (s) ⊦ n∞ + ⌜0⌝ = n∞; (s) ⊦ m ≤ n → (⌜(* n)⌝ + n∞1 = ⌜(* m)⌝ + n∞2 ↔ ⌜n - m⌝ + n∞1 = n∞2); (s) ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 88 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 < n, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep) ((lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0], τ, (lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del[IOrefine-def-RP-traceA-IOstatestream], name: get-append-less, seq: ⊦ n < # x → (x + y)[n] = x[n], subst:[x, y, n] → [lift((⌜as '⌝ + aσ to n).l, s), (s ×a (⌜as '⌝ + aσ)[n])', n0], <all paths>

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ¬ 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 ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m < n → (n ≤ m ↔ false); (s) Used terms: lift((⌜as '⌝ + aσ to n).l, s), (s ×a (⌜as '⌝ + aσ)[n])', n0

Proof step 89 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 90 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, n0 < # lift((⌜as '⌝ + aσ to n).l, s), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(lift((⌜as '⌝ + aσ to n).l, s)[n0], τ, (lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = 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∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 91 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(lift((⌜as '⌝ + aσ to n).l, s)[n0], τ, (lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del[IOrefine-def-RP-traceA-IOstatestream], name: get-append-less, seq: ⊦ n < # x → (x + y)[n] = x[n], subst:[x, y, n] → [lift((⌜as '⌝ + aσ to n).l, s), (s ×a (⌜as '⌝ + aσ)[n])', n0 + 1], <all paths>

Additional information

Used terms: lift((⌜as '⌝ + aσ to n).l, s), (s ×a (⌜as '⌝ + aσ)[n])', n0 + 1

Proof step 92 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 93 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 < n, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ n0 + 1 < # lift((⌜as '⌝ + aσ to n).l, s), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(lift((⌜as '⌝ + aσ to n).l, s)[n0], τ, (lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])')[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; lift-rec: ⊦ lift(as ' + asl, s) = (s ×a as)' + lift(asl, s); c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < n + 1 ↔ ¬ n < m; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[traceA-IOstatestream] finp(σ) ⊦ (⌜a '⌝ + σ).l = a ' + σ.l; (s) ⊦ finp(σ to m); (s) ⊦ a + σ = ⌜a '⌝ + σ; (s) ⊦ ⌜a '⌝ + σ to n + 1 = a + (σ to n); (s) ⊦ (a ' + x)[n + 1] = x[n]; (s) ⊦ ⌜a '⌝ + σ from n + 1 = σ from n; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ ¬ n < n; (s) ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s) lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic eqle-one: ⊦ m = n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat ⊦ m < n → (n ≤ m + 1 ↔ n = m + 1); (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = 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∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 94 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n0⌝ + ⌜1⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n0, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0 from n0 + 1), afrag(AIOAut(ainit, astep))(⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) ((⌜(s ×a as)'⌝ + ⌜lift((aσ to n0).l, s)⌝ ) + ⌜(s ×a aσ[n0])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜mklist(τ, n0 + 1)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), ¬ pastep(step, astep)(((s ×a as)' + lift((aσ to n0).l, s))[n0], τ, (lift((aσ to n0).l, s) + (s ×a aσ[n0])')[n0]), ∀ n1. ¬ n0 < n1 → astep((⌜as '⌝ + (aσ to n0 + 1))[n1], (⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del[IOrefine-def-RP-traceA-IOstatestream], name: get-append-grt, seq: ⊦ ¬ n < # x → (x + y)[n] = y[n - # x], subst:[x, y, n] → [(s ×a as)', lift((aσ to n0).l, s), n0], <all paths>

Additional information

Used terms: (s ×a as)', lift((aσ to n0).l, s), n0

Proof step 95 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 96 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 < # (s ×a as)', ⌜n0⌝ + ⌜1⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0), afrag(AIOAut(ainit, astep))(aσ from n0, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0 from n0 + 1), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) ((⌜(s ×a as)'⌝ + ⌜lift((aσ to n0).l, s)⌝ ) + ⌜(s ×a aσ[n0])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜mklist(τ, n0 + 1)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), ¬ pastep(step, astep)(((s ×a as)' + lift((aσ to n0).l, s))[n0], τ, (lift((aσ to n0).l, s) + (s ×a aσ[n0])')[n0]), ∀ n1. ¬ n0 < n1 → astep((⌜as '⌝ + (aσ to n0 + 1))[n1], (⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-base: ⊦ lift([], s) = []; append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ (⌜a '⌝ + σ)[0] = a; (s) ⊦ mklist(a, 1) = a '; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ (⌜a '⌝ + σ)[0] = a; (s) ⊦ 0 < m ↔ m ≠ 0; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] ⊦ mklist(a, 1) = a '; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] ⊦ [] + σ = σ; (s) ⊦ ⌜[]⌝ = []; (s) ⊦ [].l = []; (s) ⊦ σ to 0 = []; (s) ⊦ a '[0] = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ [] + x = x; (s) ⊦ x + [] = x; (s) ⊦ ⌜a '⌝ + σ from 1 = σ; (s) ⊦ σ from 0 = σ; (s) ⊦ # σ = ⌜0⌝ ↔ σ = []; (s) ⊦ ⌜1⌝ < n∞ ↔ n∞ ≠ ⌜0⌝ ∧ n∞ ≠ ⌜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)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ # a ' = 0 +1; (s)

Proof step 97 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), # aσ ≠ ⌜1⌝ , a0 ≠ τ, aσ ≠ [], afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜τ '⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[1] '⌝ + (aσ from 2), α0), afrag(AIOAut(ainit, astep))(aσ, ⌜a0 '⌝ + α0), astep(as, τ, aσ[0]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[1] '⌝ + (aσ from 2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[1] '⌝ + (aσ from 2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜(s ×a aσ[0])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[1] '⌝ + (aσ from 2), α0)⌝ , ⌜τ '⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[1] '⌝ + (aσ from 2), α0)⌝ ), ¬ pastep(step, astep)(s ×a as, τ, s ×a aσ[0]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PA-IO-Automaton, name: pastep-def, seq:⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a)), subst:[s0, as, pa, as0, astep, rstep, s] → [s, as, τ, aσ[0], astep, step, s], <all paths>

Additional information

Used simplifier rules: ⊦ rren(ra) = τ ↔ ra = τ; (s) ⊦ ¬ aext(τ); (s) ⊦ ren(a) = τ ↔ a = τ; (s) ⊦ ¬ rext(τ); (s) Used terms: astep, s, as, aσ[0], step, s, τ

Proof step 98 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a))

A spec-lemma

Proof step 99 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n0⌝ + ⌜1⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0), afrag(AIOAut(ainit, astep))(aσ from n0, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0 from n0 + 1), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ n0 < # (s ×a as)', ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) ((⌜(s ×a as)'⌝ + ⌜lift((aσ to n0).l, s)⌝ ) + ⌜(s ×a aσ[n0])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜mklist(τ, n0 + 1)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), ¬ pastep(step, astep)(lift((aσ to n0).l, s)[n0 - # (s ×a as)'], τ, (lift((aσ to n0).l, s) + (s ×a aσ[n0])')[n0]), ∀ n1. ¬ n0 < n1 → astep((⌜as '⌝ + (aσ to n0 + 1))[n1], (⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # a ' = 0 +1; (s) ⊦ m < 1 ↔ m = 0; (s)

Proof step 100 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 ≠ 0, ⌜n0⌝ + ⌜1⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n0, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0 from n0 + 1), afrag(AIOAut(ainit, astep))(⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) ((⌜(s ×a as)'⌝ + ⌜lift((aσ to n0).l, s)⌝ ) + ⌜(s ×a aσ[n0])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜mklist(τ, n0 + 1)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), ¬ pastep(step, astep)(lift((aσ to n0).l, s)[n0 - 1], τ, (lift((aσ to n0).l, s) + (s ×a aσ[n0])')[n0]), ∀ n1. ¬ n0 < n1 → astep((⌜as '⌝ + (aσ to n0 + 1))[n1], (⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

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, n2]

Additional information

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

Proof step 101 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, n0 = n2 + 1, ren(a0) = rren(ra0), a0 ≠ τ, n0 ≠ 0, ⌜n0⌝ + ⌜1⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0), afrag(AIOAut(ainit, astep))(aσ from n0, ⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0 from n0 + 1), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) ((⌜(s ×a as)'⌝ + ⌜lift((aσ to n0).l, s)⌝ ) + ⌜(s ×a aσ[n0])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ , ⌜mklist(τ, n0 + 1)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n0 + 1] '⌝ + (aσ from 2 + n0), α0)⌝ ), ¬ pastep(step, astep)(lift((aσ to n0).l, s)[n2], τ, (lift((aσ to n0).l, s) + (s ×a aσ[n0])')[n0]), ∀ n1. ¬ n0 < n1 → astep((⌜as '⌝ + (aσ to n0 + 1))[n1], (⌜mklist(τ, n0 + 1)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

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] a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-actionstream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] 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) ⊦ m + 1 ≠ 0; (s)

Proof step 102 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ¬ pastep(step, astep)(lift((aσ to n2 + 1).l, s)[n2], τ, (lift((aσ to n2 + 1).l, s) + (s ×a aσ[n2 + 1])')[n2 + 1]), ∀ n1. ¬ n2 + 1 < n1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name: lift-get, seq: ⊦ n < # asl → lift(asl, s)[n] = s ×a asl[n], subst:[asl, s, n] → [(aσ to n2 + 1).l, s, n2], <all paths>

Additional information

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

Proof step 103 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ n < # asl → lift(asl, s)[n] = s ×a asl[n]

Lemma lift-get

Proof step 104 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, n2 < # (aσ to n2 + 1).l, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ¬ pastep(step, astep)(s ×a (aσ to n2 + 1).l[n2], τ, (lift((aσ to n2 + 1).l, s) + (s ×a aσ[n2 + 1])')[n2 + 1]), ∀ n1. ¬ n2 + 1 < n1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 105 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ¬ pastep(step, astep)(s ×a aσ[n2], τ, (lift((aσ to n2 + 1).l, s) + (s ×a aσ[n2 + 1])')[n2 + 1]), ∀ n1. ¬ n2 + 1 < n1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del[IOrefine-def-RP-traceA-IOstatestream], name: get-append-grt, seq: ⊦ ¬ n < # x → (x + y)[n] = y[n - # x], subst:[x, y, n] → [lift((aσ to n2 + 1).l, s), (s ×a aσ[n2 + 1])', n2 + 1], <all paths>

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ # σ < ⌜n⌝ + ⌜1⌝ ↔ ¬ ⌜n⌝ < # σ; (s) lsle-trans: ⊦ n∞ < n∞1 ∧ ¬ n∞2 < n∞1 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ⌜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 ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: lift((aσ to n2 + 1).l, s), (s ×a aσ[n2 + 1])', n2 + 1

Proof step 106 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 107 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ n2 + 1 < # lift((aσ to n2 + 1).l, s), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ¬ pastep(step, astep)(s ×a aσ[n2], τ, (s ×a aσ[n2 + 1])'[n2 + 1 - # lift((aσ to n2 + 1).l, s)]), ∀ n1. ¬ n2 + 1 < n1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ a '[0] = a; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m - m = 0; (s) ⊦ m + n - n + n1 = m - n1; (s) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ¬ m + n < m; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) lsle-trans: ⊦ n∞ < n∞1 ∧ ¬ n∞2 < n∞1 → n∞ < n∞2; (forward) from specification nat-inf ⊦ # σ < ⌜n⌝ + ⌜1⌝ ↔ ¬ ⌜n⌝ < # σ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ m + n < m + n0 ↔ n < n0; (s)

Proof step 108 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ¬ pastep(step, astep)(s ×a aσ[n2], τ, s ×a aσ[n2 + 1]), ∀ n1. ¬ n2 + 1 < n1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PA-IO-Automaton, name: pastep-def, seq:⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a)), subst:[s0, as, pa, as0, astep, rstep, s] → [s, aσ[n2], τ, aσ[n2 + 1], astep, step, s], <all paths>

Additional information

Used terms: astep, s, aσ[n2], aσ[n2 + 1], step, s, τ

Proof step 109 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a))

A spec-lemma

Proof step 110 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ∀ n1. ¬ n2 + 1 < n1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), ∀ a, ra. ¬(step(s, ra, s) ∧ τ ≠ τ ∧ τ = rren(ra) ∧ astep(aσ[n2], a, aσ[n2 + 1]) ∧ τ = ren(a)), s ≠ s ∨ (∀ a. ¬(astep(aσ[n2], a, aσ[n2 + 1]) ∧ τ = ren(a))) ∨ rext(τ), aσ[n2] ≠ aσ[n2 + 1] ∨ (∀ ra. ¬(step(s, ra, s) ∧ τ = rren(ra))) ∨ aext(τ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ rext(τ); (s) ⊦ ren(a) = τ ↔ a = τ; (s) ⊦ ¬ aext(τ); (s) ⊦ rren(ra) = τ ↔ ra = τ; (s)

Proof step 111 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n2], τ, aσ[n2 + 1]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ∀ n1. ¬ n2 + 1 < n1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), aσ[n2] ≠ aσ[n2 + 1] ∨ ¬ step(s, τ, s) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

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

Additional information

Used terms: n2 + 1

Proof step 112 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n2], τ, aσ[n2 + 1]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), ¬ n2 + 1 < n2 + 1 → astep((⌜as '⌝ + (aσ to 2 + n2))[n2 + 1], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n2 + 1], aσ[n2 + 1]), aσ[n2] ≠ aσ[n2 + 1] ∨ ¬ step(s, τ, s) ⊦

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

Proof step 113 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), astep(aσ[n2], (⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0)[n2 + 1], aσ[n2 + 1]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n2], τ, aσ[n2 + 1]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), aσ[n2] ≠ aσ[n2 + 1] ∨ ¬ step(s, τ, s) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 114 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 115 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, ⌜n2 + 1⌝ < # ⌜mklist(τ, 2 + n2)⌝ , afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), astep(aσ[n2], ⌜mklist(τ, 2 + n2)⌝ [n2 + 1], aσ[n2 + 1]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n2], τ, aσ[n2 + 1]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), aσ[n2] ≠ aσ[n2 + 1] ∨ ¬ step(s, τ, s) ⊦

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; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) ⊦ m ≤ n → (⌜(* m)⌝ + n∞2 < ⌜(* n)⌝ + n∞1 ↔ n∞2 < ⌜n - m⌝ + n∞1); (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) ⊦ # mklist(a, n) = n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜x⌝ [n] = x[n]; (s)

Proof step 116 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜2⌝ + ⌜n2⌝ < # aσ, afrag(AIOAut(ainit, astep))(aσ from n2 + 1, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0 from 2 + n2), afrag(AIOAut(ainit, astep))(⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, 2 + n2)⌝ + ⌜a0 '⌝ + α0), astep(aσ[n2], mklist(τ, 2 + n2)[n2 + 1], aσ[n2 + 1]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep(aσ[n2], τ, aσ[n2 + 1]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a as)'⌝ + ⌜lift((aσ to n2 + 1).l, s)⌝ + ⌜(s ×a aσ[n2 + 1])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ , ⌜mklist(τ, 2 + n2)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[2 + n2] '⌝ + (aσ from 3 + n2), α0)⌝ ), aσ[n2] ≠ aσ[n2 + 1] ∨ ¬ step(s, τ, s) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-del[actionstream], name: get-mklist-01, seq: ⊦ m < n → mklist(a, n)[m] = a, subst:[a, n, m] → [τ, 2 + n2, n2 + 1], <all paths>

Additional information

Used simplifier rules: ⊦ m + n < m + n0 ↔ n < n0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: τ, 2 + n2, n2 + 1

Proof step 117 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ m < n → mklist(a, n)[m] = a

A spec-lemma

Proof step 118 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 < n, ⌜n⌝ < # aσ, n0 + 1 < # lift((⌜as '⌝ + aσ to n).l, s), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(lift((⌜as '⌝ + aσ to n).l, s)[n0], τ, lift((⌜as '⌝ + aσ to n).l, s)[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = 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∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 119 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, n0 + 1 < n, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(lift((⌜as '⌝ + aσ to n).l, s)[n0], τ, lift((⌜as '⌝ + aσ to n).l, s)[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name: lift-get, seq: ⊦ n < # asl → lift(asl, s)[n] = s ×a asl[n], subst:[asl, s, n] → [(⌜as '⌝ + aσ to n).l, s, n0], <all paths>

Additional information

Used simplifier rules: ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ¬ 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 ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m < n → (n ≤ m ↔ false); (s) Used terms: (⌜as '⌝ + aσ to n).l, s, n0

Proof step 120 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ n < # asl → lift(asl, s)[n] = s ×a asl[n]

Lemma lift-get

Proof step 121 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 + 1 < n, n0 < n, ⌜n⌝ < # aσ, n0 < # (⌜as '⌝ + aσ to n).l, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ to n).l[n0], τ, lift((⌜as '⌝ + aσ to n).l, s)[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: m < n, ¬ # σ < ⌜n⌝ ⊦ (σ to n).l[m] = σ[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∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s)

Proof step 122 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 + 1 < n, n0 < n, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n0], τ, lift((⌜as '⌝ + aσ to n).l, s)[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name: lift-get, seq: ⊦ n < # asl → lift(asl, s)[n] = s ×a asl[n], subst:[asl, s, n] → [(⌜as '⌝ + aσ to n).l, s, n0 + 1], <all paths>

Additional information

Used simplifier rules: ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ¬ 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 ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m < n → (n ≤ m + 1 ↔ n = m + 1); (s) eqle-one: ⊦ m = n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: (⌜as '⌝ + aσ to n).l, s, n0 + 1

Proof step 123 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ n < # asl → lift(asl, s)[n] = s ×a asl[n]

Lemma lift-get

Proof step 124 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 < n, n0 + 1 < n, ⌜n⌝ < # aσ, n0 + 1 < # (⌜as '⌝ + aσ to n).l, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n0], τ, s ×a (⌜as '⌝ + aσ to n).l[n0 + 1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

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 < n, ¬ # σ < ⌜n⌝ ⊦ (σ to n).l[m] = σ[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∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s)

Proof step 125 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, n0 + 1 < n, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n0], τ, s ×a aσ[n0]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PA-IO-Automaton, name: pastep-def, seq:⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a)), subst:[s0, as, pa, as0, astep, rstep, s] → [s, (⌜as '⌝ + aσ)[n0], τ, aσ[n0], astep, step, s], <all paths>

Additional information

Used terms: astep, s, (⌜as '⌝ + aσ)[n0], aσ[n0], step, s, τ

Proof step 126 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a))

A spec-lemma

Proof step 127 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 + 1 < n, n0 < n, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), ∀ a, ra. ¬(step(s, ra, s) ∧ τ ≠ τ ∧ τ = rren(ra) ∧ astep((⌜as '⌝ + aσ)[n0], a, aσ[n0]) ∧ τ = ren(a)), s ≠ s ∨ (∀ a. ¬(astep((⌜as '⌝ + aσ)[n0], a, aσ[n0]) ∧ τ = ren(a))) ∨ rext(τ), (⌜as '⌝ + aσ)[n0] ≠ aσ[n0] ∨ (∀ ra. ¬(step(s, ra, s) ∧ τ = rren(ra))) ∨ aext(τ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ rext(τ); (s) ⊦ ren(a) = τ ↔ a = τ; (s) ⊦ ¬ aext(τ); (s) ⊦ rren(ra) = τ ↔ ra = τ; (s)

Proof step 128 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, n0 + 1 < n, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((⌜as '⌝ + aσ)[n0], τ, aσ[n0]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), (⌜as '⌝ + aσ)[n0] ≠ aσ[n0] ∨ ¬ step(s, τ, s) ⊦

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 129 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 130 from proof finfrag-repl-frag (previous step) (back to tree)

#(⌜as '⌝ + aσ) = #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) + ⌜1⌝ , # pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 + 1 < n, n0 < n, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((⌜as '⌝ + aσ)[n0], τ, aσ[n0]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), ∀ n0. ⌜n0⌝ < #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], (⌜as '⌝ + aσ)[n0 +1]), (⌜as '⌝ + aσ)[n0] ≠ aσ[n0] ∨ ¬ step(s, τ, s) ⊦

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 131 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, n0 + 1 < n, afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((⌜as '⌝ + aσ)[n0], τ, aσ[n0]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), ∀ n1. ¬ ⌜n⌝ + # α0 < ⌜n1⌝ → astep((⌜as '⌝ + aσ)[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), (⌜as '⌝ + aσ)[n0] ≠ aσ[n0] ∨ ¬ step(s, τ, s) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 19 terms: n0 abort: F discard: F computed: F

Additional information

Used terms: n0

Proof step 132 from proof finfrag-repl-frag (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, n0 + 1 < n, n0 < n, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((⌜as '⌝ + aσ)[n0], τ, aσ[n0]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), ∀ n1. ¬ ⌜n⌝ + # α0 < ⌜n1⌝ → astep((⌜as '⌝ + aσ)[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), (⌜as '⌝ + aσ)[n0] ≠ aσ[n0] ∨ ¬ step(s, τ, s) ⊦

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)

Proof step 133 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, n0 < n, n0 + 1 < n, afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ astep((⌜as '⌝ + aσ)[n0], τ, aσ[n0]), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), ∀ n1. n1 < n → astep((⌜as '⌝ + (aσ to n))[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), ∀ n1. ¬ ⌜n⌝ + # α0 < ⌜n1⌝ → astep((⌜as '⌝ + aσ)[n1], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n1], aσ[n1]), (⌜as '⌝ + aσ)[n0] ≠ aσ[n0] ∨ ¬ step(s, τ, s) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 134 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 135 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦

User applied rule weakening

And obtained the following new goals

Rule argument

poslist: left 16

Additional information

Proof step 136 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n, ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[IOrefine-def-RP-traceA-IOstatestream], name: append-from-ge-01, seq: ⊦ # x ≤ m → ⌜x⌝ + σ from m = σ from (m - # x), subst:[x, σ, m] → [lift((⌜as '⌝ + aσ to n).l, s), ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n], <all paths>

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # a ' = 0 +1; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf ⊦ ¬ 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 ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ ¬ n < n; (s) Used terms: lift((⌜as '⌝ + aσ to n).l, s), ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n

Proof step 137 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ # x ≤ m → ⌜x⌝ + σ from m = σ from (m - # x)

A spec-lemma

Proof step 138 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), # lift((⌜as '⌝ + aσ to n).l, s) ≤ n, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from (n - # lift((⌜as '⌝ + aσ to n).l, s)), ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from n) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: lift-size: ⊦ # lift(asl, s) = # asl; ⊦ σ from 0 = σ; (s) ⊦ m - m = 0; (s) ¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = 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∞ + n∞1 < n∞1; (s) ls-trans: ⊦ n∞ < n∞1 ∧ n∞1 < n∞2 → n∞ < n∞2; (forward) from specification nat-inf append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ m ≤ m; (s)

Proof step 139 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[IOrefine-def-RP-actionstream], name: append-from-ge-01, seq: ⊦ # x ≤ m → ⌜x⌝ + σ from m = σ from (m - # x), subst:[x, σ, m] → [mklist(τ, n), ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n], <all paths>

Additional information

Used simplifier rules: ⊦ # mklist(a, n) = n; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ ¬ n < n; (s) Used terms: mklist(τ, n), ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , n

Proof step 140 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ # x ≤ m → ⌜x⌝ + σ from m = σ from (m - # x)

A spec-lemma

Proof step 141 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), # mklist(τ, n) ≤ n, ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ from (n - # mklist(τ, n))) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ σ from 0 = σ; (s) ⊦ m - m = 0; (s) ⊦ # mklist(a, n) = n; (s) ⊦ m ≤ m; (s)

Proof step 142 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: IOtrace[IOrefine-def-RP-traceA], name: frag-rec, seq:⊦ pafrag(PAIOAut(startf, stepf))(⌜s '⌝ + σ, ⌜a '⌝ + α) ↔ stepf(s, a, hd(σ)) ∧ pafrag(PAIOAut(startf, stepf))(σ, α), subst:[startf, a, stepf, α, s, σ] → [painit(init, ainit), rren(ra0), pastep(step, astep), ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , s ×a (⌜as '⌝ + aσ)[n], ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ], <all paths>

Additional information

Used terms: pastep(step, astep), ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , rren(ra0), painit(init, ainit), ⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , s ×a (⌜as '⌝ + aσ)[n]

Proof step 143 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 144 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n], rren(ra0), hd(⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ )) ∨ ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 145 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n], rren(ra0), hd(⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ )) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:finfrag-repls-head, seq: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)⌝ ^ ⊑ α ^ ⊦ repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α) ≠ [] ∧ hd(repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)) = s ×a as, subst:[cs, s, as, α, init, cinit, cstep, pal, ainit, astep, pcsl, aσ, step] → [cs0, s0, aσ[n], α0, init, cinit, cstep, pal1, ainit, astep, pcsl, aσ from n + 1, step]

Additional information

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

Proof step 146 from proof finfrag-repl-frag (previous step) (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)⌝ ^ ⊑ α ^ ⊦ repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α) ≠ [] ∧ hd(repls((s ×c cs)' + pcsl, pal, ⌜as '⌝ + aσ, α)) = s ×a as

Lemma finfrag-repls-head

Proof step 147 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, hd(repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)) = s0 ×a aσ[n], ren(a0) = rren(ra0), a0 ≠ τ, repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) ≠ [], ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n], rren(ra0), hd(⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ )) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-data[IOrefine-def-RP-traceA-IOstatestream], name:elim-add, seq: ⊦ x ≠ [] → (head = hd(x) ∧ tail = tl(x) ↔ x = head + tail), subst:[x, head, tail] → [repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0), pas, x0]

Additional information

Used simplifier rules: ⊦ x ≠ [] → (head = hd(x) ∧ tail = tl(x) ↔ x = head + tail); (elim) Used terms: repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0), head, tail

Proof step 148 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, pas = s0 ×a aσ[n], ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = pas + x0, a0 ≠ τ, repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) ≠ [], ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n], rren(ra0), hd(⌜repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α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-traceA-IOstatestream] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceA-IOstatestream] ⊦ hd(⌜a '⌝ + ⌜x⌝ ) = a; (s) ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ a ' + x ≠ []; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ a + x = a ' + x; (s)

Proof step 149 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ pastep(step, astep)(s ×a (⌜as '⌝ + aσ)[n], rren(ra0), s0 ×a aσ[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: PA-IO-Automaton, name: pastep-def, seq:⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a)), subst:[s0, as, pa, as0, astep, rstep, s] → [s0, (⌜as '⌝ + aσ)[n], rren(ra0), aσ[n], astep, step, s], <all paths>

Additional information

Used terms: astep, s0, (⌜as '⌝ + aσ)[n], aσ[n], step, s, rren(ra0)

Proof step 150 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ pastep(rstep, astep)(s ×a as, pa, s0 ×a as0) ↔ s = s0 ∧ (∃ a. astep(as, a, as0) ∧ pa = ren(a)) ∧ ¬ rext(pa) ∨ as = as0 ∧ (∃ ra. rstep(s, ra, s0) ∧ pa = rren(ra)) ∧ ¬ aext(pa) ∨ (∃ a, ra. rstep(s, ra, s0) ∧ pa ≠ τ ∧ pa = rren(ra) ∧ astep(as, a, as0) ∧ pa = ren(a))

A spec-lemma

Proof step 151 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ∀ a, ra. ¬(step(s, ra, s0) ∧ rren(ra0) ≠ τ ∧ rren(ra0) = rren(ra) ∧ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∧ rren(ra0) = ren(a)), s ≠ s0 ∨ (∀ a. ¬(astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∧ rren(ra0) = ren(a))) ∨ rext(rren(ra0)), (⌜as '⌝ + aσ)[n] ≠ aσ[n] ∨ (∀ ra. ¬(step(s, ra, s0) ∧ rren(ra0) = rren(ra))) ∨ aext(rren(ra0)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 152 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ra0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ∀ a. ¬ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∨ rren(ra0) ≠ ren(a), aext(rren(ra0)) ∨ (⌜as '⌝ + aσ)[n] ≠ aσ[n] ⊦

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 153 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 154 from proof finfrag-repl-frag (previous step) (back to tree)

#(⌜as '⌝ + aσ) = #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) + ⌜1⌝ , # pcsl = # pal1, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ra0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ∀ a. ¬ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∨ rren(ra0) ≠ ren(a), ∀ n0. ⌜n0⌝ < #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], (⌜as '⌝ + aσ)[n0 +1]), aext(rren(ra0)) ∨ (⌜as '⌝ + aσ)[n] ≠ aσ[n] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[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 155 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ra0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ∀ a. ¬ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∨ rren(ra0) ≠ ren(a), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), aext(rren(ra0)) ∨ (⌜as '⌝ + aσ)[n] ≠ aσ[n] ⊦

User applied rule all left

And obtained the following new goals

Rule argument

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

Additional information

Used terms: n

Proof step 156 from proof finfrag-repl-frag (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl = # pal1, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ra0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n⌝ + # α0 < ⌜n⌝ → astep((⌜as '⌝ + aσ)[n], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n], aσ[n]), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), ∀ a. ¬ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∨ rren(ra0) ≠ ren(a), aext(rren(ra0)) ∨ (⌜as '⌝ + aσ)[n] ≠ aσ[n] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ¬ n∞ + n∞1 < n∞1; (s)

Proof step 157 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ra0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), astep((⌜as '⌝ + aσ)[n], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n], aσ[n]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ∀ a. ¬ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∨ rren(ra0) ≠ ren(a), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), aext(rren(ra0)) ∨ (⌜as '⌝ + aσ)[n] ≠ aσ[n] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: ⊦ ⌜x⌝ [n] = x[n]; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # mklist(a, n) = n; (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ ¬ n < n; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] Used terms: ⌜mklist(τ, n)⌝ , ⌜a0 '⌝ + α0, n

Proof step 158 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof step 159 from proof finfrag-repl-frag (previous step) (back to tree)

# aσ = ⌜1⌝ + ⌜n⌝ + # α0, # pcsl = # pal1, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ra0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), astep((⌜as '⌝ + aσ)[n], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n], aσ[n]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜n⌝ < # ⌜mklist(τ, n)⌝ , ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), ∀ a. ¬ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∨ rren(ra0) ≠ ren(a), aext(rren(ra0)) ∨ (⌜as '⌝ + aσ)[n] ≠ aσ[n] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 160 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, # aσ = ⌜1⌝ + ⌜n⌝ + # α0, ren(a0) = rren(ra0), repls((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0) = (s0 ×a aσ[n])' + x0, a0 ≠ τ, ra0 ≠ τ, ⌜n⌝ < # aσ, afrag(AIOAut(ainit, astep))(⌜aσ[n] '⌝ + (aσ from n + 1), α0), afrag(AIOAut(ainit, astep))(⌜as '⌝ + (aσ to n), ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 to n), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n), astep((⌜as '⌝ + aσ)[n], a0, aσ[n]), cstep(cs, a0, cs0), nounsharedextC, pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜(s0 ×a aσ[n])'⌝ + ⌜x0⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal1, ⌜aσ[n] '⌝ + (aσ from n + 1), α0)⌝ ), pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ∀ a. ¬ astep((⌜as '⌝ + aσ)[n], a, aσ[n]) ∨ rren(ra0) ≠ ren(a), ∀ n0. ¬ ⌜n⌝ + # α0 < ⌜n0⌝ → astep((⌜as '⌝ + aσ)[n0], (⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0)[n0], aσ[n0]), aext(rren(ra0)) ∨ (⌜as '⌝ + aσ)[n] ≠ aσ[n] ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 18 terms: a0

Additional information

Used terms: a0

Proof step 161 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: IOtrace[traceA], name:frag-from-1, seq:⊦ afrag(AIOAut(startf, stepf))(σ, α) ∧ ¬ # α < ⌜n⌝ → (afrag(AIOAut(startf, stepf))(σ from n, α from n) ↔ true), subst:[n, α, startf, σ, stepf] → [n + 1, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0, ainit, ⌜as '⌝ + aσ, astep]

Additional information

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

Proof step 162 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ afrag(AIOAut(startf, stepf))(σ, α) ∧ ¬ # α < ⌜n⌝ → (afrag(AIOAut(startf, stepf))(σ from n, α from n) ↔ true)

A spec-lemma

Proof step 163 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs0), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s0), ⌜πa((s0 ×c cs0)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ afrag(AIOAut(ainit, astep))(aσ from n, α0), ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜lift((⌜as '⌝ + aσ to n).l, s)⌝ + ⌜(s ×a (⌜as '⌝ + aσ)[n])'⌝ + ⌜repls((s0 ×c cs0)' + pcsl, pal1, aσ from n, α0)⌝ , ⌜mklist(τ, n)⌝ + ⌜rren(ra0) '⌝ + ⌜repla((s0 ×c cs0)' + pcsl, pal1, aσ from n, α0)⌝ ), afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) ∧ ¬ #(⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0) < ⌜n + 1⌝ → (afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ from n + 1, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 from n + 1) ↔ true), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + aσ0, α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[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) 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∞1; (s) ⊦ n∞ + ⌜0⌝ = n∞; (s) ⊦ m ≤ n → (⌜(* m)⌝ + n∞2 < ⌜(* n)⌝ + n∞1 ↔ n∞2 < ⌜n - m⌝ + n∞1); (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜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)

Proof step 164 from proof finfrag-repl-frag (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[actionstream], name: append-from-ge-01, seq: ⊦ # x ≤ m → ⌜x⌝ + σ from m = σ from (m - # x), subst:[x, σ, m] → [mklist(τ, n), ⌜a0 '⌝ + α0, n + 1], <all paths>

Additional information

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

Proof step 165 from proof finfrag-repl-frag (previous step) (back to tree)

⊦ # x ≤ m → ⌜x⌝ + σ from m = σ from (m - # x)

A spec-lemma

Proof step 166 from proof finfrag-repl-frag (previous step) (back to tree)

# pcsl0 ≠ # pal, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa(pcs ' + pcsl0, pal)⌝ ^ ⊑ α ^, ¬ pafrag(PAIOAut(painit(init, ainit), pastep(step, astep))) (⌜repls(pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ , ⌜repla(pcs ' + pcsl0, pal, ⌜as '⌝ + aσ, α)⌝ ), ∀ ainit0, astep0, as0, aσ0, α0, init0, cinit0, step0, cstep0, pal0. ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + aσ0, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜pcsl0⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa(pcsl0, pal0)⌝ ^ ⊑ α0 ^ ∨ pafrag(PAIOAut(painit(init0, ainit0), pastep(step0, astep0))) (⌜repls(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ , ⌜repla(pcsl0, pal0, ⌜as0 '⌝ + aσ0, α0)⌝ ) ⊦

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), ⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜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), ⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜pal⌝

Proof step 167 from proof finfrag-repl-frag (previous step) (back to tree)

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

A spec-lemma

Proof Tree for finfrag-repl-frag (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