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

Size: px
Start display at page:

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

Transcription

1 Acta Cybernetica 23 (2017) An Algebraic Approach to Energy Problems I -Continuous Kleene ω-algebras Zoltán Ésika, Uli Fahrenberg b, Axel Legay c, and Karin Quaas d Abstract Energy problems are important in the formal analysis of embedded or autonomous systems. With the purpose of unifying a number of approaches to energy problems found in the literature, we introduce energy automata. These are finite automata whose edges are labeled with energy functions that define how energy levels evolve during transitions. Motivated by this application and in order to compute with energy functions, we introduce a new algebraic structure of -continuous Kleene ω-algebras. These involve a -continuous Kleene algebra with a -continuous action on a semimodule and an infinite product operation that is also -continuous. We define both a finitary and a non-finitary version of -continuous Kleene ω-algebras. We then establish some of their properties, including a characterization of the free finitary -continuous Kleene ω-algebras. We also show that every -continuous Kleene ω-algebra gives rise to an iteration semiringsemimodule pair. Keywords: Energy problem, Kleene algebra, -continuity, -continuous Kleene ω-algebra 1 Introduction Energy problems are concerned with the question whether a given system admits infinite schedules during which (1) certain tasks can be repeatedly accomplished and (2) the system never runs out of energy (or other specified resources). These are important in areas such as embedded systems or autonomous systems and, This research was supported by grant no. K from the National Foundation of Hungary for Scientific Research (OTKA), by ANR MALTHY, grant no. ANR-13-INSE-0003 from the French National Research Foundation, and by Deutsche Forschungsgemeinschaft (DFG), projects QU 316/1-1 and QU 316/1-2. a University of Szeged, Hungary (deceased) b École polytechnique, Palaiseau, France. Most of this work was carried out while this author was still employed at Inria Rennes. c Inria Rennes, France d Universität Leipzig, Germany DOI: /actacyb

2 204 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas starting with [4], have attracted some attention in recent years, for example in [20, 27, 3, 5, 28, 7, 6, 23, 9]. With the purpose of generalizing some of the above approaches, we have in [14, 21] introduced energy automata. These are finite automata whose transitions are labeled with energy functions which specify how energy values change from one system state to another. Using the theory of semiring-weighted automata [10], we have shown in [14] that energy problems in such automata can be solved in a simple static way which only involves manipulations of energy functions. In order to put the work of [14] on a more solid theoretical footing and with an eye to future generalizations, we have recently introduced a new algebraic structure of -continuous Kleene ω-algebras [12, 13]. A continuous (or complete) Kleene algebra is a Kleene algebra in which all suprema exist and are preserved by products. These have nice algebraic properties, but not all Kleene algebras are continuous, for example the semiring of regular languages over some alphabet. Hence a theory of -continuous Kleene algebras has been developed to cover this and other interesting cases [25]. For infinite behaviors, complete semiring-semimodule pairs involving an infinite product operation have been developed [19]. Motivated by some examples of structures which are not complete in this sense, for example the energy functions of the preceding section, we generalize the notion of -continuous Kleene algebra to one of -continuous Kleene ω-algebra. These are idempotent semiring-semimodule pairs which are not necessarily complete, but have enough suprema in order to develop a fixed-point theory and solve weighted Büchi automata (i.e., to compute infinitary power series). We will define both a finitary and a non-finitary version of -continuous Kleene ω-algebras. We then establish several properties of -continuous Kleene ω-algebras, including the existence of the suprema of certain subsets related to regular ω- languages. Then we will use these results in our characterization of the free finitary -continuous Kleene ω-algebras. We also show that each -continuous Kleene ω- algebra gives rise to an iteration semiring-semimodule pair. Structure of the Paper This is the first in a series of two papers which deal with energy problems and their algebraic foundation. In the present paper, we motivate the introduction of our new algebraic structures by two sections on energy automata (Section 2) and on the algebraic structure of energy functions (Section 3). We then pass to introduce continuous Kleene ω-algebras in Section 4 and to expose the free continuous Kleene ω-algebras in Section 5. In Section 6 we generalize continuous Kleene ω-algebras to our central notion of -continuous Kleene ω-algebras and finitary -continuous Kleene ω-algebras. Section 7 exposes the free finitary -continuous Kleene ω-algebras; the question whether general free -continuous Kleene ω-algebras exist is left open. The penultimate Section 8 shows that every -continuous Kleene ω-algebra is an iteration semiring-semimodule pair, hence techniques from matrix semiring-semimodule pairs apply. This will be important in the second paper of the series. In Section 9 we concern ourselves with least and greatest fixed points and introduce

3 An Algebraic Approach to Energy Problems I 205 a notion of Kleene ω-algebra, analogous to the concept of Kleene algebra for least fixed points. In the second paper of the series [15], we show that one can use matrix operations to solve reachability and Büchi acceptance in weighted automata over -continuous Kleene ω-algebras, and that energy functions form a -continuous Kleene ω-algebra. This will allows us to connect the algebraic structures developed in the present paper back to their motivating energy problems. Acknowledgment The origin of this work is a joint short paper [21] between the last three authors which was presented at the 2012 International Workshop on Weighted Automata: Theory and Applications. After the presentation, the presenter was approached by Zoltán Ésik, who told him that the proper setting for energy problems should be idempotent semiring-semimodule pairs. This initiated a long-lasting collaboration, including several mutual visits, which eventually led to the work presented in this paper and its follow-up [15]. We are deeply indebted to our colleague and friend Zoltán Ésik who taught us all we know about semiring-semimodule pairs and -continuity. Unfortunately Zoltán could not see this work completed, so any errors are the responsibility of the last three authors. In honor of Zoltán Ésik, we propose to give the name Ésik algebra to -continuous Kleene ω-algebras. 2 Energy Automata The transition labels on the energy automata which we consider in this paper will be functions which model transformations of energy levels between system states. Such transformations have the (natural) properties that below a certain energy level, the transition might be disabled (not enough energy is available to perform the transition), and an increase in input energy always yields at least the same increase in output energy. Thus the following definition. Definition 1. An energy function is a partial function f : R 0 R 0 which is defined on a closed interval [l f, [ or on an open interval ]l f, [, for some lower bound l f 0, and such that for all x y for which f is defined, yf xf + y x. ( ) The class of all energy functions is denoted by F. We will write composition and application of energy functions in diagrammatical order, from left to right. Hence we write f; g, or simply fg, for the composition g f and x; f or xf for function application f(x). This is because we will be concerned with algebras of energy functions, in which function composition is multiplication, and where it is customary to write multiplication in diagrammatical order. Thus energy functions are strictly increasing, and in points where they are differentiable, the derivative is at least 1. The inverse functions to energy functions

4 206 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas x 2x 2; x 1 x x + 2; x 2 x x 1; x > 1 s 1 s 2 s 3 x x + 3; x > 1 x x + 1; x 0 Figure 1: A simple energy automaton. exist, but are generally not energy functions. Energy functions can be composed, where it is understood that for a composition fg, the interval of definition is {x R 0 xf and xfg defined}. The following lemma shows an important property of energy functions which we will use repeatedly later, mostly without mention of the lemma. Lemma 1. Let f F and x R 0. If xf < x, then there is N 0 such that xf n is undefined for all n N. If xf = x, then xf n = x for all n 0. If xf > x, then for all P R there is N 0 such that xf n P for all n N. Proof. In the first case, we have x xf = M > 0. Using ( ), we see that xf n+1 xf n M for all n 0 for which xf n+1 is defined. Hence the sequence (xf n ) n 0 decreases without bound, so that there must be N 0 such that xf N is undefined, and then so is xf n for any n > N. The second case is trivial. In the third case, we have xf x = M > 0. Again using ( ), we see that xf n+1 > xf n +M for all n 0. Hence the sequence (xf n ) n 0 increases without bound, so that for any P R there must be N 0 for which xf N P, and then xf n xf N P for all n N. Example 1. The following example shows that property ( ) is not only sufficient for Lemma 1, but in a sense also necessary: Let α R with 0 < α < 1 and f : R 0 R 0 be the function xf = 1 + αx. Then yf = xf + α(y x) for all x y, so ( ) almost holds. But xf n = n 1 i=0 αi + α n x for all n N, hence lim n xf n = 1 1 α <. Definition 2. An energy automaton (S, s 0, T, F ) consists of a finite set S of states, with initial state s 0 S, a finite set T S F S of transitions labeled with energy functions, and a subset F S of acceptance states. Example 2. Figure 1 shows a simple energy automaton. Here we have used inequalities to give the definition intervals of energy functions, so that for example, the function labeling the loop at s 2 is given by f(x) = 2x 2 for x 1 and undefined for x < 1.

5 An Algebraic Approach to Energy Problems I 207 A finite path in an energy automaton is a finite sequence of transitions π = (s 0, f 1, s 1 ), (s 1, f 2, s 2 ),..., (s n 1, f n, s n ). We use f π to denote the combined energy function f π = f 1 f 2 f n of such a finite path. We will also use infinite paths, but note that these generally do not allow for combined energy functions. A global state of an energy automaton is a pair q = (s, x) with s S and x R 0. A transition between global states is of the form ((s, x), f, (s, x )) such that (s, f, s ) T and x = f(x). A (finite or infinite) run of (S, T ) is a path in the graph of global states and transitions. We are ready to state the decision problems with which our main concern will lie. As the input to a decision problem must be in some way finitely representable, we will state them for subclasses F F of computable energy functions; an F - automaton is an energy automaton (S, s 0, T, F ) with T S F S. Note that we give no technical meaning to the term computable here; we simply need to take care that the input be finitely representable. Problem 1 (State reachability). Given an F -automaton A = (S, s 0, T, F ) and a computable initial energy x 0 R 0 : does there exist a finite run of A from (s 0, x 0 ) which ends in a state in F? Problem 2 (Coverability). Given an F -automaton A = (S, s 0, T, F ), a computable initial energy x 0 R 0 and a computable function z : F R 0 : does there exist a finite run of A from (s 0, x 0 ) which ends in a global state (s, x) such that s F and x sz? Problem 3 (Büchi acceptance). Given an F -automaton A = (S, s 0, T, F ) and a computable initial energy x 0 R 0 : does there exist an infinite run of A from (s 0, x 0 ) which visits F infinitely often? As customary, a run such as in the statements above is said to be accepting. The special case of Problem 3 with F = S is the question whether there exists an infinite run in the given energy automaton. This is what is usually referred to as energy problems in the literature; our extension to general Büchi conditions has not been treated before. 3 The Algebra of Energy Functions Let [0, ] = { } [0, ] denote the complete lattice of non-negative real numbers together with extra elements and, with the standard order on R 0 extended by < x < for all x R 0. Also, + x = x = for all x R 0 { } and + x = x = for all x R 0. Definition 3. An extended energy function is a mapping f : [0, ] [0, ], for which f = and yf xf + y x for all x y. Moreover, f =, unless xf = for all x [0, ]. The class of all extended energy functions is denoted E. This means, in particular, that xf = implies yf = for all y x, and xf = implies yf = for all y x. Hence, except for the extension to, these

6 208 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas functions are indeed the same as the energy functions from Definition 1. More precisely, every energy function f : R 0 R 0 as of Definition 1 gives rise to an extended energy function f : [0, ] [0, ] given by f =, x f = if xf is undefined, x f = xf otherwise for x R 0, and f =. Composition of extended energy functions is defined as before, but needs no more special consideration about its definition interval. We define a partial order on E, by f g iff xf xg for all x [0, ]. We will need three special energy functions,, id and ; these are given by x =, x; id = x for x [0, ], and =, x = for x [0, ]. Lemma 2. With the ordering, E is a complete lattice with bottom element and top element. The supremum on E is pointwise, i.e., x(sup i I f i ) = sup i I xf i for any set I, all f i E and x [0, ]. Also, h(sup i I f i ) = sup i I (hf i ) for all h E. Proof. The pointwise supremum of any set of extended energy functions is an extended energy function. Indeed, if f i, i I are extended energy functions and x < y in R 0, then yf i xf i +y x for all i. It follows that sup i I yf i sup i I xf i +y x. Also, since f i = for all i I, sup i I f i =. Finally, if there is some i such that f i =, then sup i I f i =. Otherwise each function f i is constant with value. The fact that h(sup i I f i ) = sup i I hf i is now clear, since the supremum is taken pointwise: For all x, x(h(sup i I f i )) = (xh)(sup i I f i ) = sup i I xhf i = x(sup i hf i ). We denote binary suprema using the symbol ; hence f g, for f, g E, is the function x(f g) = max(xf, xg). Recall that an idempotent semiring [1, 22] S = (S,,,, 1) consists of a commutative idempotent monoid (S,, ) and a monoid (S,, 1) such that the distributive laws x(y z) = xy xz (y z)x = yx zx and the zero laws x = = x hold for all x, y, z S. It follows that the product operation distributes over all finite sums. Each idempotent semiring S is partially ordered by its natural order relation x y iff x y = y, and then sum and product preserve the partial order and is the least element. Moreover, for all x, y S, x y is the least upper bound of the set {x, y}. Lemma 3. (E,, ;,, id) is an idempotent semiring with natural order.

7 An Algebraic Approach to Energy Problems I 209 Proof. It is clear that (E,, ) is a commutative idempotent monoid and that (E, ;, id) is a monoid. is the natural order on E because is given pointwise. It is also clear that f = f = for all f E. To show distributivity, we have already shown that x(h(f g)) = x(hf hg) in the proof of Lemma 2; using monotonicity of h, we also have x((f g)h) = x(f g)h = (xf xg)h = xfg xgh = x(fh gh). The proof is complete. We will show in the second paper [15] of this series that E in fact forms a -continuous Kleene algebra [25], which will allow us to solve energy problems algebraically. 4 Continuous Kleene Algebras and Continuous Kleene ω-algebras We have already recalled the notion of idempotent semiring in the last section. A homomorphism of idempotent semirings (S,,,, 1), (S,,,, 1 ) is a function h : S S which respects the constants and operations, i.e., such that h( ) =, h(1) = 1, h(x y) = h(x) h(y), and h(x y) = h(x) h(y) for all x, y S. A Kleene algebra [25] is an idempotent semiring S = (S,,,, 1) equipped with a star operation : S S such that for all x, y S, yx is the least solution of the fixed point equation z = zx y and x y is the least solution of the fixed point equation z = xz y with respect to the natural order. A Kleene algebra homomorphism is a semiring homomorphism h which respects the star: h(x ) = (h(x)) for all x S. Examples of Kleene algebras include the language semiring P (A ) over an alphabet A, whose elements are the subsets of the set A of all finite words over A, and whose operations are set union and concatenation, with the languages and {ε} serving as and 1. Here, ε denotes the empty word. The star operation is the usual Kleene star: X = n 0 Xn = {u 1... u n : u 1,..., u n X, n 0}. Another example is the Kleene algebra P (A A) of binary relations over any set A, whose operations are union and relational composition (written in diagrammatic order), and where the empty relation and the identity relation id serve as the constants and 1. The star operation is the formation of the reflexive-transitive closure, so that R = n 0 Rn for all R P (A A). The above examples are in fact continuous Kleene algebras, i.e., idempotent semirings S such that equipped with the natural order, they are complete lattices (hence all suprema exist), and the product operation preserves arbitrary suprema in either argument: y( X) = yx and ( X)y = Xy for all X S and y S. The star operation is given by x = n 0 xn, so that x is the supremum of the set {x n : n 0} of all powers of x.

8 210 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas Homomorphisms of continuous Kleene algebras S, S are homomorphisms of idempotent semirings h : S S which respect arbitrary suprema: h( X) = h(x) = {h(x) x X} for all X S. To distinguish these from semiring homomorphisms, they are sometimes called continuous homomorphisms, but we will not do this here. A larger class of models is given by the -continuous Kleene algebras [25]. By the definition of a -continuous Kleene algebra S = (S,,,, 1), all suprema of sets of the form {x n n 0} are required to exist, where x is any element of S, and x is given by this supremum. Moreover, product preserves such suprema in both arguments: y( x n ) = n 0 n 0 yx n and ( n 0 x n )y = n 0 x n y. Every -continuous Kleene algebra is a Kleene algebra. For any alphabet A, the collection R(A ) of all regular languages over A is an example of a -continuous Kleene algebra which is not continuous. There exist Kleene algebras which are not -continuous, see [25]. For non-idempotent extensions of the notions of continuous Kleene algebras, -continuous Kleene algebras and Kleene algebras, we refer to [17, 16]. Homomorphisms of -continuous Kleene algebras are the Kleene algebra homomorphisms. Recall that an idempotent semiring-semimodule pair [19, 2] (S, V ) consists of an idempotent semiring S = (S,,,, 1) and a commutative idempotent monoid V = (V,, ) which is equipped with a left S-action S V V, (x, v) xv, satisfying (x x )v = xv x v x(v v ) = xv xv (xx )v = x(x v) x = v = 1v = v for all x, x S and v V. In that case, we also call V a (left) S-semimodule. A homomorphism of semiring-semimodule pairs (S, V ) and (S, V ) is a pair h = (h S, h V ) of functions h S : S S and h V : V V such that h S is a semiring homomorphism, h V is a monoid homomorphism, and h respects the action, i.e., h V (xv) = h S (x)h V (v) for all x S and v V. Definition 4. A continuous Kleene ω-algebra is an idempotent semiring-semimodule pair (S, V ) in which S is a continuous Kleene algebra, V is a complete lattice with the natural order, and the action preserves all suprema in either argument. Additionally, there is an infinite product operation which is compatible with the action and associative in the sense that the following hold: 1. For all x 0, x 1,... S, n 0 x n = x 0 n 0 x n Let x 0, x 1,... S and 0 = n 0 n 1 be a sequence which increases without a bound. Let y k = x nk x nk+1 1 for all k 0. Then n 0 x n = k 0 y k.

9 An Algebraic Approach to Energy Problems I 211 Moreover, the infinite product operation preserves all suprema: 3. n 0 ( X n ) = { n 0 x n : x n X n, n 0}, for all X 0, X 1,... S. The above notion of continuous Kleene ω-algebra may be seen as a special case of the not necessarily idempotent complete semiring-semimodule pairs of [19]. A homomorphism of continuous Kleene ω-algebras is a semiring-semimodule homomorphism h = (h S, h V ) such that h S is a homomorphism of continuous Kleene algebras, h V preserves all suprema, and h respects infinite products: for all x 0, x 1,... S, h V ( n 0 x n) = n 0 h S(x n ). One of our aims in this paper is to provide an extension of the notion of continuous Kleene ω-algebras to -continuous Kleene ω-algebras, which are semiringsemimodule pairs (S, V ) consisting of a -continuous Kleene algebra S acting on a necessarily idempotent semimodule V, such that the action preserves certain suprema in its first argument, and which are equipped with an infinite product operation satisfying the above compatibility and associativity conditions and some weaker forms of the last axiom. 5 Free Continuous Kleene ω-algebras In this section, we offer descriptions of the free continuous Kleene ω-algebras and the free continuous Kleene ω-algebras satisfying the identity 1 ω =. We recall the following folklore result. Theorem 1. For each set A, the language semiring (P (A ),,,, 1) is the free continuous Kleene algebra on A. In more detail, if S is a continuous Kleene algebra and h : A S is any function, then there is a unique homomorphism h : P (A ) S of continuous Kleene algebras which extends h. In view of Theorem 1, it is not surprising that the free continuous Kleene ω- algebras can be described using languages of finite and infinite words. Suppose that A is a set. Let A ω denote the set of all ω-words over A and A = A A ω. Let P (A ) denote the language semiring over A and P (A ) the semimodule of all subsets of A equipped with the action of P (A ) defined by XY = {xy : x X, y Y } for all X A and Y A. We also define an infinite product by n 0 X n = {u 0 u 1... : u n X n }. It is clear that (P (A ), P (A )) is a continuous Kleene ω-algebra. Theorem 2. For each set A, (P (A ), P (A )) is the free continuous Kleene ω- algebra on A. Proof. Suppose that (S, V ) is any continuous Kleene ω-algebra an let h : A S be a mapping. We want to show that there is a unique extension of h to a homomorphism (h S, h V ) from (P (A ), P (A )) to (S, V ). For each u = a 0... a n 1 in A, define h S (u) = h(a 0 ) h(a n 1 ) and h V (u) = h(a 0 ) h(a n 1 )1 ω = k 0 b k, where b k = a k for all k < n and b k = 1 for all

10 212 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas k n. When u = a 0 a 1... A ω, define h V (u) = k 0 h(a k). Note that we have h S (uv) = h S (u)h S (v) for all u, v A and h S (ε) = 1. Also, h V (uv) = h S (u)h V (v) for all u A and v A. Thus, h V (XY ) = h S (X)h V (Y ) for all X A and Y A. Moreover, for all u 0, u 1,... in A, if u i ε for infinitely many i, then h V (u 0 u 1...) = k 0 h S(u k ). If on the other hand, u k = ε for all k n, then h V (u 0 u 1...) = h S (u 0 ) h S (u n 1 )1 ω. In either case, if X 0, X 1,... A, then h V ( n 0 X n) = n 0 h S(X n ). Suppose now that X A and Y A. We define h S (X) = h S (X) and h V (Y ) = h V (Y ). It is well-known that h S is a continuous semiring morphism P (A ) S. Also, h V preserves arbitrary suprema, since h V ( i I Y i) = hv ( i I Y i) = i I h V (Y i ) = i I hv (Y i ) = i I h V (Y i). We prove that the action is preserved. Let X A and Y A. Then h V (XY ) = h V (XY ) = h S (X)h V (Y ) = h S (X) h V (Y ) = h S (X)h V (Y ). Finally, we prove that the infinite product is preserved. Let X 0, X 1,... A. Then h V ( n 0 X n) = h V ( n 0 X n) = n 0 h S(X n ) = n 0 hs (X n ) = n 0 h S (X n). It is clear that h S extends h, and that (h S, h V ) is unique. Consider now (P (A ), P (A ω )) with infinite product defined, as a restriction of the above infinite product, by n 0 X n = {u 0 u 1... A ω : u n X n, n 0}. It is also a continuous Kleene ω-algebra. Moreover, it satisfies 1 ω =. Lemma 4. (P (A ), P (A ω )) is a quotient of (P (A ), P (A )) under the homomorphism (ϕ S, ϕ V ) such that ϕ S is the identity on P (A ) and ϕ V maps Y A to Y A ω. Proof. Suppose that Y i A for all i I. It holds that ϕ V ( i I Y i) = A ω i I Y i = i I (Aω Y i ) = i I ϕ V (Y i ). Let X A and Y A. Then h V (XY ) = XY A ω = X(Y A ω ) = ϕ S (X)ϕ V (Y ). Finally, let X 0, X 1,... A. Then h V ( n 0 X n) = {u 0 u 1... A ω : u n X n } = n 0 h S(X n ). Lemma 5. Suppose that (S, V ) is a continuous Kleene ω-algebra satisfying 1 ω =. Let (h S, h V ) be a homomorphism (P (A ), P (A )) (S, V ). Then (h S, h V ) factors through (ϕ S, ϕ V ). Proof. Define h S = h S and h V : P (Aω ) V by h V (Y ) = h V (Y ), for all Y A ω. Then clearly h S = h S ϕ S. Moreover, h V = h V ϕ V, since for all Y A, h V (ϕ V (Y )) = h V (Y A ω ) = h V (Y A ω ) h S (Y A )1 ω = h V (Y A ω ) h V ((Y A )1 ω ) = h V ((Y A ω ) (Y A )1 ω ) = h V (Y ). Since (ϕ S, ϕ V ) and (h S, h V ) are homomorphisms, so is (h S, h V ). It is clear that preserves all suprema. h V Theorem 3. For each set A, (P (A ), P (A ω )) is the free continuous Kleene ω- algebra on A satisfying 1 ω =.

11 An Algebraic Approach to Energy Problems I 213 Proof. Suppose that (S, V ) is a continuous Kleene ω-algebra satisfying 1 ω =. Let h : A S. By Theorem 2, there is a unique homomorphism (h S, h V ) : (P (A ), P (A )) (S, V ) extending h. By Lemma 5, h S and h V factor as h S = h S ϕ S and h V = h V ϕ V, where (h S, h V ) is a homomorphism (P (A ), P (A ω )) (S, V ). This homomorphism (h S, h V ) is the required extension of h to a homomorphism (P (A ), P (A ω )) (S, V ). Since the factorization is unique, so is this extension. 6 -Continuous Kleene ω-algebras In this section, we define -continuous Kleene ω-algebras and finitary -continuous Kleene ω-algebras as an extension of the -continuous Kleene algebras of [24]. We establish several basic properties of these structures, including the existence of the suprema of certain subsets corresponding to regular ω-languages. Definition 5. A generalized -continuous Kleene algebra is a semiring-semimodule pair (S, V ) in which S is a -continuous Kleene algebra (hence S and V are idempotent), subject to the usual laws of unitary action as well as the following axiom Ax0: For all x, y S and v V, xy v = n 0 xyn v. Definition 6. A -continuous Kleene ω-algebra is a generalized -continuous Kleene algebra (S, V ) together with an infinite product operation S ω V which maps every ω-word x 0 x 1... over S to an element n 0 x n of V, subject to the following axioms: Ax1: For all x 0, x 1,... S, n 0 x n = x 0 n 0 x n+1. Ax2: Let x 0, x 1,... S and 0 = n 0 n 1 be a sequence which increases without a bound. Let y k = x nk x nk+1 1 for all k 0. Then n 0 x n = k 0 y k. Ax3: For all x 0, x 1,... and y, z in S, n 0 (x n(y z)) = x n {y,z} n 0 x nx n. Ax4: For all x, y 0, y 1,... S, n 0 x y n = k n 0 n 0 y xkn n. The first two axioms are the same as for continuous Kleene ω-algebras. The last two are weaker forms of the complete preservation of suprema of continuous Kleene ω-algebras. It is clear that every continuous Kleene ω-algebra is -continuous. A homomorphism of -continuous Kleene ω-algebras is a semiring-semimodule homomorphism h = (h S, h V ) : (S, V ) (S, V ) such that h S is a -continuous Kleene algebra homomorphism and h respects infinite products: for all x 0, x 1,... S, h V ( n 0 x n) = n 0 h S(x n ). Some of our results will also hold for weaker structures. We define a finitary -continuous Kleene ω-algebra as a structure (S, V ) as above, equipped with a star operation and an infinite product n 0 x n restricted to finitary ω-words over S, i.e., to sequences x 0, x 1,... such that there is a finite subset F of S such that each x n is a finite product of elements of F. (Note that F is not fixed and may depend on

12 214 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas the sequence x 0, x 1,... ) It is required that the axioms hold whenever the involved ω-words are finitary. The above axioms have a number of consequences. For example, if x 0, x 1,... S and x i = for some i, then n 0 x n =. Indeed, if x i =, then n 0 x n = x 0 x i n i+1 x n = n i+1 x n =. By Ax1 and Ax2, each -continuous Kleene ω-algebra is an ω-semigroup [26]. Suppose that (S, V ) is a -continuous Kleene ω-algebra. For each word w S there is a corresponding element w of S which is the product of the letters of w in the semiring S. Similarly, when w S V, there is an element w of V corresponding to w, and when X S or X S V, then we can associate with X the set X = {w : w X}, which is a subset of S or V. Below we will denote w and X by just w and X, respectively. The following two lemmas are well-known and follow from the fact that the semirings of regular languages are the free -continuous Kleene algebras [24] (and also the free Kleene algebras [25]). Lemma 6. Suppose that S is a -continuous Kleene algebra. If R S is regular, then R exists. Moreover, for all x, y S, x( R)y = xry. Lemma 7. Let S be a -continuous Kleene algebra. Suppose that R, R 1 and R 2 are regular subsets of S. Then (R1 R 2 ) = R 1 R 2 (R1 R 2 ) = ( R 1 )( R 2 ) (R ) = ( R). In a similar way, we can prove: Lemma 8. Let (S, V ) be a generalized -continuous Kleene algebra. If R S is regular, x S and v V, then x( R)v = xrv. Proof. Suppose that R =. Then x( R)v = = xrv. If R is a singleton set {y}, then x( R)v = xyv = xrv. Suppose now that R = R 1 R 2 or R = R 1 R 2, where R 1, R 2 are regular, and suppose that our claim holds for R 1 and R 2. Then, if R = R 1 R 2, x( R)v = x( R 1 R 2 )v (by Lemma 7) = x( R 1 )v x( R 2 )v = xr 1 v xr 2 v = x(r 1 R 2 )v = xrv,

13 An Algebraic Approach to Energy Problems I 215 where the third equality uses the induction hypothesis. If R = R 1 R 2, then x( R)v = x( R 1 )( R 2 )v (by Lemma 7) = (xr 1 ( R 2 )v) = {y( R 2 )v : y xr 1 } = { yr 2 v : y xr 1 } = xr 1 R 2 v = xrv, where the second equality uses the induction hypothesis for R 1 and the fourth the one for R 2. Suppose last that R = R 0, where R 0 is regular and our claim holds for R 0. Then, using the previous case, it follows by induction that for all n 0. Using this and Ax0, it follows now that x( R n 0 )v = xr n 0 v (1) x( R)v = x( R 0)y = x( n 0 R n 0 )v = x( n 0( R 0 ) n )v (by Lemma 7) = n 0 x( R 0 ) n v (byax0) = n 0 x( R n 0 )v (by Lemma 7) = n 0 xr n 0 v (by (1)) The proof is complete. = xr 0v = xrv. Lemma 9. Let (S, V ) be a -continuous Kleene ω-algebra. Suppose that the languages R 0, R 1,... S are regular and that R = {R 0, R 1,... } is a finite set. Moreover, let x 0, x 1,... S. Then x n R n. n 0 x n ( R n ) = n 0 Proof. If one of the R i is empty, our claim is clear since both sides are equal to, so we suppose they are all nonempty. Below we will suppose that each regular language comes with a fixed decomposition having a minimal number of operations needed to obtain the language from the empty set and singleton sets. For a regular language R, let R denote

14 216 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas the minimum number of operations needed to construct it. When R is a finite set of regular languages, let R ns denote the set of non-singleton languages in it. Let R = R R ns 3 R. Our definition ensures that if R = {R, R 1,..., R n } and R = R R or R = R R according to the fixed minimal decomposition of R, and if R = {R, R, R 1,..., R n }, then R < R. Similarly, if R = R0 by the fixed minimal decomposition and R = {R 0, R 1,..., R n }, then R < R. We will argue by induction on R. When R = 0, then R consists of singleton languages and our claim follows from Ax3. Suppose that R > 0. Let R be a non-singleton language appearing in R. If R appears only a finite number of times among the R n, then there is some m such that R n is different from R for all n m. Then, x n ( R n ) = x i ( R i ) x n ( R n ) (by Ax1) n 0 i<m n m = ( x 0 R 0 x n 1 R n 1 ) x n ( R n ) (by Lemma 7) n m = (x 0 R 0 x n 1 R n 1 x n ( R n )) (by Lemma 8) n m = {y x n ( R n ) : y x 0 R 0 x n 1 R n 1 } n m = { y x n R n : y x 0 R 0 x n 1 R n 1 } n m = n 0 x n R n, where the passage from the 4th line to the 5th uses induction hypothesis and Ax1. Suppose now that R appears an infinite number of times among the R n. Let R i1, R i2,... be all the occurrences of R among the R n. Define for j 1. Similarly, define y 0 = x 0 ( R 0 ) ( R i1 1)x i1 y j = x ij+1( R ij+1) ( R ij+1 1)x ij+1, Y 0 = x 0 R 0 R i1 1x i1 Y j = x ij+1r ij+1 R ij+1 1x ij+1, for all j 1. It follows from Lemma 7 that y j = Y j for all j 0. Then n 0 x n ( R n ) = j 0 y j ( R), (2)

15 An Algebraic Approach to Energy Problems I 217 by Ax2, and n 0 x n R n = j 0 Y j R. If R = R R, then: x n ( R n ) = y j ( (R R )) (by (2)) n 0 j 0 = y j ( R R ) (by Lemma 7) j 0 = y j z j (by Ax3) = = z j { R, R } j 0 z j { R, R } Z j {R,R } j 0 Y j z j j 0 Y j Z j = x n (R R ) = x n R, n 0 n 0 where the 4th and 5th equalities hold by the induction hypothesis and Ax2. Suppose now that R = R R. Then, applying the induction hypothesis almost directly, n 0 x n ( R n ) = j 0 y j ( R R ) = j 0 y j ( R )( R ) (by Lemma 7) = Y j ( R )( R ) j 0 = Y j R R j 0 = x n R R = x n R, n 0 n 0 where the third and fourth equalities come from the induction hypothesis and Ax2. The last case to consider is when R = T, where T is regular. We argue as

16 218 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas follows: x n ( R n ) = y j ( T ) n 0 j 0 = y j ( T ) (by Lemma 7) j 0 = y j ( T ) kj (by Ax1 and Ax4) k 0,k 1,... j 0 = k 0,k 1,... = Y j ( T ) kj j 0 Y j T kj k 0,k 1,... j 0 = Y j T = Y j R j = x n R n, j 0 j 0 n 0 where the 4th and 5th equalities follow from the induction hypothesis and Ax2. The proof is complete. By the same proof, we have the following version of Lemma 9 for the finitary case: Lemma 10. Let (S, V ) be a finitary -continuous Kleene ω-algebra. Suppose that the languages R 0, R 1,... S are regular and that R = {R 0, R 1,... } is a finite set. Moreover, let x 0, x 1,... be a finitary sequence of elements of S. Then x n R n. n 0 x n ( R n ) = n 0 Note that each sequence x 0, y 0, x 1, y 1,... with y n R n is finitary. Corollary 1. Let (S, V ) be a finitary -continuous Kleene ω-algebra. Suppose that R 0, R 1,... S are regular and that R = {R 0, R 1,... } is a finite set. Then n 0 R n exists and is equal to n 0 Rn. Using our earlier convention that ω-words v = x 0 x 1... S ω over S determine elements n 0 x n of V and subsets X S ω determine subsets of V, Lemma 9 may be rephrased as follows. For any -continuous Kleene ω-algebra (S, V ), x 0, x 1,... S and regular sets R 0, R 1,... S for which R = {R 0, R 1,... } is a finite set, it holds that x n ( R n ) = X, n 0 where X S ω is the set of all ω-words x 0 y 0 x 1 y 1... with y i R i for all i 0, i.e., X = x 0 R 0 x 1 R 1...

17 An Algebraic Approach to Energy Problems I 219 Similarly, Corollary 1 asserts that if a subset of V corresponds to an infinite product over a finite collection of ordinary regular languages in S, then the supremum of this set exists. In any (finitary or non-finitary) -continuous Kleene ω-algebra (S, V ), we define an ω-power operation S V by x ω = n 0 x for all x S. From the axioms we immediately have: Corollary 2. Suppose that (S, V ) is a (finitary or non-finitary) -continuous Kleene ω-algebra. Then the following hold for all x, y S: x ω = xx ω (xy) ω = x(yx) ω x ω = (x n ) ω, n 2. Thus, each -continuous Kleene ω-algebra gives rise to a Wilke algebra [29]. Lemma 11. Let (S, V ) be a (finitary or non-finitary) -continuous Kleene ω- algebra. Suppose that R S ω is ω-regular. Then R exists in V. Proof. It is well-known that R can be written as a finite union of sets of the form R 0 (R 1 ) ω where R 0, R 1 S are regular, moreover, R 1 does not contain the empty word. It suffices to show that R 0 (R 1 ) ω exists. But this holds by Corollary 1. Lemma 12. Let (S, V ) be a (finitary or non-finitary) -continuous Kleene ω- algebra. For all ω-regular sets R 1, R 2 S ω and regular sets R S it holds that (R1 R 2 ) = R 1 R 2 (RR1 ) = ( R)( R 1 ). And if R does not contain the empty word, then R ω = ( R) ω. Proof. The first claim is clear. The second follows from Lemma 8. For the last, see the proof of Lemma Free Finitary -Continuous Kleene ω-algebras Recall that for a set A, R(A ) denotes the collection of all regular languages in A. It is well-known that R(A ), equipped with the usual operations, is a -continuous Kleene algebra on A. Actually, R(A ) is characterized up to isomorphism by the following universal property. Theorem 4 ([25]). For each set A, R(A ) is the free -continuous Kleene algebra on A.

18 220 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas Thus, if S is any -continuous Kleene algebra and h : A S is any mapping from any set A into S, then h has a unique extension to a -continuous Kleene algebra homomorphism h : R(A ) S. Now let R (A ) denote the collection of all subsets of A which are finite unions of finitary infinite products of regular languages, that is, finite unions of sets of the form n 0 R n, where each R n A is regular, and the set {R 0, R 1,...} is finite. Note that R (A ) contains the empty set and is closed under finite unions. Moreover, when Y R (A ) and u = a 0 a 1... Y A ω, then the alphabet of u is finite, i.e., the set {a n : n 0} is finite. Also, R (A ) is closed under the action of R(A ) inherited from (P (A ), P (A )). The infinite product of a sequence of regular languages in R(A ) is not necessarily contained in R (A ), but by definition R (A ) contains all infinite products of finitary sequences over R(A ). Example 3. Let A = {a, b} and consider the set X = {aba 2 b... a n b... } P (A ) containing a single ω-word. X can be written as an infinite product of subsets of A, but it cannot be written as an infinite product R 0 R 1... of regular languages in A such that the set {R 0, R 1,...} is finite. Hence X / R (A ). Theorem 5. For each set A, (R(A ), R (A )) is the free finitary -continuous Kleene ω-algebra on A. Proof. Our proof is modeled after the proof of Theorem 2. First, it is clear from the fact that (P (A ), P (A )) is a continuous Kleene ω-algebra, and that R(A ) is a -continuous semiring, that (R(A ), R (A )) is indeed a finitary -continuous Kleene ω-algebra. Suppose that (S, V ) is any finitary -continuous Kleene ω-algebra and let h : A S be a mapping. For each u = a 0... a n 1 in A, let h S (u) = h(a 0 ) h(a n 1 ) and h V (u) = h(a 0 ) h(a n 1 )1 ω = k 0 b k, where b k = a k for all k < n and b k = 1 for all k n. When u = a 0 a 1... A ω whose alphabet is finite, define h V (u) = k 0 h(a k). This infinite product exists in R (A ). Note that we have h S (uv) = h S (u)h S (v) for all u, v A, and h S (ε) = 1. And if u A and v A such that the alphabet of v is finite, then h V (uv) = h S (u)h V (v). Also, h V (XY ) = h S (X)h V (Y ) for all X A in R(A ) and Y A in R (A ). Moreover, for all u 0, u 1,... in A, if u i ε for infinitely many i, such that the alphabet of u 0 u 1... is finite, then h V (u 0 u 1...) = k 0 h S(u k ). If on the other hand, u k = ε for all k n, then h V (u 0 u 1...) = h S (u 0 ) h S (u n 1 )1 ω. In either case, if X 0, X 1,... A are regular and form a finitary sequence, then the sequence h S (X 0 ), h S (X 1 ),... is also finitary as is each infinite word in n 0 X n, and h V ( n 0 X n) = n 0 h S(X n ). Suppose now that X A is regular and Y A is in R (A ). We define h S (X) = h S (X) and h V (Y ) = h V (Y ). It is well-known that h S is a -continuous Kleene algebra morphism R(A ) S. Also, h V preserves finite suprema, since when I is finite, h V ( i I Y i) = h V ( i I Y i) = i I h V (Y i ) = i I hv (Y i ) = i I h V (Y i). We prove that the action is preserved. Let X R(A ) and Y R (A ). Then h V (XY ) = h V (XY ) = h S (X)h V (Y ) = h S (X) h V (Y ) = h S (X)h V (Y ).

19 An Algebraic Approach to Energy Problems I 221 Finally, we prove that infinite product of finitary sequences is preserved. Let X 0, X 1,... be a finitary sequence of regular languages in R(A ). Then, using Corollary 1, h V ( n 0 X n) = h V ( n 0 X n) = n 0 h S(X n ) = n 0 hs (X n ) = n 0 h S (X n). It is clear that h S extends h, and that (h S, h V ) is unique. Consider now (R(A ), R (A ω )) equipped with the infinite product operation n 0 X n = {u 0 u 1 A ω : u n X n, n 0}, defined on finitary sequences X 0, X 1,... of languages in R(A ). Lemma 13. Suppose that (S, V ) is a finitary -continuous Kleene ω-algebra satisfying 1 ω =. Let (h S, h V ) be a homomorphism (R(A ), R (A )) (S, V ). Then (h S, h V ) factors through (ϕ S, ϕ V ). Proof. Similar to the proof of Lemma 5. Theorem 6. For each set A, (R(A ), R (A ω )) is the free finitary -continuous Kleene ω-algebra satisfying 1 ω = on A. Proof. This follows from Theorem 5 using Lemma Continuous Kleene ω-algebras Are Iteration Semiring-Semimodule Pairs In this section, we will show that every (finitary or non-finitary) -continuous Kleene ω-algebra is an iteration semiring-semimodule pair. Some definitions are in order. Suppose that S = (S,,,, 1) is an idempotent semiring. Following [2], we call S a Conway semiring if S is equipped with a star operation : S S satisfying, for all x, y S, (x y) = (x y) x (xy) = 1 x(yx) y. (Note that in [2], also non-idempotent Conway semirings have been considered, but we stick to the idempotent case here.) It is known [2] that if S is a Conway semiring, then for each n 1, so is the semiring S n n of all n n-matrices over S with the usual sum and product operations and the star operation defined by induction on n so that if n > 1 and M = ( ) a b c d, where a and d are square matrices of dimension < n, then ( ) M (a bd = c) (a bd c) bd (d ca b) ca (d ca b). The above definition does not depend on how M is split into submatrices. Suppose that S is a Conway semiring and G = {g 1,..., g n } is a finite group of order n. For each x g1,..., x gn S, consider the n n matrix M G = M G (x g1,..., x gn )

20 222 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas whose ith row is (x g 1 i g 1,..., x g 1 i g n ), for i = 1,..., n, so that each row (and column) is a permutation of the first. We say that the group identity [8] associated with G holds in S if for each x g1,..., x gn, the first (and then any) row sum of MG is (x g1 x gn ). Finally, we call S an iteration semiring [2, 11] if the group identities hold in S for all finite groups of order n. Classes of examples of (idempotent) iteration semirings are given by the continuous and the -continuous Kleene algebras defined in the introduction. As mentioned above, the language semirings P (A ) and the semirings P (A A) of binary relations are continuous and hence also -continuous Kleene algebras, and the semirings R(A ) of regular languages are -continuous Kleene algebras. When S is a -continuous Kleene algebra and n is a nonnegative integer, then the matrix semiring S n n is also a -continuous Kleene algebra and hence an iteration semiring, cf. [24]. The star operation is defined by M i,j = m 0, 1 k 1,...,k m n M i,k1 M k1,k 2 M km,j, for all M S n n and 1 i, j n. It is not trivial to prove that the above supremum exists. The fact that M is well-defined can be established by induction on n together with the well-known matrix star formula mentioned above. An idempotent semiring-semimodule pair (S, V ) is a Conway semiring-semimodule pair if it is equipped with a star operation : S S and an omega operation ω : S V such that S is a Conway semiring acting on the semimodule V = (V,, ) and the following hold for all x, y S: (x y) ω = (x y) x ω (x y) ω (xy) ω = x(yx) ω. It is known [2] that when (S, V ) is a Conway semiring-semimodule pair, then so is (S n n, V n ) for each n, where V n denotes the S n n -semimodule of all n- dimensional (column) vectors over V with the action of S n n defined similarly to matrix-vector product, and where the omega operation is defined by induction so that when n > 1 and M = ( ) a b c d, where a and d are square matrices of dimension < n, then ( ) M ω (a bd = c) ω (a bd c) bd ω (d ca b) ω (d ca b) ca ω. (3) We also define iteration semiring-semimodule pairs [2, 19] as those Conway semiring-semimodule pairs such that S is an iteration semiring and the omega operation satisfies the following condition: let M G = M G (x g1,..., x gn ) like above, with x g1,..., x gn S for a finite group G = {g 1,..., g n } of order n, then the first (and hence any) entry of MG ω is equal to (x g 1 x gn ) ω. Examples of (idempotent) iteration semiring-semimodule pairs include the semiring-semimodule pairs (P (A ), P (A ω )) of languages and ω-languages over an alphabet A mentioned earlier. The omega operation is defined by X ω = n 0 X. More

21 An Algebraic Approach to Energy Problems I 223 generally, it is known that every continuous Kleene ω-algebra gives rise to an iteration semiring-semimodule pair. The omega operation is defined as for languages: x ω = n 0 x n with x n = x for all n 0. Other not necessarily idempotent examples include the complete and the (symmetric) bi-inductive semiring-semimodule pairs of [18, 19]. Suppose now that (S, V ) is a -continuous Kleene ω-algebra. Then for each n 1, (S n n, V n ) is a semiring-semimodule pair. The action of S n n on V n is defined similarly to matrix-vector product (viewing the elements of V n as column vectors). It is easy to see that (S n n, V n ) is a generalized -continuous Kleene algebra for each n 1. Suppose that n 2. We would like to define an infinite product operation (S n n ) ω V n on matrices in S n n by ( M m ) i = (M 0 ) i,i1 (M 1 ) i1,i 2 m 0 1 i 1,i 2,... n for all 1 i n. However, unlike in the case of complete semiring-semimodule pairs [19], the supremum on the right-hand side may not exist. Nevertheless it is possible to define an omega operation S n n V n and to turn (S n n, V n ) into an iteration semiring-semimodule pair. Lemma 14. Let (S, V ) be a (finitary or non-finitary) -continuous Kleene ω- algebra. Suppose that M S n n, where n 2. Then for every 1 i n, ( M) i = M i,i1 M i1,i 2 m 0 1 i 1,i 2,... n exists, so that we define M ω by the above equality. Moreover, when M = ( a b c d ), where a and d are square matrices of dimension < n, then (3) holds. Proof. Suppose that n = 2. Then by Corollary 1, (a bd c) ω is the supremum of the set of all infinite products A 1,i1 A i1,i 2 containing a or c infinitely often, and (a bd c) bd ω is the supremum of the set of all infinite products A 1,i1 A i1,i 2 containing a and c only finitely often. Thus, (a bd c) ω (a bd c) bd ω is the supremum of the set of all infinite products A 1,i1 A i1,i 2. Similarly, (d ca b) ω (d ca b) ca ω is the supremum of the set of all infinite products A 2,i1 A i1,i 2. The proof of the induction step is similar. Suppose that n > 2, and let a be k k. Then by induction hypothesis, for every i with 1 i k, the ith component of (a bd c) ω is the supremum of the set of all infinite products A i,i1 A i1,i 2 containing an entry of a or c infinitely often, whereas the ith component of (a bd c) bd ω is the supremum of all infinite products A i,i1 A i1,i 2 containing entries of a and c only finitely often. Thus, the ith component of (a bd c) ω (a bd c) bd ω is the supremum of the set of all infinite products A i,i1 A i1,i 2. A similar fact holds for (d ca b) ω (d ca b) ca ω. The proof is complete. Theorem 7. Every (finitary or non-finitary) -continuous Kleene ω-algebra is an iteration semiring-semimodule pair.

22 224 Zoltán Ésik, Uli Fahrenberg, Axel Legay, and Karin Quaas Proof. Suppose that (S, V ) is a finitary -continuous Kleene ω-algebra. Then (x y) ω = (x y) ω (x y) x ω, since by Lemma 7 and Lemma 12, (x y) ω is the supremum of the set of all infinite products over {x, y} containing y infinitely often, and (x y) x ω is the supremum of the set of infinite products over {x, y} containing y finitely often. Thus, (x y) ω (x y) x ω is equal to (x y) ω, which by Ax3 is the supremum of all infinite products over {x, y}. As noted above, also (xy) ω = x(yx) ω for all x, y S. Thus, (S, V ) is a Conway semiring-semimodule pair and hence so is each (S n n, V n ). To complete the proof of the fact that (S, V ) is an iteration semiring-semimodule pair, suppose that x 1,..., x n S, and let x = x 1 x n. Let A be an n n matrix whose rows are permutations of the x 1,..., x n. We need to prove that each component of A ω is x ω. We use Lemma 14 and Ax3 to show that both are equal to the supremum of the set of all infinite products over the set X = {x 1,..., x n }. By Lemma 14, for each i 0 = 1,..., n, the i 0 th row of A ω is i a 1,i 2,... i 0,i 1 a i1,i 2. It is clear that each infinite product a i0,i 1 a i1,i 2 is an infinite product over X. Suppose now that x j0 x j1 is an infinite product over X. We define by induction on k 0 an index i k+1 such that a ik,i k+1 = x jk. Suppose that k = 0. Then let i 1 be such that a i0,i 1 = x j0. Since x j0 appears in the i 0 th row, there is such an i 1. Suppose that k > 0 and that i k has already been defined. Since x jk appears in the i k th row, there is some i k+1 with a ik,i k+1 = x jk. We have completed the proof of the fact that the i 0 th entry of A ω is the supremum of the set of all infinite products over the set X = {x 1,..., x n }. Consider now x ω = xx. We use induction on n to prove that x ω is also the supremum of the set of all infinite products over the set X = {x 1,..., x n }. When n = 1 this is clear. Suppose now that n > 1 and that the claim is true for n 1. Let y = x 1 x n 1 so that x = y x n. We have: x ω = (y x n ) ω = (x ny) x ω n (x ny) ω = (x ny) x ω n (x nx 1 x nx n 1 ) ω. Now (x ny) x ω n = k,m 1,...,m k 0 x m1 n y x m k n yx ω n by Lemma 8, which is the supremum of all infinite products over X containing x 1,..., x n 1 only a finite number of times.

An Algebraic Approach to Energy Problems II The Algebra of Energy Functions

An Algebraic Approach to Energy Problems II The Algebra of Energy Functions Acta Cybernetica 23 (2017) 229 268. An Algebraic Approach to Energy Problems II The Algebra of Energy Functions Zoltán Ésika, Uli Fahrenberg b, Axel Legay c, and Karin Quaas d Abstract Energy and resource

More information

Axioms of Kleene Algebra

Axioms of Kleene Algebra Introduction to Kleene Algebra Lecture 2 CS786 Spring 2004 January 28, 2004 Axioms of Kleene Algebra In this lecture we give the formal definition of a Kleene algebra and derive some basic consequences.

More information

Completeness of Star-Continuity

Completeness of Star-Continuity 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

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

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

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California 1. Residuated Lattices with iteration 2. Background: Semirings and Kleene algebras 3. A Gentzen system

More information

Equational Theory of Kleene Algebra

Equational Theory of Kleene Algebra Introduction to Kleene Algebra Lecture 7 CS786 Spring 2004 February 16, 2004 Equational Theory of Kleene Algebra We now turn to the equational theory of Kleene algebra. This and the next lecture will be

More information

Hierarchy among Automata on Linear Orderings

Hierarchy among Automata on Linear Orderings Hierarchy among Automata on Linear Orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 Abstract In a preceding paper, automata and rational

More information

Automata on linear orderings

Automata on linear orderings Automata on linear orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 September 25, 2006 Abstract We consider words indexed by linear

More information

Featured Weighted Automata. FormaliSE 2017

Featured Weighted Automata. FormaliSE 2017 Featured Weighted Automata Uli Fahrenberg Axel Legay École polytechnique, Palaiseau, France Inria Rennes, France FormaliSE 2017 Elevator Pitch featured transition systems for modeling software product

More information

Equivalence of Regular Expressions and FSMs

Equivalence of Regular Expressions and FSMs Equivalence of Regular Expressions and FSMs Greg Plaxton Theory in Programming Practice, Spring 2005 Department of Computer Science University of Texas at Austin Regular Language Recall that a language

More information

0 Sets and Induction. Sets

0 Sets and Induction. Sets 0 Sets and Induction Sets A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a A to denote that a is an element of the set

More information

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9 MAT 570 REAL ANALYSIS LECTURE NOTES PROFESSOR: JOHN QUIGG SEMESTER: FALL 204 Contents. Sets 2 2. Functions 5 3. Countability 7 4. Axiom of choice 8 5. Equivalence relations 9 6. Real numbers 9 7. Extended

More information

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

SYNTACTIC SEMIGROUP PROBLEM FOR THE SEMIGROUP REDUCTS OF AFFINE NEAR-SEMIRINGS OVER BRANDT SEMIGROUPS SYNTACTIC SEMIGROUP PROBLEM FOR THE SEMIGROUP REDUCTS OF AFFINE NEAR-SEMIRINGS OVER BRANDT SEMIGROUPS JITENDER KUMAR AND K. V. KRISHNA Abstract. The syntactic semigroup problem is to decide whether a given

More information

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

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra D. R. Wilkins Contents 3 Topics in Commutative Algebra 2 3.1 Rings and Fields......................... 2 3.2 Ideals...............................

More information

An algebraic characterization of unary two-way transducers

An algebraic characterization of unary two-way transducers An algebraic characterization of unary two-way transducers (Extended Abstract) Christian Choffrut 1 and Bruno Guillon 1 LIAFA, CNRS and Université Paris 7 Denis Diderot, France. Abstract. Two-way transducers

More information

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings.

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings. MATH 433 Applied Algebra Lecture 22: Semigroups. Rings. Groups Definition. A group is a set G, together with a binary operation, that satisfies the following axioms: (G1: closure) for all elements g and

More information

A GENERAL THEORY OF ZERO-DIVISOR GRAPHS OVER A COMMUTATIVE RING. David F. Anderson and Elizabeth F. Lewis

A GENERAL THEORY OF ZERO-DIVISOR GRAPHS OVER A COMMUTATIVE RING. David F. Anderson and Elizabeth F. Lewis International Electronic Journal of Algebra Volume 20 (2016) 111-135 A GENERAL HEORY OF ZERO-DIVISOR GRAPHS OVER A COMMUAIVE RING David F. Anderson and Elizabeth F. Lewis Received: 28 April 2016 Communicated

More information

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement

More information

Advanced Calculus: MATH 410 Real Numbers Professor David Levermore 5 December 2010

Advanced Calculus: MATH 410 Real Numbers Professor David Levermore 5 December 2010 Advanced Calculus: MATH 410 Real Numbers Professor David Levermore 5 December 2010 1. Real Number System 1.1. Introduction. Numbers are at the heart of mathematics. By now you must be fairly familiar with

More information

Chapter 1. Sets and Mappings

Chapter 1. Sets and Mappings Chapter 1. Sets and Mappings 1. Sets A set is considered to be a collection of objects (elements). If A is a set and x is an element of the set A, we say x is a member of A or x belongs to A, and we write

More information

Groups and Symmetries

Groups and Symmetries Groups and Symmetries Definition: Symmetry A symmetry of a shape is a rigid motion that takes vertices to vertices, edges to edges. Note: A rigid motion preserves angles and distances. Definition: Group

More information

Kleene Algebras and Algebraic Path Problems

Kleene Algebras and Algebraic Path Problems Kleene Algebras and Algebraic Path Problems Davis Foote May 8, 015 1 Regular Languages 1.1 Deterministic Finite Automata A deterministic finite automaton (DFA) is a model of computation that can simulate

More information

Characterizing the Equational Theory

Characterizing the Equational Theory Introduction to Kleene Algebra Lecture 4 CS786 Spring 2004 February 2, 2004 Characterizing the Equational Theory Most of the early work on Kleene algebra was directed toward characterizing the equational

More information

FUNCTORS AND ADJUNCTIONS. 1. Functors

FUNCTORS AND ADJUNCTIONS. 1. Functors FUNCTORS AND ADJUNCTIONS Abstract. Graphs, quivers, natural transformations, adjunctions, Galois connections, Galois theory. 1.1. Graph maps. 1. Functors 1.1.1. Quivers. Quivers generalize directed graphs,

More information

Mathematical Foundations of Logic and Functional Programming

Mathematical Foundations of Logic and Functional Programming Mathematical Foundations of Logic and Functional Programming lecture notes The aim of the course is to grasp the mathematical definition of the meaning (or, as we say, the semantics) of programs in two

More information

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

Applications of Regular Algebra to Language Theory Problems. Roland Backhouse February 2001 1 Applications of Regular Algebra to Language Theory Problems Roland Backhouse February 2001 Introduction 2 Examples: Path-finding problems. Membership problem for context-free languages. Error repair.

More information

Notes on Monoids and Automata

Notes on Monoids and Automata Notes on Monoids and Automata Uday S. Reddy November 9, 1994 In this article, I define a semantics for Algol programs with Reynolds s syntactic control of interference?;? in terms of comonoids in coherent

More information

Theorem 5.3. Let E/F, E = F (u), be a simple field extension. Then u is algebraic if and only if E/F is finite. In this case, [E : F ] = deg f u.

Theorem 5.3. Let E/F, E = F (u), be a simple field extension. Then u is algebraic if and only if E/F is finite. In this case, [E : F ] = deg f u. 5. Fields 5.1. Field extensions. Let F E be a subfield of the field E. We also describe this situation by saying that E is an extension field of F, and we write E/F to express this fact. If E/F is a field

More information

Advanced Automata Theory 9 Automatic Structures in General

Advanced Automata Theory 9 Automatic Structures in General Advanced Automata Theory 9 Automatic Structures in General Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Advanced Automata

More information

The Pumping Lemma and Closure Properties

The Pumping Lemma and Closure Properties The Pumping Lemma and Closure Properties Mridul Aanjaneya Stanford University July 5, 2012 Mridul Aanjaneya Automata Theory 1/ 27 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),

More information

Advanced Calculus: MATH 410 Real Numbers Professor David Levermore 1 November 2017

Advanced Calculus: MATH 410 Real Numbers Professor David Levermore 1 November 2017 Advanced Calculus: MATH 410 Real Numbers Professor David Levermore 1 November 2017 1. Real Number System 1.1. Introduction. Numbers are at the heart of mathematics. By now you must be fairly familiar with

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Partial Transformations: Semigroups, Categories and Equations. Ernie Manes, UMass, Amherst Semigroups/Categories workshop U Ottawa, May 2010

Partial Transformations: Semigroups, Categories and Equations. Ernie Manes, UMass, Amherst Semigroups/Categories workshop U Ottawa, May 2010 1 Partial Transformations: Semigroups, Categories and Equations Ernie Manes, UMass, Amherst Semigroups/Categories workshop U Ottawa, May 2010 2 What is a zero? 0 S, 0x =0=x0 0 XY : X Y, W f X 0 XY Y g

More information

GENERALIZED DIFFERENCE POSETS AND ORTHOALGEBRAS. 0. Introduction

GENERALIZED DIFFERENCE POSETS AND ORTHOALGEBRAS. 0. Introduction Acta Math. Univ. Comenianae Vol. LXV, 2(1996), pp. 247 279 247 GENERALIZED DIFFERENCE POSETS AND ORTHOALGEBRAS J. HEDLÍKOVÁ and S. PULMANNOVÁ Abstract. A difference on a poset (P, ) is a partial binary

More information

MANFRED DROSTE AND WERNER KUICH

MANFRED DROSTE AND WERNER KUICH Logical Methods in Computer Science Vol. 14(1:21)2018, pp. 1 14 https://lmcs.episciences.org/ Submitted Jan. 31, 2017 Published Mar. 06, 2018 WEIGHTED ω-restricted ONE-COUNTER AUTOMATA Universität Leipzig,

More information

2. Intersection Multiplicities

2. Intersection Multiplicities 2. Intersection Multiplicities 11 2. Intersection Multiplicities Let us start our study of curves by introducing the concept of intersection multiplicity, which will be central throughout these notes.

More information

Kleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque

Kleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque Kleene Algebra and Arden s Theorem Anshul Kumar Inzemamul Haque Motivation Regular Expression is a Kleene Algebra. We can use the properties and theorems of Kleene Algebra to simplify regular expressions

More information

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

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

More information

Groups. 3.1 Definition of a Group. Introduction. Definition 3.1 Group

Groups. 3.1 Definition of a Group. Introduction. Definition 3.1 Group C H A P T E R t h r e E Groups Introduction Some of the standard topics in elementary group theory are treated in this chapter: subgroups, cyclic groups, isomorphisms, and homomorphisms. In the development

More information

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion CHAPTER 1 Relations 1. Relations and Their Properties 1.1. Definition of a Relation. Definition 1.1.1. A binary relation from a set A to a set B is a subset R A B. If (a, b) R we say a is Related to b

More information

Lecture 1. (i,j) N 2 kx i y j, and this makes k[x, y]

Lecture 1. (i,j) N 2 kx i y j, and this makes k[x, y] Lecture 1 1. Polynomial Rings, Gröbner Bases Definition 1.1. Let R be a ring, G an abelian semigroup, and R = i G R i a direct sum decomposition of abelian groups. R is graded (G-graded) if R i R j R i+j

More information

On finite congruence-simple semirings

On finite congruence-simple semirings On finite congruence-simple semirings arxiv:math/0205083v2 [math.ra] 19 Aug 2003 Chris Monico Department of Mathematics and Statistics Texas Tech University Lubbock, TX 79409-1042 cmonico@math.ttu.edu

More information

Chapter 1. Sets and Numbers

Chapter 1. Sets and Numbers Chapter 1. Sets and Numbers 1. Sets A set is considered to be a collection of objects (elements). If A is a set and x is an element of the set A, we say x is a member of A or x belongs to A, and we write

More information

Topology. Xiaolong Han. Department of Mathematics, California State University, Northridge, CA 91330, USA address:

Topology. Xiaolong Han. Department of Mathematics, California State University, Northridge, CA 91330, USA  address: Topology Xiaolong Han Department of Mathematics, California State University, Northridge, CA 91330, USA E-mail address: Xiaolong.Han@csun.edu Remark. You are entitled to a reward of 1 point toward a homework

More information

Universal Algebra for Logics

Universal Algebra for Logics Universal Algebra for Logics Joanna GRYGIEL University of Czestochowa Poland j.grygiel@ajd.czest.pl 2005 These notes form Lecture Notes of a short course which I will give at 1st School on Universal Logic

More information

Notes on generating functions in automata theory

Notes on generating functions in automata theory Notes on generating functions in automata theory Benjamin Steinberg December 5, 2009 Contents Introduction: Calculus can count 2 Formal power series 5 3 Rational power series 9 3. Rational power series

More information

are Banach algebras. f(x)g(x) max Example 7.4. Similarly, A = L and A = l with the pointwise multiplication

are Banach algebras. f(x)g(x) max Example 7.4. Similarly, A = L and A = l with the pointwise multiplication 7. Banach algebras Definition 7.1. A is called a Banach algebra (with unit) if: (1) A is a Banach space; (2) There is a multiplication A A A that has the following properties: (xy)z = x(yz), (x + y)z =

More information

What are Iteration Theories?

What are Iteration Theories? What are Iteration Theories? Jiří Adámek and Stefan Milius Institute of Theoretical Computer Science Technical University of Braunschweig Germany adamek,milius @iti.cs.tu-bs.de Jiří Velebil Department

More information

Universität Augsburg. Institut für Informatik. Separability in Domain Semirings. D Augsburg. Report Dezember 2004

Universität Augsburg. Institut für Informatik. Separability in Domain Semirings. D Augsburg. Report Dezember 2004 Universität Augsburg à ÊÇÅÍÆ ËÀǼ Separability in Domain Semirings Dexter Kozen Bernhard Möller Report 2004-16 Dezember 2004 Institut für Informatik D-86135 Augsburg Copyright c Dexter Kozen Bernhard Möller

More information

M17 MAT25-21 HOMEWORK 6

M17 MAT25-21 HOMEWORK 6 M17 MAT25-21 HOMEWORK 6 DUE 10:00AM WEDNESDAY SEPTEMBER 13TH 1. To Hand In Double Series. The exercises in this section will guide you to complete the proof of the following theorem: Theorem 1: Absolute

More information

Duality and Automata Theory

Duality and Automata Theory Duality and Automata Theory Mai Gehrke Université Paris VII and CNRS Joint work with Serge Grigorieff and Jean-Éric Pin Elements of automata theory A finite automaton a 1 2 b b a 3 a, b The states are

More information

Monoidal Categories, Bialgebras, and Automata

Monoidal Categories, Bialgebras, and Automata Monoidal Categories, Bialgebras, and Automata James Worthington Mathematics Department Cornell University Binghamton University Geometry/Topology Seminar October 29, 2009 Background: Automata Finite automata

More information

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

Chapter 3. Rings. The basic commutative rings in mathematics are the integers Z, the. Examples Chapter 3 Rings Rings are additive abelian groups with a second operation called multiplication. The connection between the two operations is provided by the distributive law. Assuming the results of Chapter

More information

CHAPTER I. Rings. Definition A ring R is a set with two binary operations, addition + and

CHAPTER I. Rings. Definition A ring R is a set with two binary operations, addition + and CHAPTER I Rings 1.1 Definitions and Examples Definition 1.1.1. A ring R is a set with two binary operations, addition + and multiplication satisfying the following conditions for all a, b, c in R : (i)

More information

Warshall s algorithm

Warshall s algorithm Regular Expressions [1] Warshall s algorithm See Floyd-Warshall algorithm on Wikipedia The Floyd-Warshall algorithm is a graph analysis algorithm for finding shortest paths in a weigthed, directed graph

More information

Exercises on chapter 1

Exercises on chapter 1 Exercises on chapter 1 1. Let G be a group and H and K be subgroups. Let HK = {hk h H, k K}. (i) Prove that HK is a subgroup of G if and only if HK = KH. (ii) If either H or K is a normal subgroup of G

More information

Tree sets. Reinhard Diestel

Tree sets. Reinhard Diestel 1 Tree sets Reinhard Diestel Abstract We study an abstract notion of tree structure which generalizes treedecompositions of graphs and matroids. Unlike tree-decompositions, which are too closely linked

More information

INVERSE LIMITS AND PROFINITE GROUPS

INVERSE LIMITS AND PROFINITE GROUPS INVERSE LIMITS AND PROFINITE GROUPS BRIAN OSSERMAN We discuss the inverse limit construction, and consider the special case of inverse limits of finite groups, which should best be considered as topological

More information

A Weak Bisimulation for Weighted Automata

A Weak Bisimulation for Weighted Automata Weak Bisimulation for Weighted utomata Peter Kemper College of William and Mary Weighted utomata and Semirings here focus on commutative & idempotent semirings Weak Bisimulation Composition operators Congruence

More information

ALGEBRAIC GROUPS J. WARNER

ALGEBRAIC GROUPS J. WARNER ALGEBRAIC GROUPS J. WARNER Let k be an algebraically closed field. varieties unless otherwise stated. 1. Definitions and Examples For simplicity we will work strictly with affine Definition 1.1. An algebraic

More information

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) +

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) + Lecture 2 Mai Gehrke Université Paris 7 and CNRS A {ε} A ((ab) (ba) ) (ab) + (ba) + Further examples - revisited 1. Completeness of modal logic with respect to Kripke semantics was obtained via duality

More information

THE LATTICE OF SUBVARIETIES OF SEMILATTICE ORDERED ALGEBRAS

THE LATTICE OF SUBVARIETIES OF SEMILATTICE ORDERED ALGEBRAS THE LATTICE OF SUBVARIETIES OF SEMILATTICE ORDERED ALGEBRAS A. PILITOWSKA 1 AND A. ZAMOJSKA-DZIENIO 2 Abstract. This paper is devoted to the semilattice ordered V-algebras of the form (A, Ω, +), where

More information

2. Introduction to commutative rings (continued)

2. Introduction to commutative rings (continued) 2. Introduction to commutative rings (continued) 2.1. New examples of commutative rings. Recall that in the first lecture we defined the notions of commutative rings and field and gave some examples of

More information

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ NICOLAS FORD Abstract. The goal of this paper is to present a proof of the Nullstellensatz using tools from a branch of logic called model theory. In

More information

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

Introduction to Kleene Algebra Lecture 13 CS786 Spring 2004 March 15, 2004 Introduction to Kleene Algebra Lecture 13 CS786 Spring 2004 March 15, 2004 Models of KAT In this lecture we show that the equational theories of KAT, KAT (the star-continuous Kleene algebras with tests),

More information

On Fixed Point Equations over Commutative Semirings

On Fixed Point Equations over Commutative Semirings On Fixed Point Equations over Commutative Semirings Javier Esparza, Stefan Kiefer, and Michael Luttenberger Universität Stuttgart Institute for Formal Methods in Computer Science Stuttgart, Germany {esparza,kiefersn,luttenml}@informatik.uni-stuttgart.de

More information

THE REAL NUMBERS Chapter #4

THE REAL NUMBERS Chapter #4 FOUNDATIONS OF ANALYSIS FALL 2008 TRUE/FALSE QUESTIONS THE REAL NUMBERS Chapter #4 (1) Every element in a field has a multiplicative inverse. (2) In a field the additive inverse of 1 is 0. (3) In a field

More information

Normal Subgroups and Factor Groups

Normal Subgroups and Factor Groups Normal Subgroups and Factor Groups Subject: Mathematics Course Developer: Harshdeep Singh Department/ College: Assistant Professor, Department of Mathematics, Sri Venkateswara College, University of Delhi

More information

= ϕ r cos θ. 0 cos ξ sin ξ and sin ξ cos ξ. sin ξ 0 cos ξ

= ϕ r cos θ. 0 cos ξ sin ξ and sin ξ cos ξ. sin ξ 0 cos ξ 8. The Banach-Tarski paradox May, 2012 The Banach-Tarski paradox is that a unit ball in Euclidean -space can be decomposed into finitely many parts which can then be reassembled to form two unit balls

More information

Regular expressions. Regular expressions. Regular expressions. Regular expressions. Remark (FAs with initial set recognize the regular languages)

Regular expressions. Regular expressions. Regular expressions. Regular expressions. Remark (FAs with initial set recognize the regular languages) Definition (Finite automata with set of initial states) A finite automata with set of initial states, or FA with initial set for short, is a 5-tupel (Q, Σ, δ, S, F ) where Q, Σ, δ, and F are defined as

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K R MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND First Printing, 99 Chapter LINEAR EQUATIONS Introduction to linear equations A linear equation in n unknowns x,

More information

Abstract Algebra I. Randall R. Holmes Auburn University. Copyright c 2012 by Randall R. Holmes Last revision: November 11, 2016

Abstract Algebra I. Randall R. Holmes Auburn University. Copyright c 2012 by Randall R. Holmes Last revision: November 11, 2016 Abstract Algebra I Randall R. Holmes Auburn University Copyright c 2012 by Randall R. Holmes Last revision: November 11, 2016 This work is licensed under the Creative Commons Attribution- NonCommercial-NoDerivatives

More information

Boolean Inner-Product Spaces and Boolean Matrices

Boolean Inner-Product Spaces and Boolean Matrices Boolean Inner-Product Spaces and Boolean Matrices Stan Gudder Department of Mathematics, University of Denver, Denver CO 80208 Frédéric Latrémolière Department of Mathematics, University of Denver, Denver

More information

Lecture 2. x if x X B n f(x) = α(x) if x S n 1 D n

Lecture 2. x if x X B n f(x) = α(x) if x S n 1 D n Lecture 2 1.10 Cell attachments Let X be a topological space and α : S n 1 X be a map. Consider the space X D n with the disjoint union topology. Consider further the set X B n and a function f : X D n

More information

Free Subgroups of the Fundamental Group of the Hawaiian Earring

Free Subgroups of the Fundamental Group of the Hawaiian Earring Journal of Algebra 219, 598 605 (1999) Article ID jabr.1999.7912, available online at http://www.idealibrary.com on Free Subgroups of the Fundamental Group of the Hawaiian Earring Katsuya Eda School of

More information

Regular Expressions and Language Properties

Regular Expressions and Language Properties Regular Expressions and Language Properties Mridul Aanjaneya Stanford University July 3, 2012 Mridul Aanjaneya Automata Theory 1/ 47 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),

More information

1 First Theme: Sums of Squares

1 First Theme: Sums of Squares I will try to organize the work of this semester around several classical questions. The first is, When is a prime p the sum of two squares? The question was raised by Fermat who gave the correct answer

More information

Recursive definitions on surreal numbers

Recursive definitions on surreal numbers Recursive definitions on surreal numbers Antongiulio Fornasiero 19th July 2005 Abstract Let No be Conway s class of surreal numbers. I will make explicit the notion of a function f on No recursively defined

More information

Aperiodic languages and generalizations

Aperiodic languages and generalizations Aperiodic languages and generalizations Lila Kari and Gabriel Thierrin Department of Mathematics University of Western Ontario London, Ontario, N6A 5B7 Canada June 18, 2010 Abstract For every integer k

More information

8. Prime Factorization and Primary Decompositions

8. Prime Factorization and Primary Decompositions 70 Andreas Gathmann 8. Prime Factorization and Primary Decompositions 13 When it comes to actual computations, Euclidean domains (or more generally principal ideal domains) are probably the nicest rings

More information

2. Prime and Maximal Ideals

2. Prime and Maximal Ideals 18 Andreas Gathmann 2. Prime and Maximal Ideals There are two special kinds of ideals that are of particular importance, both algebraically and geometrically: the so-called prime and maximal ideals. Let

More information

Metric Spaces and Topology

Metric Spaces and Topology Chapter 2 Metric Spaces and Topology From an engineering perspective, the most important way to construct a topology on a set is to define the topology in terms of a metric on the set. This approach underlies

More information

Sets, Structures, Numbers

Sets, Structures, Numbers Chapter 1 Sets, Structures, Numbers Abstract In this chapter we shall introduce most of the background needed to develop the foundations of mathematical analysis. We start with sets and algebraic structures.

More information

Jónsson posets and unary Jónsson algebras

Jónsson posets and unary Jónsson algebras Jónsson posets and unary Jónsson algebras Keith A. Kearnes and Greg Oman Abstract. We show that if P is an infinite poset whose proper order ideals have cardinality strictly less than P, and κ is a cardinal

More information

Final Exam Practice Problems Math 428, Spring 2017

Final Exam Practice Problems Math 428, Spring 2017 Final xam Practice Problems Math 428, Spring 2017 Name: Directions: Throughout, (X,M,µ) is a measure space, unless stated otherwise. Since this is not to be turned in, I highly recommend that you work

More information

NOTES ON AUTOMATA. Date: April 29,

NOTES ON AUTOMATA. Date: April 29, NOTES ON AUTOMATA 1. Monoids acting on sets We say that a monoid S with identity element ɛ acts on a set Q if q(st) = (qs)t and qɛ = q. As with groups, if we set s = t whenever qs = qt for all q Q, then

More information

Sequences. Chapter 3. n + 1 3n + 2 sin n n. 3. lim (ln(n + 1) ln n) 1. lim. 2. lim. 4. lim (1 + n)1/n. Answers: 1. 1/3; 2. 0; 3. 0; 4. 1.

Sequences. Chapter 3. n + 1 3n + 2 sin n n. 3. lim (ln(n + 1) ln n) 1. lim. 2. lim. 4. lim (1 + n)1/n. Answers: 1. 1/3; 2. 0; 3. 0; 4. 1. Chapter 3 Sequences Both the main elements of calculus (differentiation and integration) require the notion of a limit. Sequences will play a central role when we work with limits. Definition 3.. A Sequence

More information

7. Homotopy and the Fundamental Group

7. Homotopy and the Fundamental Group 7. Homotopy and the Fundamental Group The group G will be called the fundamental group of the manifold V. J. Henri Poincaré, 895 The properties of a topological space that we have developed so far have

More information

Invertible Matrices over Idempotent Semirings

Invertible Matrices over Idempotent Semirings Chamchuri Journal of Mathematics Volume 1(2009) Number 2, 55 61 http://www.math.sc.chula.ac.th/cjm Invertible Matrices over Idempotent Semirings W. Mora, A. Wasanawichit and Y. Kemprasit Received 28 Sep

More information

Lecture Notes in Real Analysis Anant R. Shastri Department of Mathematics Indian Institute of Technology Bombay

Lecture Notes in Real Analysis Anant R. Shastri Department of Mathematics Indian Institute of Technology Bombay Lecture Notes in Real Analysis 2010 Anant R. Shastri Department of Mathematics Indian Institute of Technology Bombay August 6, 2010 Lectures 1-3 (I-week) Lecture 1 Why real numbers? Example 1 Gaps in the

More information

An introduction to some aspects of functional analysis

An introduction to some aspects of functional analysis An introduction to some aspects of functional analysis Stephen Semmes Rice University Abstract These informal notes deal with some very basic objects in functional analysis, including norms and seminorms

More information

Denotational Semantics

Denotational Semantics 5 Denotational Semantics In the operational approach, we were interested in how a program is executed. This is contrary to the denotational approach, where we are merely interested in the effect of executing

More information

Formal power series rings, inverse limits, and I-adic completions of rings

Formal power series rings, inverse limits, and I-adic completions of rings Formal power series rings, inverse limits, and I-adic completions of rings Formal semigroup rings and formal power series rings We next want to explore the notion of a (formal) power series ring in finitely

More information

A GUIDE FOR MORTALS TO TAME CONGRUENCE THEORY

A GUIDE FOR MORTALS TO TAME CONGRUENCE THEORY A GUIDE FOR MORTALS TO TAME CONGRUENCE THEORY Tame congruence theory is not an easy subject and it takes a considerable amount of effort to understand it. When I started this project, I believed that this

More information

9. Integral Ring Extensions

9. Integral Ring Extensions 80 Andreas Gathmann 9. Integral ing Extensions In this chapter we want to discuss a concept in commutative algebra that has its original motivation in algebra, but turns out to have surprisingly many applications

More information

Quivers of Period 2. Mariya Sardarli Max Wimberley Heyi Zhu. November 26, 2014

Quivers of Period 2. Mariya Sardarli Max Wimberley Heyi Zhu. November 26, 2014 Quivers of Period 2 Mariya Sardarli Max Wimberley Heyi Zhu ovember 26, 2014 Abstract A quiver with vertices labeled from 1,..., n is said to have period 2 if the quiver obtained by mutating at 1 and then

More information

Course 212: Academic Year Section 1: Metric Spaces

Course 212: Academic Year Section 1: Metric Spaces Course 212: Academic Year 1991-2 Section 1: Metric Spaces D. R. Wilkins Contents 1 Metric Spaces 3 1.1 Distance Functions and Metric Spaces............. 3 1.2 Convergence and Continuity in Metric Spaces.........

More information

Discrete Mathematics. Benny George K. September 22, 2011

Discrete Mathematics. Benny George K. September 22, 2011 Discrete Mathematics Benny George K Department of Computer Science and Engineering Indian Institute of Technology Guwahati ben@iitg.ernet.in September 22, 2011 Set Theory Elementary Concepts Let A and

More information

Lecture Notes: Selected Topics in Discrete Structures. Ulf Nilsson

Lecture Notes: Selected Topics in Discrete Structures. Ulf Nilsson Lecture Notes: Selected Topics in Discrete Structures Ulf Nilsson Dept of Computer and Information Science Linköping University 581 83 Linköping, Sweden ulfni@ida.liu.se 2004-03-09 Contents Chapter 1.

More information