Relations a Relation (R) Between Sets a and B Is a Subset of a × B. Often We Write Xry to Mean (X, Y) ∈ R and Say “X Is

Total Page:16

File Type:pdf, Size:1020Kb

Relations a Relation (R) Between Sets a and B Is a Subset of a × B. Often We Write Xry to Mean (X, Y) ∈ R and Say “X Is Relations A relation (R) between sets A and B is a subset of A × B. Often we write xRy to mean (x, y) ∈ R and say “x is related to y”. Example: A = B is the set of all people and xRy means x is the father of y. Example: A = B is the set of all real numbers and xRy means x ≥ y Example: A is the set of students at U. Iowa, B is the set of courses at U. Iowa, and xRy means x is taking course y this semester 1 Relational databases We can generalize the idea of a relation to being a subset of a Cartesian product: R ⊆ A × B × C × · · · × G × H A relational database explicitly records each sequence (a, b, c, . , g, h) contained in R: A B C ··· G H a1 b1 c1 ... g1 h1 a2 b2 c2 ... g2 h2 a3 b3 c3 ... g3 h3 . There may be several relations in a complete database, but each relation is represented like this. Example: A database of students at the U. Iowa should enable us to find a student by their name &/or address, and find out what courses they are taking. 2 Relation #1: ID First Name(s) Last Name Address1 Address2 State Zip 37752198 John Albert Smith 11 Albrecht Iowa City IA 57340 11209432 Jane E. Jones 1050 Williams Waterloo IA 50103 70842165 Mohommad Hussein 715 George Lne Mosstown IL 49712 Relation #2: ID Course ID 37752198 22M:712 11209432 22C:077 37752198 22C:100 70842165 22C:315 70842165 22M:111 11209432 22C:055 Types of relations Relations R between A and A can have special structural properties: Reflexive xRx Symmetric xRy ⇒ yRx Transitive xRy ∧ yRz ⇒ xRz for all x, y and z. Here are some “negative” properties: Irreflexive xRx Antisymmetric xRy ∧ x 6= y ⇒ yRx for all x and y. 3 Examples of relations Let’s fill out this table ... Relation Refl? Symm? Trans? Irrefl? Antisymm? parent sister sibling > ≥ ancestor = 4 Partial Order Relations Consider a project which involves many tasks: task1 −→ task2 means that task1 must be completed before task2 is started: build internal finish walls paint walls & walls ceilings lay install roof tiles get foundation lay roof frame clean up bricks install approvals install bathroom & kitchen plumbing dig sewerage fittings access lines lay water & install sewerage lines electricity supply connect water & sewerage 5 The relation R where sRt means task s must be completed before task t is begun is irreflexive, antisymmetric, and transitive. Note: Partial order relations should be reflexive, antisymmetric and transitive. Equivalence relations The “=” relation is reflexive, symmetric, and transitive. A relation R on a set A that is reflexive, symmetric and transitive is an equivalence relation. Example: If A is a set of colored balls, then the relation xRy iff x and y have the same color is an equivalence relation. If R is an equivalence relation on A, then the equivalence class [a]R of an element a ∈ A is [a]R = { x ∈ A | xRa } Any b ∈ [a]R is a representative of the equivalence class. 6 Theorem: The set of equivalence classes S = { [a]R | a ∈ A } is a partition of A. Proof: We just have to show that for any a, b ∈ A, either [a]R ∩ [b]R = ∅ or [a]R = [b]R. S Note that a ∈ [a]R since R is reflexive. So S = A. Suppose [a]R ∩ [b]R 6= ∅. Then pick c ∈ [a]R ∩ [b]R. By definition of the equivalence classes, aRc and bRc. By symmetry, cRb. By transitivity, aRb and b ∈ [a]R. If x ∈ [b]R then bRx; but aRb so by transitivity aRx and x ∈ [a]R. So [b]R ⊆ [a]R. We can argue in the same way that [a]R ⊆ [b]R and so [a]R = [b]R as we wanted. 7 Rational numbers Rational numbers can be represented as fractions a/b with b 6= 0. But this representation is not unique: 1 2 3 37 = = = etc. 2 4 6 74 We can think of rational numbers as equivalence classes of pairs of integers (a, b) with b 6= 0 where a c (a, b)R(c, d) iff = b d i.e. (a, b)R(c, d) iff ad = bc 8 Divisibility and modular arithmetic Amongst natural numbers the “divides” relation is very useful: a | b means there is a natural number k where b = k a Examples: 2 | 6 and 3 | 6, but 2 6 | 7 Fact: ”|” is reflexive and transitive, but antisymmetric. • reflexive: a | a because a = 1 a • transitive: if a | b and b | c then there are k and l where b = ka and c = lb = l(ka) = (lk)a so a | c • antisymmetric: if a | b and b | a then b = ka and a = lb, so a = (kl)a and as a 6= 0, kl = 1. Thus k = l = 1 and b = a. 9 More on divisibility Division algorithm: For any two whole numbers a and b > 0, there are whole numbers q and 0 ≤ r < b where a r = q + , or equivalently b b a = qb + r. q is called the quotient, and r the remainder. These are unique! Can compute q and r using long division ... Note: b | a ≡ r = 0 10 Modular arithmetic a ≡ b (mod n) (“a and b are equivalent modulo n”) means n | (b − a). Examples: 2 ≡ 7 (mod 5); −3 ≡ 7 (mod 10); 15 ≡ 0 (mod 5); 34 ≡ −1 (mod 7) Exercise: Check that ≡ (mod n) is a reflexive, symmetric, and transitive relation. Fact: If a ≡ b (mod n) and c ≡ d (mod n) then a + c ≡ b + d (mod n) and a · c ≡ b · d (mod n). Examples: Since 2 ≡ 7 and −3 ≡ 7 (mod 5), 2 − 3 ≡ 7 + 7 (mod 5) and (2 × −3) ≡ (7 × 7) (mod 5). 11 Casting out nines This is an old trick to check some long calculations: 3732 6 315 0 7123 4 1138 4 5012 8 +6613 7 23933 2 The column on the right is the sum of the digits of the column on the left, repeated until the result has no more than one digit. Nines are replaced by zeros. Summing the column on the right, we get the digit-sum of the correct answer. Why does it work? 12 The greatest common divisor The greatest common divisor (gcd) of two numbers a and b (gcd(a, b)) is the largest whole number that divides both a and b. Examples: gcd(12, 14) = 2; gcd(24, 9) = 3; gcd(90, 24) = 6 (Note: 2 and 3 both divide both 90 and 24, but 6 is the greatest common divisor.) 13 Functions A function f takes an input x from a set A (its domain) and from it computes a value f(x) in a set B (its range): 17 x f f(x) f(17) In CS: functions represent computation. In Math: functions are special kinds of relations. R = { (x, f(x)) | x ∈ A } R can be thought of as a giant look-up table: 14 x f(x) x1 f(x1) x2 f(x2) x3 f(x3) . For this to work, each x ∈ A should appear exactly once in the left-hand column. (If it’s not there, there is no output; if it appears more than once, how can we choose which output?) In formal logic: ∀x(∃y(xRy) ∧ ∀y1∀y2(xRy1 ∧ xRy2 ⇒ y1 = y2)) The relation R can be thought of as the graph of f. Composition of functions If f : A → B and g : B → C then the composition of f and g is g ◦ f : A → C given by (g ◦ f)(x) = g(f(x)) x f f(x) g g(f(x)) = g f(x) Example: If f(x) = log(x) and g(x) = x2 + 1 then g ◦ f(x) = g(log(x)) = (log(x))2 + 1 and f ◦ g(x) = f(x2 + 1) = log(x2 + 1) 15 One-to-one and onto functions A function f : A → B is one-to-one if f(a1) = f(a2) ⇒ a1 = a2 1.5 1 0.5 Example: f : R → R given by 0 f(x) = arctan(x) is one-to-one. −0.5 −1 −1.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2 A function f : A → B is onto if for every b ∈ B there is an a ∈ A where b = f(a). 2 1.5 1 0.5 Example: f : R → R given by 0 f(x) = x3 − x is onto. −0.5 −1 −1.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5 16 A function f : A → B is a bijection if it is one-to-one and onto. 4 3 2 1 Example: f : R → R given by 0 f(x) = x3 is a bijection. −1 −2 −3 −4 −1.5 −1 −0.5 0 0.5 1 1.5 The identity function id : A → A is the function id(x) = x for all x ∈ A. Bijections have inverse functions: f : A → B has an inverse function g = f −1 : B → A where for all x ∈ A and y ∈ B, f(x) = y ⇔ x = g(y) Equivalently, g ◦ f = id, and f ◦ g = id. Example: f(x) = x3: The inverse function is g(y) = y1/3. Some special functions ... Some functions you might not have come across yet ... ceiling dxe smallest integer ≥ x floor bxc largest integer ≤ x mod/rem a mod b remainder when a is divided by b Properties: If a, b, and k are integers, and x a real number • dx + ke = dxe + k and bx + kc = bxc + k • k = bk/2c + dk/2e • (a + kb) mod b = a mod b • 0 ≤ (a mod b) < |b| provided b 6= 0 17.
Recommended publications
  • Chapter 1 Logic and Set Theory
    Chapter 1 Logic and Set Theory To criticize mathematics for its abstraction is to miss the point entirely. Abstraction is what makes mathematics work. If you concentrate too closely on too limited an application of a mathematical idea, you rob the mathematician of his most important tools: analogy, generality, and simplicity. – Ian Stewart Does God play dice? The mathematics of chaos In mathematics, a proof is a demonstration that, assuming certain axioms, some statement is necessarily true. That is, a proof is a logical argument, not an empir- ical one. One must demonstrate that a proposition is true in all cases before it is considered a theorem of mathematics. An unproven proposition for which there is some sort of empirical evidence is known as a conjecture. Mathematical logic is the framework upon which rigorous proofs are built. It is the study of the principles and criteria of valid inference and demonstrations. Logicians have analyzed set theory in great details, formulating a collection of axioms that affords a broad enough and strong enough foundation to mathematical reasoning. The standard form of axiomatic set theory is denoted ZFC and it consists of the Zermelo-Fraenkel (ZF) axioms combined with the axiom of choice (C). Each of the axioms included in this theory expresses a property of sets that is widely accepted by mathematicians. It is unfortunately true that careless use of set theory can lead to contradictions. Avoiding such contradictions was one of the original motivations for the axiomatization of set theory. 1 2 CHAPTER 1. LOGIC AND SET THEORY A rigorous analysis of set theory belongs to the foundations of mathematics and mathematical logic.
    [Show full text]
  • Mereology Then and Now
    Logic and Logical Philosophy Volume 24 (2015), 409–427 DOI: 10.12775/LLP.2015.024 Rafał Gruszczyński Achille C. Varzi MEREOLOGY THEN AND NOW Abstract. This paper offers a critical reconstruction of the motivations that led to the development of mereology as we know it today, along with a brief description of some questions that define current research in the field. Keywords: mereology; parthood; formal ontology; foundations of mathe- matics 1. Introduction Understood as a general theory of parts and wholes, mereology has a long history that can be traced back to the early days of philosophy. As a formal theory of the part-whole relation or rather, as a theory of the relations of part to whole and of part to part within a whole it is relatively recent and came to us mainly through the writings of Edmund Husserl and Stanisław Leśniewski. The former were part of a larger project aimed at the development of a general framework for formal ontology; the latter were inspired by a desire to provide a nominalistically acceptable alternative to set theory as a foundation for mathematics. (The name itself, ‘mereology’ after the Greek word ‘µρoς’, ‘part’ was coined by Leśniewski [31].) As it turns out, both sorts of motivation failed to quite live up to expectations. Yet mereology survived as a theory in its own right and continued to flourish, often in unexpected ways. Indeed, it is not an exaggeration to say that today mereology is a central and powerful area of research in philosophy and philosophical logic. It may be helpful, therefore, to take stock and reconsider its origins.
    [Show full text]
  • 06. Naive Set Theory I
    Topics 06. Naive Set Theory I. Sets and Paradoxes of the Infinitely Big II. Naive Set Theory I. Sets and Paradoxes of the Infinitely Big III. Cantor and Diagonal Arguments Recall: Paradox of the Even Numbers Claim: There are just as many even natural numbers as natural numbers natural numbers = non-negative whole numbers (0, 1, 2, ..) Proof: { 0 , 1 , 2 , 3 , 4 , ............ , n , ..........} { 0 , 2 , 4 , 6 , 8 , ............ , 2n , ..........} In general: 2 criteria for comparing sizes of sets: (1) Correlation criterion: Can members of one set be paired with members of the other? (2) Subset criterion: Do members of one set belong to the other? Can now say: (a) There are as many even naturals as naturals in the correlation sense. (b) There are less even naturals than naturals in the subset sense. To talk about the infinitely Moral: notion of sets big, just need to be clear makes this clear about what’s meant by size Bolzano (1781-1848) Promoted idea that notion of infinity was fundamentally set-theoretic: To say something is infinite is “God is infinite in knowledge” just to say there is some set means with infinite members “The set of truths known by God has infinitely many members” SO: Are there infinite sets? “a many thought of as a one” -Cantor Bolzano: Claim: The set of truths is infinite. Proof: Let p1 be a truth (ex: “Plato was Greek”) Let p2 be the truth “p1 is a truth”. Let p3 be the truth “p3 is a truth”. In general, let pn be the truth “pn-1 is a truth”, for any natural number n.
    [Show full text]
  • Math 127: Equivalence Relations
    Math 127: Equivalence Relations Mary Radcliffe 1 Equivalence Relations Relations can take many forms in mathematics. In these notes, we focus especially on equivalence relations, but there are many other types of relations (such as order relations) that exist. Definition 1. Let X; Y be sets. A relation R = R(x; y) is a logical formula for which x takes the range of X and y takes the range of Y , sometimes called a relation from X to Y . If R(x; y) is true, we say that x is related to y by R, and we write xRy to indicate that x is related to y by R. Example 1. Let f : X ! Y be a function. We can define a relation R by R(x; y) ≡ (f(x) = y). Example 2. Let X = Y = Z. We can define a relation R by R(a; b) ≡ ajb. There are many other examples at hand, such as ordering on R, multiples in Z, coprimality relationships, etc. The definition we have here is simply that a relation gives some way to connect two elements to each other, that can either be true or false. Of course, that's not a very useful thing, so let's add some conditions to make the relation carry more meaning. For this, we shall focus on relations from X to X, also called relations on X. There are several properties that will be interesting in considering relations: Definition 2. Let X be a set, and let ∼ be a relation on X. • We say that ∼ is reflexive if x ∼ x 8x 2 X.
    [Show full text]
  • Well-Orderings, Ordinals and Well-Founded Relations. an Ancient
    Well-orderings, ordinals and well-founded relations. An ancient principle of arithmetic, that if there is a non-negative integer with some property then there is a least such, is useful in two ways: as a source of proofs, which are then said to be \by induction" and as as a source of definitions, then said to be \by recursion." An early use of induction is in Euclid's proof that every integer > 2 is a product of primes, (where we take \prime" to mean \having no divisors other than itself and 1"): if some number is not, then let n¯ be the least counter-example. If not itself prime, it can be written as a product m1m2 of two strictly smaller numbers each > 2; but then each of those is a product of primes, by the minimality of n¯; putting those two products together expresses n¯ as a product of primes. Contradiction ! An example of definition by recursion: we set 0! = 1; (n + 1)! = n! × (n + 1): A function defined for all non-negative integers is thereby uniquely specified; in detail, we consider an attempt to be a function, defined on a finite initial segment of the non-negative integers, which agrees with the given definition as far as it goes; if some integer is not in the domain of any attempt, there will be a least such; it cannot be 0; if it is n + 1, the recursion equation tells us how to extend an attempt defined at n to one defined at n + 1. So no such failure exists; we check that if f and g are two attempts and both f(n) and g(n) are defined, then f(n) = g(n), by considering the least n where that might fail, and again reaching a contradiction; and so, there being no disagreement between any two attempts, the union of all attempts will be a well-defined function, which is familiar to us as the factorial function.
    [Show full text]
  • Relation Liftings on Preorders and Posets
    Relation Liftings on Preorders and Posets Marta B´ılkov´a1, Alexander Kurz2,, Daniela Petri¸san2,andJiˇr´ı Velebil3, 1 Faculty of Philosophy, Charles University, Prague, Czech Republic [email protected] 2 Department of Computer Science, University of Leicester, United Kingdom {kurz,petrisan}@mcs.le.ac.uk 3 Faculty of Electrical Engineering, Czech Technical University in Prague, Czech Republic [email protected] Abstract. The category Rel(Set) of sets and relations can be described as a category of spans and as the Kleisli category for the powerset monad. A set-functor can be lifted to a functor on Rel(Set) iff it preserves weak pullbacks. We show that these results extend to the enriched setting, if we replace sets by posets or preorders. Preservation of weak pullbacks becomes preservation of exact lax squares. As an application we present Moss’s coalgebraic over posets. 1 Introduction Relation lifting [Ba, CKW, HeJ] plays a crucial role in coalgebraic logic, see eg [Mo, Bal, V]. On the one hand, it is used to explain bisimulation: If T : Set −→ Set is a functor, then the largest bisimulation on a coalgebra ξ : X −→ TX is the largest fixed point of the operator (ξ × ξ)−1 ◦ T on relations on X,whereT is the lifting of T to Rel(Set) −→ Rel(Set). (The precise meaning of ‘lifting’ will be given in the Extension Theorem 5.3.) On the other hand, Moss’s coalgebraic logic [Mo] is given by adding to propo- sitional logic a modal operator ∇, the semantics of which is given by applying T to the forcing relation ⊆ X ×L,whereL is the set of formulas: If α ∈ T (L), then x ∇α ⇔ ξ(x) T () α.
    [Show full text]
  • Equivalence Relations ¡ Definition: a Relation on a Set Is Called an Equivalence Relation If It Is Reflexive, Symmetric, and Transitive
    Equivalence Relations ¡ Definition: A relation on a set is called an equivalence relation if it is reflexive, symmetric, and transitive. Recall the definitions: ¢ ¡ ¤ ¤ ¨ ¦ reflexive: £¥¤ §©¨ for all . ¢ ¡ ¤ ¤ ¨ ¨ ¦ ¦ ¦ £ § symmetric: £¥¤ §©¨ when , for . ¢ ¤ ¤ ¨ ¨ ¦ ¦ ¦ £ § transitive: £ §©¨ and £ § implies , ¡ ¤ ¨ for ¦ ¦ . If two elements are related by an equivalence relation, they are said to be equivalent. 1 Examples 1. Let be the relation on the set of English words such that if and only if starts with the same letter as . Then is an equivalence relation. 2. Let be the relation on the set of all human beings such that if and only if was born in the same country as . Then is an equivalence relation. 3. Let be the relation on the set of all human beings such that if and only if owns the same color car as . Then is an not equivalence relation. 2 ¤ Pr is Let ¢ ¢ an oof: is If Since Thus, equi ¤ symmetric. is By refle v ¤ alence definition, be , Congruence for xi ¤ a ¤ v positi e. some relation. £ , ¤ v then e inte £ ¤ § inte ¦ ¤ ger , § , and ger we ¤ 3 . we ha Then Modulo Using v e ha if that v the and , e this,we for ¤ relation only some ¤ ¤ proceed: if inte ger , , so and . Therefore, ¢ ¤ and If ¤ ¤ we congruence ha v e £ ¤ ¤ and , and §"! modulo £ 4 , § and , for is an inte ! is equi , then gers transiti v alence we and v £ ha e. ! v relation e . Thus, § ¦ ¡ Definition: Let be an equivalence relation on a set . The equivalence class of¤ is ¤ ¤ ¨ % ¦ £ § # $ '& ¤ % In words, # $ is the set of all elements that are related to the ¡ ¤ element ¨ .
    [Show full text]
  • On the Necessary Use of Abstract Set Theory
    ADVANCES IN MATHEMATICS 41, 209-280 (1981) On the Necessary Use of Abstract Set Theory HARVEY FRIEDMAN* Department of Mathematics, Ohio State University, Columbus, Ohio 43210 In this paper we present some independence results from the Zermelo-Frankel axioms of set theory with the axiom of choice (ZFC) which differ from earlier such independence results in three major respects. Firstly, these new propositions that are shown to be independent of ZFC (i.e., neither provable nor refutable from ZFC) form mathematically natural assertions about Bore1 functions of several variables from the Hilbert cube I” into the unit interval, or back into the Hilbert cube. As such, they are of a level of abstraction significantly below that of the earlier independence results. Secondly, these propositions are not only independent of ZFC, but also of ZFC together with the axiom of constructibility (V = L). The only earlier examples of intelligible statements independent of ZFC + V= L either express properties of formal systems such as ZFC (e.g., the consistency of ZFC), or assert the existence of very large cardinalities (e.g., inaccessible cardinals). The great bulk of independence results from ZFCLthe ones that involve standard mathematical concepts and constructions-are about sets of limited cardinality (most commonly, that of at most the continuum), and are obtained using the forcing method introduced by Paul J. Cohen (see [2]). It is now known in virtually every such case, that these independence results are eliminated if V= L is added to ZFC. Finally, some of our propositions can be proved in the theory of classes, as formalized by the Morse-Kelley class theory with the axiom of choice for sets (MKC), but not in ZFC.
    [Show full text]
  • Chapter 8 Ordered Sets
    Chapter VIII Ordered Sets, Ordinals and Transfinite Methods 1. Introduction In this chapter, we will look at certain kinds of ordered sets. If a set \ is ordered in a reasonable way, then there is a natural way to define an “order topology” on \. Most interesting (for our purposes) will be ordered sets that satisfy a very strong ordering condition: that every nonempty subset contains a smallest element. Such sets are called well-ordered. The most familiar example of a well-ordered set is and it is the well-ordering property that lets us do mathematical induction in In this chapter we will see “longer” well ordered sets and these will give us a new proof method called “transfinite induction.” But we begin with something simpler. 2. Partially Ordered Sets Recall that a relation V\ on a set is a subset of \‚\ (see Definition I.5.2 ). If ÐBßCÑ−V, we write BVCÞ An “order” on a set \ is refers to a relation on \ that satisfies some additional conditions. Order relations are usually denoted by symbols such asŸ¡ß£ , , or . Definition 2.1 A relation V\ on is called: transitive ifÀ a +ß ,ß - − \ Ð+V, and ,V-Ñ Ê +V-Þ reflexive ifÀa+−\+V+ antisymmetric ifÀ a +ß , − \ Ð+V, and ,V+ Ñ Ê Ð+ œ ,Ñ symmetric ifÀ a +ß , − \ +V, Í ,V+ (that is, the set V is “symmetric” with respect to thediagonal ? œÖÐBßBÑÀB−\ש\‚\). Example 2.2 1) The relation “œ\ ” on a set is transitive, reflexive, symmetric, and antisymmetric. Viewed as a subset of \‚\, the relation “ œ ” is the diagonal set ? œÖÐBßBÑÀB−\×Þ 2) In ‘, the usual order relation is transitive and antisymmetric, but not reflexive or symmetric.
    [Show full text]
  • Partial Order Relations
    Partial Order Relations We defined three properties of relations: reflexivity, symmetry and transitivity. A fourth property of relations is anti-symmetry. Definition of Antisymmetry:: Let R be a relation on a set A, R is antisymmetric if , and only if, for all a and b in A, if a R b and b R a then a=b. Testing for Antisymmetry of finite Relations: Let R1 and R2 be the relations on {0, 1, 2} defined as follows: a- R1= { (0,2 ), (1, 2), (2, 0)} b- R2 = { (0,0), (0, 1), (0, 2), (1, 1), (1, 2)} Draw a directed graph for R1 and R2 and indicate which relation is antisymmetric? a- R1 is not antisymmetric b- R2 is antisymmetric Testing for Antisymmetry of “Divides” relations. Let R1 be the “divides” relation on the set of all positive integers, and let R2 be the “divides” relation on the set of all integers. + For all a, b ∈ Z , a R1 b ⇔ a | b For all a, b ∈ Z, a R2 b ⇔ a | b a- Is R1 antisymmetric ? Prove or give a counterexample b- Is R2 antisymmetric ? Prove or give a counter example. Solution: -R1 is antisymmetric -R2 is not antisymmetric Partial Order Relations: Let R be a binary relation defined on a set A. R is a partial order relation if, and only if, R is reflexive, antisymmetric and transitive. Two fundamental partial order relations are the “less than or equal to” relation on a set of real numbers and the “subset” relation on a set of sets. The “Subset” Relation: Let A be any collection of sets and define the subset relation ⊆ on A as follows: For all U, V ∈ A U ⊆ V ⇔ for all x, if x ∈ U then x ∈ V.
    [Show full text]
  • Set Theory, Relations, and Functions (II)
    LING 106. Knowledge of Meaning Lecture 2-2 Yimei Xiang Feb 1, 2017 Set theory, relations, and functions (II) Review: set theory – Principle of Extensionality – Special sets: singleton set, empty set – Ways to define a set: list notation, predicate notation, recursive rules – Relations of sets: identity, subset, powerset – Operations on sets: union, intersection, difference, complement – Venn diagram – Applications in natural language semantics: (i) categories denoting sets of individuals: common nouns, predicative ADJ, VPs, IV; (ii) quantificational determiners denote relations of sets 1 Relations 1.1 Ordered pairs and Cartesian products • The elements of a set are not ordered. To describe functions and relations we will need the notion of an ordered pair, written as xa; by, where a is the first element of the pair and b is the second. Compare: If a ‰ b, then ... ta; bu “ tb; au, but xa; by ‰ xb; ay ta; au “ ta; a; au, but xa; ay ‰ xa; a; ay • The Cartesian product of two sets A and B (written as A ˆ B) is the set of ordered pairs which take an element of A as the first member and an element of B as the second member. (1) A ˆ B “ txx; yy | x P A and y P Bu E.g. Let A “ t1; 2u, B “ ta; bu, then A ˆ B “ tx1; ay; x1; by; x2; ay; x2; byu, B ˆ A “ txa; 1y; xa; 2y; xb; 1y; xb; 2yu 1.2 Relations, domain, and range •A relation is a set of ordered pairs. For example: – Relations in math: =, ¡, ‰, ... – Relations in natural languages: the instructor of, the capital city of, ..
    [Show full text]
  • Lecture 2: Well-Orderings January 21, 2009
    Lecture 2: Well-orderings January 21, 2009 3 Well-orderings Definition 3.1. A binary relation r on a set A is a subset of A × A. We also define dom(r) = { x | ∃y.(x, y) ∈ r }, rng(r) = { y | ∃x.(x, y) ∈ r }, and fld(r) = dom(r) ∪ rng(r). Definition 3.2. A binary relation r is a strict partial order iff • ∀x.(x, x) 6∈ r, and • ∀xyz. if (x, y) ∈ r and (y, z) ∈ r then (x, z) ∈ r, that is, if r is irreflexive and transitive. Moreover, iff for all x and y in fld(r), either (x, y) ∈ r or (y, x) ∈ r or x = y, we say r is a strict linear order. Definition 3.3. A strict linear order r is a well-ordering iff every non-empty z ⊆ fld(r) has an r-least member. Remark. For example, the natural numbers N are well-ordered under the normal < relation. However, Z, Q, and Q+ are not. However, we want to be able to talk about well-orderings longer than ω. For example, 0, 2, 4,..., 1, 3, 5,... is an alternative well-ordering of the natural numbers which is longer than ω. Definition 3.4. f : X → X is order-preserving iff for all y, z ∈ X, y < z implies that f(y) < f(z). Theorem 3.5. If hX, <i is a well-ordering and f is order-preserving, then for every y ∈ X, y ≤ f(y). Proof. Suppose otherwise, namely, that there exists some z ∈ X for which f(z) < z.
    [Show full text]