Semantic Minimization of 3-Valued Propositional Formulas - PowerPoint PPT Presentation

About This Presentation
Title:

Semantic Minimization of 3-Valued Propositional Formulas

Description:

2-valued. 3-valued. The Right Definition of 'Best'? Observation. If for all A, (A) (A) ... potential acceptance of 2-valued assignments. What Does 'Best' Mean? ... – PowerPoint PPT presentation

Number of Views:51
Avg rating:3.0/5.0
Slides: 45
Provided by: thoma55
Category:

less

Transcript and Presenter's Notes

Title: Semantic Minimization of 3-Valued Propositional Formulas


1
Semantic Minimizationof 3-Valued Propositional
Formulas
  • Thomas Reps Alexey Loginov
  • University of Wisconsin
  • Mooly Sagiv
  • Tel-Aviv University

2
Semantic Minimization
  • p ? ?p 1, right?
  • ???(A) Value of formula ? under assignment A
  • In 3-valued logic, ???(A) may equal ?
  • ?p ? ?p?(p ? 0) 1
  • ?p ? ?p?(p ? ?) ?
  • ?p ? ?p?(p ? 1) 1
  • However,
  • ?1?(p ? 0) 1 ?p ? ?p?(p ?
    0)
  • ?1?(p ? ?) 1 ? ? ?p ? ?p?(p ?
    ?)
  • ?1?(p ? 1) 1 ?p ? ?p?(p ?
    1)

3
Motivation
  • Dataflow analysis
  • Hardware verification
  • Symbolic trajectory evaluation
  • Shape analysis

4
Questions
  • What does best mean?
  • Can one find a best formula?
  • How?

5
Two- vs. Three-Valued Logic
0 ? 0,1
1 ? 0,1
6
Two- vs. Three-Valued Logic
7
Two- vs. Three-Valued Logic
8
Two- vs. Three-Valued Logic
9
Two- vs. Three-Valued Logic
0 ?3½
1 ?3½
10
Boolean Connectives Kleene
11
Three-Valued Logic
  • 1 True
  • 0 False
  • 1/2 Unknown
  • A join semi-lattice 0 ? 1 1/2

0 ? ½
1 ? ½
12
Semantic Minimization
  • ?1?(p ? 0) 1 ?p ? ?p?(p ? 0)
    ?1?(p ? ½) 1 ? ½ ?p ? ?p?(p ? ½) ?1?(p
    ? 1) 1 ?p ? ?p?(p ? 1)

2-valued logic 1 is equivalent to p ? ?p
3-valued logic 1 is better than p ? ?p
For a given ?, is there a best formula?
Yes!
13
Minimal?
x x x ? x xy xz xy xy xy xz
yz xy xz yz
No! Yes! No! Yes! Yes! No!
14
Rewrite Rules?
? ? ?? ? 1
? ? ?? ? 0
15
2-Valued Propositional Meaning
?0?(a) 0 ?1?(a) 1 ?xi?(a) a(xi) ????(a)
1 ???(a) ??1 ? ?2?(a) min(??1?(a),
??2?(a)) ??1 ? ?2?(a) max(??1?(a), ??2?(a))
16
3-Valued Propositional Meaning
?½?(a) ½
?0?(a) 0 ?1?(a) 1 ?xi?(a) a(xi) ????(a)
1 ???(a) ??1 ? ?2?(a) min(??1?(a),
??2?(a)) ??1 ? ?2?(a) max(??1?(a), ??2?(a))
17
3-Valued Propositional Meaning
?½?(A) ½
?0?(A) 0 ?1?(A) 1 ?xi?(A) A(xi) ????(A)
1 ???(A) ??1 ? ?2?(A) min(??1?(A),
??2?(A)) ??1 ? ?2?(A) max(??1?(A), ??2?(A))
18
A p ? ½, q ? 0, r ? 1, s ? ½
19
The Right Definition of Best?
Observation If for all A, ???(A) ? ???(A), ?
is better than ?
20
The Right Definition of Best?
Observation If for all A, ???(A) ? ???(A), ?
is better than ?
  • ?0?(A) 0
  • ? ½
  • ? ½ ?(A)
  • 0 is better than ½

?1?(A) 1 ? ½ ? ½
?(A) 1 is better than ½
21
Acceptance Device
A ? ? iff ???(A) ? 1
Potentially accepts ?
22
Acceptance Device
A ? ?? iff ???(A) ? 0
Potentially rejects ?
23
Acceptance Device
3-valued
2-valued
?
  • Suppose that A represents a, and
  • a ? 2-valued assignments. We want
  • If a ? ?, then A ? ?
  • If a ? ??, then A ? ??

24
Acceptance Device
3-valued
2-valued
  • Suppose that A represents a, and
  • a ? 2-valued assignments. We want
  • If a ? ½, then A ? 0
  • If a ? ?½, then A ? ?0

?Violated!
?
25
Acceptance Device
3-valued
2-valued
  • Suppose that A represents a, and
  • a ? 2-valued assignments. We want
  • If a ? ½, then A ? 1
  • If a ? ?½, then A ? ?1

?Violated!
?
26
The Right Definition of Best?
Observation If for all A, ???(A) ? ???(A), ?
is better than ?
Not all better formulas preserve potential
acceptance of 2-valued assignments
27
What Does Best Mean?
Supervaluational meaning ?????(A) ?
???(a) a rep. by A
28
Semantic Minimization
???(A) ?????(A)
29
Example
??p ? ?p??(p ? ½) ? ?p ? ?p?(a)

a?p ? 0,
p ?
1 ?p ?
?p?(p ? 0)
? ?p ? ?p?(p ? 1)
1 ? 1
1 ?1?(p ? ½)
30
Example
??½??(p ? ½) ? ?½?(a)
a?p ? 0,

p ? 1 ?½?(p ?
0) ? ?½?(p ? 1)
½ ? ½
½ ?½?(p
? ½)
31
Semantic Minimization
???(A) ?????(A)
? For all A, ???(A) ? ???(A) ? is better than
?
32
Realization of aMonotonic Boolean
FunctionBlamey 1980
f ? Formula f
b
a
? ab 1b ab a1 ab ? (ab)
33
Realization of aMonotonic Boolean
FunctionBlamey 1980
f ? Formula f
b
a
? ab ab a1 ab ? (ab 1b)
34
Our Problem
????? ? Formula?????
b
a
35
Special Case? contains no occurrences of ½ or ?
? ????? contains no occurrences of ½ in corners
b
? ab 1b ab a1 ab ? (ab)
a
? ab 1b ab a1 ab
? (ab)
36
Special Case? contains no occurrences of ½ or ?
? ????? contains no occurrences of ½ in corners
b
b
a
a
37
How Do We Obtain ??????
Represent ????? with a pair floor ? ????? ?
?½? 0 ceiling ? ????? ?
?½? 1
38
How Do We Obtain (???????, ???????)?
0 ? (?a.0, ?a.0) 1 ? (?a.1, ?a.1) ½ ? (?a.0,
?a.1) xi ? (?a.a(xi), ?a.a(xi)) ?(? f ?, ? f ?) ?
(? f ?, ? f ?) (? f 1?, ? f1 ?) ? (? f2 ?, ? f2
?) ? (? f 1? ? ? f2 ?, ? f1 ? ? ? f2 ?) (? f 1?,
? f1 ?) ? (? f2 ?, ? f2 ?) ? (? f 1? ? ? f2 ?, ?
f1 ? ? ? f2 ?) BDD operations
39
Semantically Minimal Formula
  • General case
  • ? primes(? ????? ?) ? ?(? primes(? ? ????? ?))
  • When ? contains no occurrences of ½ and ?
  • ? primes(? ????? ?)

40
Example
Original formula (?) xy xz
yz Minimal formula (?) xy xz yz xy xz
yz
A ???(A)
???(A) x ? ½, y ? 0, z ? 0 1
½ x ? 0, y ? 1, z ? ½ 1
½ x ? 1, y ? ½, z ? 1 1
½
41
Example
Original formula (? if x then y else z)
xy xz Minimal formula (?) xy xz yz
A ???(A)
???(A) x ? ½, y ? 1, z ? 1 1
½
42
Demo
43
Related Work
  • Blamey 1980, 1986
  • Realization of a monotonic Boolean function
  • Godefroid Bruns 2000
  • Supervaluational (thorough) semantics for model
    checking partial Kripke structures
  • For propositional formulas
  • Deciding ?????(A) ? 1? is NP-complete

44
Our Questions
  • What does best mean?
  • For all A, ???(A) ?????(A)
  • Can one find a best formula?
  • Yes
  • How?
  • Create (???????, ???????)
  • Return ? primes(? ????? ?) ? ?(? primes(? ?
    ????? ?))

45
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com