arieli tutorial on bilattices

Upload: qfwfq-redipicche

Post on 13-Jan-2016

224 views

Category:

Documents


0 download

DESCRIPTION

.

TRANSCRIPT

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    A Tutorial On Bilattices

    Ofer Arieli

    School of Computer Science,The Academic College of Tel-Aviv, Israel

    [email protected]://www.cs.mta.ac.il/oarieli

    Duality Theory in Algebra, Logic and Computer ScienceOxford, UK, June 13-14, 2012

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 1/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Bilattices Three Perspectives

    AlgebraBilattice structures and their propertiesGeneral constructions

    LogicSemantics for proof systemsInferences from incomplete and inconsistent data

    Computer ScienceFixpoint semantics for logic programsPreferential modelingReasoning with uncertainty

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 2/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Bilattices Three Perspectives

    AlgebraBilattice structures and their propertiesGeneral constructions

    LogicSemantics for proof systemsInferences from incomplete and inconsistent data

    Computer ScienceFixpoint semantics for logic programsPreferential modelingReasoning with uncertainty

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 2/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Bilattices Three Perspectives

    AlgebraBilattice structures and their propertiesGeneral constructions

    LogicSemantics for proof systemsInferences from incomplete and inconsistent data

    Computer ScienceFixpoint semantics for logic programsPreferential modelingReasoning with uncertainty

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 2/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Bilattices Three Perspectives

    AlgebraBilattice structures and their propertiesGeneral constructions

    LogicSemantics for proof systemsInferences from incomplete and inconsistent data

    Computer ScienceFixpoint semantics for logic programsPreferential modelingReasoning with uncertainty

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 2/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    N. Belnap, How A Computer Should Think?

    6t

    tf

    t t>tt

    @@@@@

    @@@@@

    6k

    t

    tf t tt>

    @@@@@

    @@@@@

    t truth, f falsity, none, > botht the truth orderk the information (knowledge) order

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 3/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Combining the Partial Orders

    6

    k

    -ts

    sf sts>

    @@@@

    @@@@

    6

    k

    -ts

    sdf

    sdt

    sf sm stspf spts>

    @@@@

    @@@@

    @

    @@@

    6

    k

    -ts

    sdf

    sdt

    smsf sts>

    HHHHAAAA

    @@

    HHHH

    @@

    FOUR, NINE and SEVEN

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 4/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Pre-Bilattices

    Definition (Fitting)

    A pre-bilattice is a triple PB = B,t ,k , whereB is a set containing at least four elements,B,t, B,k are complete lattices.

    Notations:t the t -greatest element, f the t -least element,> the k -greatest element, the k -least element.

    Basic operators:

    t -meet and join: (conjunction), (disjunction),k -meet and join: (consensus), (accept all).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 5/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Pre-Bilattices

    Definition (Fitting)

    A pre-bilattice is a triple PB = B,t ,k , whereB is a set containing at least four elements,B,t, B,k are complete lattices.

    Notations:t the t -greatest element, f the t -least element,> the k -greatest element, the k -least element.

    Basic operators:

    t -meet and join: (conjunction), (disjunction),k -meet and join: (consensus), (accept all).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 5/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Bilattices: Relating the Orders Through Negation

    Definition (Ginsberg)

    A bilattice is a quadruple B = B,t ,k ,, whereB,t ,k is a pre-bilattice, is a t -negation on B.

    Properties of a t -negation:order reversing w.r.t. t : a t b a t b,order preserving w.r.t k : a k b a k b,involution: a = a.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 6/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Bilattices: Relating the Orders Through Negation

    Definition (Ginsberg)

    A bilattice is a quadruple B = B,t ,k ,, whereB,t ,k is a pre-bilattice, is a t -negation on B.

    Properties of a t -negation:order reversing w.r.t. t : a t b a t b,order preserving w.r.t k : a k b a k b,involution: a = a.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 6/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Other Ways of Relating the Partial Orders

    DefinitionA (pre-) bilattice is distributive if all the (twelve) possibledistributive laws concerning , , , hold.(e.g., a (b c) = (a b) (a c))

    Definition (Fitting)A (pre-) bilattice is interlaced if , , , are monotonic w.r.t.t and k .

    a t b implies that a c t b c and a c t b c,a k b implies that a c k b c and a c k b c.

    Note: Every distributive (pre-)bilattice is interlaced.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 7/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Other Ways of Relating the Partial Orders

    DefinitionA (pre-) bilattice is distributive if all the (twelve) possibledistributive laws concerning , , , hold.(e.g., a (b c) = (a b) (a c))

    Definition (Fitting)A (pre-) bilattice is interlaced if , , , are monotonic w.r.t.t and k .

    a t b implies that a c t b c and a c t b c,a k b implies that a c k b c and a c k b c.

    Note: Every distributive (pre-)bilattice is interlaced.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 7/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Other Ways of Relating the Partial Orders

    DefinitionA (pre-) bilattice is distributive if all the (twelve) possibledistributive laws concerning , , , hold.(e.g., a (b c) = (a b) (a c))

    Definition (Fitting)A (pre-) bilattice is interlaced if , , , are monotonic w.r.t.t and k .

    a t b implies that a c t b c and a c t b c,a k b implies that a c k b c and a c k b c.

    Note: Every distributive (pre-)bilattice is interlaced.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 7/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Example 1 FOUR

    6

    k

    - tr

    rf rtr>

    @@@@

    @@@@

    The smallest bilattice(t = f ,f = t ,> = >, = ).Distributive (hence interlaced).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 8/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Example 2 SEVEN

    6

    k

    - tr

    rdf

    rdt

    rmrf rtr>

    HHHHAAAA

    @@

    HHHH

    @@

    A bilattice introduced by Ginsberg for default reasoning(dt = df ,df = dt ,m = m).Not even interlaced(e.g., f t df m).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 9/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Some Basic Properties

    B = B,t ,k , a bilattice.Lemma

    a) (a b) = a b, (a b) = a b,(a b) = a b, (a b) = a b.

    b) f = t , t = f , = , > = >.

    Note: If B has a k -negation (conflation), then:a) (a b) = a b, (a b) = a b,(a b) = ab, (a b) = ab.

    b) f = f , t = t , = >, > = .LemmaIf B is interlaced, then > = f , > = t , ft = , ft = >.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 10/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Some Basic Properties

    B = B,t ,k , a bilattice.Lemma

    a) (a b) = a b, (a b) = a b,(a b) = a b, (a b) = a b.

    b) f = t , t = f , = , > = >.Note: If B has a k -negation (conflation), then:

    a) (a b) = a b, (a b) = a b,(a b) = ab, (a b) = ab.

    b) f = f , t = t , = >, > = .

    LemmaIf B is interlaced, then > = f , > = t , ft = , ft = >.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 10/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Some Basic Properties

    B = B,t ,k , a bilattice.Lemma

    a) (a b) = a b, (a b) = a b,(a b) = a b, (a b) = a b.

    b) f = t , t = f , = , > = >.Note: If B has a k -negation (conflation), then:

    a) (a b) = a b, (a b) = a b,(a b) = ab, (a b) = ab.

    b) f = f , t = t , = >, > = .LemmaIf B is interlaced, then > = f , > = t , ft = , ft = >.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 10/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    The Bilattice Product L L

    Definition (Ginsberg)

    Let L = L,L be a complete lattice.The bilattice L L = L L,t ,k , is defined as follows:

    (b1,b2) t (a1,a2) iff b1 L a1 and b2 L a2,(b1,b2) k (a1,a2) iff b1 L a1 and b2 L a2,(a1,a2) = (a2,a1).

    Intuition: If (x , y) L L, then x represents the information forsome assertion, and y is the information against it.

    Note: Interlaced pre-bilattices may be constructed by L1 L2.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 11/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    The Bilattice Product L L

    Definition (Ginsberg)

    Let L = L,L be a complete lattice.The bilattice L L = L L,t ,k , is defined as follows:

    (b1,b2) t (a1,a2) iff b1 L a1 and b2 L a2,(b1,b2) k (a1,a2) iff b1 L a1 and b2 L a2,(a1,a2) = (a2,a1).

    Intuition: If (x , y) L L, then x represents the information forsome assertion, and y is the information against it.

    Note: Interlaced pre-bilattices may be constructed by L1 L2.Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 11/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Examples of L L

    6

    k

    - ts

    (0,0)

    s(0,1) s(1,0)s(1,1)

    @@@@

    @@@@

    6

    k

    - ts

    (0,0)

    s(0, 12)

    s(12 ,0)

    s(0,1) (12 , 12) s(1,0)s(12 ,1) s(1, 12)

    s(1,1)

    @@@@

    @@@@

    @

    @@@

    FOUR = T WO T WO NINE = T HREE T HREE(T WO = {0,1},0 < 1) (T HREE = {0, 12 ,1},0 < 12 < 1)

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 12/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Some Properties of L L

    LemmaLet L be a complete lattice with a join uL and a meet unionsqL. Then:

    a) L L is a bilattice with the following basic operations:(a,b) (c,d) = (a unionsqL c,b uL d),(a,b) (c,d) = (a uL c,b unionsqL d),(a,b) (c,d) = (a unionsqL c,b unionsqL d),(a,b) (c,d) = (a uL c,b uL d),(a,b) = (b,a).

    b) The four basic elements of L L are the following:LL = (inf(L), inf(L)), >LL = (sup(L), sup(L)),tLL = (sup(L), inf(L)), fLL = (inf(L), sup(L)).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 13/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Some Properties of L L

    LemmaLet L be a complete lattice with a join uL and a meet unionsqL. Then:

    a) L L is a bilattice with the following basic operations:(a,b) (c,d) = (a unionsqL c,b uL d),(a,b) (c,d) = (a uL c,b unionsqL d),(a,b) (c,d) = (a unionsqL c,b unionsqL d),(a,b) (c,d) = (a uL c,b uL d),(a,b) = (b,a).

    b) The four basic elements of L L are the following:LL = (inf(L), inf(L)), >LL = (sup(L), sup(L)),tLL = (sup(L), inf(L)), fLL = (inf(L), sup(L)).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 13/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Some Properties of L L

    LemmaLet L be a complete lattice with a join uL and a meet unionsqL. Then:

    a) L L is a bilattice with the following basic operations:(a,b) (c,d) = (a unionsqL c,b uL d),(a,b) (c,d) = (a uL c,b unionsqL d),(a,b) (c,d) = (a unionsqL c,b unionsqL d),(a,b) (c,d) = (a uL c,b uL d),(a,b) = (b,a).

    b) The four basic elements of L L are the following:LL = (inf(L), inf(L)), >LL = (sup(L), sup(L)),tLL = (sup(L), inf(L)), fLL = (inf(L), sup(L)).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 13/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    More Facts About L L

    Theorema) L L is always interlaced [Fitting]b) L L is distributive if so is L [Ginsberg]c) Every distributive bilattice is isomorphic to L L for some

    complete distributive lattice L [Ginsberg]d) Every interlaced bilattice is isomorphic to L L for some

    complete lattice L [Avron]

    Corollary: The number of elements of a finite interlaced bilatticeis a perfect square.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 14/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    More Facts About L L

    Theorema) L L is always interlaced [Fitting]b) L L is distributive if so is L [Ginsberg]c) Every distributive bilattice is isomorphic to L L for some

    complete distributive lattice L [Ginsberg]d) Every interlaced bilattice is isomorphic to L L for some

    complete lattice L [Avron]

    Corollary: The number of elements of a finite interlaced bilatticeis a perfect square.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 14/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    The Interval-based Construction I(L)Definition (Fitting)

    Let L = L,L be a complete lattice.The structure I(L) = I(L),t ,k is defined as follows:

    I(L) = {[a,b] | a L b}, where [a,b] = {c | a L c L b},[b1,b2] t [a1,a2] iff b1 L a1 and b2 L a2,[b1,b2] k [a1,a2] iff b1 L a1 and b2 L a2.

    Intuition:I(L): the intervals of L (uncertain measurements).t : higher degree of truth; shift rightwards.k : better approximations; interval narrowing

    ([c,d ] k [a,b] [c,d ] [a,b]).Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 15/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    I(L) Examples and Applications

    6

    k

    - ts

    [0,1]

    s[0,0] s[1,1]@@@@

    6

    k

    - ts

    [0,1]

    s[0, 12 ]

    s[12 ,1]

    s[0,0] s[12 , 12 ] s[1,1]@@@@

    @@

    I(T WO) I(T HREE)

    Applications:

    A generalization of Kleenes 3-valued structure.Interval-valued structures for fuzzy reasoning (using [0,1]) .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 16/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    I(L) Examples and Applications

    6

    k

    - ts

    [0,1]

    s[0,0] s[1,1]@@@@

    6

    k

    - ts

    [0,1]

    s[0, 12 ]

    s[12 ,1]

    s[0,0] s[12 , 12 ] s[1,1]@@@@

    @@

    I(T WO) I(T HREE)Applications:

    A generalization of Kleenes 3-valued structure.Interval-valued structures for fuzzy reasoning (using [0,1]) .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 16/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Some Properties of I(L)

    LemmaLet L be a complete lattice with a join uL and a meet unionsqL. Then:

    a) I(L) is a k -lower pre-bilattice, where:[a,b] [c,d ] = [a unionsqL c,b unionsqL d ],[a,b] [c,d ] = [a uL c,b uL d ],[a,b] [c,d ] = [a uL c,b unionsqL d ].

    b) The three basic elements of I(L) are the following:tI(L) = [sup(L), sup(L)], fI(L) = [inf(L), inf(L)],I(L) = [inf(L), sup(L)].

    Note: I(L) is not closed w.r.t. .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 17/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Relating L L and I(L)L: a complete lattice with an order-reversing involution,a: the L-involute of a.

    A conflation is defined on L L by (a,b) = (b,a).(This is a k -negation on LL: involutive, k -reversing, t -preserving)An element (a,b) L L is coherent , if (a,b) k (a,b).

    TheoremI(L) is isomorphic to the substructure of the coherent elementsof L L.

    Proof.The function fL : I(L) LL, defined by fL([a,b]) = (a,b),is an isomorphism between the structures.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 18/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Relating L L and I(L)L: a complete lattice with an order-reversing involution,a: the L-involute of a.

    A conflation is defined on L L by (a,b) = (b,a).(This is a k -negation on LL: involutive, k -reversing, t -preserving)An element (a,b) L L is coherent , if (a,b) k (a,b).

    TheoremI(L) is isomorphic to the substructure of the coherent elementsof L L.

    Proof.The function fL : I(L) LL, defined by fL([a,b]) = (a,b),is an isomorphism between the structures.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 18/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Basic DefinitionsBasic PropertiesGeneral Constructions

    Relating L L and I(L)L: a complete lattice with an order-reversing involution,a: the L-involute of a.

    A conflation is defined on L L by (a,b) = (b,a).(This is a k -negation on LL: involutive, k -reversing, t -preserving)An element (a,b) L L is coherent , if (a,b) k (a,b).

    TheoremI(L) is isomorphic to the substructure of the coherent elementsof L L.

    Proof.The function fL : I(L) LL, defined by fL([a,b]) = (a,b),is an isomorphism between the structures.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 18/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bilattice-based Logics

    What Is a Logic?

    DefinitionA (Tarskian) consequence relation for a language L is a relation` between set of formulas in L and formulas in L, satisfying:Reflexivity : ` .Monotonicity : if ` and , then ` .Transitivity : if ` and , ` , then ` .

    DefinitionA (propositional) logic is a pair L = L,`, where L is apropositional language and ` is a consequence relation for L.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 19/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bilattice-based Logics

    What Is a Logic?

    DefinitionA (Tarskian) consequence relation for a language L is a relation` between set of formulas in L and formulas in L, satisfying:Reflexivity : ` .Monotonicity : if ` and , then ` .Transitivity : if ` and , ` , then ` .

    DefinitionA (propositional) logic is a pair L = L,`, where L is apropositional language and ` is a consequence relation for L.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 19/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bilattice-based Logics

    What Is a Logic?

    DefinitionA (Tarskian) consequence relation for a language L is a relation` between set of formulas in L and formulas in L, satisfying:Reflexivity : ` .Monotonicity : if ` and , then ` .Transitivity : if ` and , ` , then ` .

    DefinitionA (propositional) logic is a pair L = L,`, where L is apropositional language and ` is a consequence relation for L.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 19/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Matrices

    A semantic (model-theoretic) way of defining logics:

    DefinitionA (multi-valued) matrix for L is a tripleM = V,D,O, where:

    V the truth values,D the designated elements of V,O the interpretations (truth tables) of the L-connectives.

    Standard definitions for the induced semantic notions:M-valuations: M = { | : Atoms(L) V}.M-models of : modM() = { M | () D}. ( |=M )M-models of : modM() =

    mod(). ( |=M )

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 20/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Matrices

    A semantic (model-theoretic) way of defining logics:

    DefinitionA (multi-valued) matrix for L is a tripleM = V,D,O, where:

    V the truth values,D the designated elements of V,O the interpretations (truth tables) of the L-connectives.

    Standard definitions for the induced semantic notions:M-valuations: M = { | : Atoms(L) V}.M-models of : modM() = { M | () D}. ( |=M )M-models of : modM() =

    mod(). ( |=M )

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 20/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Matrix-Based Logics

    M = V,D,O a matrix for a language L.Definition `M if modM() modM().

    TheoremLM = L,`M is a propositional logic (induced byM).

    Next, we consider logics that are induced by bilattice-basedmatrices (i.e., whose truth values are elements of a bilatticeand the connectives are defined by bilattice operators).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 21/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Matrix-Based Logics

    M = V,D,O a matrix for a language L.Definition `M if modM() modM().

    TheoremLM = L,`M is a propositional logic (induced byM).

    Next, we consider logics that are induced by bilattice-basedmatrices (i.e., whose truth values are elements of a bilatticeand the connectives are defined by bilattice operators).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 21/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Matrix-Based Logics

    M = V,D,O a matrix for a language L.Definition `M if modM() modM().

    TheoremLM = L,`M is a propositional logic (induced byM).

    Next, we consider logics that are induced by bilattice-basedmatrices (i.e., whose truth values are elements of a bilatticeand the connectives are defined by bilattice operators).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 21/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bilattices and Logicality

    Why bilattices?

    Incorporation of information considerations.

    Simple ways of representing different levels ofinconsistency and incompleteness.

    Further considerations in defining logics:

    The connectives and their interpretations (standardconnectives are usually defined by the basic t -operators).The choice of the designated elements.

    What should be the designated elements?

    We need dual notions for lattice filters and prime-filters.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 22/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bilattices and Logicality

    Why bilattices?

    Incorporation of information considerations.

    Simple ways of representing different levels ofinconsistency and incompleteness.

    Further considerations in defining logics:

    The connectives and their interpretations (standardconnectives are usually defined by the basic t -operators).The choice of the designated elements.

    What should be the designated elements?

    We need dual notions for lattice filters and prime-filters.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 22/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bilattices and Logicality

    Why bilattices?

    Incorporation of information considerations.

    Simple ways of representing different levels ofinconsistency and incompleteness.

    Further considerations in defining logics:

    The connectives and their interpretations (standardconnectives are usually defined by the basic t -operators).The choice of the designated elements.

    What should be the designated elements?

    We need dual notions for lattice filters and prime-filters.Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 22/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters and Satisfiability

    Definition (Arieli, Avron)

    Let B = (B,t ,k ) be a bilattice.a) A bifilter of B is a nonempty subset F B, such that:

    1 a b F iff a F and b F ,2 a b F iff a F and b F .

    b) A bifilter F is prime, if it satisfies the following conditions:1 a b F iff a F or b F ,2 a b F iff a F or b F .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 23/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Examples of Bifilters

    6

    k

    - tt

    tf ttt>

    @@@@

    @@@@

    6

    k

    - tt

    tdf

    tdt

    tmtf ttt>

    HHHHAAAA

    @@

    HHHH

    @@

    Exactly one bifilter in FOUR and SEVEN : F = {t ,>}.This bifilter is prime in both cases.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 24/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Examples of Bifilters (Contd.)

    6k

    -tu

    umuf utu>

    HHHHJJJJJJ

    HHHH

    F = {t ,>} is also the unique bifilter of FIVE .This time, it is not prime: m F but m 6 F and 6 F .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 25/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Examples of Bifilters (Contd.)

    6

    k

    -tt

    tdf

    tdt

    tf tm tttpf tptt>

    @@@@

    @@@@

    @@@@

    6

    k

    -tt

    tdf

    tdt

    tf tm tttpf tptt>

    @@@@

    @@@@

    @

    @@@

    NINE has two bifilters, both are prime:F1 = {t ,pt ,>},F2 = {t ,pt ,dt ,>,m,pf}.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 26/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters Some Facts (Arieli, Avron)

    LemmaLet F be a bifilter in B. Then:

    a) F is upward-closed w.r.t. both t and k .b) t ,> F while f , 6 F .

    LemmaLet B = (B,t ,k ) be an interlaced (pre-)bilattice.

    a) A subset F of B is a (prime) bifilter iff it is a (prime) filterrelative to t , and > F .

    b) A subset F of B is a (prime) bifilter iff it is a (prime) filterrelative to k , and t F .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 27/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters Some Facts (Arieli, Avron)

    LemmaLet F be a bifilter in B. Then:

    a) F is upward-closed w.r.t. both t and k .b) t ,> F while f , 6 F .

    LemmaLet B = (B,t ,k ) be an interlaced (pre-)bilattice.

    a) A subset F of B is a (prime) bifilter iff it is a (prime) filterrelative to t , and > F .

    b) A subset F of B is a (prime) bifilter iff it is a (prime) filterrelative to k , and t F .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 27/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters More Facts

    Notation: Fk (a) = {b | b k a}, Ft (a) = {b | b t a}.

    LemmaLet B = (B,t ,k ) be a (pre-)bilattice.If Fk (t) = Ft (>), then Fk (t) is the smallest bifilter (i.e., it iscontained in any other bifilter of B).

    LemmaIn every interlaced bilattice it holds that Fk (t) = Ft (>), and thisis the smallest bifilter.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 28/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters More Facts

    Notation: Fk (a) = {b | b k a}, Ft (a) = {b | b t a}.

    LemmaLet B = (B,t ,k ) be a (pre-)bilattice.If Fk (t) = Ft (>), then Fk (t) is the smallest bifilter (i.e., it iscontained in any other bifilter of B).

    LemmaIn every interlaced bilattice it holds that Fk (t) = Ft (>), and thisis the smallest bifilter.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 28/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters More Facts

    Notation: Fk (a) = {b | b k a}, Ft (a) = {b | b t a}.

    LemmaLet B = (B,t ,k ) be a (pre-)bilattice.If Fk (t) = Ft (>), then Fk (t) is the smallest bifilter (i.e., it iscontained in any other bifilter of B).

    LemmaIn every interlaced bilattice it holds that Fk (t) = Ft (>), and thisis the smallest bifilter.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 28/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters in L L

    LemmaLet L = L,L be a complete lattice. Then F is a [prime-]bifilter in L L iff F = FL L, where FL is a [prime-] filter in L.

    Notation: Let a L, a 6= inf(L). We denote:F(a) = {(b1,b2) | b1 L a,b2 L}, FL(a) = {y L | y L a}.Lemma

    a) F(a) is a prime bifilter of LL iff FL(a) is a prime filter in L.b) F(sup(L)) is a minimal prime bifilters of L L if sup(L) is

    join irreducible (a L b = sup(L) a = sup(L) or b = sup(L)).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 29/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters in L L

    LemmaLet L = L,L be a complete lattice. Then F is a [prime-]bifilter in L L iff F = FL L, where FL is a [prime-] filter in L.

    Notation: Let a L, a 6= inf(L). We denote:F(a) = {(b1,b2) | b1 L a,b2 L}, FL(a) = {y L | y L a}.

    Lemmaa) F(a) is a prime bifilter of LL iff FL(a) is a prime filter in L.b) F(sup(L)) is a minimal prime bifilters of L L if sup(L) is

    join irreducible (a L b = sup(L) a = sup(L) or b = sup(L)).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 29/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Bifilters in L L

    LemmaLet L = L,L be a complete lattice. Then F is a [prime-]bifilter in L L iff F = FL L, where FL is a [prime-] filter in L.

    Notation: Let a L, a 6= inf(L). We denote:F(a) = {(b1,b2) | b1 L a,b2 L}, FL(a) = {y L | y L a}.Lemma

    a) F(a) is a prime bifilter of LL iff FL(a) is a prime filter in L.b) F(sup(L)) is a minimal prime bifilters of L L if sup(L) is

    join irreducible (a L b = sup(L) a = sup(L) or b = sup(L)).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 29/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Logical Billatices

    Definition (Arieli, Avron)

    A logical bilattice is a pair B,F, where B is a bilattice and F isa prime bifilter of B.

    General Constructions of Logical Bilattices

    L L,F(a) is a logical bilattice iff FL(a) is a prime filter in L.L L,F(sup(L)) is a logical bilattice iff sup(L) is joinirreducible.

    Every distributive bilattice can be turned into a logical bilattice.

    Every complete distributive lattice can be turned into a logicalbilattice.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 30/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Logical Billatices

    Definition (Arieli, Avron)

    A logical bilattice is a pair B,F, where B is a bilattice and F isa prime bifilter of B.

    General Constructions of Logical Bilattices

    L L,F(a) is a logical bilattice iff FL(a) is a prime filter in L.L L,F(sup(L)) is a logical bilattice iff sup(L) is joinirreducible.

    Every distributive bilattice can be turned into a logical bilattice.

    Every complete distributive lattice can be turned into a logicalbilattice.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 30/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Logical Billatices

    Definition (Arieli, Avron)

    A logical bilattice is a pair B,F, where B is a bilattice and F isa prime bifilter of B.

    General Constructions of Logical Bilattices

    L L,F(a) is a logical bilattice iff FL(a) is a prime filter in L.

    L L,F(sup(L)) is a logical bilattice iff sup(L) is joinirreducible.

    Every distributive bilattice can be turned into a logical bilattice.

    Every complete distributive lattice can be turned into a logicalbilattice.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 30/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Logical Billatices

    Definition (Arieli, Avron)

    A logical bilattice is a pair B,F, where B is a bilattice and F isa prime bifilter of B.

    General Constructions of Logical Bilattices

    L L,F(a) is a logical bilattice iff FL(a) is a prime filter in L.L L,F(sup(L)) is a logical bilattice iff sup(L) is joinirreducible.

    Every distributive bilattice can be turned into a logical bilattice.

    Every complete distributive lattice can be turned into a logicalbilattice.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 30/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Logical Billatices

    Definition (Arieli, Avron)

    A logical bilattice is a pair B,F, where B is a bilattice and F isa prime bifilter of B.

    General Constructions of Logical Bilattices

    L L,F(a) is a logical bilattice iff FL(a) is a prime filter in L.L L,F(sup(L)) is a logical bilattice iff sup(L) is joinirreducible.

    Every distributive bilattice can be turned into a logical bilattice.

    Every complete distributive lattice can be turned into a logicalbilattice.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 30/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Logical Billatices

    Definition (Arieli, Avron)

    A logical bilattice is a pair B,F, where B is a bilattice and F isa prime bifilter of B.

    General Constructions of Logical Bilattices

    L L,F(a) is a logical bilattice iff FL(a) is a prime filter in L.L L,F(sup(L)) is a logical bilattice iff sup(L) is joinirreducible.

    Every distributive bilattice can be turned into a logical bilattice.

    Every complete distributive lattice can be turned into a logicalbilattice.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 30/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Back to Logic

    Summary:

    A logical bilattice B = B,F induces a matrixMB for thelanguage L with the connectives ,,,,.

    InMB, the set of truth values is B (the elements of B), thedesignated elements are those in F , and the connectives areinterpreted by the basic operators of B.

    In turn,MB induces a corresponding logic LB = L,`B. Wecall it the basic logic induced by the logical bilattice B.

    We recall that in this logic, `B means that for every B,if () F for every then () F as well.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 31/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Back to Logic

    Summary:

    A logical bilattice B = B,F induces a matrixMB for thelanguage L with the connectives ,,,,.

    InMB, the set of truth values is B (the elements of B), thedesignated elements are those in F , and the connectives areinterpreted by the basic operators of B.

    In turn,MB induces a corresponding logic LB = L,`B. Wecall it the basic logic induced by the logical bilattice B.

    We recall that in this logic, `B means that for every B,if () F for every then () F as well.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 31/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Back to Logic

    Summary:

    A logical bilattice B = B,F induces a matrixMB for thelanguage L with the connectives ,,,,.

    InMB, the set of truth values is B (the elements of B), thedesignated elements are those in F , and the connectives areinterpreted by the basic operators of B.

    In turn,MB induces a corresponding logic LB = L,`B. Wecall it the basic logic induced by the logical bilattice B.

    We recall that in this logic, `B means that for every B,if () F for every then () F as well.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 31/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Back to Logic

    Summary:

    A logical bilattice B = B,F induces a matrixMB for thelanguage L with the connectives ,,,,.

    InMB, the set of truth values is B (the elements of B), thedesignated elements are those in F , and the connectives areinterpreted by the basic operators of B.

    In turn,MB induces a corresponding logic LB = L,`B. Wecall it the basic logic induced by the logical bilattice B.

    We recall that in this logic, `B means that for every B,if () F for every then () F as well.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 31/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Back to Logic

    Summary:

    A logical bilattice B = B,F induces a matrixMB for thelanguage L with the connectives ,,,,.

    InMB, the set of truth values is B (the elements of B), thedesignated elements are those in F , and the connectives areinterpreted by the basic operators of B.

    In turn,MB induces a corresponding logic LB = L,`B. Wecall it the basic logic induced by the logical bilattice B.

    We recall that in this logic, `B means that for every B,if () F for every then () F as well.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 31/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Adding Implication Connectives

    Note: In the language of {,,,,}, `B has no tautologies.(if p Atoms() (p) = , so () = 6 F).

    We add an implication connective for introducing tautologiesand for reducing deducibility to theoremhood:

    a b ={

    b if a F ,t if a 6 F .

    This connective is a generalization of the classicalimplication a b = a b (they are identical on {t , f}).Modus ponens and the deduction theorem are valid for `B:, `B iff `B .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 32/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Adding Implication Connectives

    Note: In the language of {,,,,}, `B has no tautologies.(if p Atoms() (p) = , so () = 6 F).We add an implication connective for introducing tautologiesand for reducing deducibility to theoremhood:

    a b ={

    b if a F ,t if a 6 F .

    This connective is a generalization of the classicalimplication a b = a b (they are identical on {t , f}).Modus ponens and the deduction theorem are valid for `B:, `B iff `B .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 32/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Adding Implication Connectives

    Note: In the language of {,,,,}, `B has no tautologies.(if p Atoms() (p) = , so () = 6 F).We add an implication connective for introducing tautologiesand for reducing deducibility to theoremhood:

    a b ={

    b if a F ,t if a 6 F .

    This connective is a generalization of the classicalimplication a b = a b (they are identical on {t , f}).Modus ponens and the deduction theorem are valid for `B:, `B iff `B .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 32/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Tweety Dilemma

    =

    bird(tweety) fly(tweety)penguin(tweety) bird(tweety)penguin(tweety) fly(tweety)bird(tweety)penguin(tweety)

    Model No. bird(tweety) fly(tweety) penguin(tweety)1 2 > > >, t3 4 > f >, t5 6 t > >, t

    `4 bird(tweety), 6`4 bird(tweety), `4 penguin(tweety), 6`4 penguin(tweety), `4 fly(tweety), 6`4 fly(tweety).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 33/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Tweety Dilemma

    =

    bird(tweety) fly(tweety)penguin(tweety) bird(tweety)penguin(tweety) fly(tweety)bird(tweety)penguin(tweety)

    Model No. bird(tweety) fly(tweety) penguin(tweety)1 2 > > >, t3 4 > f >, t5 6 t > >, t

    `4 bird(tweety), 6`4 bird(tweety), `4 penguin(tweety), 6`4 penguin(tweety), `4 fly(tweety), 6`4 fly(tweety).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 33/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Tweety Dilemma

    =

    bird(tweety) fly(tweety)penguin(tweety) bird(tweety)penguin(tweety) fly(tweety)bird(tweety)penguin(tweety)

    Model No. bird(tweety) fly(tweety) penguin(tweety)1 2 > > >, t3 4 > f >, t5 6 t > >, t

    `4 bird(tweety), 6`4 bird(tweety), `4 penguin(tweety), 6`4 penguin(tweety), `4 fly(tweety), 6`4 fly(tweety).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 33/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Some properties of `B

    Praconsistency:

    Lemmap,p 6`B q.

    Compactness:

    Theorem (Arieli, Avron)

    If `B then `B for a finite .Characterization in FOUR:

    Theorem (Arieli, Avron) `B iff `4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 34/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Some properties of `BPraconsistency:

    Lemmap,p 6`B q.

    Compactness:

    Theorem (Arieli, Avron)

    If `B then `B for a finite .Characterization in FOUR:

    Theorem (Arieli, Avron) `B iff `4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 34/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Some properties of `BPraconsistency:

    Lemmap,p 6`B q.

    Compactness:

    Theorem (Arieli, Avron)

    If `B then `B for a finite .

    Characterization in FOUR:Theorem (Arieli, Avron) `B iff `4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 34/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Some properties of `BPraconsistency:

    Lemmap,p 6`B q.

    Compactness:

    Theorem (Arieli, Avron)

    If `B then `B for a finite .Characterization in FOUR:

    Theorem (Arieli, Avron) `B iff `4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 34/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Proof Theory

    The system GBS

    (Gentzen-type Bilattice-based System)

    Axioms:, ,

    Structural Rules:

    Permutation:1, , , 2 1, , , 2

    1, , ,2 1, , ,2

    Contraction:1, , , 2

    1, , 2 1, , ,2

    1, ,2

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 35/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    The Proof System GBSLogical Rules:

    [] , ,

    , , []

    [] , , ,

    , , , []

    [] , , ,( )

    ,, ,( ) []

    [] , , ,

    , , , []

    [] ,, ,( )

    , , ,( ) []

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 36/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    The Proof System GBS

    Logical Rules (Contd.):

    [] , , ,

    , , , []

    [] ,, ,( )

    , , ,( ) []

    [] , , ,

    , , , []

    [] , , ,( )

    ,, ,( ) []

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 37/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    The Proof System GBS

    Logical Rules (Contd.):

    [] , , ,

    , , , []

    [] , , ,( )

    , , ( ), []

    [t] ,t , t [ t]

    [f] , f ,f [f]

    [] , ,> [>]

    [] , ,> [>]

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 38/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Main Results

    Definition `GBS if there is a finite , s.t. is provable in GBS.

    Theorem (Cut Elimination)If 1 `GBS and 2, `GBS , then 1, 2 `GBS .

    Theorem (Soundness and Completeness) `B iff `GBS .

    Corollary: `4 iff `GBS . Thus, the {,,, t, f}-fragmentof `4 is identical to the {,,, t, f}-fragment of classical logic.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 39/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Main Results

    Definition `GBS if there is a finite , s.t. is provable in GBS.

    Theorem (Cut Elimination)If 1 `GBS and 2, `GBS , then 1, 2 `GBS .

    Theorem (Soundness and Completeness) `B iff `GBS .

    Corollary: `4 iff `GBS . Thus, the {,,, t, f}-fragmentof `4 is identical to the {,,, t, f}-fragment of classical logic.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 39/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Main Results

    Definition `GBS if there is a finite , s.t. is provable in GBS.

    Theorem (Cut Elimination)If 1 `GBS and 2, `GBS , then 1, 2 `GBS .

    Theorem (Soundness and Completeness) `B iff `GBS .

    Corollary: `4 iff `GBS . Thus, the {,,, t, f}-fragmentof `4 is identical to the {,,, t, f}-fragment of classical logic.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 39/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Hilbert-type Proof Systems

    The system HBS

    (Hilbert-type Bilattice-based System)

    Defined Connective:

    def= ( ) ( )

    Inference Rule:

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 40/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    The Proof System HBSAxioms:

    [1] [2] ( ) ( ) ( )[3] (( ) ) [] [] [] [] [] [] ( ) ( ) ( )[] [] ( ) ( ) ( )[] ( ) [] ( ) [] ( ) [] ( ) [] ( ) []

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 41/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Main Results

    Theorem (HBS is well-axiomatized)A complete and sound axiomatization of every fragment of `Bthat includes , is given by the axioms of HBS that mentiononly the connectives of this fragment.

    Theorem (GBS and HBS are equivalent)1, . . . , n `GBS iff `HBS 1 . . . n .

    Theorem (Soundness and Completeness) `4 iff `HBS .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 42/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Adding Quantifiers

    Standard extensions to first order languages, taking e.g., as a generalization of .For a structure D, (x(x)) = inft{((d)) | d D}.

    Corresponding Gentzen-type rules:

    [] , (d) ,x(x)

    (y), x(x), []

    [ ] ,(y) ,x(x)

    (d), x(x), []

    Assuming, as usual, that the variable y is not free in .Quantifiers for and can be introduced in a similar way.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 43/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Adding Quantifiers

    Standard extensions to first order languages, taking e.g., as a generalization of .For a structure D, (x(x)) = inft{((d)) | d D}.

    Corresponding Gentzen-type rules:

    [] , (d) , x(x)

    (y), x(x), []

    [ ] ,(y) ,x(x)

    (d), x(x), []

    Assuming, as usual, that the variable y is not free in .

    Quantifiers for and can be introduced in a similar way.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 43/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Adding Quantifiers

    Standard extensions to first order languages, taking e.g., as a generalization of .For a structure D, (x(x)) = inft{((d)) | d D}.

    Corresponding Gentzen-type rules:

    [] , (d) , x(x)

    (y), x(x), []

    [ ] ,(y) ,x(x)

    (d), x(x), []

    Assuming, as usual, that the variable y is not free in .Quantifiers for and can be introduced in a similar way.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 43/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Drawbacks of `B

    Strictly weaker than classical logic even for consistenttheories.

    Rejects some very useful (and intuitively justified) inferencerules, such as the Disjunctive Syllogism: p,p q 6`B q.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 44/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Preferential Reasoning by the Information Order

    B = B,F a logical bilattice, where k is well-founded in B.

    Definitiona) 1 is k -smaller than 2, if for each atom p, 1(p) k 2(p).b) is a k -minimal model of if there is no model of that

    is k -smaller than .

    Definition

    `kB iff every k -minimal model of is a model of .

    Intuition: Do not assume anything that is not really known; Aslong as one keeps the redundant information as minimal aspossible, the tendency of getting into conflicts decreases.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 45/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Preferential Reasoning by the Information Order

    B = B,F a logical bilattice, where k is well-founded in B.Definition

    a) 1 is k -smaller than 2, if for each atom p, 1(p) k 2(p).b) is a k -minimal model of if there is no model of that

    is k -smaller than .

    Definition

    `kB iff every k -minimal model of is a model of .

    Intuition: Do not assume anything that is not really known; Aslong as one keeps the redundant information as minimal aspossible, the tendency of getting into conflicts decreases.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 45/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Preferential Reasoning by the Information Order

    B = B,F a logical bilattice, where k is well-founded in B.Definition

    a) 1 is k -smaller than 2, if for each atom p, 1(p) k 2(p).b) is a k -minimal model of if there is no model of that

    is k -smaller than .

    Definition

    `kB iff every k -minimal model of is a model of .

    Intuition: Do not assume anything that is not really known; Aslong as one keeps the redundant information as minimal aspossible, the tendency of getting into conflicts decreases.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 45/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Preferential Reasoning by the Information Order

    B = B,F a logical bilattice, where k is well-founded in B.Definition

    a) 1 is k -smaller than 2, if for each atom p, 1(p) k 2(p).b) is a k -minimal model of if there is no model of that

    is k -smaller than .

    Definition

    `kB iff every k -minimal model of is a model of .

    Intuition: Do not assume anything that is not really known; Aslong as one keeps the redundant information as minimal aspossible, the tendency of getting into conflicts decreases.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 45/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Tweety Dilemma, Revisited

    =

    bird(tweety) fly(tweety)penguin(tweety) bird(tweety)penguin(tweety) fly(tweety)bird(tweety)penguin(tweety)

    Two k -minimal models (out of six models)

    Model No. bird(tweety) fly(tweety) penguin(tweety)1 > f t2 t > t

    `k4 bird(tweety), 6`k4 bird(tweety), `k4 penguin(tweety), 6`k4 penguin(tweety), `k4 fly(tweety), 6`k4 fly(tweety).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 46/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Tweety Dilemma, Revisited

    =

    bird(tweety) fly(tweety)penguin(tweety) bird(tweety)penguin(tweety) fly(tweety)bird(tweety)penguin(tweety)

    Two k -minimal models (out of six models)

    Model No. bird(tweety) fly(tweety) penguin(tweety)1 > f t2 t > t `k4 bird(tweety), 6`k4 bird(tweety), `k4 penguin(tweety), 6`k4 penguin(tweety), `k4 fly(tweety), 6`k4 fly(tweety).Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 46/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Basic Properties of `kBTheoremB = B,F a logical bilattice where B is interlaced.If is in the language without , then `B iff `kB .

    Corollary: In the language without , `B-inferences areobtained by k -minimal models.Note: `kB is in general nonmonotonic, but it is cautiouslymonotonic: If `kB then , `kB when `kB .Theorem (Characterization in FOUR)B = B,F a logical bilattice such that infk F F .Then: `kB iff `k4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 47/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Basic Properties of `kBTheoremB = B,F a logical bilattice where B is interlaced.If is in the language without , then `B iff `kB .

    Corollary: In the language without , `B-inferences areobtained by k -minimal models.

    Note: `kB is in general nonmonotonic, but it is cautiouslymonotonic: If `kB then , `kB when `kB .Theorem (Characterization in FOUR)B = B,F a logical bilattice such that infk F F .Then: `kB iff `k4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 47/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Basic Properties of `kBTheoremB = B,F a logical bilattice where B is interlaced.If is in the language without , then `B iff `kB .

    Corollary: In the language without , `B-inferences areobtained by k -minimal models.Note: `kB is in general nonmonotonic, but it is cautiouslymonotonic: If `kB then , `kB when `kB .

    Theorem (Characterization in FOUR)B = B,F a logical bilattice such that infk F F .Then: `kB iff `k4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 47/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    IntroductionBilattice-based SemanticsThe Basic Logic of Logical BilatticesTaking Advantage of the Information Order

    Basic Properties of `kBTheoremB = B,F a logical bilattice where B is interlaced.If is in the language without , then `B iff `kB .

    Corollary: In the language without , `B-inferences areobtained by k -minimal models.Note: `kB is in general nonmonotonic, but it is cautiouslymonotonic: If `kB then , `kB when `kB .Theorem (Characterization in FOUR)B = B,F a logical bilattice such that infk F F .Then: `kB iff `k4 .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 47/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Bilattices and Logic Programming

    In a series of papers, Melving Fitting has shown that bilatticesare very useful for defining and analyzing fixpoint semantics forlogic programs.

    Some advantages of using bilattices in this context:

    Extended languages for logic programs.

    Generalizations of standard two- and three-valuedsemantics to finite-valued semantics.

    Accommodation of incompleteness and inconsistency.

    Characterizing structures of standard approaches fornegation handling (stable-model semantics, well-foundedsemantics).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 48/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Bilattices and Logic Programming

    In a series of papers, Melving Fitting has shown that bilatticesare very useful for defining and analyzing fixpoint semantics forlogic programs.

    Some advantages of using bilattices in this context:

    Extended languages for logic programs.

    Generalizations of standard two- and three-valuedsemantics to finite-valued semantics.

    Accommodation of incompleteness and inconsistency.

    Characterizing structures of standard approaches fornegation handling (stable-model semantics, well-foundedsemantics).

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 48/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    (Bilattice-based) Logic Programs

    A clause is an expression of the form A , whereThe clauses head A is a (first-order) atomic formula.The clauses body is a formula built-up from literals(atoms or negated atoms) using {,,,,, } andconstants from B, and whose free variables occur in A.

    A logic program P is a finite set of clauses. If there are nonegations in the clauses bodies, P is called positive.

    Note: We may assume that there are no different clauses withthe same head, and that the bodies are non-empty, sinceA 1 and A 2 are replaced by A 1 2, and A isreplaced by A t.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 49/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    (Bilattice-based) Logic Programs

    A clause is an expression of the form A , whereThe clauses head A is a (first-order) atomic formula.The clauses body is a formula built-up from literals(atoms or negated atoms) using {,,,,, } andconstants from B, and whose free variables occur in A.

    A logic program P is a finite set of clauses. If there are nonegations in the clauses bodies, P is called positive.

    Note: We may assume that there are no different clauses withthe same head, and that the bodies are non-empty, sinceA 1 and A 2 are replaced by A 1 2, and A isreplaced by A t.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 49/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    (Bilattice-based) Logic Programs

    A clause is an expression of the form A , whereThe clauses head A is a (first-order) atomic formula.The clauses body is a formula built-up from literals(atoms or negated atoms) using {,,,,, } andconstants from B, and whose free variables occur in A.

    A logic program P is a finite set of clauses. If there are nonegations in the clauses bodies, P is called positive.

    Note: We may assume that there are no different clauses withthe same head, and that the bodies are non-empty, sinceA 1 and A 2 are replaced by A 1 2, and A isreplaced by A t.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 49/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Example

    A t,C B A,D B C,E C D E

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 50/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    The Immediate Consequence Operator T PBNotations:P: the grounding of P over the Herbard base,PB = { | : Atoms(P) B}: the B-valuations for P.

    Note: PB ,t ,k is a pre-bilattice:1 t 2 iff 1(A) t 2(A) for every ground atom A,1 k 2 iff 1(A) k 2(A) for every ground atom A.

    Definition (Fitting, Apt, van-Emden, Kowalski)

    T PB : PB PB is defined by:

    T PB ()(A) ={() if A P,f otherwise.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 51/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    The Immediate Consequence Operator T PBNotations:P: the grounding of P over the Herbard base,PB = { | : Atoms(P) B}: the B-valuations for P.

    Note: PB ,t ,k is a pre-bilattice:1 t 2 iff 1(A) t 2(A) for every ground atom A,1 k 2 iff 1(A) k 2(A) for every ground atom A.

    Definition (Fitting, Apt, van-Emden, Kowalski)

    T PB : PB PB is defined by:

    T PB ()(A) ={() if A P,f otherwise.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 51/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    The Immediate Consequence Operator T PBNotations:P: the grounding of P over the Herbard base,PB = { | : Atoms(P) B}: the B-valuations for P.

    Note: PB ,t ,k is a pre-bilattice:1 t 2 iff 1(A) t 2(A) for every ground atom A,1 k 2 iff 1(A) k 2(A) for every ground atom A.

    Definition (Fitting, Apt, van-Emden, Kowalski)

    T PB : PB PB is defined by:

    T PB ()(A) ={() if A P,f otherwise.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 51/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Fixpoints of T PB

    Note: If B is an interlaced pre-bilattice, then T PB is k -monotone on PB : 1 k 2 T PB (1) k T PB (2). If P is positive, then T PB is t -monotone on PB .

    Thus: If P is positive and B is interlaced, T PB has a t -least fixpoint t and a t -greatest fixpoint Vt , T PB has a k -least fixpoint k and a k -greatest fixpoints Vk .(by Knaster-Tarski Theorem)

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 52/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Fixpoints of T PB

    Note: If B is an interlaced pre-bilattice, then T PB is k -monotone on PB : 1 k 2 T PB (1) k T PB (2). If P is positive, then T PB is t -monotone on PB .

    Thus: If P is positive and B is interlaced, T PB has a t -least fixpoint t and a t -greatest fixpoint Vt , T PB has a k -least fixpoint k and a k -greatest fixpoints Vk .(by Knaster-Tarski Theorem)

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 52/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -least fixpoint, k :Start with the k -smallest valuation, and iterate over T PB :

    1 A : , B : , C : , D : , E : 02 A : t , B : f , C : , D : , E : 1 = T PB (0)3 A : t , B : f , C : >, D : , E : 2 = T PB (1)4 A : t , B : f , C : >, D : f , E : t 3 = T PB (2) k = 3

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 53/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -least fixpoint, k :Start with the k -smallest valuation, and iterate over T PB :

    1 A : , B : , C : , D : , E : 02 A : t , B : f , C : , D : , E : 1 = T PB (0)3 A : t , B : f , C : >, D : , E : 2 = T PB (1)4 A : t , B : f , C : >, D : f , E : t 3 = T PB (2) k = 3

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 53/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -least fixpoint, k :Start with the k -smallest valuation, and iterate over T PB :

    1 A : , B : , C : , D : , E : 0

    2 A : t , B : f , C : , D : , E : 1 = T PB (0)3 A : t , B : f , C : >, D : , E : 2 = T PB (1)4 A : t , B : f , C : >, D : f , E : t 3 = T PB (2) k = 3

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 53/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -least fixpoint, k :Start with the k -smallest valuation, and iterate over T PB :

    1 A : , B : , C : , D : , E : 02 A : t , B : f , C : , D : , E : 1 = T PB (0)

    3 A : t , B : f , C : >, D : , E : 2 = T PB (1)4 A : t , B : f , C : >, D : f , E : t 3 = T PB (2) k = 3

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 53/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -least fixpoint, k :Start with the k -smallest valuation, and iterate over T PB :

    1 A : , B : , C : , D : , E : 02 A : t , B : f , C : , D : , E : 1 = T PB (0)3 A : t , B : f , C : >, D : , E : 2 = T PB (1)

    4 A : t , B : f , C : >, D : f , E : t 3 = T PB (2) k = 3

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 53/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -least fixpoint, k :Start with the k -smallest valuation, and iterate over T PB :

    1 A : , B : , C : , D : , E : 02 A : t , B : f , C : , D : , E : 1 = T PB (0)3 A : t , B : f , C : >, D : , E : 2 = T PB (1)4 A : t , B : f , C : >, D : f , E : t 3 = T PB (2) k = 3

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 53/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -greatest fixpoint, Vk :Start with the k -largest valuation, and iterate over T PB :

    1 A : >, B : >, C : >, D : >, E : > V02 A : t , B : f , C : >, D : >, E : > V1 = T PB (V0)3 A : t , B : f , C : >, D : f , E : > V2 = T PB (V1) Vk = V2

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 54/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -greatest fixpoint, Vk :Start with the k -largest valuation, and iterate over T PB :

    1 A : >, B : >, C : >, D : >, E : > V0

    2 A : t , B : f , C : >, D : >, E : > V1 = T PB (V0)3 A : t , B : f , C : >, D : f , E : > V2 = T PB (V1) Vk = V2

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 54/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -greatest fixpoint, Vk :Start with the k -largest valuation, and iterate over T PB :

    1 A : >, B : >, C : >, D : >, E : > V02 A : t , B : f , C : >, D : >, E : > V1 = T PB (V0)

    3 A : t , B : f , C : >, D : f , E : > V2 = T PB (V1) Vk = V2

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 54/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Computing the Fixpoints of T PBA t,C B A,D B C,E C D E

    Computing the k -greatest fixpoint, Vk :Start with the k -largest valuation, and iterate over T PB :

    1 A : >, B : >, C : >, D : >, E : > V02 A : t , B : f , C : >, D : >, E : > V1 = T PB (V0)3 A : t , B : f , C : >, D : f , E : > V2 = T PB (V1) Vk = V2

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 54/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Relating the Fixpoints of T PBt and Vt are computed similarly, starting with the t -smallestand the t -largest valuation (respectively) and iterating over T PB

    In our example t = Vk and Vt = k , thus:k = Vt = {A : t , B : f , C : >, D : f , E : t},t = Vk = {A : t , B : f , C : >, D : f , E : >}.

    In general, we have:

    Theorem (Fitting)If P is positive and B is interlaced, then:k = t Vt , Vk = t Vt , t = k Vk , Vt = k Vk .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 55/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Relating the Fixpoints of T PBt and Vt are computed similarly, starting with the t -smallestand the t -largest valuation (respectively) and iterating over T PBIn our example t = Vk and Vt = k , thus:

    k = Vt = {A : t , B : f , C : >, D : f , E : t},t = Vk = {A : t , B : f , C : >, D : f , E : >}.

    In general, we have:

    Theorem (Fitting)If P is positive and B is interlaced, then:k = t Vt , Vk = t Vt , t = k Vk , Vt = k Vk .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 55/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Relating the Fixpoints of T PBt and Vt are computed similarly, starting with the t -smallestand the t -largest valuation (respectively) and iterating over T PBIn our example t = Vk and Vt = k , thus:

    k = Vt = {A : t , B : f , C : >, D : f , E : t},t = Vk = {A : t , B : f , C : >, D : f , E : >}.

    In general, we have:

    Theorem (Fitting)If P is positive and B is interlaced, then:k = t Vt , Vk = t Vt , t = k Vk , Vt = k Vk .

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 55/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Another Exampleeven(0) t,even(s(x)) odd(x),odd(s(x)) even(x)

    Grounding:

    even(0) t,even(s(0)) odd(0),odd(s(0)) even(0),even(s(s(0))) odd(s(0)),odd(s(s(0))) even(s(0)), . . .

    A unique fixpoint: (even(sn(0)) = t iff n is even.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 56/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic Programming

    Summary and References

    Another Exampleeven(0) t,even(s(x)) odd(x),odd(s(x)) even(x)

    Grounding:

    even(0) t,even(s(0)) odd(0),odd(s(0)) even(0),even(s(s(0))) odd(s(0)),odd(s(s(0))) even(s(0)), . . .

    A unique fixpoint: (even(sn(0)) = t iff n is even.

    Duality12, Oxford UK, June 13-14, 2012 A Tutorial On Bilattices 56/64

  • Introduction and OverviewBilattice Theory

    Bilattice-based LogicsBilattices and Logic P