FOLE Equivalence
Abstract
The first-order logical environment FOLE provides a rigorous and principled approach to distributed interoperable first-order information systems. FOLE has been developed in two forms: a classification form and an interpretation form. Two papers represent FOLE in a classification form corresponding to ideas of the Information Flow Framework ([14],[15],[16]): the first paper [9] provides a foundation that connects elements of the ERA data model [2] with components of the first-order logical environment FOLE; the second paper [10] provides a superstructure that extends FOLE to the formalisms of first-order logic. The formalisms in the classification form of FOLE provide an appropriate framework for developing the relational calculus. Two other papers represent FOLE in an interpretation form: the first paper [11] develops the notion of the FOLE table following the relational model [3]; the second paper [12] discusses the notion of a FOLE relational database. All the operations of the relational algebra have been rigorously developed [13] using the interpretation form of FOLE. The present study demonstrates that the classification form of FOLE is informationally equivalent to the interpretation form of FOLE. In general, the FOLE representation uses a conceptual structures approach, that is completely compatible with the theory of institutions, formal concept analysis and information flow.
Keywords:
structures, specifications, sound logics, databases.1 Preface.
The architecture for the first-order logical environment FOLE is displayed in Fig. 1. 111 FOLE is described in the following papers: “The ERA of FOLE: Foundation” [9], “The ERA of FOLE: Superstructure” [10], “The FOLE Table” [11], “The FOLE Database” [12], “FOLE Equivalence” [this paper], and “Relational Operations in FOLE” [13] . The left side of Fig. 1 represents FOLE in classification form. The right side of Fig. 1 represents FOLE in interpretation form.
Classification form.
An ontology defines the primitives with which to model the knowledge resources for a community of discourse (Gruber [6]). These primitives, which consist of classes, relationships and properties, are represented by the entity-relationship-attribute ERA model (Chen [2]). An ontology uses formal axioms to constrain the interpretation of these primitives. In short, an ontology specifies a logical theory.
Two papers provide a rigorous mathematical representation for the ERA data model in particular, and ontologies in general, within the first-order logical environment FOLE. These papers represent the formalism and semantics of (many-sorted) first-order logic in a classification form corresponding to ideas discussed in the Information Flow Framework (IFF [16]). The paper (Kent [9]) develops the notion of a FOLE structure; this provides a foundation that connects elements of the ERA data model with components of the first-order logical environment FOLE. The paper (Kent [10]) develops the notion of a FOLE sound logic; this provides a superstructure that extends FOLE to the formalisms of first-order logic.
Interpretation form.
The relational model (Codd [3]) is an approach for the information management of a “community of discourse” 222Examples include: an academic discipline; a commercial enterprise; the genetics research community, library science; the legal profession; etc. using the semantics and formalism of (many-sorted) first-order predicate logic. The first-order logical environment FOLE (Kent [8]) is a category-theoretic representation for this logic. 333Following the original discussion of FOLE (Kent [8]), we use the term mathematical context for the concept of a category, the term passage for the concept of a functor, and the term bridge for the concept of a natural transformation. A context represents some “species of mathematical structure”. A passage is a “natural construction on structures of one species, yielding structures of another species” (Goguen [5]). Hence, the relational model can naturally be represented in FOLE. A series of papers is being developed to provide a rigorous mathematical basis for FOLE by defining an architectural semantics for the relational data model.
Two papers provide a precise mathematical basis for FOLE interpretation. Both of these papers expand on material found in the paper (Kent [7]). The paper (Kent [11]) develops the notion of a FOLE table following the relational model (Codd [3]). The paper (Kent [12]) develops the notion of a FOLE relational database, thus providing the foundation for the semantics of first-order logical/relational database systems.
Equivalence.
The current paper “FOLE Equivalence” defines an interpretation of FOLE in terms of the transformational passage, first described in (Kent [8]), from the classification form of first-order logic to an equivalent interpretation form, thereby defining the formalism and semantics of first-order logical/relational database systems. Although the classification form follows the entity-relationship-attribute data model of Chen [2], the interpretation form incorporates the relational data model of Codd [3]. Relational operations are described in the paper (Kent [13]). The relational calculus will be discussed in a future paper.
2 Introduction.
This paper defines the equivalence between two forms of the first-order logical environment FOLE, the classification form and the interpretation form. Equivalence sits between the top of both forms, pictured briefly on the right, and more completely in Fig.1 in the preface §1. The classification form hierarchy (left hand side) consists of “The FOLE Foundation” at the bottom and “The FOLE Superstructure” at the top. The interpretation form hierarchy (right hand side) consists of “The FOLE Table” at the bottom and “The FOLE Database” at the top. |
|
2.1 First Order Logical Environment
This paper relates two forms of the first order logic environment FOLE: the classification form and the interpretation form. These two forms are shown to be “informationally equivalent” 444See Prop. 12 in § A.1 of the paper [11] “The FOLE Table”. to each other. Both forms have their own advantages: the classification form allows formalism 555See the paper [10] “The ERA of FOLE: Superstructure”. to be easily defined, whereas the interpretation form allows relational operations 666See the paper [13] “Relational Operations in FOLE”. to be easily defined. The classification form of FOLE is realized in the notion of a (lax) sound logic, whereas the interpretation form of FOLE is realized in the notion of a relational database. To demonstrate the equivalence of the classification form with the interpretation form, (lax) sound logics and relational databases are shown to be in a reflective relationship (Fig. 2). Although a FOLE relational database can be taken as a whole, a FOLE sound logic resolves into the two parts of structure and specification, plus the relationship of satisfaction. 777The satisfaction relation corresponds to the “truth classification” in Barwise and Seligman [1], where the conceptual intent corresponds to the “theory of ”.
In more detail (Tbl. 1), the classification form of FOLE is represented by a (lax) sound logic consisting of two components, a (lax) structure and an abstract specification, which are connected by a satisfaction relation. The (lax) structure consists of a (lax) entity classification, an attribute classification (typed domain), a schema, and one of the two equivalent descriptions: either a tabular map from predicates to tables; or a bridge consisting of an indexed collection of table tuple functions. The abstract specification is the same as a the database schema. Satisfaction is defined by table interpretation using constraints. The interpretation form of FOLE is represented by a relational database with constant type domain, a tabular interpretation diagram, whose projective components consist of a database schema, a key diagram, and a tuple bridge. The tabular interpretation diagram is equivalent to the satisfaction relation between the (lax) structure and the abstract specification. 888See (Key) Prop. 3 in § 5.3.
2.2 Overview.
: A database resolves into a sound logic: the specification is the database schema projection; the (lax) structure is the constraint-free aspect of a database; and tabular interpretation defines satisfaction. : A sound logic assembles a database: the specification provides (is the same as) the database schema; the (lax) structure provides a constraint-free interpretation consisting of a collection of tables indexed by predicates; and satisfaction defines the tabular interpretation. |
Briefly, § 3 defines some basic concepts of FOLE (formula, interpretation and satisfaction); § 4 defines structures and converts them to a lax variety; § 5 defines formal and abstract specifications, and satisfaction of specifications by structures; § 6 defines (lax) sound logics and converts these to relational databases; and § 7 defines relational databases and converts these to (lax) sound logics. In overview, Table 2 lists the figures and tables used in this paper.
Basic Concepts.
§ 3 reviews some basic concepts (Tbl. 3) of the FOLE logical environment from § 2 of the paper [10] “Superstructure”. This covers the concepts of formalism, tabular interpretation, and satisfaction. § 3.1 recapitulates the definition of formalism in [10]. Formalism is defined in terms of the logical Boolean operations and quantifiers using syntactic flow (Tbl. 4). § 3.2 extends to tables the definition of logical interpretation in [10] using Boolean operations within fibers and quantifier flow between fibers (Tbl. 5). It represents the syntactic flow operators of Tbl. 4 by their associated semantic flow operators (Tbl. 6). § 3.3 reviews the notion of satisfaction in [10], which links formalism and semantics via satisfaction. Satisfaction is defined for both sequents and constraints. Satisfaction is reflective (Fig. 3) between relations and tables.
Structures.
§ 4 reviews and extends the basic concepts of FOLE structure and structure morphism from § 4.3 of the paper [9]“Foundation”. In § 4.1, Def. 1 defines a FOLE structure with both a classification and interpretation form. Fig. 4 illustrates this idea. Note the global key sets used in the entity classification of this definition. In § 4.2, Def. 2 defines an extended notion of FOLE structure morphism by adding internal bridges. Fig. 5 illustrates this idea. Note the global key function in the entity infomorphism of this definition. § 4.3 defines a transition from strict to lax structures and structure morphisms. This is accomplished by changing the entity classification and entity infomorphism to lax versions, thus changing the global key sets and key function to local versions. Note 1, Prop. 1 (Key) and Cor. 1 define a step-by-step process for this transition. Fig. 6 illustrates the steps of this transition. § 4.4 and § 4.5 introduce the idea of lax structures and lax structure morphisms. We generalize to lax structures and lax structure morphisms by eliminating the global key sets and key functions. Def. 3 defines a lax FOLE structure in terms of either a tabular interpretation function or a tuple bridge. Prop. 2 shows that a lax structure is the same as the constraint-free aspect of a database. Def. 4 defines a (lax) structure morphism. Cor. 2 shows that a (lax) structure morphism defines a tabular interpretation bridge function. Fig. 7 illustrates a (lax) structure morphism.
Specifications.
§ 5 reviews and extends the notion of a FOLE specification. Formal FOLE specifications are covered in § 3.1 of the paper [10] “Superstructure”. Here we extend to abstract FOLE specifications. § 5.1 defines a formal specification in Def. 5 and an abstract specification in Def. 6. Every abstract specification is closely linked to a companion formal specification. § 5.2 defines a abstract specification morphism in Def. 7 and illustrates this in Fig. 8. Abstract specifications and morphisms are the same as database schemas and morphisms. § 5.3 defines specification satisfaction. Def. 8 defines satisfaction for formal specifications, whereas Def. 9 defines satisfaction for abstract specifications in terms of satisfaction for rheir formal companion. Assuming satisfaction holds, Def. 10 defines the abstract table passage as the composition of the object-identical companion passage, the inclusion into the structure conceptual intent, and the relation interpretation passage of Lem. 2 in § 3.3. Prop. 3 is key: it proves that satisfaction is equivalent to tabular interpretation, This is central, since it binds together the two parts of a sound logic, its structure and its specification. It underpins the core idea that sound logics are equivalent to relational databases. Fig. 9 illustrates and compares specification passages, both in general and with satisfaction. Tbl. 7 illustrates and compares specifications with the sound logics defined in § 6.
Sound Logics.
§ 6 reviews the notion of a FOLE sound logic. § 6.1 discusses sound logics. Def. 11 defines (lax) sound logics in terms of satisfaction between its two components: structure and abstract specification. Prop. 4 proves that any (lax) sound logic defines a relational database. Tbl. 8 lists and illustrates the various components of a (lax) sound logic. § 6.2 discusses sound logic morphisms. Def. 12 defines the notion of a (lax) sound logic morphism. Prop. 5 shows how (lax) sound logic morphisms preserve and link satisfaction between their source and target logics. The large figure Fig. 10 expands in detail the naturality used in this proposition. Prop. 6 proves that a (lax) sound logic morphism defines a database morphism. Thm. 6.1 proves existence of a passage from the context of (lax) FOLE sound logics to the context of FOLE relational databases. Tbl. 9 illustrates the components of a (lax) sound logic morphism.
Relational Databases.
§ 7 reviews the notion of a FOLE relational database. § 7.1 discusses FOLE relational databases. Def. 13 defines a relational database as an interpretation diagram from predicates to tables for a fixed type domain. Fig. 11 illustrates this definition. Def. 14 defines relational databases using table projection passages. Tbl. 10 lists the components of a FOLE relational database. Prop. 7 shows that the constraint-free aspect of a database is the same as a (lax) structure. Prop. 8 proves that a FOLE database defines a (lax) FOLE sound logic. § 7.2 discusses FOLE relational database morphisms. Def. 15 defines a database morphism to consist of a tabular passage between source/target predicate contexts, an infomorphism between source/target type domains, and a bridge connecting the source/target tabular interpretations. Fig. 12 illustrates this definition. Def. 16 defines relational database morphisms using table projection passages. Tbl. 11 lists and Fig. 14 illustrates the components of a FOLE relational database. Prop. 9 shows that the constraint-free aspect of a FOLE database morphism is the same as a (lax) FOLE structure morphism. Prop. 10 proves that a FOLE database morphism defines a (lax) FOLE sound logic morphism. Thm. 7.1 proves existence of a passage from the context of FOLE relational databases to the context of (lax) FOLE sound logics. Thm. 7.2 proves that the contexts of FOLE relational databases and FOLE (lax) sound logics are “informationally equivelent” by way of a reflection.
Appendix.
§ 0.A.1 lists the FOLE components used in this paper. Tbl. 12 in § 0.A.1 lists the equivalent and adjoint versions of FOLE bridges. Tbl. 13 in § 0.A.1 lists the FOLE Morphisms. § 0.A.2 reviews the concepts of classifications and infomorphisms. Both are extended to lax versions.
|
|
3 Basic Concepts
The basic concepts of FOLE are listed in Tbl. 3. 999Satisfaction for (abstract) specifications is define in Def. 9 of § 5.3. Except for the formula interpretation in Tbl.5, we can refer all the formal material to the paper “The ERA of FOLE: Superstructure” [10].
§ 2.1 | Formalism (formulas, sequents, constraints) |
Axioms (Tbl. 3) | |
§ 2.2 | Semantics (formula interpretation) |
Formal/Semantics Reflection (Tbl. 6) | |
§ 2.3 | Satisfaction (sequents, constraints) |
3.1 Formalism
Formulas.
Let be a fixed schema with a set of entity types , a set of sorts (attribute types) and a signature function . The set of entity types is partitioned into fibers, where is the fiber (subset) of all entity types with signature . These are called -ary entity types. 101010This is a slight misnomer, since the signature of is , whereas the arity of is . Here, we follow the tuple, domain, and relation calculi from database theory, using logical operations to extend the set of basic entity types to a set of defined entity types called formulas or queries.
Formulas, which are defined entity types corresponding to queries, are constructed by using logical connectives within a fiber and logical flow along signature morphisms between fibers (Tbl. 4). 111111An -signature morphism in is an arity function that preserves signature . 121212The full version of FOLE (Kent [8]) defines syntactic flow along term vectors. Logical connectives on formulas express intuitive notions of natural language operations on the interpretation (extent, view) of formulas. These connectives include: conjunction, disjunction, negation, implication, etc. For any signature , let denote the set of all formulas with this signature. There are called -ary formulas. The set of -formulas is partitioned as .
-
fiber:
Let be any signature. Any -ary entity type (relation symbol) is an -ary formula; that is, . For a pair of -ary formulas and , there are the following -ary formulas: meet , join , implication and difference . For -ary formula , there is an -ary negation formula . There are top/bottom -ary formulas and .
-
flow:
Let be any signature morphism. For -ary formula , there are -ary existentially/universally quantified formulas and . 131313For any index , quantification for the complement inclusion signature function gives the traditional syntactic quantifiers . For an -ary formula , there is an -ary substitution formula .
In general, we regard formulas to be constructed entities or queries (defining views and interpretations; i.e., relations/tables), not assertions. Contrast this with the use of “asserted formulas” below. For example, in a corporation data model the conjunction is not an assertion, but a constructed entity type or query that defines the view “salaried employees that are married”. Formulas form a schema that extends with -formulas as entity types: with the inductive definitions above, the set of entity types is extended to a set of logical formulas , and the entity type signature function is extended to a formula signature function with .
Sequents.
To make an assertion about things, we use a sequent. Let be a schema. A (binary) -sequent 141414Since FOLE formulas are not just types, but are constructed using, inter alia, conjunction and disjunction operations, we can restrict attention to binary sequents. is a pair of formulas with the same signature . To be explicit that we are making an assertion, we use the turnstile notation for a sequent. Then, we are claiming that a specialization-generalization relationship exists between the formulas and . A asserted sequent expresses interpretation widening, with the interpretation (view) of required to be within the interpretation (view) of . An asserted formula can be identified with the sequent in , which asserts the universal view “all entities” of signature . Hence, from an entailment viewpoint we can say that “formulas are sequents”. In the opposite direction, there is an enfolding map that maps -sequents to -formulas . The axioms in Tbl. 3 of the paper [10] make sequents into an order. Let denote the fiber preorder of -formulas.
Constraints.
Sequents only connect formulas within a particular fiber: an -sequent is between two formulas with the same signature , and hence between elements in the same fiber . We now define a useful notion that connects formulas across fibers. An -constraint consists of a signature morphism and a binary sequent in , or equivalently by the axioms in Tbl. 3 of the paper [10], a binary sequent in . Hence, a constraint requires that the interpretation of the -projection of be within the interpretation of , or equivalently, that the interpretation of be within the interpretation of the -substitution of . 151515In some sense, this formula/constraint approach to formalism turns the tuple calculus upside down, with atoms in the tuple calculus becoming constraints here.
Given any schema , an -constraint has source formula and target formula . Constraints are closed under composition: . Let 161616, which stands for “-constraints”, was defined in the paper [10]. denote the mathematical context, whose set of objects are -formulas and whose set of morphisms are -constraints. This context is fibered over the projection passage . Formula formation is idempotent: and . 171717Formulas form a schema that extends with -formulas as entity types (relation names): by induction, the set of entity types is extended to a set of logical formulas , and the entity type signature function is extended to a formula signature function with .
Sequents are special cases of constraints: a sequent asserts a constraint that uses an identity signature morphism. 181818A constraint in the fiber uses an identity signature morphism , and hence is a sequent . Since an asserted formula can be identified with the sequent , it can also be identified with the constraint . Thus, from an entailment viewpoint we can say that “formulas are sequents are constraints”. In the opposite direction, there are enfolding maps that map -constraints to -formulas: either with signature , or with signature .
3.2 Interpretation
The logical semantics of a structure resides in its core, which is defined by its formula interpretation function
(1) |
The formula interpretation function, which extends the traditional interpretation function of a structure (Def. 1 in § 4), is defined in Tbl. 5 by induction within fibers and flow between fibers. To respect the logical semantics, the formal flow operators (,,) for existential/universal quantification and substitution reflect the semantic flow operators (,,) via interpretation (Tbl. 6). 191919The morphic aspect of Tbl. 6 anticipates the definition of satisfaction in §.3.3: for sequents within the fibers and for constraints using flow between fibers; .
- fiber:
-
For each signature , the fiber function is defined in the top part of Tbl. 5 by induction on formulas. At the base step (first line in the top of Tbl. 5), it defines the formula interpretation of an entity type as the traditional interpretation of that type: the -table (Fig. 4 of §4). At the induction step (remaining lines in the top of Tbl. 5), it represents the logical operations by their associated boolean operations: meet of interpretations for conjunction, join of interpretations for disjunction, etc.; see the boolean operations defined in § 3.2 of the paper “Relational Operations in FOLE” [13].
- flow:
-
(bottom Tbl. 5), It represents the syntactic flow operators in Tbl. 4 by their associated semantic flow operators; see the adjoint flow for fixed type domain defined in § 3.3.1 of the paper “Relational Operations in FOLE” [13]. 202020The paper [13] used only two of the three operators in the fiber adjunction of tables (2) defined by composition/pullback: the left adjoint existential operation (called projection) and the right adjoint substitution or inverse image operation (called inflation). The function is the parallel combination of its fiber functions defined above. The function is defined in terms of these fiber functions and the flow operators.
fiber: signature with extent (tuple set) | |
---|---|
operator | definition |
entity type | |
meet | |
join | |
top | terminal table |
bottom | initial table |
negation | |
implication | |
difference | |
flow: signature morphism | |
with tuple map | |
operator | definition |
existential | |
universal | |
substitution |
|
|
3.3 Satisfaction.
Satisfaction is a fundamental classification between formalism and semantics. The atom of formalism used in satisfaction is the FOLE constraint, whereas the atom of semantics used in satisfaction is the FOLE structure. Satisfaction is defined in terms of the table formula interpretation function of § 3.2 and the associated the relation formula interpretation function . 212121Denoted by in § 2,2,1 of the paper “The ERA of FOLE: Superstructure” [10] Assume that we are given a structure schema with a set of predicate symbols and a signature (header) map .
Sequent Satisfaction.
A (lax) -structure satisfies a formal -sequent , for a pair of formulas with the same signature , when the interpretation widening of views asserted by the sequent actually holds in :
222222See the formal/semantics reflection defined in § A.1 of the paper “The FOLE Table” [11] and in § 3.1 of the paper “Relational Operations in FOLE” [13]..
Satisfaction is symbolized either by or by . For each signature , satisfaction defines the fiber order , where when for any two formulas .
Constraint Satisfaction.
A (lax) -structure satisfies a formal -constraint , for a pair of formulas connected by a signature morphism , when the following equivalence holds
(3) |
reflectively (visualized in Fig. 3)
(4) |
Satisfaction is symbolized by .
Lemma 1
A (lax) -structure determines a mathematical context , called the conceptual intent of , whose objects are -formulas and whose morphisms are -constraints satisfied by . The fiber is the order . 232323The satisfaction relation corresponds to the “truth classification” in Barwise and Seligman [1], where the conceptual intent corresponds to the “theory of ”.
Proof
is closed under constraint identities and constraint composition.
1: ,
and
2:
if
and ,
then ,
since
and
implies
.
Lemma 2
For any structure , there is a relation interpretation passage and a table interpretation graph morphism, 242424Relational interpretation is closed under composition; tabular interpretation is closed under composition only up to key equivalence.
(5) |
which extend the formula interpretation function of § 3.2, and hence the structure interpretation function of § 4.
Proof
- objects:
- morphisms:
-
An -constraint satisfied by the -structure , , is mapped by constraint satisfaction to the -morphism with indexing -sorted signature morphism and a key function 252525Defined by choice. However, the choice for a composite signature morphism is not identical to the composition of the component choices; only equivalent. satisfying either of the adjoint fiber morphisms in Disp.4 leading to the naturality condition and visualized in Fig. 3. Reflectively, the constraint is mapped to an -relation morphism satisfying either of the adjoint fiber orderings in Disp.3 leading to the naturality condition and visualized in Fig. 3.
4 FOLE Structures.
We define two forms of structures and structure morphisms: a classification (strict) form and an interpretation (lax) form.
4.1 Structures.
Assume that we are given a schema with a set of predicate symbols and a signature (header) map .
Definition 1
An -structure (LHS Fig. 4) consists of an entity classification of predicate symbols and keys , an attribute classification (typed domain) of sorts and data values , and a list designation with signature map , tuple map and defining condition implies . 262626In more detail, if entity is of type , then the description tuple is the same “size” () as the signature and for each index the data value is of sort .
Projections define the type hypergraph (schema) , and an instance hypergraph (universe) .
|
|
|
||||
---|---|---|---|---|---|---|
classification form | interpretation form (passage) | interpretation form (bridge) |
By dropping the global key set ,
the entity classification
can
be regarded
(RHS Fig. 4)
as a set-valued function
;
that is,
as an indexed collection
of subsets of keys
.
The defining condition
of the list designation
demonstrates that a structure
can
be regarded
(MID Fig. 4)
as a table-valued function
;
that is,
as an -indexed collection of
-tables
,
whose tuple maps
are restrictions
of the tuple map .
Here,
an entity type
(predicate symbol)
is interpreted
as
the
-table
,
consisting of
the -signature ,
the key set , and
the
tuple function ,
which is a restriction of the tuple function .
The list classification
can alternatively be regarded
(RHS Fig. 4)
(Fig. 4
of the paper
[9])
as a set-valued function
;
that is,
as an indexed collection
of subsets of tuples
.
The bridge
provides “restrictions” of the bridge
to subsets of .
4.2 Structure Morphisms.
Assume that we are given a schema morphism (Tbl. 13 in § 0.A.1)
(6) |
consisting of a function on relation symbols , a sort function , and a schema bridge , whose -component is the morphism in .
Definition 2
A structure morphism from source structure to target structure along (top Fig. 5) a schema morphism (Disp.6) is a list designation morphism consisting of (back Fig. 5) an entity infomorphism , and (front Fig. 5) an attribute infomorphism . These are bridged by the above schema morphism and (bottom Fig. 5) a universe morphism with tuple bridge , whose -component is the morphism in , with equal arity
when .
|
|
Let denote the mathematical context of structures and their morphisms.
4.3 Transition.
In this section (§ 4), we define two forms of structures and structure morphisms: a classification (strict) form and an interpretation (lax) form. Fig. 5 illustrates the classification (strict) form; whereas Fig. 7 illustrates the interpretation (lax) form. Here we define a transition from the strict form to the lax form.
Note 1
By forgetting the full key sets and the full key function,
the entity infomorphism becomes a (lax) entity infomorphism
consisting of
an -indexed collection of key functions
.
Map
with
to
with
.
The collection of -signature morphisms
defines the -tuple functions
.
For any source predicate ,
there is a bridge
that is a restriction of the bridge
to the subset
,
where
and
.
For each key
,
the -component of the bridge is the -morphism
.
272727Note that we have used the equal arity condition for a structure morphism
(Def 2):
when
.
Proposition 1 (Key)
Proof
For suppose that with . Define and . We have the morphism . Thus, . This means that . Hence, , for all .
Corollary 1
For , each bridge reduces to the composite for the bridge associated with the function . 292929For tuple , the component of is the -morphism .
Proof
Straightforward.
4.4 Lax Structures.
To show equivalence between sound logics and databases, we need to use lax structures. 303030A structure becomes lax when we forget the global set of keys and use only a lax entity classification . We can retrieve a “crisp” entity classification by defining the disjoint union of key subsets . But, using the extent form of a structure (laxness), we have lost a certain coordination of tuple functions here, which may or may not be important. Again, assume that we are given a schema with a set of predicate symbols and a signature (header) map .
Definition 3
A (lax) -structure consists of a lax entity classification , an attribute classification (typed domain) , the schema , and one of the two equivalent descriptions:
Hence, we can think of a lax structure as extending the FOLE schema to the tabular interpretation function .
Proposition 2
A (lax) -structure defines, is the same as, the constraint-free aspect of a database consisting of a set of predicate types , a key function , a schema with a signature function , and a (constraint-free) tuple bridge consisting of an -indexed collection of tuple maps .
Proof
See the previous discussion.
4.5 Lax Structure Morphisms.
In order to make sound logic morphisms equivalent to database morphisms, we need to eliminate the global key function . To do this we define a lax version of Def. 2. Note 1 eliminated the need for the global key function in the entity infomorphism¿ Prop. 1 and Cor. 1 eliminated the need for the universe morphism with its global key function. However, we do need to include the condition of Prop. 1.
Definition 4
For any two (lax) structures and , a (lax) structure morphism (Tbl. 13 in § 0.A.1) (Fig. 7)
consists of (RHS Fig. 7) a schemed domain morphism
consisting of a typed domain morphism and a schema morphism (Disp.6 in § 4.2) with common type function , and (LHS Fig. 7) a lax entity infomorphism
with a predicate function and a key bridge consisting of the key functions , which satisfy the condition
(7) |
See the (Key) Prop. 1.
Corollary 2
A (lax) structure morphism defines a tabular interpretation bridge function , which maps a predicate symbol with image to the table morphism
(8) |
visualized by the diagram
where
-
is a table defined by the tabular interpretation function of structure , and
-
is the table defined by the tabular interpretation function of structure.
Proof
See Disp. 7 above.
Let denote the mathematical context of (lax) structures and their morphisms. Since any structure is a lax structure and any structure morphism is a lax structure morphism, there is an passage .
5 FOLE Specifications.
A FOLE specification consists of a context of predicates linked by constraints and a diagram of lists. A specification morphism is a diagram morphism consisting of a shape-changing passage and a bridge . Composition is component-wise. The mathematical context of FOLE specifications is denoted by . The subcontext of FOLE specifications (with fixed sort sets and fixed sort functions) is denoted by .
5.1 Specifications.
Assume that we are given a schema with a set of predicate symbols and a signature (header) map .
Definition 5
A (formal) -specification is a subgraph , whose nodes are -formulas and whose edges are -constraints. 323232We can place axiomatic restrictions on specifications in various manners. A FOLE specification requires entailment to be a preorder, satisfying reflexivity and transitivity. It could also require satisfaction of sufficient axioms (Tbl. 3 of the paper [10]) to described the various logical operations (connectives, quantifiers, etc.) used to build formulas in first-order logic.
Let denote the set of all -specifications. 333333For any graph , denotes the power preorder of all subgraphs of .
Definition 6
An (abstract) -specification 343434An abstract specification is also known as a database schema (Def. 13 in § 7.1). consists of: a context , whose objects are predicate symbols and whose arrows are called abstract -constraints, and a passage , which extends the signature map by mapping an abstract constraint to an -signature morphism .
An abstract -specification has a companion formal -specification , whose graph is the set of all formal constraints . 353535These are formal constraints, since any predicate symbol is a formula. Since is closed under composition and contains all identities, is an abstract -specification with signature passage .
…
5.2 Specification Morphisms.
A FOLE (abstract) specification morphism in , with constant sort function , is a diagram morphism in consisting of a relation passage and a list interpretation bridge that factors (Fig. 8)
(9) |
through the fiber adjunction 363636Fibered by signature over the adjunction (Kent [11]) representing list flow along a sort function . in terms of
-
some bridge and
-
the inclusion bridge .
We normally just use the bridge restriction for the specification morphism. The original definition can be computed with the factorization in Disp. 9.
Definition 7
An (abstract) specification morphism
(Tbl. 13
in § 0.A.1)
373737Visualized on the right side Fig. 8.
383838This is the same as a database schema morphism
of § 7.2.
,
along a schema morphism (Disp.6 in § 4.2)
consists of
a relation passage
extending the predicate function
of the schema morphism to constraints,
the sort function of the schema morphism,
and
a bridge
extending the schema bridge to naturality.
393939Naturality means that
for any source constraint
with target constraint
,
if their signature morphisms are
and
,
we have the naturality diagram
.
404040An example of a non-trivial bridge is projection:
assume that the arity functions
and
are inclusion,
thus defining signature projection,
and assume that
is a restriction of
.
As noted before, denotes the mathematical context of abstract FOLE specifications (with fixed sort sets). This context is the same as the context of database schemas and their morphisms.
|
|
|
5.3 Specification Satisfaction.
Assume that we are given a schema with a set of predicate symbols and a signature (header) map .
Definition 8
(formal satisfaction) An -structure satisfies a (formal) -specification , symbolized , when it satisfies every constraint in the specification: iff . Hence, is the largest and most specialized (formal) -specification satisfied by . 414141So, is not just a mathematical context, but also an -specification.
Definition 9
(abstract satisfaction) An -structure satisfies an abstract -constraint in , symbolized by , when it satisfies the associated formal constraint in . An -structure satisfies (is a model of) an abstract -specification , symbolized , when it satisfies every abstract constraint in the specification. Equivalently, an -structure satisfies an abstract -specification when it satisfies the companion formal specification : iff .
Definition 10
Note that the the abstract table passage extends the table-valued function of the structure to constraints.
Proposition 3 (Key)
Satisfaction is equivalent to tabular interpretation.
Proof
On the one hand,
if ,
then the tabular interpretation passage
maps
a constraint in
to the -relation morphism
as pictured in
Fig. 3
of
§3.3.
434343
We use relations here rather than tables,
since
(Lem. 2
of
§ 3.3):
relational interpretation is closed under composition; but
tabular interpretation is closed under composition only up to key equivalence.
|
|
||
---|---|---|---|
in general | with satisfaction |
Specification | |
---|---|
(formal) -specification – subgraph : | |
signature passage : | |
(abstract) -specification – passage : | |
Sound Logic | |
(formal) -specification – subgraph : | |
table passage : | |
(abstract) -specification – table passage : |
6 FOLE Sound Logics.
6.1 Sound Logics.
Definition 11
A (lax) sound logic with a schema , consists of a (lax) -structure and an (abstract) -specification , where the structure satisfies the specification : .
Proposition 4
Proof
sound logic | ||
---|---|---|
schema | ||
signature function | ||
(lax) -structure | ||
(lax) entity classification | ||
attribute classification | ||
tuple bridge | ||
table function | ||
-specification | ||
signature passage | ||
satisfaction | ||
table passage |
6.2 Sound Logic Morphisms.
Definition 12
Let denote the context of (lax) sound logics and their morphisms.
Note 2
At this point we know that a (lax) sound logic morphism
has
tabular interpretation passages
and
at the source and target sound logics
and
a predicate passage
.
We complete the picture in
Prop. 5
by proving that
sound logic morphisms preserve satisfaction
in some way.
Proposition 5
There is a (tabular interpretation) bridge
that extends the collection of tabular interpretation bridge functions
(see Cor. 2 of § 4.5) to constraints: for any source constraint in with -image target constraint in , we have the following naturality diagram, which represents “preservation or linkage of satisfaction”. 464646The sound logic morphism maps the table morphism representing the satisfaction to the table morphism representing the satisfaction .
Proof
The above diagram is expanded into more detail in Fig. 10.
To understand this, we discuss each part (facet) separately. In short: the front/back is due to Cor. 2 in § 4.5 for (lax) structure morphisms; the left/right hold by satisfaction of source/target sound logics; the bottom-right is due to the (abstract) specification morphism; the bottom-left is due to naturality of ; and the top holds for relations. We now discuss each facet in more detail.
- front/back:
-
left/right (sat):
Satisfaction for source/target sound logics (§ 5.3) define table morphisms
,
which are equivalent to naturality of the bridges . -
bottom right:
The structure and specification morphisms have the same underlying schema morphism . Apply the tuple function to the naturality of the bridge for any abstract -constraint in : for any constraint in , the following diagram commutes.
- bottom left:
-
top:
By the other naturality conditions just proven, for any constraint in with -image in , we know that . If the tuple map were injective, the bridge would satisfy “extent naturality”:
Here, we use the image part of the table-relation reflection . 474747The reflection (“The FOLE Table”[11]) of the context of relations into the context of tables embodies the notion of “informational equivalence”. Then, we use diagonal fill-in Fig. 10. Hence, extent naturality holds for the relational interpretation into .
Proposition 6
A (lax) sound logic morphism
defines
a database morphism
whose tabular interpretation bridge
factors
through the fiber adjunction
.
Proof
Theorem 6.1
There is a passage .
Proof
sound logic morphism
schema morphism
(lax) struc morph
type domain morphism
(lax) entity infomorphism
which satisfy the constraint
specification morphism
7 FOLE Databases.
A FOLE relational database consists of a context of predicates linked by constraints and an interpretation diagram of tables. A relational database morphism (Tbl. 13 in § 0.A.1) is a diagram morphism (LHS Fig. 12 in § 7.2) consisting of a shape-changing passage and a bridge . Composition is component-wise. The mathematical context of FOLE relational databases is denoted by . 494949See § 4.2.1 in the paper “The FOLE Database” [12].
7.1 Databases.
Definition 13
A FOLE database , with constant type domain , is a database with an interpretation diagram that factors through the context of -tables.
Definition 14
relational database | |
---|---|
predicate context | |
type domain (attribute classification) | |
table passage | |
database schema (specification) | |
signature passage | |
key passage | |
tuple bridge |
Proposition 7
The constraint-free aspect of a FOLE database , with constant type domain , is the same as a (lax) FOLE structure in .
Proof
We define the various components of the (lax) structure listed in Def. 3 of § 4.4 and pictured in Fig. 4 of § 4.1.
-
:
The attribute classification (typed domain) is given.
-
:
The schema (type hypergraph) consists of the set of relation symbols (predicates) and the signature map . This is the constraint-free aspect of the database schema with signature diagram .
-
:
The (lax) entity classification consists of the set of relation symbols (predicates) and the key function . This is the constraint-free aspect of the key diagram .
-
:
The tuple bridge is the constraint-free aspect of the tuple bridge .
Proposition 8
Any FOLE database in defines a (lax) FOLE sound logic in .
Proof
The schema is the structure schema (mentioned above), the constraint-free aspect of the database schema . The -structure is defined in Prop. 7 above. The (abstract) -specification is the same as the database schema, as discussed in § 5.1. By Prop 3 in § 5.3, the tabular interpretation passage demonstrates satisfaction .
7.2 Database Morphisms.
A FOLE database morphism, with constant type domain morphism , is a FOLE database morphism , whose tabular interpretation bridge factors (Fig. 12)
(10) |
through the fiber adjunction 515151 There is a table fiber adjunction representing tabular flow along a type domain morphism . See § 3.4.2 of Kent [11]. The fiber passage is define in terms of the tuple bridge and the substitution function . The adjoint fiber passage is define in terms the adjoints, the tuple bridge and the existential quantifier function . in terms of
-
some bridge and
We normally just use the bridge restriction for the database morphism. The original definition can be computed with the factorization in Disp. 10.
|
|
|
|
||||||||
The inclusion bridges for the table fiber adjunction 535353Notation from § 3.4.2.
are defined by
, |
. |
Definition 15
The subcontext of FOLE relational databases (with constant type domains and constant type domain morphisms) is denoted by . 545454See § 4.2.2 in the paper “The FOLE Database” [12].
Definition 16
Using projections (Fig. 14), a FOLE database morphism, with constant type domain morphism ,
(Tbl. 13 in § 0.A.1) consists of a relation passage as above, and
-
a key bridge consisting of an -indexed collection of key functions. 565656This defines a lax entity infomorphism consisting of an -indexed collection of key functions
These components satisfy the condition
(11) |
as pictured in the following bridge diagram.
schema bridge a key bridge constraint
Proposition 9
The constraint-free aspect of a FOLE database morphism
,
in
defines,
is the same as,
a (lax) FOLE structure morphism
in .
Proof
We define the various components of the (lax) structure morphism above, as defined in Def.4 and pictured in Fig. 7 of § 4.5.
-
:
The predicate function is the constraint-free aspect of the relation passage .
-
:
The type domain morphism is given.
-
:
The schema morphism , consisting of the -indexed collection of signature morphisms , is the constraint-free aspect of the database schema morphism in Def. 16.
-
:
The lax entity infomorphism , consisting of the -indexed collection of key functions , is the constraint-free aspect of the key bridge . These components satisfy the condition 575757This is the constraint-free aspect of the database morphism condition
.
See Def. 16 above. 585858See Disp.7 in Def.4 of § 4.5..
Proposition 10
Any
FOLE database morphism
in
defines a (lax) FOLE sound logic morphism
in .
Proof
Theorem 7.1
There is a passage .
Proof
Theorem 7.2
The contexts of databases and (lax) sound logics form a reflection
,
so that these two representation of FOLE
are “informationally equivalent”.
595959The database-logic reflection
generalizes
the table-relation reflection
.
These reflections embody the notion of informational equivalence.
606060See Prop. 12 in § A.1 of the paper
[11]
“The FOLE Table”.
Proof
The passages in Thm. 6.1 and Thm. 7.1 form a reflection. Here, we use the image part of the table-relation reflection. 616161The reflection (“The FOLE Table”[11]) of the context of relations into the context of tables embodies the notion of “informational equivalence”. For an alternate proof, first compose with image part of the table-relation reflection , and then restrict to fixed type domains.
Appendix 0.A Appendix
0.A.1 FOLE Components
Bridges.
Although adjointly equivalent, no levo bridges are used throughout this paper, except for the levo tuple bridge discussed in footnote 51 in § 7.2.
Morphisms.
The FOLE equivalence is explained and understood principally in terms of its various morphisms (Tbl. 13).
schema morphism | |
---|---|
schemed domain morphism | |
(lax) structure morphism | |
specification morphism | |
sound logic morphism | |
1 full, 2 fixed type domain, 3 with projections |
0.A.2 Classifications and Infomorphisms
The concept of a “classification” comes from the theory of Information Flow: see the book Information Flow: The Logic of Distributed Systems by Barwise and Seligman [1]. A classification is also important in the theory of Formal Concept Analysis, where it is called a “formal context”: see the book Formal Concept Analysis: Mathematical Foundations by Ganter and Wille [4].
Classification.
A classification consists of: a set of objects to be classified, called tokens or instances; a set of objects that classify the instances, called types; and a binary relation between instances and types. The extent of any type is the subset of instances classified by : . Dually, the intent of any instance is the subset of types that classify : . Two types are coextensive in when . Two instances are cointensive or indistinguishable in when . A classification is separated or intensional when there are no two indistinguishable instances: implies . A classification is extensional when all coextensive types are identical: implies ; equivalently, implies . More strongly, a classification is disjoint when distinct types have disjoint extents: implies . Even more strongly, a classification is partitioned when it is disjoint and all instances are classified: equivalently some for all . A classification is pseudo-partitioned when it is disjoint and all instances are classified except for one special instance : .
Infomorphism.
An infomorphism consists of a type map and an instance map , which satisfy the following:
|
|
If two distinct source types , , are mapped by the type map to the same target type 626262Are you producting the two types by doing this? Remember how the sum and product of classifications is defined. , then any target instance in the extent is mapped by the instance map to the extent intersection . Hence, if extent sets are disjoint in the source classification, then the type map must be injective. Note however that there is restricted map . Let denote the context of classifications and infomorphisms.
Type Domains.
In the FOLE theory of data-types [9], a classification is known as a type domain. A type domain [11] is an sort-indexed collection of data types from which a table’s tuples are chosen. It consists of a set of sorts (data types) , a set of data values (instances) , and a binary (classification) relation between data values and sorts. The extent of any sort (data type) is the subset . Hence, a type domain is equivalent to be a sort-indexed collection of subsets of data values . 636363Some examples of data-types useful in databases are as follows. The real numbers might use sort symbol with extent . The alphabet might use sort symbol with extent . Words, as a data-type, would be lists of alphabetic symbols with sort symbol with extent being all strings of alphabetic symbols. The periodic table of elements might use sort symbol E with extent . Of course, chemical elements can also be regarded as entity types in a database with various properties such as name, symbol, atomic number, atomic mass, density, melting point, boiling point, etc. The list classification has -signatures as types and -tuples as instances, with classification by common arity and universal -classification: a -tuple is classified by an -signature when and for all . 646464In particular, when is a singleton, an -signature is the same as a sort , a -tuple is the same as a data value , and . In the FOLE theory of data-types, an infomorphism is known as a type domain morphism, and consists of a sort function and a data value function that satisfy the condition iff for any source sort and target data value .
Lax Classification.
From an extensional point-of-view, a classification is a set-valued function ; that is, an indexed collection of (sub)sets . In a lax classification we omit the global set of data values . 656565We can always define a global set of instances; for example, , , etc. Hence, a (lax) classification is just the pair consisting of a set of objects called types that classify the instances, and a collection of indexed subsets , where is the set of instances (tokens) classified by the type . More briefly, a (lax) classification is a -valued diagram .
Lax Infomorphism.
Tbl. 14 motivates the definition of a lax infomorphism. In a lax infomorphism the instance function is replaced by the collection of instance functions . Hence, an infomorphism is a -valued instance bridge . Let denote the context of lax classifications and lax infomorphisms. There is a passage .
|
|
||
---|---|---|---|
strict | lax |
References
- [1] Barwise, J., and Seligman, J.: Information Flow: The Logic of Distributed Systems. Cambridge University Press, Cambridge (1997).
- [2] Chen, P.: “The Entity-Relationship Model - Toward a Unified View of Data”. ACM Trans. on Database Sys., 1 (1): pp. 9-36. doi:10.1145/320434.320440.
- [3] Codd, E.F.: The relational model for database management : version 2. Addison Wesley, Boston (1990).
- [4] Ganter, B., and Wille, R.: Formal Concept Analysis: Mathematical Foundations. Springer, New York (1999).
- [5] Goguen, J.: A categorical manifesto. Mathematical Structures in Computer Science 1, 49–67 (1991).
- [6] Gruber, T. “Ontology”. In: Ling Liu and M. Tamer Özsu (eds.) The Encyclopedia of Database Systems, Springer-Verlag (2009). Available online: tomgruber.org/writing/ontology-definition-2007.htm.
-
[7]
Kent, R.E.:
“Database Semantics”.
(2011).
Available online:
https://arxiv.org/abs/1209.3054. - [8] Kent, R.E.: “The First-order Logical Environment”. In: Pfeiffer, H.D., Ignatov, D.I., Poelmans, J., and Nagarjuna G. (eds.) Conceptual Structures in Research and Education, LNCS vol. 7735, pp. 210–230. Springer, Heidelberg (2013). Available online: https://arxiv.org/abs/1305.5240.
- [9] Kent, R.E.: “The ERA of FOLE: Foundation” (2015). Submitted for publication. Available online: https://arxiv.org/abs/1512.07430.
-
[10]
Kent, R.E.:
“The ERA of FOLE: Superstructure”
(2016).
Available online:
https://arxiv.org/abs/1602.04268. -
[11]
Kent, R.E.:
“The FOLE Table”.
Submitted for publication.
Available online:
https://arxiv.org/abs/1810.12100. -
[12]
Kent, R.E.:
“The FOLE Database”.
Available online:
https://arxiv.org/abs/2302.05997. - [13] Kent, R.E.: “Relational Operations in FOLE”. Submitted for publication. Available online: https://arxiv.org/abs/2103.11027.
-
[14]
Kent, R.E.:
“Semantic Integration in the IFF”.
Presented at the Semantic Integration Workshop of
the 2nd International Semantic Web Conference (ISWC2003),
Sanibel Island, Florida, October 20, 2003.
Available online:
https://arxiv.org/abs/1109.0032. -
[15]
Kent, R.E.:
“Semantic Integration in the Information Flow Framework”.
Dagstuhl Seminar Proceedings 04391,
Semantic Interoperability and Integration,
Schloss Dagstuhl, Leibniz-Zentrum fur Informatik GmbH, 2005.
Available online:
https://arxiv.org/abs/1810.08236. -
[16]
The Information Flow Framework (IFF).
Start document available from the
IEEE P1600.1
Standard Upper Ontology Working Group (SUO WG)
Home Page.
http://ontolog.cim3.net/file/resource/historic-archives/IEEE-SUO-WG/.