<< Chapter < Page Chapter >> Page >

Give an English translation of the following LTL formulae. Try to give a natural wording for each, not just a transliterationof the logical operators.

  • ( r ( p U r ) )
  • ( q p )
  • `` p is true before r .''
  • `` p is false after q .''

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.

  • `` p is true.''
  • `` p becomes true before r .''
    • `` p will happen at most once.''
    • `` p will happen at most twice.''
  • ``The light always blinks.''Use the following proposition: p = 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: g = the green light is on, y = the yellow light is on, and r = the red light is on.
  • This looks so simple and obvious, right?Unfortunately, it is ambiguous. The simple answer, p , says it's true right now . But, the likelier intended meaning is that it's always true, p .
  • This can be reworded as`` p becomes true while r is still false.'' ( r W ( p r ) )
  • 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.`` p will happen at most once'' becomes`` p 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 ( p W ( p W p ) ) .Repeating that pattern,`` p will happen at most twice'' becomes ( p W ( p W ( p W ( p W p ) ) ) ) .
  • Here are three progressively simpler solutions which areequivalent.
    • ( ( p p ) ( p p ) )
    • ( ( p U p ) ( p U p ) )
    • ( p p )
  • 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. ( ( g ( ( y r ) ( g U y ) ) ) ( y ( ( r g ) ( y U r ) ) ) ( r ( ( g y ) ( r U y ) ) ) ( g y r ) )

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 0 i < N :

  • l i : Philosopher i has his/her left fork.
  • r i : Philosopher i has his/her left fork.

For each question, your answer should cover exactly the given condition -- nothing more or less.You may assume N 3 .

  • No fork is ever claimed to be held bytwo philosophers simultaneously.
  • Philosopher i 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.
  • ( ( l 0 r 2 ) ( l 1 r 0 ) ( l 2 r 1 ) )
  • ( l i r i )
  • ( ( l 0 r 0 ) ( l 1 r 1 ) ( l 2 r 2 ) )
  • Here are two solutions.
    • ( ( l 0 l 1 l 2 ) ( r 0 r 1 r 2 ) )
    • ( ( l 0 r 0 ) ( l 1 r 1 ) ( l 2 r 2 ) )
  • 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. ( ( ( l 0 l 1 l 2 ) ( l 0 l 1 l 2 ) ) ( ( l 0 l 1 l 2 r 2 ) ( l 0 l 1 l 2 r 2 ) ) )
  • 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

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




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.

Notification Switch

Would you like to follow the 'Model checking concurrent programs' conversation and receive update notifications?

Ask