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

  Explain the different usability data-gathering techniques

Explain the different usability data-gathering techniques

  Create a database whose tables are at least in 2nf,3nf

Create a database whose tables are at least in 3NF, showing the dependency diagram for each table.

  Systems development

If you view systems development as a question-and-answer session, another question you could ask is, "Why do organizations develop IT systems?"

  The chinese government from search results

1. (a) Assume that you work as the senior vice president for international markets for Google. Your job is to prepare the company for its move into China. During negotiations with Chinese officials, you are given the following ultimatum: remove all l..

  Describe the relationship that controls and audits

Take this opportunity to describe the relationship that Controls and Audits have. Describe what policies, processes, standards, procedures and guideline are and how they each are involved with compliance.Why do you think they are important?

  Netstack college has received a grant to wire all

Netstack College has received a grant to wire all of its six buildings for 10/100 Ethernet. Four of the buildings contain classrooms and laboratories and will need to support 250 network connections each. One building is for administration and ..

  Hd-dvd versus blu-ray

In recent times, HD-DVD and Blu-ray were competing technology formats for creating and watching movies on DVDs. Neither was compatible with the other. Eventually, Blu-ray won the competition.

  What does n-tier architecture mean

What does N-tier architecture mean? Describe the purpose of the Presentation Layer, Business Layer, and Data Layer

  Quality utilizing the electronic health record

Final Paper will focus on a particular main theme or topic related to current and future requirements for the Electronic Health Record and its impact on health care delivery and society. Utilize your textbook for ideas and information as you defi..

  Uml class notations

Compare and contrast the UML class diagram relationships that can exist between classes and explain when you would use each type of relationship to model a software project.

  What is social engineering

What is social engineering and How social engineering is performed?

  How is data reported by exif viewer

How is data reported by EXIF Viewer

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