Step * 1 1 3 2 1 2 of Lemma run-event-cases

.....subterm..... T:t
1:n
1. Type ─→ Type
2. S0 System(P.M[P])@i
3. pRunType(P.M[P])@i
4. : ℕ@i
5. Id@i
6. : ℕ@i
7. n ≤ m
8. ↑is-run-event(r;m;x)
9. ↑is-run-event(r;n;x)
10. L1 {tx:ℕn × {i:Id| x ∈ Id} | ↑is-run-event(r;fst(tx);snd(tx))}  List@i
11. ¬(L1 [] ∈ ({tx:ℕn × {i:Id| x ∈ Id} | ↑is-run-event(r;fst(tx);snd(tx))}  List))
12. mapfilter(λt.<t, x>t.is-run-event(r;t;x);[0, n))
L1
∈ ({tx:ℕn × {i:Id| x ∈ Id} | ↑is-run-event(r;fst(tx);snd(tx))}  List)@i
13. L2 {tx:{n..m-} × {i:Id| x ∈ Id} | ↑is-run-event(r;fst(tx);snd(tx))}  List@i
14. mapfilter(λt.<t, x>t.is-run-event(r;t;x);[n, m))
L2
∈ ({tx:{n..m-} × {i:Id| x ∈ Id} | ↑is-run-event(r;fst(tx);snd(tx))}  List)@i
15. ↑is-run-event(r;m;x)
16. ¬↑null(L2)
17. {tx:{n..m-} × {i:Id| x ∈ Id} | ↑is-run-event(r;fst(tx);snd(tx))} @i
18. last(L2) X ∈ {tx:{n..m-} × {i:Id| x ∈ Id} | ↑is-run-event(r;fst(tx);snd(tx))} @i
19. fst(X) < m
20. n ≤ (fst(X))
21. (snd(X)) ∈ Id
⊢ last(L1 L2) X ∈ {tx:ℕ × Id| ↑is-run-event(r;fst(tx);snd(tx))} 
BY
(RWO "last_append" THEN Auto) }


Latex:



Latex:
.....subterm.....  T:t
1:n
1.  M  :  Type  {}\mrightarrow{}  Type
2.  S0  :  System(P.M[P])@i
3.  r  :  pRunType(P.M[P])@i
4.  n  :  \mBbbN{}@i
5.  x  :  Id@i
6.  m  :  \mBbbN{}@i
7.  n  \mleq{}  m
8.  \muparrow{}is-run-event(r;m;x)
9.  \muparrow{}is-run-event(r;n;x)
10.  L1  :  \{tx:\mBbbN{}n  \mtimes{}  \{i:Id|  i  =  x\}  |  \muparrow{}is-run-event(r;fst(tx);snd(tx))\}    List@i
11.  \mneg{}(L1  =  [])
12.  mapfilter(\mlambda{}t.<t,  x>\mlambda{}t.is-run-event(r;t;x);[0,  n))  =  L1@i
13.  L2  :  \{tx:\{n..m\msupminus{}\}  \mtimes{}  \{i:Id|  i  =  x\}  |  \muparrow{}is-run-event(r;fst(tx);snd(tx))\}    List@i
14.  mapfilter(\mlambda{}t.<t,  x>\mlambda{}t.is-run-event(r;t;x);[n,  m))  =  L2@i
15.  \muparrow{}is-run-event(r;m;x)
16.  \mneg{}\muparrow{}null(L2)
17.  X  :  \{tx:\{n..m\msupminus{}\}  \mtimes{}  \{i:Id|  i  =  x\}  |  \muparrow{}is-run-event(r;fst(tx);snd(tx))\}  @i
18.  last(L2)  =  X@i
19.  fst(X)  <  m
20.  n  \mleq{}  (fst(X))
21.  x  =  (snd(X))
\mvdash{}  last(L1  @  L2)  =  X


By


Latex:
(RWO  "last\_append"  0  THEN  Auto)




Home Index