SlideShare a Scribd company logo
14
Most read
15
Most read
20
Most read
Understanding LTL
By :
Anit Thapaliya
Software Engineering
Department of Computer Science
Kyonggi University, South Korea
∗ It is temporal logic with connectives that allow us to
refer to the future.
∗ It models the time as a sequence of states, extending
infinitely to the future.
Definition
∗ ϕ ::= true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
Where, p belongs to AP
X= ‘next’: ϕ is true at next step
U= ‘until’: ϕ2 is true at some point, ϕ1 is true until that
time
Syntax
∗ ϕ := true |
Explanation LTL
…
{p1,p2} {p1,p2} {p2} {p1,p2} {p2}
∗ ϕ := true | p |
Explanation LTL
…
p = p1, p2, p3, p4, …
{p1,p2} {p2} {p1,p2} {p2}
Where p = AP (Every atomic proposition is LTL Formula)
{p1,p2}
∗ ϕ := true | p | ¬ϕ |
Explanation LTL
…¬P1
{p1} {p2} {p2} {p2}
Where p = AP
{p2}
¬ϕ = if ϕ is an LTL formula then not of phi (¬ϕ) is also an LTL formula
Look at the first state it does not satisfy p1. hence, ¬P1 is true
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 |
Explanation LTL
…
P1 ^ P2
{p1,p2} {p2} {p1,p2} {p2}
Where p = AP
{p1,p2}
Φ1 & Φ1 are LTL Formual, then p1 & p2 are LTL formula
Look at the first state it satisfy p1 and p2. hence, P1 & P2 is true
^ stands for And
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ |
Explanation LTL
…
Xp1 is true
Xp2 is not true
X¬p2 is true
{p1} {p2} {p2} {p2}
Where p = AP
{p2}
If Φ is an LTL formula then, XΦ is also an LTL formula
Earlier, we are verifying the states by looking the first part now
with Xp1 operator we have to look to next part. If the following part
satisfy p1 then it is true. Note: Focused on second part
following the first in sequence.
X stands for Next
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
Explanation LTL
…
p1 U p2
{p1} {p1} {p2} {p1}
Where p = AP
{p1}
If Φ1, Φ2 are LTL formula then, p1, p2 also LTL formula
We going further states in this part. That is p2 is true at some
point in the future, until that point where p2 is p1 must be true.
Or p2 should definitely true at some point until when p1 must
be true.
U stands for Until
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
Some Example
…
¬(p1 U p2)
{p1} {} {p2} {p1}
LTL Formula
{p1}
¬ (p1 U p2)
In this formula, p2 is true at some point which is true
but until where p2 is true p1 is not completely true.
Meaning
Here p2 is true
Here p1 is not true
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
Some LTL Formula
…
¬(p1 U p2)
{p1} {} {p2} {p1}
LTL Formula
{p1}
¬ (p1 U p2)
In this formula, p2 is true at some point which is true
but until where p2 is true p1 is not completely true.
Meaning
Here p2 is true
Here p1 is not true
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
Some LTL Formula
…
{p1} {p1} {p2} {p1,p3}
LTL Formula
{p1, p3}
p1 U (p2 ^ X p3)
In this formula, (p2 ^ X p3) is true at some point in the future until where p1 is also
true. At the black state Xp3 is true because there is p3 in next state where as p2 is
also true there. Lastly in all the yellow state p1 is present so p1 is true until (p2 ^ X
p3).
Meaning
(p2 ^ X p3) is true
Here p1 is true in all yellow state
∗ Word σ : A0 A1 A2 … ε AP
∗ Each Ai is a set of atomic proposition
∗ Every words satisfies true
∗ Every sigma satisfy LTL formula
∗ Words (true) = AP
∗ σ satisfies Pi if Pi ε A0
∗ If the first letter A0 contain pi.
∗ Word s(Pi) = {A0 A1 A2 A3…. | Pi ε A0} ie Pi must be in A0
Semantics of LTL Formula
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
∗ Word σ : A0 A1 A2 … ε AP
∗ Each Ai is a set of atomic proposition
∗ σ satisfy ¬ϕ if σ does not satisfy ϕ
∗ Words(¬ϕ) = (Words (ϕ))’
∗ σ satisfies ϕ1^ϕ2 if σ satisfy ϕ1 and σ satisfy ϕ2
∗ Words (ϕ1^ϕ2) = Words (ϕ1) Intersection Words (ϕ2)
∗ It means words must be common in ϕ1, ϕ2
Semantics of LTL Formula
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
Word σ : A0 A1 A2 A3 … ε AP
 Each Ai is a set of atomic proposition
σ satisfies Xϕ if A1 A2 A3 ….. ϕ
What is words expect A0 must satisfy ϕ
σ satisfy ϕ1 U ϕ2 if there exists j Aj Aj+1….. Satisfy ϕ2 and for
all Aj-1 (0<i<j Ai Ai+1 ) ….satisfy ϕ1
Semantics of LTL Formula
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
Except A0
Word σ : A0 A1 A2 A3 … ε AP
 Each Ai is a set of atomic proposition
σ satisfies Xϕ if A1 A2 A3 ….. ϕ
What is words expect A0 must satisfy ϕ
Words (X ϕ)={A0 A1 A2…| A1 A2 .. ε Words (ϕ) }
σ satisfy ϕ1 U ϕ2 if there exists j Aj Aj+1….. Satisfy ϕ2 and for
all Ai and Aj-1 (0<i<j Ai Ai+1 ) ….satisfy ϕ1
Words (ϕ1 U ϕ2) means all the suffix starting from Aj belongs to ϕ2
And all suffixes starting from Ai and Aj-1 belongs to ϕ1.
Semantics of LTL Formula
∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
 σ satisfy true Uϕ if there exists j Aj Aj+1….. Satisfy ϕ
This is because ture is always true for all Ai and Aj-1 (0<i<j Ai Ai+1 )
….satisfy true
Semantics for Fϕ: true U ϕ
Semantics for Gϕ: ¬F ¬ϕ
 σ satisfy F ¬ϕ if there exists j Aj Aj+1….. Satisfy ¬ϕ
σ satisfy ¬F ¬ϕ if σ does not Satisfy F ¬ϕ
∗ X & U are called temporal operators.
∗ Temporal operators means they are related to time.
∗ G global true now and forever (Rectangle in temporal
logic )
∗ F Eventually true now and some time in future (like
diamond in temporal logic)
Primary Temporal Logic Operators
Eventually ◊ ϕ := true U ϕ (ϕ will become true at some point in
the future)
Always □ ϕ := ¬◊¬ϕ ϕ is always true; (never (eventually (¬ϕ)))
∗ p ◊q p implies eventually q (response)→
∗ P p U r p implies q until r (precedence)→
∗ □ ◊p always eventually p (process)
∗ ◊□p eventually always p (stability)
∗ ◊p ◊q eventually p implies eventually q (correlation)→
More Operators & Formulas
Thank You

More Related Content

PDF
Dining Philosopher's Problem
PPTX
Ai lecture 13(unit03)
PPTX
Lecture 1: Semantic Analysis in Language Technology
PPTX
Natural language processing and transformer models
PDF
Go and Uber’s time series database m3
PDF
Ai lab manual
PPTX
Classical Encryption Techniques
PDF
Inference in Bayesian Networks
Dining Philosopher's Problem
Ai lecture 13(unit03)
Lecture 1: Semantic Analysis in Language Technology
Natural language processing and transformer models
Go and Uber’s time series database m3
Ai lab manual
Classical Encryption Techniques
Inference in Bayesian Networks

What's hot (20)

PPTX
Replication in Distributed Systems
PDF
MLlib: Spark's Machine Learning Library
PPT
Graph colouring
PPTX
Introduction on Prolog - Programming in Logic
PDF
How good is your prediction a gentle introduction to conformal prediction.
PPTX
5.distributed file systems
PPT
Swarm intelligence algorithms
PDF
LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attent...
PPTX
Propositional logic
PDF
GPT-2: Language Models are Unsupervised Multitask Learners
PDF
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
PPTX
AI Unification.pptx
PPTX
GRASP Principles
PPTX
NP completeness
PPTX
NLP_KASHK:Context-Free Grammar for English
PPTX
Artificial intelligence- Logic Agents
PDF
deep learning
PPTX
Operating Systems Chapter 6 silberschatz
PPT
Hierarchical Reinforcement Learning
PPT
Artificial Intelligence 1 Planning In The Real World
Replication in Distributed Systems
MLlib: Spark's Machine Learning Library
Graph colouring
Introduction on Prolog - Programming in Logic
How good is your prediction a gentle introduction to conformal prediction.
5.distributed file systems
Swarm intelligence algorithms
LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attent...
Propositional logic
GPT-2: Language Models are Unsupervised Multitask Learners
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
AI Unification.pptx
GRASP Principles
NP completeness
NLP_KASHK:Context-Free Grammar for English
Artificial intelligence- Logic Agents
deep learning
Operating Systems Chapter 6 silberschatz
Hierarchical Reinforcement Learning
Artificial Intelligence 1 Planning In The Real World
Ad

Similar to Linear Temporal Logic LTL (20)

PDF
week02, the language of propositional logic.pdf
PDF
03 propsem
PDF
Fixed Point Results In Fuzzy Menger Space With Common Property (E.A.)
PDF
week01, the language of propositional logic.pdf
PDF
A factorization theorem for generalized exponential polynomials with infinite...
PPTX
Propositional logic
PDF
The structure of functions
PDF
The Chase in Database Theory
PDF
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
PDF
Probabilistic Machine Learning - Continuous Variables
PDF
04_AJMS_254_19.pdf
PDF
On Spaces of Entire Functions Having Slow Growth Represented By Dirichlet Series
PDF
Fourier series of odd functions with period 2 l
PDF
Slides lln-risques
PPT
Theory of Computation - Lectures 4 and 5
PDF
PPT
SPLITTING FIELD.ppt
PDF
Limit in Dual Space
PDF
H03702061062
week02, the language of propositional logic.pdf
03 propsem
Fixed Point Results In Fuzzy Menger Space With Common Property (E.A.)
week01, the language of propositional logic.pdf
A factorization theorem for generalized exponential polynomials with infinite...
Propositional logic
The structure of functions
The Chase in Database Theory
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
Probabilistic Machine Learning - Continuous Variables
04_AJMS_254_19.pdf
On Spaces of Entire Functions Having Slow Growth Represented By Dirichlet Series
Fourier series of odd functions with period 2 l
Slides lln-risques
Theory of Computation - Lectures 4 and 5
SPLITTING FIELD.ppt
Limit in Dual Space
H03702061062
Ad

More from Anit Thapaliya (19)

PDF
A unified approach for uml based safety oriented level crossing using fta and...
PPTX
Puzzle Solving Using Model Checking
PDF
Model Checking History
PDF
Model Checking Tutorial
PPTX
Rotaract Club of Pashupati-Ktm Rota Year 2014-15
PDF
Communication Network Comnet Report
DOCX
Project Planning & Management
PPTX
Rotaract Projects
DOCX
Adventure Travel & Tours Website Design
DOCX
Airlines Reservation System
DOCX
Library Management System
DOCX
Networking Devices & Its Advantages and Disadvantages
PDF
Software engineering II
DOCX
Advanced System Analysis And Design
PDF
Business intelligence In
PDF
A Study on 21st Century Business Intelligence
PDF
Introduction of Biometrics
PDF
A Bidding System In Football "Football Fantasy"
PDF
E-Business "A Comparative Study on Dell Business Model"
A unified approach for uml based safety oriented level crossing using fta and...
Puzzle Solving Using Model Checking
Model Checking History
Model Checking Tutorial
Rotaract Club of Pashupati-Ktm Rota Year 2014-15
Communication Network Comnet Report
Project Planning & Management
Rotaract Projects
Adventure Travel & Tours Website Design
Airlines Reservation System
Library Management System
Networking Devices & Its Advantages and Disadvantages
Software engineering II
Advanced System Analysis And Design
Business intelligence In
A Study on 21st Century Business Intelligence
Introduction of Biometrics
A Bidding System In Football "Football Fantasy"
E-Business "A Comparative Study on Dell Business Model"

Recently uploaded (20)

PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Cell Structure & Organelles in detailed.
PDF
Insiders guide to clinical Medicine.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Basic Mud Logging Guide for educational purpose
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Business Ethics Teaching Materials for college
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Cell Structure & Organelles in detailed.
Insiders guide to clinical Medicine.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Basic Mud Logging Guide for educational purpose
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
PPH.pptx obstetrics and gynecology in nursing
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
O7-L3 Supply Chain Operations - ICLT Program
Business Ethics Teaching Materials for college

Linear Temporal Logic LTL

  • 1. Understanding LTL By : Anit Thapaliya Software Engineering Department of Computer Science Kyonggi University, South Korea
  • 2. ∗ It is temporal logic with connectives that allow us to refer to the future. ∗ It models the time as a sequence of states, extending infinitely to the future. Definition
  • 3. ∗ ϕ ::= true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2 Where, p belongs to AP X= ‘next’: ϕ is true at next step U= ‘until’: ϕ2 is true at some point, ϕ1 is true until that time Syntax
  • 4. ∗ ϕ := true | Explanation LTL … {p1,p2} {p1,p2} {p2} {p1,p2} {p2}
  • 5. ∗ ϕ := true | p | Explanation LTL … p = p1, p2, p3, p4, … {p1,p2} {p2} {p1,p2} {p2} Where p = AP (Every atomic proposition is LTL Formula) {p1,p2}
  • 6. ∗ ϕ := true | p | ¬ϕ | Explanation LTL …¬P1 {p1} {p2} {p2} {p2} Where p = AP {p2} ¬ϕ = if ϕ is an LTL formula then not of phi (¬ϕ) is also an LTL formula Look at the first state it does not satisfy p1. hence, ¬P1 is true
  • 7. ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Explanation LTL … P1 ^ P2 {p1,p2} {p2} {p1,p2} {p2} Where p = AP {p1,p2} Φ1 & Φ1 are LTL Formual, then p1 & p2 are LTL formula Look at the first state it satisfy p1 and p2. hence, P1 & P2 is true ^ stands for And
  • 8. ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | Explanation LTL … Xp1 is true Xp2 is not true X¬p2 is true {p1} {p2} {p2} {p2} Where p = AP {p2} If Φ is an LTL formula then, XΦ is also an LTL formula Earlier, we are verifying the states by looking the first part now with Xp1 operator we have to look to next part. If the following part satisfy p1 then it is true. Note: Focused on second part following the first in sequence. X stands for Next
  • 9. ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2 Explanation LTL … p1 U p2 {p1} {p1} {p2} {p1} Where p = AP {p1} If Φ1, Φ2 are LTL formula then, p1, p2 also LTL formula We going further states in this part. That is p2 is true at some point in the future, until that point where p2 is p1 must be true. Or p2 should definitely true at some point until when p1 must be true. U stands for Until
  • 10. ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2 Some Example … ¬(p1 U p2) {p1} {} {p2} {p1} LTL Formula {p1} ¬ (p1 U p2) In this formula, p2 is true at some point which is true but until where p2 is true p1 is not completely true. Meaning Here p2 is true Here p1 is not true
  • 11. ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2 Some LTL Formula … ¬(p1 U p2) {p1} {} {p2} {p1} LTL Formula {p1} ¬ (p1 U p2) In this formula, p2 is true at some point which is true but until where p2 is true p1 is not completely true. Meaning Here p2 is true Here p1 is not true
  • 12. ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2 Some LTL Formula … {p1} {p1} {p2} {p1,p3} LTL Formula {p1, p3} p1 U (p2 ^ X p3) In this formula, (p2 ^ X p3) is true at some point in the future until where p1 is also true. At the black state Xp3 is true because there is p3 in next state where as p2 is also true there. Lastly in all the yellow state p1 is present so p1 is true until (p2 ^ X p3). Meaning (p2 ^ X p3) is true Here p1 is true in all yellow state
  • 13. ∗ Word σ : A0 A1 A2 … ε AP ∗ Each Ai is a set of atomic proposition ∗ Every words satisfies true ∗ Every sigma satisfy LTL formula ∗ Words (true) = AP ∗ σ satisfies Pi if Pi ε A0 ∗ If the first letter A0 contain pi. ∗ Word s(Pi) = {A0 A1 A2 A3…. | Pi ε A0} ie Pi must be in A0 Semantics of LTL Formula ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
  • 14. ∗ Word σ : A0 A1 A2 … ε AP ∗ Each Ai is a set of atomic proposition ∗ σ satisfy ¬ϕ if σ does not satisfy ϕ ∗ Words(¬ϕ) = (Words (ϕ))’ ∗ σ satisfies ϕ1^ϕ2 if σ satisfy ϕ1 and σ satisfy ϕ2 ∗ Words (ϕ1^ϕ2) = Words (ϕ1) Intersection Words (ϕ2) ∗ It means words must be common in ϕ1, ϕ2 Semantics of LTL Formula ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
  • 15. Word σ : A0 A1 A2 A3 … ε AP  Each Ai is a set of atomic proposition σ satisfies Xϕ if A1 A2 A3 ….. ϕ What is words expect A0 must satisfy ϕ σ satisfy ϕ1 U ϕ2 if there exists j Aj Aj+1….. Satisfy ϕ2 and for all Aj-1 (0<i<j Ai Ai+1 ) ….satisfy ϕ1 Semantics of LTL Formula ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2 Except A0
  • 16. Word σ : A0 A1 A2 A3 … ε AP  Each Ai is a set of atomic proposition σ satisfies Xϕ if A1 A2 A3 ….. ϕ What is words expect A0 must satisfy ϕ Words (X ϕ)={A0 A1 A2…| A1 A2 .. ε Words (ϕ) } σ satisfy ϕ1 U ϕ2 if there exists j Aj Aj+1….. Satisfy ϕ2 and for all Ai and Aj-1 (0<i<j Ai Ai+1 ) ….satisfy ϕ1 Words (ϕ1 U ϕ2) means all the suffix starting from Aj belongs to ϕ2 And all suffixes starting from Ai and Aj-1 belongs to ϕ1. Semantics of LTL Formula ∗ ϕ := true | p | ¬ϕ | ϕ1^ϕ2 | Xϕ | ϕ1Uϕ2
  • 17.  σ satisfy true Uϕ if there exists j Aj Aj+1….. Satisfy ϕ This is because ture is always true for all Ai and Aj-1 (0<i<j Ai Ai+1 ) ….satisfy true Semantics for Fϕ: true U ϕ Semantics for Gϕ: ¬F ¬ϕ  σ satisfy F ¬ϕ if there exists j Aj Aj+1….. Satisfy ¬ϕ σ satisfy ¬F ¬ϕ if σ does not Satisfy F ¬ϕ
  • 18. ∗ X & U are called temporal operators. ∗ Temporal operators means they are related to time. ∗ G global true now and forever (Rectangle in temporal logic ) ∗ F Eventually true now and some time in future (like diamond in temporal logic)
  • 19. Primary Temporal Logic Operators Eventually ◊ ϕ := true U ϕ (ϕ will become true at some point in the future) Always □ ϕ := ¬◊¬ϕ ϕ is always true; (never (eventually (¬ϕ))) ∗ p ◊q p implies eventually q (response)→ ∗ P p U r p implies q until r (precedence)→ ∗ □ ◊p always eventually p (process) ∗ ◊□p eventually always p (stability) ∗ ◊p ◊q eventually p implies eventually q (correlation)→ More Operators & Formulas