Title: Modal logic and databases
1Modal logic and databases
2Terms
- Object terms
- Concept terms
- ?t object denoted by concept t in some context
- Type designations o (object) and c (concept)
3Syntax
4Semantics
5Valuation
6Truth and modal models
7Relational databases
- Record basic unit of information in rdb
- Cant return it directly as answer to query
- Each one is a possible world
- Accessibility (i.e. proximity of possible
worlds) the S5 logic - db field attributes individual concepts
- db field entries individual objects
8Sample database
9Axioms
10The worlds and mappings
Validity true in every world
11Rigidity
- t is rigid if it always designates the same
object, no matter which world - FWIW in linguistics, proper names are rigid
- Rigidity can be relative w/rt subsets of all
possible worlds - Databases functional dependencies (e.g. between
attributes)
12Designation
- Designation is only possible when interpretation
is grounded.
13A query
14Another query
returns t
15Additional relation(ship)s
now add...
16Higher-order relations
relation of type ltgtPERSON
relation of type ltgtLOCATION
17The new (relational) constraint axioms
18The new instance axioms
19A sample derivation
Prove
Strategy Prove X Prove X is false
20A shorthand derivation
21The overall derivation
22The strategy
Prove X is false
23Reduce query to disjuncts
24Introduce Axiom 5
25Apply the shorthand derivation
F
26Instantiate with query objects
27?-reduce
28Apply and reduce Axiom 7
29Apply shorthand rule to 11
30Apply disjunction rule
31Instantiate
32Contradiction! (lhs)
33Instantiate
34Contradiction!
35Another example
36Attributes and relations
37Sample query 1
Which items have 2 cylinders?
38Checking query 1 (for instance 3)
check the relevant world(s) with appropriate
mappings
and resolve each conjunct...
39Sample query (2)
- What choices does a customer have when purchasing
a 4-cylinder car?
40Sample query (3)
- What features can a customer choose that are
available for more than one product?