[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-repls-head (conclusion) (back to tree)

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

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: # pcsl = # pal

Additional information

Used formulas: # pcsl = # pal

Proof step 3 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule structural induction

And obtained the following new goals

Rule argument

term: pcsl

Additional information

Used simplifier rules: projaction-base: ⊦ πa((s ×c cs)', []) = []; repls-base: ⊦ repls((s ×c cs)', [], ⌜as '⌝ + aσ, α) = (s ×a as)'; Pcstatelist freely generated by [], +;; ⊦ # [] = 0; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ ⌜[]⌝ = []; (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 '⌝ , []); (s) ⊦ ⌜[]⌝ = []; (s) ⊦ [] ^ = []; (s) ⊦ [] ⊑ σ; (s) ⊦ a ' ≠ []; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ hd(a ') = a; (s) ⊦ st ×a as = st0 ×a as0 ↔ st = st0 ∧ as = as0; (ws)

Proof step 4 from proof finfrag-repls-head (previous step) (back to tree)

#(pcs + pcsl0) = # pal, afrag(AIOAut(ainit, astep))(⌜as '⌝ + aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s ×c cs)'⌝ + ⌜pcs + pcsl0⌝ , ⌜pal⌝ ), ⌜πa((s ×c cs)' + (pcs + pcsl0), pal)⌝ ^ ⊑ α ^, ∀ pal, ainit, astep, as, aσ, α, init, cinit, step, cstep, s, cs. # 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)⌝ ^ ⊑ α ^ → repls((s ×c cs)' + pcsl0, pal, ⌜as '⌝ + aσ, α) ≠ [] ∧ hd(repls((s ×c cs)' + pcsl0, pal, ⌜as '⌝ + aσ, α)) = s ×a as ⊦ repls((s ×c cs)' + (pcs + pcsl0), pal, ⌜as '⌝ + aσ, α) ≠ [] ∧ hd(repls((s ×c cs)' + (pcs + pcsl0), pal, ⌜as '⌝ + aσ, α)) = s ×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-traceC-IOstatestream] ⊦ a + x = a ' + x; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceC-IOstatestream] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s)

Proof step 5 from proof finfrag-repls-head (previous step) (back to tree)

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

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-repls-head (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 7 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: pal

Additional information

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

Proof step 8 from proof finfrag-repls-head (previous step) (back to tree)

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

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 9 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 10 from proof finfrag-repls-head (previous step) (back to tree)

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

A spec-lemma

Proof step 11 from proof finfrag-repls-head (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 12 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 13 from proof finfrag-repls-head (previous step) (back to tree)

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

A spec-lemma

Proof step 14 from proof finfrag-repls-head (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 15 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 7

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σ, α); ⊦ a ' + x ≠ []; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] ⊦ hd(a ' + x) = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ st ×a as = st0 ×a as0 ↔ st = st0 ∧ as = as0; (ws)

Proof step 16 from proof finfrag-repls-head (previous step) (back to tree)

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

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σ, α); 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 17 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule all left

And closed the goal!

Rule argument

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

Additional information

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

Proof step 18 from proof finfrag-repls-head (previous step) (back to tree)

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

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 19 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 20 from proof finfrag-repls-head (previous step) (back to tree)

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

Lemma remtau-split-one-pfx

Proof step 21 from proof finfrag-repls-head (previous step) (back to tree)

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

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, α); a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ hd(x + a ' + y) = hd(x + a '); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[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) ⊦ x + a ' + y ≠ []; (s)

Proof step 22 from proof finfrag-repls-head (previous step) (back to tree)

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

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-list-c, seq:x ≠ [] ⊦ a = hd(x) ∧ y = tl(x) ↔ x = a + y, subst:[x, a, y] → [lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])', pas, x0]

Additional information

Used simplifier rules: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ a ' ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] x ≠ [] ⊦ a = hd(x) ∧ y = tl(x) ↔ x = a + y; (elim) Used terms: lift((⌜as '⌝ + aσ to n).l, s) + (s ×a (⌜as '⌝ + aσ)[n])', pas, y

Proof step 23 from proof finfrag-repls-head (previous step) (back to tree)

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

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

Proof step 24 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule constructor cut

And closed the goal!

Rule argument

var: n

Additional information

Used simplifier rules: lift-base: ⊦ lift([], s) = []; lift-rec: ⊦ lift(as ' + asl, s) = (s ×a as)' + lift(asl, s); Nat freely generated by 0, +1;; ⊦ ⌜a '⌝ + σ to n + 1 = a + (σ to n); (s) ⊦ a + σ = ⌜a '⌝ + σ; (s) ⊦ finp(σ to m); (s) finp(σ) ⊦ (⌜a '⌝ + σ).l = a ' + σ.l; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[traceA-IOstatestream] ⊦ m +1 = m + 1; (s) ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) 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[traceA-IOstatestream] ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ σ to 0 = []; (s) ⊦ [].l = []; (s) ⊦ (⌜a '⌝ + σ)[0] = a; (s) ⊦ [] + x = x; (s) ⊦ a ' = b ' + x ↔ a = b ∧ x = []; (ws)

Proof step 25 from proof finfrag-repls-head (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 26 from proof finfrag-repls-head (previous step) (back to tree)

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

A spec-lemma

Proof Tree for finfrag-repls-head (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