-
Home
- Model checking concurrent
- Model checking concurrent
- Using temporal logic to specify
Give an English translation of the following LTL formulae.
Try to give a natural wording for each, not just a transliterationof the logical operators.
-
-
- ``
is true before
.''
- ``
is false after
.''
In the following, give an LTL formula that formalizes
the given English wording.If the English is subject to any ambiguity, as it frequently is,
describe how you are disambiguating it, and why.
- ``
is true.''
- ``
becomes true before
.''
-
- ``
will happen at most once.''
- ``
will happen at most twice.''
- ``The light always blinks.''Use the following proposition:
= the light is on.
- ``The lights of a traffic signal always light in thefollowing sequence: green, yellow, red, and back to green,
etc. ,
with exactly one light on at any time.''Use the following propositions:
= the green light is on,
= the yellow light is on, and
= the red light is on.
- This looks so simple and obvious, right?Unfortunately, it is ambiguous.
The simple answer,
, says it's true
right now .
But, the likelier intended meaning is that it's always true,
.
- This can be reworded as``
becomes true while
is still false.''
- The version of LTL we use cannot capture the notion ofsomething being true for exactly one state.
Instead, we must instead think in terms of somethingbeing true for ``a while''.
Using that idea, we'll reword the original English intomore explicit, long-winded forms.``
will happen at most once''
becomes``
is false for a while, then
it may become true for a while, thenit may become false forever.''
It LTL, that can be written as
.Repeating that pattern,``
will happen at most twice''
becomes
.
- Here are three progressively simpler solutions which areequivalent.
-
-
-
- There are many ways to write this, but here's one.It states that whenever the green light is on,
no other light is on, and it will stay on until theyellow one is on.
Note that this implies the red light won't come onbefore the yellow one.
What happens when the other lights are on is entirely parallel.Finally, at least one light is on.
Recall the
Dining Philosophers Problem from the previous homework .
Using temporal logic, formally specify the following desiredproperties of solutions to the D.P. Problem.
Use the following logic variables, where
:
-
:
Philosopher
has his/her left fork.
-
:
Philosopher
has his/her left fork.
For each question, your answer should cover exactly the given
condition -- nothing more or less.You may assume
.
- No fork is ever claimed to be held bytwo philosophers simultaneously.
- Philosopher
gets to eat (at least once).
- Each philosopher gets to eat infinitely often.
- The philosophers don't deadlock.(The main difficulty is to conceptualize and restate
``deadlock''within this specific model in terms of the available
logic variables.)You may assume philosophers pick uptwo forks in some order, eat, and drop both forks.
- The philosophers don't deadlock.(The main difficulty is to conceptualize and restate
``deadlock''within this specific model in terms of the available
logic variables.)You may not assume philosophers pick uptwo forks in some order, eat, and drop both forks.
For example, one might pick up a single fork and then drop it.Or, the philosophers might be lazy and never pick up a fork.
- Describe a D.P. Problem run in which philosophers don'tdeadlock, but it is not the case that each philosopher gets
to eat infinitely often.
-
-
-
- Here are two solutions.
-
-
- This simply says that it never gets stuck in oneparticular fork configuration.
There would be many
if
statements, one per configuration,
and this is abbreviated.
- There are many possibilities. One is wherephilosopher 0 repeatedly eats, grabbing the forks so
quickly that neither other philosopher has a chance tograb one that is shared with him.
Questions & Answers
A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what are the types of wave
Maurice
fine, how about you?
Mohammed
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
Who can show me the full solution in this problem?
Got questions? Join the online conversation and get instant answers!
Source:
OpenStax, Model checking concurrent programs. OpenStax CNX. Oct 27, 2005 Download for free at http://cnx.org/content/col10294/1.3
Google Play and the Google Play logo are trademarks of Google Inc.