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

⊦ nounsharedextC ∧ pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcsl⌝ , ⌜pal⌝ ) ∧ afrag(AIOAut(ainit, astep))(aσ, α) ∧ πa(⌜pcsl⌝ , ⌜pal⌝ ) ^ ⊑ α ^ → # repls(pcsl, pal, aσ, α) = # repla(pcsl, pal, aσ, α) + 1

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof repl-fin-size (previous step) (back to tree)

# repls(pcsl, pal, aσ, α) ≠ # repla(pcsl, pal, aσ, α) + 1, afrag(AIOAut(ainit, astep))(aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcsl⌝ , ⌜pal⌝ ), πa(⌜pcsl⌝ , ⌜pal⌝ ) ^ ⊑ α ^ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name: projaction-fin-def, seq: ⊦ # pcsl = # pal + 1 → πa(⌜pcsl⌝ , ⌜pal⌝ ) = ⌜πa(pcsl, pal)⌝ , subst:[pcsl, pal] → [pcsl, pal], <all paths>

Additional information

Used simplifier rules: ⊦ pcfrag(PCIOAut(startf, stepf))(⌜sl⌝ , ⌜al⌝ ) → (# sl = # al + 1 ↔ true); (ss) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: pcsl, pal

Proof step 3 from proof repl-fin-size (previous step) (back to tree)

⊦ # pcsl = # pal + 1 → πa(⌜pcsl⌝ , ⌜pal⌝ ) = ⌜πa(pcsl, pal)⌝

Lemma projaction-fin-def

Proof step 4 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: pcsl

Additional information

Used simplifier rules: Pcstatelist 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 5 from proof repl-fin-size (previous step) (back to tree)

# pcsl = # pal + 1, pcsl = pcs + pcsl0, # repls(pcsl, pal, aσ, α) ≠ # repla(pcsl, pal, aσ, α) + 1, afrag(AIOAut(ainit, astep))(aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcsl⌝ , ⌜pal⌝ ), ⌜πa(pcsl, pal)⌝ ^ ⊑ α ^ ⊦

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] ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ a + x = a ' + x; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m + n = m + n0 ↔ n = n0; (s) ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s)

Proof step 6 from proof repl-fin-size (previous step) (back to tree)

# pcsl0 = # pal, # repls(pcs ' + pcsl0, pal, aσ, α) ≠ # repla(pcs ' + pcsl0, pal, aσ, α) + 1, afrag(AIOAut(ainit, astep))(aσ, α), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜pcs '⌝ + ⌜pcsl0⌝ , ⌜pal⌝ ), ⌜πa(pcs ' + pcsl0, pal)⌝ ^ ⊑ α ^ ⊦

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 7 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 8 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name:elim-hd-tl, seq: ⊦ σ ≠ [] → (a = hd(σ) ∧ σ0 = tl(σ) ↔ σ = a + σ0), subst:[σ, a, σ0] → [aσ, hd(aσ), aσ]

Additional information

Used terms: aσ, hd(aσ), aσ

Proof step 9 from proof repl-fin-size (previous step) (back to tree)

⊦ σ ≠ [] → (a = hd(σ) ∧ σ0 = tl(σ) ↔ σ = a + σ0)

A spec-lemma

Proof step 10 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ afrag(AIOAut(startf, stepf))([], α); (s) ⊦ a + σ = ⌜a '⌝ + σ; (s)

Proof step 11 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name:elim-hd-tl, seq: ⊦ σ ≠ [] → (a = hd(σ) ∧ σ0 = tl(σ) ↔ σ = a + σ0), subst:[σ, a, σ0] → [aσ, as, σ0]

Additional information

Used simplifier rules: ⊦ σ ≠ [] → (a = hd(σ) ∧ σ0 = tl(σ) ↔ σ = a + σ0); (elim) Used terms: aσ, as, σ0

Proof step 12 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ a + σ = ⌜a '⌝ + σ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ ⌜a '⌝ + σ ≠ []; (s) ⊦ ⌜a '⌝ + σ = ⌜a0 '⌝ + σ0 ↔ a = a0 ∧ σ = σ0; (ws) ⊦ ⌜x⌝ + σ0 = ⌜x⌝ + σ1 ↔ σ0 = σ1; (s)

Proof step 13 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule structural induction

And obtained the following new goals

Rule argument

term: pcsl0

Additional information

Used simplifier rules: 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) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] ⊦ ⌜[]⌝ = []; (s) ⊦ σ + [] = σ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[IOrefine-def-RP-traceC-IOstatestream] ⊦ # a ' = 0 +1; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # [] = 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic

Proof step 14 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 15 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: pcs

Additional information

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

Proof step 16 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 17 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: pal

Additional information

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

Proof step 18 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 20 from proof repl-fin-size (previous step) (back to tree)

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

A spec-lemma

Proof step 21 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 22 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 23 from proof repl-fin-size (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 24 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 25 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 8

Additional information

Proof step 26 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: projaction-rec-addC: ⊦ # pcsl = # pal ∧ cstep(cs, a, cs0) ∧ ¬ rext(ren(a)) → πa((s ×c cs)' + (s ×c cs0)' + pcsl, ren(a) ' + pal) = a + πa((s ×c cs0) + pcsl, pal); nounsharedC-simp: ⊦ nounsharedextC → (rext(ren(a)) ↔ a ≠ τ); 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σ, α); append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ [] + σ = σ; (s) ⊦ ⌜τ '⌝ ^ = []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ ren(τ) = τ; (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 27 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:projaction-rec-addC, seq:⊦ # 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), subst:[cs, s, a, cstep, pal, cs0, pcsl] → [cs, s1, τ, cstep, pal1, cs1, pcsl]

Additional information

Used terms: cs, τ, cstep, cs1, s1, pcsl, pal1

Proof step 28 from proof repl-fin-size (previous step) (back to tree)

⊦ # 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)

Lemma projaction-rec-addC

Proof step 29 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[actionstream] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[actionstream] ⊦ a + x = a ' + x; (s) ⊦ a + x = a ' + x; (s) ⊦ ren(τ) = τ; (s) ⊦ ¬ rext(τ); (s)

Proof step 30 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule all left

And closed the goal!

Rule argument

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

Additional information

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

Proof step 31 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: 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σ, α); projaction-rec-skip: ⊦ # pcsl = # pal ∧ step(s, ra, s0) ∧ ¬ cext(rren(ra)) → πa((s ×c cs)' + (s0 ×c cs)' + pcsl, rren(ra) ' + pal) = πa((s0 ×c cs)' + pcsl, pal); a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceC-IOstatestream] a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic n < n0 ⊦ m + (* n) = m0 + (* n0) ↔ m = m0 + (n0 - n); (s) ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (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-traceA-IOstatestream] ⊦ #(a ' + x) = (# x)+1; (s)

Proof step 32 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

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

Additional information

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

Proof step 33 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 34 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:projaction-rec-addboth, seq: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), subst:[cs, s0, s, a, pa, cstep, pal, cs0, ra, step, pcsl] → [cs, s1, s, a0, ren(a0), cstep, pal1, cs1, ra0, step, pcsl]

Additional information

Used simplifier rules: ⊦ ren(a) = τ ↔ a = τ; (s) Used terms: ra0, cs, s1, a0, cstep, cs1, step, s, ren(a0), pcsl, pal1

Proof step 35 from proof repl-fin-size (previous step) (back to tree)

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)

Lemma projaction-rec-addboth

Proof step 36 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 11

Additional information

Proof step 37 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: projaction-rec-addboth: pa = rren(ra), pa ≠ τ ⊦ # pcsl = # pal ∧ cstep(cs, a, cs0) ∧ rren(ra) = ren(a) ∧ step(s, ra, s0) → πa((s ×c cs)' + (s0 ×c cs0)' + pcsl, pa ' + pal) = a + πa((s0 ×c cs0) + pcsl, pal); a: ⊦ (x + y) + z = x + y + z; from specification list[actionstream] ⊦ # x = # z → (x + y = z + y0 ↔ x = z ∧ y = y0); (ws) ⊦ a + x = a ' + x; (s) ⊦ a + x = a ' + x; (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] ⊦ ren(a) = τ ↔ a = τ; (s) ⊦ rren(τ) = τ; (s) ⊦ rren(ra) = τ ↔ ra = τ; (s)

Proof step 38 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 39 from proof repl-fin-size (previous step) (back to tree)

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

Lemma remtau-split-one-pfx

Proof step 40 from proof repl-fin-size (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), # repls((s ×c cs)' + (s1 ×c cs1)' + pcsl, rren(ra0) ' + pal1, ⌜as '⌝ + σ0, α) ≠ # repla((s ×c cs)' + (s1 ×c cs1)' + pcsl, rren(ra0) ' + pal1, ⌜as '⌝ + σ0, α) + 1, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + σ0, α), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ∀ pal0, s0, cs0, as0, σ, α0, ainit0, astep0, init0, cinit0, step0, cstep0. # pal1 ≠ # pal0 ∨ # repls((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + σ, α0) = # repla((s0 ×c cs0)' + pcsl, pal0, ⌜as0 '⌝ + σ, α0) + 1 ∨ ¬ afrag(AIOAut(ainit0, astep0))(⌜as0 '⌝ + σ, α0) ∨ ¬ pcfrag(PCIOAut(pcinit(init0, cinit0), pcstep(step0, cstep0)))(⌜(s0 ×c cs0)'⌝ + ⌜pcsl⌝ , ⌜pal0⌝ ) ∨ ¬ ⌜πa((s0 ×c cs0)' + pcsl, pal0)⌝ ^ ⊑ α0 ^, ∃ n, α0. α = ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0 ∧ ⌜πa((s1 ×c cs1)' + 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, α); lift-size: ⊦ # lift(asl, s) = # asl; 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, α); c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic n < n0 ⊦ m + (* n) = m0 + (* n0) ↔ m = m0 + (n0 - n); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-actionstream] ⊦ m +1 = m + 1; (s) ⊦ #(a ' + x) = (# x)+1; (s) ⊦ # mklist(a, n) = n; (s) ⊦ #(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] ⊦ ⌜a '⌝ + σ from n + 1 = σ from n; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[IOrefine-def-RP-traceA-IOstatestream] ⊦ #(a ' + x) = (# x)+1; (s) ⊦ #(x + y) = # x + # y; (s)

Proof step 41 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream[traceA-IOstatestream], name: size-to-02, seq:¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n, subst:[σ, n] → [⌜as '⌝ + σ0, n], <all paths>

Additional information

Used terms: ⌜as '⌝ + σ0, n

Proof step 42 from proof repl-fin-size (previous step) (back to tree)

¬ # σ < ⌜n⌝ ⊦ # (σ to n).l = n

A spec-lemma

Proof step 43 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 44 from proof repl-fin-size (previous step) (back to tree)

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

Additional information

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

Proof step 45 from proof repl-fin-size (previous step) (back to tree)

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

A spec-lemma

Proof step 46 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[traceA-IOstatestream] c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ (⌜a '⌝ + σ)[n + 1] = σ[n]; (s) ⊦ m +1 = m + 1; (s) add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s) ⊦ # mklist(a, n) = n; (s) ⊦ n < m → (⌜(* n)⌝ + n∞1 = ⌜(* m)⌝ + n∞2 ↔ n∞1 = ⌜m - n⌝ + n∞2); (s) ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) ⊦ # a ' = 0 +1; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 47 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 2, flags: discard

Additional information

Used simplifier rules: ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ ¬ n∞ + n∞1 < n∞1; (s) add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf

Proof step 48 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 49 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule all left

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 50 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 51 from proof repl-fin-size (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), # repls((s1 ×c cs1)' + pcsl, pal1, σ0 from n, α0) ≠ # repla((s1 ×c cs1)' + pcsl, pal1, σ0 from n, α0) + 1, a0 ≠ τ, afrag(AIOAut(ainit, astep))(⌜as '⌝ + σ0, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜1⌝ + # σ0 < ⌜n⌝ , # repls((s1 ×c cs1)' + pcsl, pal1, ⌜σ0[n] '⌝ + (σ0 from n + 1), α0) = # repla((s1 ×c cs1)' + pcsl, pal1, ⌜σ0[n] '⌝ + (σ0 from n + 1), α0) + 1 ∨ ¬ afrag(AIOAut(ainit, astep))(⌜σ0[n] '⌝ + (σ0 from n + 1), α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] → [σ0, n], <all paths>

Additional information

Used terms: σ0, n

Proof step 52 from proof repl-fin-size (previous step) (back to tree)

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

A spec-lemma

Proof step 53 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

Proof step 54 from proof repl-fin-size (previous step) (back to tree)

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

A spec-lemma

Proof step 55 from proof repl-fin-size (previous step) (back to tree)

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

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) lele-trans: ⊦ ¬ n∞1 < n∞ ∧ ¬ n∞2 < n∞1 → ¬ n∞2 < n∞; (forward) from specification nat-inf 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) ⊦ ⌜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 56 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: discard

Additional information

Used simplifier rules: ⊦ ⌜(* n)⌝ + ⌜(* m)⌝ = ⌜n + m⌝ ; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ ⌜n⌝ < ⌜1⌝ + n∞ ↔ ¬ n∞ < ⌜n⌝ ; (s) ⊦ ¬ n∞ + n∞1 < n∞1; (s) add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf

Proof step 57 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 58 from proof repl-fin-size (previous step) (back to tree)

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

Additional information

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

Proof step 59 from proof repl-fin-size (previous step) (back to tree)

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

A spec-lemma

Proof step 60 from proof repl-fin-size (previous step) (back to tree)

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

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 61 from proof repl-fin-size (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ # mklist(a, n) = n; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ ¬ m + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf Used terms: ⌜mklist(τ, n)⌝ , ⌜a0 '⌝ + α0, n + 1

Proof step 62 from proof repl-fin-size (previous step) (back to tree)

⊦ ¬ ⌜m⌝ < # σ0 → σ0 + σ from m = σ from (m - (# σ0).n)

A spec-lemma

Proof step 63 from proof repl-fin-size (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ¬ m + n < m; (s) ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s) ⊦ # mklist(a, n) = n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream[actionstream] ⊦ ⌜a '⌝ + σ from 1 = σ; (s) ⊦ m + n - m = n; (s) ⊦ ⌜n⌝ .n = n; (s)

Proof step 64 from proof repl-fin-size (previous step) (back to tree)

# pcsl = # pal1, ren(a0) = rren(ra0), # repls((s1 ×c cs1)' + pcsl, pal1, ⌜σ0[n] '⌝ + (σ0 from n + 1), α0) ≠ # repla((s1 ×c cs1)' + pcsl, pal1, ⌜σ0[n] '⌝ + (σ0 from n + 1), α0) + 1, a0 ≠ τ, ⌜n⌝ < # σ0, afrag(AIOAut(ainit, astep))(⌜as '⌝ + σ0, ⌜mklist(τ, n)⌝ + ⌜a0 '⌝ + α0), afrag(AIOAut(ainit, astep))(σ0 from n, α0), cstep(cs, a0, cs1), nounsharedextC, pcfrag(PCIOAut(pcinit(init, cinit), pcstep(step, cstep)))(⌜(s1 ×c cs1)'⌝ + ⌜pcsl⌝ , ⌜pal1⌝ ), step(s, ra0, s1), ⌜πa((s1 ×c cs1)' + pcsl, pal1)⌝ ^ ⊑ α0 ^, ¬ ⌜1⌝ + # σ0 < ⌜n⌝ , ¬ afrag(AIOAut(ainit, astep))(⌜σ0[n] '⌝ + (σ0 from n + 1), α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] → [σ0, n], <all paths>

Additional information

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

Proof step 65 from proof repl-fin-size (previous step) (back to tree)

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

A spec-lemma

Proof Tree for repl-fin-size (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