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

  Evaluate events that could delay the closing of a project

Identify events that could delay the closing of a project or phase. Evaluate which event you believe would cause the longest delay and explain why. Provide an example to justify your answer

  Job hunting plan of action

Use this plan of action as a living document to keep track of your job hunting efforts. The more honest you are in this document, the better you can prioritize your efforts.

  Brief research on the different types of uml modeling tools

Conduct brief research on the different types of UML modeling tools that are available out there. Choose one that you think is the best to use. What did you like about this one that made it superior to other tools that you researched? Explain.

  Assess the ease of use and efficiency of using both the

evaluate the ease of use and efficiency of using both windows and unix file management systems. of the two file

  Manual park button and the application accurately

As an application tester, I want to press the manual park button and the application accurately records the location of the intended vehicle. The ratio of successes to failures will be recorded to report to the development team.

  Research about vendors and open-source solutions

Conduct research on vendors and open-source solutions that provide antivirus software for the three operating systems at MWS: Macintosh, Windows, and Linux. Prepare a paper of 2-3 pages that includes a recommendation for third-party tools for MWS...

  Explain to the organization the potential threats

Explain to the organization the potential threats in their software environments. Describe the various protection efforts available against each threat.

  What is the proper syntax of declaring a c-style string

Take a look at the following program -- #include using namespace std; int main( ) { char name[100]; //declare a character array cout > name; cout

  Customer facing decisions

Describe an example of a customer facing decision. Briefly describe the issue and explain the decision making process you would use to resolve the issue. Also, can you give a recommendation for a customer-facing software sold for the purpose of ..

  Takes non-negative integer

Then implement function drawLevy() so it takes non-negative integer n as input and draws the levy curve Ln using instructions obtained from function levy(). Don't forget doc strings and comments.

  Draw the block diagram of von neumann architecture

1. Draw the block diagram of von Neumann Architecture and explain about its parts in brief.2. What is the function of Program Status Word (PSW)? Explain the function of each flag that PSW contains.3. Explain the different types of computer architectu..

  Write an assignment on different characteristics of scale

Write an assignment on different characteristics of scale types

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