SlideShare a Scribd company logo
1 of 10
Symbolic Automata =
Automata + SMT solvers
Loris D’Antoni
Rajeev Alur
Margus Veanes

01/24/14, POPL14
Symbolic Finite Automaton (SFA)
Input sort: in
this case int

A = (Q,q0,F,δ,σ)
λx. x mod 2=1

λx. x mod 2=0
λx. x mod 2=0
q

q0

λx. x mod 2=1

Separate theory
for the input
alphabet
SMT SOLVER
2
Symbolic Finite Automata (SFA)

Execution
Example

λx. x mod 2=1

λx. x mod 2 =0

λx. x mod 2=0

p

q

λx. x mod 2=1

1

p

2

p

5

q

3

p

p

p is final  accept the input
3
Generalizing Classical Constructions

A1:

A2:

p1

p2

1
2

REQUIREMENTS:
Input theory must be a
Boolean algebra, and
Decidable (SMT solver)

q1

A1A2:

p1
p2

12
X

q1
q2

q2
delete when
12 unsatisfiable

4
Hopcroft’s algorithm for Minimization
P := {F, QF}
W := {if |F|< |QF| then F else QF}
while W != { }
R:=pickFrom(W)
D’Antoni, Veanes. Minimization of
Symbolic Automata [POPL14]
foreach a in Σ
S := δ-1(R,a)
while ∃ T ∈ P. T∩S ≠ {} ∧ T S ≠ {}
P,W := split(P, P∩S , PS)
return partitioned DFA
5
Symbolic Finite Transducers (SFT)

Execution
Example

even(x)/ [x+1,x-1]

1

2

5

3

p

3

1

3

3

1

odd(x)/ [x+2%4]

6
Advantages of Symbolic Automata
• Infinite alphabets
• Separation of concerns between automaton and
alphabet
– UTF16 abstracted using BDDs
– Integer using predicates over integers

• Succinctness
– One transition captures many symbols

• Same closure and decidability properties of finite
automata
– Boolean closure and decidable equivalence
– Closure under composition
7
An interesting property
even(x)/ [x+1,x-1]

T:

p

odd(x)

O:

q

odd(x)/ [x+2%4]

Is it true that this transducer always outputs a
list of odd numbers? YES
It can be checked automatically: isEmpty(ToO)
8
Applications [Fast, PLDI14]

9
Conclusion
Results
Minimization [POPL14]
Analysis of string encoders [VMCAI13, CAV13]
Analysis of List/Tree Manipulating Programs [PLDI14]
Symbolic Nested Word Automata [Submitted CAV14]
Crowd Sourcing Regular Expressions [Submitting to HCOMP14]

Future work
Learning
Extend to more complex models
10

More Related Content

What's hot

asymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysisasymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysis
Anindita Kundu
 

What's hot (20)

Lec5
Lec5Lec5
Lec5
 
Z Transform
Z TransformZ Transform
Z Transform
 
Analog properties and Z-transform
Analog properties and Z-transformAnalog properties and Z-transform
Analog properties and Z-transform
 
z transforms
z transformsz transforms
z transforms
 
Z transform
Z transformZ transform
Z transform
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Chapter 2 fourier transform
Chapter 2 fourier transformChapter 2 fourier transform
Chapter 2 fourier transform
 
Sample presentation slides
Sample presentation slidesSample presentation slides
Sample presentation slides
 
Parametrized Model Checking of Fault Tolerant Distributed Algorithms by Abstr...
Parametrized Model Checking of Fault Tolerant Distributed Algorithms by Abstr...Parametrized Model Checking of Fault Tolerant Distributed Algorithms by Abstr...
Parametrized Model Checking of Fault Tolerant Distributed Algorithms by Abstr...
 
Time complexity
Time complexityTime complexity
Time complexity
 
Z transform
 Z transform Z transform
Z transform
 
Z transform
Z transformZ transform
Z transform
 
Lti and z transform
Lti and z transformLti and z transform
Lti and z transform
 
DSP, Differences between Fourier series ,Fourier Transform and Z transform
DSP, Differences between  Fourier series ,Fourier Transform and Z transform DSP, Differences between  Fourier series ,Fourier Transform and Z transform
DSP, Differences between Fourier series ,Fourier Transform and Z transform
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
 
Unit 7 &amp; 8 z-transform
Unit 7 &amp; 8  z-transformUnit 7 &amp; 8  z-transform
Unit 7 &amp; 8 z-transform
 
asymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysisasymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysis
 
Application of Non-linear Electronics in Digital Communication
Application of Non-linear Electronics in Digital CommunicationApplication of Non-linear Electronics in Digital Communication
Application of Non-linear Electronics in Digital Communication
 
Dsp U Lec06 The Z Transform And Its Application
Dsp U   Lec06 The Z Transform And Its ApplicationDsp U   Lec06 The Z Transform And Its Application
Dsp U Lec06 The Z Transform And Its Application
 
Convex Hull Algorithm Analysis
Convex Hull Algorithm AnalysisConvex Hull Algorithm Analysis
Convex Hull Algorithm Analysis
 

Viewers also liked

Georgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software securityGeorgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software security
DefconRussia
 

Viewers also liked (16)

DFA minimization algorithms in map reduce
DFA minimization algorithms in map reduceDFA minimization algorithms in map reduce
DFA minimization algorithms in map reduce
 
Georgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software securityGeorgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software security
 
Detecting hardware virtualization rootkits
Detecting hardware virtualization rootkitsDetecting hardware virtualization rootkits
Detecting hardware virtualization rootkits
 
تعرف إلى-الهندسة المعلوماتية
تعرف إلى-الهندسة المعلوماتيةتعرف إلى-الهندسة المعلوماتية
تعرف إلى-الهندسة المعلوماتية
 
Lecture6 syntax analysis_2
Lecture6 syntax analysis_2Lecture6 syntax analysis_2
Lecture6 syntax analysis_2
 
Lecture2 general structure of a compiler
Lecture2 general structure of a compilerLecture2 general structure of a compiler
Lecture2 general structure of a compiler
 
Lecture5 syntax analysis_1
Lecture5 syntax analysis_1Lecture5 syntax analysis_1
Lecture5 syntax analysis_1
 
ف 2 الدرس الأول والثانى والثالث
ف 2 الدرس الأول والثانى والثالثف 2 الدرس الأول والثانى والثالث
ف 2 الدرس الأول والثانى والثالث
 
Lecture3 lexical analysis
Lecture3 lexical analysisLecture3 lexical analysis
Lecture3 lexical analysis
 
Lecture1 introduction compilers
Lecture1 introduction compilersLecture1 introduction compilers
Lecture1 introduction compilers
 
DFA Minimization
DFA MinimizationDFA Minimization
DFA Minimization
 
Lecture4 lexical analysis2
Lecture4 lexical analysis2Lecture4 lexical analysis2
Lecture4 lexical analysis2
 
optimization of DFA
optimization of DFAoptimization of DFA
optimization of DFA
 
SAT/SMT solving in Haskell
SAT/SMT solving in HaskellSAT/SMT solving in Haskell
SAT/SMT solving in Haskell
 
نموذج مسار هندسة الأفكار
نموذج مسار هندسة الأفكارنموذج مسار هندسة الأفكار
نموذج مسار هندسة الأفكار
 
هندسة الأفكار
هندسة الأفكارهندسة الأفكار
هندسة الأفكار
 

Similar to Symbolic Automata = Automata + SMT solvers at ExCape14

An Introduction to Hidden Markov Model
An Introduction to Hidden Markov ModelAn Introduction to Hidden Markov Model
An Introduction to Hidden Markov Model
Shih-Hsiang Lin
 
PhD_Theory_Probab.Appl
PhD_Theory_Probab.ApplPhD_Theory_Probab.Appl
PhD_Theory_Probab.Appl
Andrey Lange
 

Similar to Symbolic Automata = Automata + SMT solvers at ExCape14 (20)

Number Theory for Security
Number Theory for SecurityNumber Theory for Security
Number Theory for Security
 
Block Cipher vs. Stream Cipher
Block Cipher vs. Stream CipherBlock Cipher vs. Stream Cipher
Block Cipher vs. Stream Cipher
 
Week5 ap3421 2019_part1
Week5 ap3421 2019_part1Week5 ap3421 2019_part1
Week5 ap3421 2019_part1
 
An Introduction to Hidden Markov Model
An Introduction to Hidden Markov ModelAn Introduction to Hidden Markov Model
An Introduction to Hidden Markov Model
 
FirstAndSecond.pptx.pdf
FirstAndSecond.pptx.pdfFirstAndSecond.pptx.pdf
FirstAndSecond.pptx.pdf
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)
 
2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...
2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...
2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...
 
Ph ddefence
Ph ddefencePh ddefence
Ph ddefence
 
PhD_Theory_Probab.Appl
PhD_Theory_Probab.ApplPhD_Theory_Probab.Appl
PhD_Theory_Probab.Appl
 
Markov Tutorial CDC Shanghai 2009
Markov Tutorial CDC Shanghai 2009Markov Tutorial CDC Shanghai 2009
Markov Tutorial CDC Shanghai 2009
 
Estimation of the score vector and observed information matrix in intractable...
Estimation of the score vector and observed information matrix in intractable...Estimation of the score vector and observed information matrix in intractable...
Estimation of the score vector and observed information matrix in intractable...
 
Nfa egs
Nfa egsNfa egs
Nfa egs
 
Pairing scott
Pairing scottPairing scott
Pairing scott
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
 
Tail Probabilities for Randomized Program Runtimes via Martingales for Higher...
Tail Probabilities for Randomized Program Runtimes via Martingales for Higher...Tail Probabilities for Randomized Program Runtimes via Martingales for Higher...
Tail Probabilities for Randomized Program Runtimes via Martingales for Higher...
 
Finite automata
Finite automataFinite automata
Finite automata
 
Non-Hermitian noncommutative models in quantum optics and their superiorities
Non-Hermitian noncommutative models in quantum optics and their superioritiesNon-Hermitian noncommutative models in quantum optics and their superiorities
Non-Hermitian noncommutative models in quantum optics and their superiorities
 
Scattering theory analogues of several classical estimates in Fourier analysis
Scattering theory analogues of several classical estimates in Fourier analysisScattering theory analogues of several classical estimates in Fourier analysis
Scattering theory analogues of several classical estimates in Fourier analysis
 
2018 MUMS Fall Course - Sampling-based techniques for uncertainty propagation...
2018 MUMS Fall Course - Sampling-based techniques for uncertainty propagation...2018 MUMS Fall Course - Sampling-based techniques for uncertainty propagation...
2018 MUMS Fall Course - Sampling-based techniques for uncertainty propagation...
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Symbolic Automata = Automata + SMT solvers at ExCape14

  • 1. Symbolic Automata = Automata + SMT solvers Loris D’Antoni Rajeev Alur Margus Veanes 01/24/14, POPL14
  • 2. Symbolic Finite Automaton (SFA) Input sort: in this case int A = (Q,q0,F,δ,σ) λx. x mod 2=1 λx. x mod 2=0 λx. x mod 2=0 q q0 λx. x mod 2=1 Separate theory for the input alphabet SMT SOLVER 2
  • 3. Symbolic Finite Automata (SFA) Execution Example λx. x mod 2=1 λx. x mod 2 =0 λx. x mod 2=0 p q λx. x mod 2=1 1 p 2 p 5 q 3 p p p is final  accept the input 3
  • 4. Generalizing Classical Constructions A1: A2: p1 p2 1 2 REQUIREMENTS: Input theory must be a Boolean algebra, and Decidable (SMT solver) q1 A1A2: p1 p2 12 X q1 q2 q2 delete when 12 unsatisfiable 4
  • 5. Hopcroft’s algorithm for Minimization P := {F, QF} W := {if |F|< |QF| then F else QF} while W != { } R:=pickFrom(W) D’Antoni, Veanes. Minimization of Symbolic Automata [POPL14] foreach a in Σ S := δ-1(R,a) while ∃ T ∈ P. T∩S ≠ {} ∧ T S ≠ {} P,W := split(P, P∩S , PS) return partitioned DFA 5
  • 6. Symbolic Finite Transducers (SFT) Execution Example even(x)/ [x+1,x-1] 1 2 5 3 p 3 1 3 3 1 odd(x)/ [x+2%4] 6
  • 7. Advantages of Symbolic Automata • Infinite alphabets • Separation of concerns between automaton and alphabet – UTF16 abstracted using BDDs – Integer using predicates over integers • Succinctness – One transition captures many symbols • Same closure and decidability properties of finite automata – Boolean closure and decidable equivalence – Closure under composition 7
  • 8. An interesting property even(x)/ [x+1,x-1] T: p odd(x) O: q odd(x)/ [x+2%4] Is it true that this transducer always outputs a list of odd numbers? YES It can be checked automatically: isEmpty(ToO) 8
  • 10. Conclusion Results Minimization [POPL14] Analysis of string encoders [VMCAI13, CAV13] Analysis of List/Tree Manipulating Programs [PLDI14] Symbolic Nested Word Automata [Submitted CAV14] Crowd Sourcing Regular Expressions [Submitting to HCOMP14] Future work Learning Extend to more complex models 10