PARIXIT PRASAD December 4, 2013 Parixit Prasad | CSA - IISC 1 Deciding Presburger Arithmetic Using Automata Department of Computer Science and Automaton.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
&& Department of nskinfo-i educationwww.nsksofttch.com CS2303-THEORY OF COMPUTATION uChapter: Closure.
Inference in First-Order Logic
There is a pattern for factoring trinomials of this form, when c
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
1 Approximate string matching using factor automata J. Holub and B. Melichar Theoretical Computer Science vol.249 p Speaker: L. C. Chen Advisor:
Chapter 4 An Introduction to Finite Automata
Source of slides: Introduction to Automata Theory, Languages and Computation.
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
ZMQS ZMQS
Regular operations Sipser 1.1 (pages 44 – 47). CS 311 Fall Building languages If L is a language, then its complement is L’ = {w | w ∉ L} Let A.
CSCI 3130: Formal Languages and Automata Theory Tutorial 5
Richmond House, Liverpool (1) 26 th January 2004.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Turing Machines.
ABC Technology Project
VOORBLAD.
Probability for a First-Order Language Ken Presting University of North Carolina at Chapel Hill.
Quadratic Inequalities
Copyright © 2013, 2009, 2006 Pearson Education, Inc.
BIOLOGY AUGUST 2013 OPENING ASSIGNMENTS. AUGUST 7, 2013  Question goes here!
Linking Verb? Action Verb or. Question 1 Define the term: action verb.
Squares and Square Root WALK. Solve each problem REVIEW:
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Copyright © Cengage Learning. All rights reserved.
Introduction to Computability Theory
Finite-state Recognizers
Januar MDMDFSSMDMDFSSS
Conjunctive Grammars and Alternating Automata Tamar Aizikowitz and Michael Kaminski Technion – Israel Institute of Technology WoLLIC 2008 Heriot-Watt University.
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
A SMALL TRUTH TO MAKE LIFE 100%
1 Unit 1 Kinematics Chapter 1 Day
PSSA Preparation.
How Cells Obtain Energy from Food
1 Decidability continued…. 2 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the.
Chapter 6 Languages: finite state machines
Discrete Structures Chapter 6: Set Theory
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 13: Turing Machines.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
The decidability of Presburger Arithmetic By Guillermo Guillen 04/13/05 Dr. Smith COT 6421 FIU Spring 2005.
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
Presentation transcript:

PARIXIT PRASAD December 4, 2013 Parixit Prasad | CSA - IISC 1 Deciding Presburger Arithmetic Using Automata Department of Computer Science and Automaton Indian Institute of Science, Bangalore December 4, 2013

Structure of presentation December 4, 2013 Parixit Prasad | CSA - IISC 2 Recall Finite Automata Presburger Arithmetic Sets of Integers recognized by a Finite Automaton Presburger Formulas to Finite Automata Automata Associated with equalities Automata Associated with inequalities Closure Properties and Automata for arbitrary formulas Deciding satisfiability of a formula

Finite Automata December 4, 2013 Parixit Prasad | CSA - IISC 3 A Finite Automaton is a tuple (Q,,δ,q 0,F). Q = Finite set of states = Finite set of input symbols δ (Q x x Q) q 0 Q (the start state) F Q (Finite set of final states) A run of the automaton on the word ω * is a word ρ Q*, such that: ρ[1] = q 0 If ρ[i] = p and ρ[i+1] = q, then (p, ω[i],q) δ A successful run ρ on ω is when ρ[n+1] F, where n=|ω| A string is accepted by the automaton when there is a successful run on that string. Class of languages accepted by finite automaton is closed under union, intersection and complementation.

Presburger Arithmetic December 4, 2013 Parixit Prasad | CSA - IISC 4 A Basic term in presburger arithmetic consists of first order variable, constants 0 & 1 and sums of basic terms. x+x+x+y+1+1 is a basic term which can also be written as 3x+y+2 The Atomic formulas are equalities and inequalities between basic terms. x-2y = -2 is an atomic formula with equality. x-2y -2 is an atomic formula with inequality. The Formulas are first-order formulas build on atomic formulas using the connectives Λ (conjunction), V (disjunction), ¬(negation), x (existential quantification), x (universal quantification). x, y.(x=2y V x=2y+1) is a formula. Τ is the empty conjunction (valid formula). is the empty disjunction (unsatisfiable formula).

The Free variables of a formula φ are defined as: FV(φ) = variables which are not quantified in φ FV(φ 1 V φ 2 ) = FV(φ 1 ) U FV(φ 2 ) FV( x.φ) = FV(φ) \ {x} The interpretation domain of the formulas is the set of natural numbers N, with 0, 1, +, =, having their usual meaning. A solution of the formula φ is an assignment of x 1,x 2,…,x n in N which satisfies φ, where FV(φ)={x 1,x 2,…,x n } ( x 2, y 1 ) is one solution of x+3 = 4y+1 ( x 4 ) is one solution of y.(x=2y) Presburger Arithmetic (Contd.) December 4, 2013 Parixit Prasad | CSA - IISC 5

Sets of Integers recognized by Finite Automaton December 4, 2013 Parixit Prasad | CSA - IISC 6 Every Natural number can be written as a word in base-k (k 1 ) over the alphabet set { 0, 1,…,(k- 1 )} 29 in base-2 is written as Since we want to read the word from LSB to MSB, we write the word from right to left, with LSB in left and MSB in right. 29 in base-2 is written as

Integers recognized by Finite Automaton(Contd.) December 4, 2013 Parixit Prasad | CSA - IISC 7 There is a mapping from { 0, 1,…,(k- 1 )} * to N denoted by ~k which maps each word in base-k to its corresponding Natural number maps to 29 n-tuples of natural number can be represented in base-k as a single word over the alphabet set { 0, 1,…,(k- 1 )} n { 0, 1,…,(k- 1 )} 3 set is { 0, 1,…,(k- 1 )} x { 0, 1,…,(k- 1 )} x { 0, 1,…,(k- 1 )} (13,29,6) (base-10) can be written in base-2 over the alphabet set { 0, 1 } 3 as:

Presburger Formula to Finite Automata December 4, 2013 Parixit Prasad | CSA - IISC 8 1. Build automaton for the atomic formulas in the given formula Automata Associated with equalities Automata Associated with inequalities 2. Use these automaton to create the automata for the given formula

Automata associated with equality December 4, 2013 Parixit Prasad | CSA - IISC 9

Automata associated with equality (Contd.) December 4, 2013 Parixit Prasad | CSA - IISC 10

Automata associated with equality (Example) December 4, 2013 Parixit Prasad | CSA - IISC 11

Automaton for: x-2y=-2 December 4, 2013 Parixit Prasad | CSA - IISC 12 q -2 q -1 q0q0 q1q1

Getting solutions from the automaton December 4, 2013 Parixit Prasad | CSA - IISC 13

Observations on the automaton December 4, 2013 Parixit Prasad | CSA - IISC 14

Automata associated with inequality December 4, 2013 Parixit Prasad | CSA - IISC 15

Automata associated with inequality (Contd.) December 4, 2013 Parixit Prasad | CSA - IISC 16 The resulting automata would be (Q,, δ, q b, F) Q = {q is computed by the inference rule} = { 0,1 } n δ (Q x x Q) computed by the reference rule q b is the initial state F = {q c |c0}

Automata associated with inequality (Example) December 4, 2013 Parixit Prasad | CSA - IISC 17

Automaton for: x-2y-2 December 4, 2013 Parixit Prasad | CSA - IISC 18 q -2 q -1 q0q0 q1q1

Getting solutions from the automaton December 4, 2013 Parixit Prasad | CSA - IISC 19

Closure Properties and automata for arbitrary formula December 4, 2013 Parixit Prasad | CSA - IISC 20

Automata for arbitrary formulas (Contd.) December 4, 2013 Parixit Prasad | CSA - IISC 21

An example of Projection December 4, 2013 Parixit Prasad | CSA - IISC 22 q -2 q -1 q0q0 q1q1

Deciding satisfiability of a formula December 4, 2013 Parixit Prasad | CSA - IISC 23

Thank you December 4, 2013 Parixit Prasad | CSA - IISC 24 Questions…