Completeness of Star-Continuity

Similar documents
Characterizing the Equational Theory

Introduction to Kleene Algebra Lecture 13 CS786 Spring 2004 March 15, 2004

Axioms of Kleene Algebra

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Theory of Kleene Algebra

Properties of Boolean Algebras

An Algebraic Approach to Energy Problems I -Continuous Kleene ω-algebras

Introduction to Kleene Algebras

TROPICAL SCHEME THEORY

CMPSCI 250: Introduction to Computation. Lecture #29: Proving Regular Language Identities David Mix Barrington 6 April 2012

Logic via Algebra. Sam Chong Tay. A Senior Exercise in Mathematics Kenyon College November 29, 2012

Introduction to Kleene Algebra Lecture 15 CS786 Spring 2004 March 15 & 29, 2004

GELFAND S THEOREM. Christopher McMurdie. Advisor: Arlo Caine. Spring 2004

Joseph Muscat Universal Algebras. 1 March 2013

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Semilattice Modes II: the amalgamation property

Boolean Algebra and Propositional Logic

Kleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque

Boolean Algebra and Propositional Logic

On Fixed Point Equations over Commutative Semirings

2MA105 Algebraic Structures I

Lecture 4. Algebra. Section 1:. Signature, algebra in a signature. Isomorphisms, homomorphisms, congruences and quotient algebras.

Course 212: Academic Year Section 1: Metric Spaces

Algebraic structures I

Applications of Regular Algebra to Language Theory Problems. Roland Backhouse February 2001

Integral Extensions. Chapter Integral Elements Definitions and Comments Lemma

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra

Lecture 7. Logic III. Axiomatic description of properties of relations.

Cantor-Bendixson, socle, and atomicity H. Simmons

(Rgs) Rings Math 683L (Summer 2003)

Closure operators on sets and algebraic lattices

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Congruence Boolean Lifting Property

Universal Algebra for Logics

5 Set Operations, Functions, and Counting

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras

Chapter 1. Sets and Numbers

Lecture 12. Statement Logic as a word algebra on the set of atomic statements. Lindenbaum algebra.

and this makes M into an R-module by (1.2). 2

Extending Algebraic Operations to D-Completions

Direct Product of BF-Algebras

Part IA Numbers and Sets

MIT Martin Rinard Laboratory for Computer Science Massachusetts Institute of Technology

Solutions to odd-numbered exercises Peter J. Cameron, Introduction to Algebra, Chapter 2

Math 222A W03 D. Congruence relations

Commutative Algebra Lecture 3: Lattices and Categories (Sept. 13, 2013)

GENERALIZED DIFFERENCE POSETS AND ORTHOALGEBRAS. 0. Introduction

1. Let r, s, t, v be the homogeneous relations defined on the set M = {2, 3, 4, 5, 6} by

ABSTRACT ALGEBRA 1, LECTURES NOTES 5: SUBGROUPS, CONJUGACY, NORMALITY, QUOTIENT GROUPS, AND EXTENSIONS.

Winter School on Galois Theory Luxembourg, February INTRODUCTION TO PROFINITE GROUPS Luis Ribes Carleton University, Ottawa, Canada

Abstract Vector Spaces and Concrete Examples

Fields and Galois Theory. Below are some results dealing with fields, up to and including the fundamental theorem of Galois theory.

Herbrand Theorem, Equality, and Compactness

Thus, X is connected by Problem 4. Case 3: X = (a, b]. This case is analogous to Case 2. Case 4: X = (a, b). Choose ε < b a

Notes on Proving Arithmetic Equations

Hyperreal Calculus MAT2000 Project in Mathematics. Arne Tobias Malkenes Ødegaard Supervisor: Nikolai Bjørnestøl Hansen

Math 429/581 (Advanced) Group Theory. Summary of Definitions, Examples, and Theorems by Stefan Gille

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

SYNTACTIC SEMIGROUP PROBLEM FOR THE SEMIGROUP REDUCTS OF AFFINE NEAR-SEMIRINGS OVER BRANDT SEMIGROUPS

Foundations of Mathematics

Mathematical Foundations of Logic and Functional Programming

Contribution of Problems

MATH HL OPTION - REVISION SETS, RELATIONS AND GROUPS Compiled by: Christos Nikolaidis

Foundations of Mathematics

Boolean Algebras, Boolean Rings and Stone s Representation Theorem

Jónsson posets and unary Jónsson algebras

Hierarchy among Automata on Linear Orderings

Automata on linear orderings

Definition 2.3. We define addition and multiplication of matrices as follows.

CHAPTER 2. Ordered vector spaces. 2.1 Ordered rings and fields

Foundations of Programming Languages and Software Engineering

Subdirectly Irreducible Modes

Equational reasoning for probabilistic programming Part II: Quantitative equational logic

Syntactic Characterisations in Model Theory

Chapter 3. Rings. The basic commutative rings in mathematics are the integers Z, the. Examples

2. Introduction to commutative rings (continued)

Group. Orders. Review. Orders: example. Subgroups. Theorem: Let x be an element of G. The order of x divides the order of G

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

08a. Operators on Hilbert spaces. 1. Boundedness, continuity, operator norms

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello.

Coalgebra, lecture 10: Algebra and Coalgebra for Regular Expressions

Structure of rings. Chapter Algebras

1. Introduction to commutative rings and fields

On the Structure of Rough Approximations

1. Introduction to commutative rings and fields

Mappings of the Direct Product of B-algebras

Kazimierz SWIRYDOWICZ UPPER PART OF THE LATTICE OF EXTENSIONS OF THE POSITIVE RELEVANT LOGIC R +

Definition List Modern Algebra, Fall 2011 Anders O.F. Hendrickson

Universal Properties

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Homework Problems Some Even with Solutions

CS411 Notes 3 Induction and Recursion

Reading: Chapter 9.3. Carnegie Mellon

ALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION

Part II. Logic and Set Theory. Year

Real Analysis. Joe Patten August 12, 2018

Kleene Algebras and Algebraic Path Problems

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

Transcription:

Introduction to Kleene Algebra Lecture 5 CS786 Spring 2004 February 9, 2004 Completeness of Star-Continuity We argued in the previous lecture that the equational theory of each of the following classes of interpretations is contained in the next in the list: Kleene algebras, star-continuous Kleene algebras, closed semirings, S-algebras, N-algebras, relational models, language models, Reg Σ, and Reg Σ, R Σ. In this lecture we show that all these classes from star-continuous Kleene algebra onward have the same equational theory. It suffices to show that any equation that holds under the canonical interpretation R Σ : RExp Σ Reg Σ holds in all star-continuous Kleene algebras. Later on we will add Kleene algebras to this list as well. Lemma 5.1 For any regular expressions s, t, u RExp Σ, the following property holds in any star-continuous Kleene algebra K: stu sxu. x R Σ (t) In other words, if K is star-continuous, then under any interpretation I : RExp Σ K, the supremum of the set {I(sxu) x R Σ (t)} exists and is equal to I(stu). In particular, in the special case s = u = 1, t x. x R Σ (t) Note that the star-continuity axiom is a special case of this lemma for t of the form a, a Σ. This lemma expresses a natural extension of the star-continuity property to all expressions t. Later on we will do the same thing with the axioms of Kleene algebra; there we will extend the axioms, which give the ability to solve one linear inequality, to a theorem that gives the solution to any finite system of inequalities. Proof. Let K be an arbitrary star-continuous Kleene algebra. We proceed by induction on the structure of t. There are three base cases, corresponding to the regular expressions a Σ, 1, and 0. For a Σ, we have R Σ (a) = {a} and sup sxu = sau. x R Σ (a) 1

The case of 1 is similar, since R Σ (1) = {ε}. Finally, since R Σ (0) = and since 0 is the least element in K and therefore the supremum of the empty set, sup sxu = 0 = s0u. x R Σ (0) There are three cases to the inductive step, one for each of the operators +,,. We give a step-by-step argument for the case +, followed by a justification of each step. s(t 1 + t 2 )u = st 1 u + st 2 u (5.1) x R Σ (t 1 ) sxu + sup y R Σ (t 2 ) syu (5.2) z R Σ (t 1 ) R Σ (t 2 ) szu (5.3) z R Σ (t 1 +t 2 ) szu. (5.4) Equation (5.1) follows from the distributive laws of Kleene algebra; (5.2) follows from the induction hypothesis on t 1 and t 2 ; (5.3) follows from the general property of Kleene algebras that if A and B are two sets whose suprema sup A and sup B exist, then the supremum of A B exists and is equal to sup A + sup B (this requires proof see below); finally, equation (5.4) follows from the fact that the interpretation map R Σ is a homomorphism. The general property used in equation (5.3) states that if A and B are two subsets of a Kleene algebra whose suprema sup A and sup B exist, then the supremum sup A B of A B exists and is equal to sup A + sup B. To prove this, we must show two things: (i) (ii) sup A + sup B is an upper bound for A B; that is, for any x A B, x sup A + sup B; and sup A + sup B is the least such upper bound; that is, for any other upper bound y of the set A B, sup A + sup B y. To show (i), x A B x A or x B x sup A or x sup B x sup A + sup B. To show (ii), let y be any other upper bound for A B. Then x A B x y x A x y and x B x y sup A y and sup B y sup A + sup B y + y = y. 2

Now we give a similar chain of equalities for the case of the operator, but omit the justifications. Finally, for the case, we have s(t 1 t 2 )u = st 1 (t 2 u) sx(t 2 u) x R Σ (t 1 ) (sx)t 2 u x R Σ (t 1 ) sup x R Σ (t 1 ) y R Σ (t 2 ) sxyu sxyu x R Σ (t 1 ), y R Σ (t 2 ) szu. z R Σ (t 1 t 2 ) st u st n u n 0 n 0 sup x R Σ (t n ) sxu sxu x n 0 R Σ(t n ) sxu. x R Σ (t ) Theorem 5.2 Let s, t be regular expressions over Σ. The equation s = t holds in all starcontinuous Kleene algebras iff R Σ (s) = R Σ (t). Proof. The forward implication is immediate, since Reg Σ is a star-continuous Kleene algebra. Conversely, by two applications of Lemma 5.1, if R Σ (s) = R Σ (t), then under any interpretation in any star-continuous Kleene algebra, s x x = t. x R Σ (s) x R Σ (t) Free Algebras We have shown that the equational theory of the star-continuous Kleene algebras coincides with the equations true in Reg Σ under the interpretation R Σ. Another way of saying this 3

is that Reg Σ is the free star-continuous Kleene algebra on generators Σ. The term free intuitively means that Reg Σ is free from any equations except those that it is forced to satisfy in order to be a star-continuous Kleene algebra. Formally, a member A of a class of algebraic structures C of the same signature is said to be free on generators X for the class C if A is generated by X; any function h from X into another algebra B C extends to a homomorphism ĥ : A B. The extension is necessarily unique, since a homomorphism is completely determined by its action on a generating set. Thus to say that Reg Σ is the free star-continuous Kleene algebra on generators Σ says that Reg Σ is generated by Σ (actually, by {{a} a Σ} = {R Σ (a) a Σ}), and for any star-continuous Kleene algebra K and map h : Σ K, there is a homomorphism ĥ : Reg Σ K such that the following diagram commutes: In other words, ĥ R Σ = h. Reg Σ ĥ (5.5) K Σ h R Σ Free algebras, if they exist, are unique up to isomorphism. If A and B are free on generators X for a class C, let i and j be the embeddings of X into A and B, respectively. Since both are free, they extend to homomorphisms î : B A and ĵ : A B, respectively. A ĵ i î X B j Thus î j = i and ĵ i = j. Then ĵ î j = ĵ i = j, so for any x X, (ĵ î)(j(x)) = j(x). Since B is generated by {j(x) x X}, this says that ĵ î : B B is the identity it agrees with the identity on X, and homomorphisms are uniquely determined by their action on a generating set. Symmetrically, î ĵ : A A is also the identity, so î and ĵ are inverses, therefore A and B are isomorphic. 4

Congruence Relations and the Quotient Construction Any class of algebras ined by universal equations or equational implications, even infinitary ones, has free algebras. Recall that the axioms for star-continuous Kleene algebra are of this form: xy n z xy z, n 0 (xy n z w) xy z w. n 0 There is a general technique for constructing free algebras called a quotient construction. Here we give a brief general account of the quotient construction and how to apply it to obtain free algebras. if Fix a signature σ. Let A be any σ-algebra. A binary relation on A is call a congruence (i) (ii) is an equivalence relation (reflexive, symmetric, transitive); is respected by all the distinguished operations of the signature; that is, if f is n-ary, and if x i y i, 1 i n, then f(x 1,..., x n ) = f(y 1,..., y n ). For example, for the signature of Kleene algebra, this means x 1 y 1 x 2 y 2 x 1 + x 2 y 1 + y 2 x 1 y 1 x 2 y 2 x 1 x 2 y 1 y 2 x y x y. The kernel of a homomorphism h : A B is ker h = {(x, y) h(x) = h(y)}. One can show that the kernel of any homomorphism with domain A is a congruence on A. Conversely, given any congruence on A, one can construct a σ-algebra B and an epimorphism h : A B such that is the kernel of h. This is called the quotient construction. For any x A, ine the congruence class of x. Let [x] A/ One can make this into a σ-algebra by ining f A/ ([x 1 ],..., [x n ]) = {y A x y}, = {[x] x A}. = [f A (x 1,..., x n )]. The properties of congruence ensure that f A/ is well ined and that the map x [x] is an epimorphism A A/. 5

Free Algebras Now we apply the quotient construction to obtain free algebras. As previously observed, if σ is any signature, the set of well-formed terms T σ (X) over variables X can be regarded as a σ-algebra in which the operations of σ have their syntactic interpretation. For the signature of Kleene algebra, we have been calling the variables Σ, and the terms over Σ are the regular expressions RExp Σ. Let be a set of equations or equational implications over T σ (X), and let Mod( ) denote the class of σ-algebras that satisfy. For example, if consists of the axioms of star-continuous Kleene algebra, then Mod( ) will be the class of all star-continuous Kleene algebras. Let be the smallest congruence on terms in T σ (X) containing all substitution instances of equations in and closed under all substitution instances of equational implications in. The relation can be built inductively, starting with the substitution instances of equations in and the reflexivity axiom s s and adding pairs s t as required by the substitution instances of equational implications in and the symmetry, transitivity, and congruence rules. One can now show that the quotient T σ (X)/ is the free Mod( ) algebra on generators X. For any algebra A satisfying and any map h : X A, h extends uniquely to a homomorphism T σ (X) A, which we also denote by h. The kernel of h is the set of equations satisfied by A under interpretation h. Since A satisfies, the kernel of h contains all the equations of and is closed under the equational implications of. Since is the smallest such congruence, refines (is contained in) ker h. Thus we can ine ĥ([x]) = h(x) and the resulting map ĥ will be well ined. This is the desired homomorphism T σ(x)/ A. For star-continuous Kleene algebra, the free algebra given by the quotient construction is RExp Σ /!, where is the smallest congruence containing all substitution instances of the axioms of idempotent semirings, e.g. s + (t + u) (s + t) + u for all s, t, u RExp Σ, etc., and st n u st u for all s, t, u RExp Σ and n 0 (where s t is an abbreviation for s + t t), and contains st u w whenever st n u w for all n 0. To show that Reg Σ is free (therefore isomorphic to RExp Σ /! ), let h : Σ K be an arbitrary function into a star-continuous Kleene algebra K, and extend h to a homomorphism h : RExp Σ K. By Theorem 5.2, the set of equations that hold under the interpretation R Σ, which is ker R Σ, is contained in the set of equations that hold under any interpretation in any star-continuous Kleene algebra; in particular under the interpretation h in K. Thus ker R Σ refines ker h. This says that we can ine ĥ(r Σ(s)) = h(s), and the resulting map ĥ : Reg Σ K will be well ined. This is the desired homomorphism making the diagram (5.5) commute. 6