70 likes | 263 Views
Assignment #3 - Solution. Given the LTL formula: r pU(qOr), Write down the closure of the formula Write down the corresponding Atoms
E N D
Assignment #3 - Solution Given the LTL formula: r pU(qOr), • Write down the closure of the formula • Write down the corresponding Atoms • Develop the corresponding graph (it is recommended to employ the Tableau method), indicate the partition into acyclic s.c. sub-graphs, and a specific sub-graph that is self-fulfilling (namely makes the formula satisfiable). Closure: Cl{r pU(qOr)} = {rpU(qOr), r(pU(qOr)), r, r, pU(qOr), (pU(qOr)), p, p, qOr, qOr, q, q, Or, Or}
The partition into Atoms and Next relation A:{rpU(qOr), r} B:{rpU(qOr), pU(qOr), p, qOr, q} C:{rpU(qOr), pU(qOr), p, qOr, Or} D:{rpU(qOr), pU(qOr), qOr, q, Or} Next(A)=A1:{True} Next(B)=B1:{pU(qOr), p, qOr, q} B2:{pU(qOr), p, qOr, Or} B3:{pU(qOr), qOr, q, Or} Next(B1)= {B1,B2,B3} Next(B2)=B21:{pU(qOr), r, p, qOr, q} B22:{pU(qOr), r, p, qOr, Or} B23:{pU(qOr), r, qOr, q, Or} Next(B21)= {B1,B2,B3} Next(B22)= {B21,B22,B23} Next(B23)={D1} Next(B3)={D1} Next(C)= {B21,B22,B23} Next(D)=D1:{r}, Next(D1)={A1}
The partition into acyclic s.c. sub-graphs, and self-fulfilling of rpU(qOr) A, A1, D1 are self-fulfilling, {B1,B2,B21,B22} is not self-fulfilling
Note: to save space the events START_N_MSG, END_N_MSG, START_N_MSG, END_N_MSG were replaced by @Ntx, Ntx!, @Utx, Utx!, respectively Communication Controller XCTL Specification Assertions: Message transmission, if not interrupted, takes 3 seconds: (@Ntxx=T)(¬@Utx(O¬(@Ntx@Utx)U(T=x+3)) (x=T)(Ntx! T=x+3) This formula does not eliminate scenario where Ntx! occurs indistinct stateswith same time tag. So based on the physics of the systemwe may want to add anexplicit assumptions: (x=T¬Ntx!) ¬◊(Ntx! x=T) –if occurs, Ntx! must occur at the first state where x=T (Ntx! x=T) => O(¬◊(Ntx! x=T)) -- Ntx! may occur at most once with x=T Compare with the LTL formulae @Ntx(O0,2 @Utx O1,2@Ntx) O3Ntx! @Utx(O0,2 @Ntx O1,2 @Utx ) O3 Utx! Subsequent N, U messages arrive at CC with a minimal delay of 15, 10 sec. (resp.) of each other. Nin (x=T) O(¬◊(Nin(T< x+15))), Uin (x=T) O(¬UinU(T= x+10)) Compare with the LTL formulae: Nin O1,14Nin, Uin O1,9Uin
Requirements Transmit every N message before the next N message arrives. Nin O(NinUNtx!) Every U message is transmitted (finish) within 4 seconds after its arrival (Uin x=T) ◊(Utx! Tx+4) Compare with the LTL formula: Uin O[1,4]Ntx! At most one message may be started at each time instant: (@Utx (x=T)) ◊(@Ntx (x=T)), (@Ntx (x=T)) ◊(@Utx (x=T)) Compare with the LTL formula: (@Utx @Ntx)