Atomic proposition pand the following ltl-path

Assignment Help Basic Computer Science
Reference no: EM13935038

Exercise1(LTL) Question1 Assume a single atomic proposition pand the following LTL-path,which describes an alternating path of p and¬p. p // ¬p // p // ¬p // p // ¬p // ... Give an LTL formula that describes this path only. We assume two atomic propositions p and q. Question2 Decidewhetherthepathgivenontheright-handsidesatis?estheformula given on the left-hand side. pU(Xq) : p,q // p,¬q //¬p,¬q // p,q // ... pU(q ⇒¬Xq): p,¬q // p,¬q // ¬p,q // ¬p,q //¬p,¬q // ... X(¬(pUq)) : p,q // p,¬q // p,¬q // ¬p,q // ¬p,q // ... (In this question, "..." means that the last presented state is the same as all follow-up states.) 1 Question 3 Are the following LTL-formulas true for all paths (for atomic propositions p and q)?

Gp ⇒ (pUq)Up (pUq)∧(q Up) ⇔ p∧q Fp ⇔ F(Xp) X(Fp) ⇔ F(Xp) (pU(q ⇒¬Xq))∧(FGq) ⇔ pU(Gq)

Proofsare not necessary,but provide counter examplesifthe formula is in correct. However, if you provide proofs, you might get some bonus points.

Exercise2

(LocalAutomaton)

Question4 Compute the set cl(p Until¬p). Question5 Compute the set Sub(p Until¬p). Question6 Give the local automaton for p Until¬p. (Follow the de?nitions given in the lecture.) Exercise3(CTLModelChecking) 

q0 L(q0) = {a,b} q1 L(q1) = {b} q2 L(q2) = {a,c} q3 L(q3) = {a,b,c} q4 L(q4) = {a} q5 L(q5) = {c}

Figure 1: Automaton A Question7 Whichstatesofautomaton A (Fig.1)satisfythefollowingpropositional formulas:

1. b∨(a∧c). 2. (a∧¬c) =⇒ ¬b. 2 Question8 Let ? be the following CTL formula: AGb =⇒ AX¬E(a∨c) UNTIL b.

1. Rewrite the formula ? into equivalent formula ?0 without AG, AX and =⇒ . We consider that the or operator,∨, is allowed in a CTL formula.

2. Give the parse tree of the rewritten formula ?0.

3. ManuallyruntheCTLexplicit-statealgorithmMarkofLecture7on?0i.e.,compute the result of Mark(B,?0), to determine whether A |= ?0 (and explain your answer).

Exercise4(SPIN)The of?cial webpage https://spinroot.com provides good overviews and manuals.

Below you ?nd a na¨ive implementation of a system with two water tanks (only the levels are modelled).There is a pump which tries to balance the levels. It succeeds if thewaterlevelsareequal. (Atext-?lecontainingthePromelaspecisavailableonline.) /* Level of the individual tanks */ int level[2]; /* Model of Pump */ activeproctype Pump() { do ::level[0]<level[1] -> level[1]--;skip;level[0]++; ::level[1]<level[0] -> level[0]--;skip;level[1]++; ::else -> break; od } /* set initial water levels */ init { level[0]=5; level[1]=49; }

Question9 Describe in English words what the processes Pump does. The ?nal goal is to have the same water levels in both tanks. In this case the pump can be switched off.

Question10 Use SPIN to check if the pump can always be switched off in the given scenario. Check if the pump can be switched off for all possible water levels.

Question 11 In case the Pump cannot be switched off, modify the system in a way that the water levels are equal at the end. Prove it. 3

Question 12 Add a process which, at some arbitrary point in time, adds non-deterministically the amount 42 to one of the tanks. Check for deadlocks.

Question13 Checkwhetheryoursystemalwaysbalancesoutthewaterlevels. Ifnot modify your system to achieve this. The pump should be switched off as soon as the water levels are equal. Use SPIN to prove it. Note: If you do experiments with SPIN, describe the procedure, provide the code and discuss SPIN's output. We want to see that you used SPIN and not a pen and paper analysis. Also note that some questions build on previous results.

Reference no: EM13935038

Questions Cloud

Example of a direct in-text reference : Which of the following is a correct example of a direct in-text reference? a) Practice refers to a process of going over activities before we are called on to perform them when it counts (Neck &Manz, cited in USQ 2014, p. 23).
Plan the location of the router modem and access points : Indicate on the office plan the location of the Router Modem and access points where required. What type of wireless router standard would you recommend (not brand)? Provide reasons for your recommendation.
What would happen to aggregate income : Use the Mundell-Fleming model to predict what would happen to aggregate income, the exchange rate, interest rate and the trade balance of a small open economy under both floating and fixed exchange rate regimes in response
Explain pulse-labeled-nuclei, tritiated thymidine : What is transformation and how does this compare to in vitro aging? What is oncogenesis, onco virus, and onco gene? What are the advantages/disadvantages to in vitro cell culturing as related to aging?
Atomic proposition pand the following ltl-path : Exercise1(LTL) Question1 Assume a single atomic proposition pand the following LTL-path,which describes an alternating path of p and¬p. p // ¬p // p // ¬p // p // ¬p // ... Give an LTL formula that describes this path only. We assume two atomic pr..
Basis for effective planning and decision-making : collate and disseminate credible information on a range of issues that have strong theoretical and/or practical relevance to the field. Such information will often provide the basis for effective planning and decision-making.
Evaluate the institutions of the global economy : 7IB003 International Business Environment,  Evaluate the Institutions of the global economy - Analyse arguments about global economic trends and dynamics.
Research one topic-emotional intelligence : You are required to research one topic: Emotional intelligence. You must determine the "newest thinking" by reviewing a minimum of 10 relevant and up - to - date academic articles on your topic.
Briefly examine the economic dictionary : Go to http://sffed-education.org/chairman. Use the Learn More button and review the tight (contractionary) and easy (expansionary) tools of the Fed as well as the use of each. Briefly examine the Economic Dictionary and the Policy in Depth feature..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Social-ethical issues in information systems

Write a report about social and ethical issues in information systems.

  Discuss the issues that managing and implementing

Discuss the issues that managing and implementing the technology architecture you would have and how you would overcome these challenges. Be sure to discuss at least three challenges.

  Create user documentation for the nontechnical personnel

Create user documentation for the nontechnical personnel. Include an overview of features of the application as well as instructional materials. Screen shots should be included for clarity as well.

  Personal liability is a serious issue in purchasing

Personal liability is a serious issue in purchasing

  Finding a negative cycle in the graph of o

1. Finding a negative cycle in the graph of O (NM) [TeX] 2. Finding Euler Euler path or cycle of O (M) 3. Checking on the a cyclic graph and finding the cycle of O (M) All of these algorithm should be well explained and worth showing.

  The federal reserve web site

In current business publications or on the Federal Reserve Web site (www.federalreserve.gov), find the press release from the most recent meeting of the FOMC. What is the targeted federal funds rate? How does the FOMC evaluate the balance of risks be..

  What are some ways increase our chances of success

IT Projects are notoriously difficult to complete successfully and they are expensive to start with. Most failures can be attributed to issues not directly tied to technology issues, but rather issues of organizational behavior.What are some ways in ..

  Program should display a menu

The program should display a menu allowing the user to enter pointer values by selecting option 1, then perform shallow or deep copy by selecting options 2 or 3. After whcich, your program needs to display the new results after the copy is performed.

  Write a create table statement that recreastes the table

write a create table statement that recreastes the table, this time with a unique constraint that prevents an individual from being a memeber in the same group twice.

  Identify a current trend in technology for improving global

Identify a current trend in technology for improving global business

  Prove that the omega notation is reflexive and transitive

Prove that the omega notation is reflexive and transitive: for any functions f, g, h : N -> R?0, 1. f(n) ? ? (f(n)) 2. if f(n) ? ? (g(n)) Use the duality Rule!

  Difference between a permanent address and a care-of address

How big is the MAC address space? The IPv4 address space and what is the difference between a permanent address and a care-of address? Who assigns a care-of address?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd