Consider the “Function” F(X) = 1 X − 4 . in Fact, This Is Not a Function Until I Have Told You It's Domain and Codomain

Total Page:16

File Type:pdf, Size:1020Kb

Consider the “Function” F(X) = 1 X − 4 . in Fact, This Is Not a Function Until I Have Told You It's Domain and Codomain Consider the “function” 1 f(x) = . x − 4 In fact, this is not a function until I have told you it’s domain and codomain. More accurately we have to talk about the function 1 f : R \{4} → R, f(x) = . x − 4 It’s important to get in the habit of specifying the domain and codomain. In fact the definition of function f : A → B specifies it as a subset of the cartesian produce A × B. From this point of view, our function is the set {(x, 1/(x − 4) : x ∈ R \{4}} ⊂ R \{4} × R 1 Note: my definition of function is different from that of the book. Book does not require that the function be defined everywhere in A. Range The range of a function f : A → B is the subset of B consisting of values of the function. A function is surjective (or onto) if the range equals the codomain. The function f : R \{4} → R given by f(x) = 1/(x − 4) is not surjective because it misses the value 0. That is, the equation g(x) = 0 has no solution in R \{4}. 2 However, if we define a new function g : R \{4} → R \{0}, using the same formula g(x) = 1/(x−4), then g is a surjective function. Note that although the formula is the same, this is a different function from f because we have changed the codomain. To prove g is surjective, we must show that if y ∈ R \{0}, then the equation g(x) = y has a solution x ∈ R\{4}. This is a matter of solving the equation 1 = y x − 4 for x, to get 1 x = + 4. y 3 The fact that you can solve the equation is what makes f surjec- tive. A proof of surjectivity does not need to contain the solving procedure, however, merely the solution itself: Proof that g is surjective: Let y ∈ R, y 6= 0. then since y 6= 0, then I can define 1 x = + 4 y Then g(x) = 1/(x − 4) does indeed equal y. 4 Here is the formal definition of surjectivity. Definition A function f : A → B is surjective (also called onto) if for all y ∈ B, there exists an x ∈ A such that f(x) = y. Another important notion is the notion of an injective or one- to-one function. Definition A function f : A → B is injective if, for all x1 and x2 in A, if x1 6= x2, then f(x1) 6= f(x2). 2 Example: g(x) = x is not injective. For example, x1 = −1 and 2 2 x2 = 1. Then x1 6= x2, but g(x1) = (−1) = 1 = 1 = g(x2). However, the function f : R \{4} → R, f(x) = 1/(x − 4) is injective. 5 How do we prove a function is injective? This is a case where it is easier to use the contrapositive. Rather than showing x1 6= x2 ⇒ f(x1) 6= f(x2) we show f(x1) = f(x2) ⇒ x1 = x2. Proof that f is injective: Suppose that 1 1 = . x1 − 4 x2 − 4 Multiply both sides by (x1 − 4)(x2 − 4), to get x2 − 4 = x1 − 4 add 4 to both sides to get x2 = x1. 6.
Recommended publications
  • A Proof of Cantor's Theorem
    Cantor’s Theorem Joe Roussos 1 Preliminary ideas Two sets have the same number of elements (are equinumerous, or have the same cardinality) iff there is a bijection between the two sets. Mappings: A mapping, or function, is a rule that associates elements of one set with elements of another set. We write this f : X ! Y , f is called the function/mapping, the set X is called the domain, and Y is called the codomain. We specify what the rule is by writing f(x) = y or f : x 7! y. e.g. X = f1; 2; 3g;Y = f2; 4; 6g, the map f(x) = 2x associates each element x 2 X with the element in Y that is double it. A bijection is a mapping that is injective and surjective.1 • Injective (one-to-one): A function is injective if it takes each element of the do- main onto at most one element of the codomain. It never maps more than one element in the domain onto the same element in the codomain. Formally, if f is a function between set X and set Y , then f is injective iff 8a; b 2 X; f(a) = f(b) ! a = b • Surjective (onto): A function is surjective if it maps something onto every element of the codomain. It can map more than one thing onto the same element in the codomain, but it needs to hit everything in the codomain. Formally, if f is a function between set X and set Y , then f is surjective iff 8y 2 Y; 9x 2 X; f(x) = y Figure 1: Injective map.
    [Show full text]
  • Linear Transformation (Sections 1.8, 1.9) General View: Given an Input, the Transformation Produces an Output
    Linear Transformation (Sections 1.8, 1.9) General view: Given an input, the transformation produces an output. In this sense, a function is also a transformation. 1 4 3 1 3 Example. Let A = and x = 1 . Describe matrix-vector multiplication Ax 2 0 5 1 1 1 in the language of transformation. 1 4 3 1 31 5 Ax b 2 0 5 11 8 1 Vector x is transformed into vector b by left matrix multiplication Definition and terminologies. Transformation (or function or mapping) T from Rn to Rm is a rule that assigns to each vector x in Rn a vector T(x) in Rm. • Notation: T: Rn → Rm • Rn is the domain of T • Rm is the codomain of T • T(x) is the image of vector x • The set of all images T(x) is the range of T • When T(x) = Ax, A is a m×n size matrix. Range of T = Span{ column vectors of A} (HW1.8.7) See class notes for other examples. Linear Transformation --- Existence and Uniqueness Questions (Section 1.9) Definition 1: T: Rn → Rm is onto if each b in Rm is the image of at least one x in Rn. • i.e. codomain Rm = range of T • When solve T(x) = b for x (or Ax=b, A is the standard matrix), there exists at least one solution (Existence question). Definition 2: T: Rn → Rm is one-to-one if each b in Rm is the image of at most one x in Rn. • i.e. When solve T(x) = b for x (or Ax=b, A is the standard matrix), there exists either a unique solution or none at all (Uniqueness question).
    [Show full text]
  • I0 and Rank-Into-Rank Axioms
    I0 and rank-into-rank axioms Vincenzo Dimonte∗ July 11, 2017 Abstract Just a survey on I0. Keywords: Large cardinals; Axiom I0; rank-into-rank axioms; elemen- tary embeddings; relative constructibility; embedding lifting; singular car- dinals combinatorics. 2010 Mathematics Subject Classifications: 03E55 (03E05 03E35 03E45) 1 Informal Introduction to the Introduction Ok, that’s it. People who know me also know that it is years that I am ranting about a book about I0, how it is important to write it and publish it, etc. I realized that this particular moment is still right for me to write it, for two reasons: time is scarce, and probably there are still not enough results (or anyway not enough different lines of research). This has the potential of being a very nasty vicious circle: there are not enough results about I0 to write a book, but if nobody writes a book the diffusion of I0 is too limited, and so the number of results does not increase much. To avoid this deadlock, I decided to divulge a first draft of such a hypothetical book, hoping to start a “conversation” with that. It is literally a first draft, so it is full of errors and in a liquid state. For example, I still haven’t decided whether to call it I0 or I0, both notations are used in literature. I feel like it still lacks a vision of the future, a map on where the research could and should going about I0. Many proofs are old but never published, and therefore reconstructed by me, so maybe they are wrong.
    [Show full text]
  • Functions and Inverses
    Functions and Inverses CS 2800: Discrete Structures, Spring 2015 Sid Chaudhuri Recap: Relations and Functions ● A relation between sets A !the domain) and B !the codomain" is a set of ordered pairs (a, b) such that a ∈ A, b ∈ B !i.e. it is a subset o# A × B" Cartesian product – The relation maps each a to the corresponding b ● Neither all possible a%s, nor all possible b%s, need be covered – Can be one-one, one&'an(, man(&one, man(&man( Alice CS 2800 Bob A Carol CS 2110 B David CS 3110 Recap: Relations and Functions ● ) function is a relation that maps each element of A to a single element of B – Can be one-one or man(&one – )ll elements o# A must be covered, though not necessaril( all elements o# B – Subset o# B covered b( the #unction is its range/image Alice Balch Bob A Carol Jameson B David Mews Recap: Relations and Functions ● Instead of writing the #unction f as a set of pairs, e usually speci#y its domain and codomain as: f : A → B * and the mapping via a rule such as: f (Heads) = 0.5, f (Tails) = 0.5 or f : x ↦ x2 +he function f maps x to x2 Recap: Relations and Functions ● Instead of writing the #unction f as a set of pairs, e usually speci#y its domain and codomain as: f : A → B * and the mapping via a rule such as: f (Heads) = 0.5, f (Tails) = 0.5 2 or f : x ↦ x f(x) ● Note: the function is f, not f(x), – f(x) is the value assigned b( f the #unction f to input x x Recap: Injectivity ● ) function is injective (one-to-one) if every element in the domain has a unique i'age in the codomain – +hat is, f(x) = f(y) implies x = y Albany NY New York A MA Sacramento B CA Boston ..
    [Show full text]
  • Elementary Functions Part 1, Functions Lecture 1.6D, Function Inverses: One-To-One and Onto Functions
    Elementary Functions Part 1, Functions Lecture 1.6d, Function Inverses: One-to-one and onto functions Dr. Ken W. Smith Sam Houston State University 2013 Smith (SHSU) Elementary Functions 2013 26 / 33 Function Inverses When does a function f have an inverse? It turns out that there are two critical properties necessary for a function f to be invertible. The function needs to be \one-to-one" and \onto". Smith (SHSU) Elementary Functions 2013 27 / 33 Function Inverses When does a function f have an inverse? It turns out that there are two critical properties necessary for a function f to be invertible. The function needs to be \one-to-one" and \onto". Smith (SHSU) Elementary Functions 2013 27 / 33 Function Inverses When does a function f have an inverse? It turns out that there are two critical properties necessary for a function f to be invertible. The function needs to be \one-to-one" and \onto". Smith (SHSU) Elementary Functions 2013 27 / 33 Function Inverses When does a function f have an inverse? It turns out that there are two critical properties necessary for a function f to be invertible. The function needs to be \one-to-one" and \onto". Smith (SHSU) Elementary Functions 2013 27 / 33 One-to-one functions* A function like f(x) = x2 maps two different inputs, x = −5 and x = 5, to the same output, y = 25. But with a one-to-one function no pair of inputs give the same output. Here is a function we saw earlier. This function is not one-to-one since both the inputs x = 2 and x = 3 give the output y = C: Smith (SHSU) Elementary Functions 2013 28 / 33 One-to-one functions* A function like f(x) = x2 maps two different inputs, x = −5 and x = 5, to the same output, y = 25.
    [Show full text]
  • Monomorphism - Wikipedia, the Free Encyclopedia
    Monomorphism - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Monomorphism Monomorphism From Wikipedia, the free encyclopedia In the context of abstract algebra or universal algebra, a monomorphism is an injective homomorphism. A monomorphism from X to Y is often denoted with the notation . In the more general setting of category theory, a monomorphism (also called a monic morphism or a mono) is a left-cancellative morphism, that is, an arrow f : X → Y such that, for all morphisms g1, g2 : Z → X, Monomorphisms are a categorical generalization of injective functions (also called "one-to-one functions"); in some categories the notions coincide, but monomorphisms are more general, as in the examples below. The categorical dual of a monomorphism is an epimorphism, i.e. a monomorphism in a category C is an epimorphism in the dual category Cop. Every section is a monomorphism, and every retraction is an epimorphism. Contents 1 Relation to invertibility 2 Examples 3 Properties 4 Related concepts 5 Terminology 6 See also 7 References Relation to invertibility Left invertible morphisms are necessarily monic: if l is a left inverse for f (meaning l is a morphism and ), then f is monic, as A left invertible morphism is called a split mono. However, a monomorphism need not be left-invertible. For example, in the category Group of all groups and group morphisms among them, if H is a subgroup of G then the inclusion f : H → G is always a monomorphism; but f has a left inverse in the category if and only if H has a normal complement in G.
    [Show full text]
  • Solutions to Homework Set 5
    MAT320/640, Fall 2020 Renato Ghini Bettiol Solutions to Homework Set 5 1. Decide if each of the statements below is true or false. If it is true, give a complete proof; if it is false, give an explicit counter-example. (Recall that a function f : X ! Y is called surjective, or onto, if every point of Y belongs to its image, that is, if f(X) = Y .) (a) There exists a continuous function f : R n f0g ! R. (b) There exists a continuous surjective function f : R n f0g ! R. (c) There exists a continuous function f : [0; 1] ! R. (d) There exists a continuous surjective function f : [0; 1] ! R. (e) The function f : R ! R, f(x) = x2, is uniformly continuous. (f) The function f : [0; 1] ! R, f(x) = x2, uniformly continuous. Solution: (a) TRUE: For example, any constant function f : R n f0g ! R is continuous; e.g., f(x) = 0 for all x 2 R n f0g. (b) TRUE: For example, consider the function f : R n f0g ! R given by ( x; if x < 0; f(x) = x − 1; if x > 0: Since the domain of f is R n f0g, it is continuous on its domain. Moreover, f is clearly surjective (draw its graph). (c) TRUE: For example, any constant function f : [0; 1] ! R is continuous; e.g., f(x) = 0 for all x 2 [0; 1]. (d) FALSE: Suppose, by contradiction, that such a function f : [0; 1] ! R exists. Since [0; 1] is compact and f : [0; 1] ! R is continuous, its image f([0; 1]) is compact.
    [Show full text]
  • Math 101 B-Packet
    Math 101 B-Packet Scott Rome Winter 2012-13 1 Redefining functions This quarter we have defined a function as a rule which assigns exactly one output to each input, and so far we have been happy with this definition. Unfortunately, this way of thinking of a function is insufficient as things become more complicated in mathematics. For a better understanding of a function, we will first need to define it better. Definition 1.1. Let X; Y be any sets. A function f : X ! Y is a rule which assigns every element of X to an element of Y . The sets X and Y are called the domain and codomain of f respectively. x f(x) y Figure 1: This function f : X ! Y maps x 7! f(x). The green circle indicates the range of the function. Notice y is in the codomain, but f does not map to it. Remark 1.2. It is necessary to define the rule, the domain, and the codomain to define a function. Thus far in the class, we have been \sloppy" when working with functions. Remark 1.3. Notice how in the definition, the function is defined by three things: the rule, the domain, and the codomain. That means you can define functions that seem to be the same, but are actually different as we will see. The domain of a function can be thought of as the set of all inputs (that is, everything in the domain will be mapped somewhere by the function). On the other hand, the codomain of a function is the set of all possible outputs, and a function may not necessarily map to every element of the codomain.
    [Show full text]
  • Sets, Functions, and Domains
    Sets, Functions, and Domains Functions are fundamental to denotational semantics. This chapter introduces functions through set theory, which provides a precise yet intuitive formulation. In addition, the con- cepts of set theory form a foundation for the theory of semantic domains, the value spaces used for giving meaning to languages. We examine the basic principles of sets, functions, and domains in turn. 2.1 SETS __________________________________________________________________________________________________________________________________ A set is a collection; it can contain numbers, persons, other sets, or (almost) anything one wishes. Most of the examples in this book use numbers and sets of numbers as the members of sets. Like any concept, a set needs a representation so that it can be written down. Braces are used to enclose the members of a set. Thus, { 1, 4, 7 } represents the set containing the numbers 1, 4, and 7. These are also sets: { 1, { 1, 4, 7 }, 4 } { red, yellow, grey } {} The last example is the empty set, the set with no members, also written as ∅. When a set has a large number of members, it is more convenient to specify the condi- tions for membership than to write all the members. A set S can be de®ned by S= { x | P(x) }, which says that an object a belongs to S iff (if and only if) a has property P, that is, P(a) holds true. For example, let P be the property ``is an even integer.'' Then { x | x is an even integer } de®nes the set of even integers, an in®nite set. Note that ∅ can be de®ned as the set { x | x≠x }.
    [Show full text]
  • Parametrised Enumeration
    Parametrised Enumeration Arne Meier Februar 2020 color guide (the dark blue is the same with the Gottfried Wilhelm Leibnizuniversity Universität logo) Hannover c: 100 m: 70 Institut für y: 0 k: 0 Theoretische c: 35 m: 0 y: 10 Informatik k: 0 c: 0 m: 0 y: 0 k: 35 Fakultät für Elektrotechnik und Informatik Institut für Theoretische Informatik Fachgebiet TheoretischeWednesday, February 18, 15 Informatik Habilitationsschrift Parametrised Enumeration Arne Meier geboren am 6. Mai 1982 in Hannover Februar 2020 Gutachter Till Tantau Institut für Theoretische Informatik Universität zu Lübeck Gutachter Stefan Woltran Institut für Logic and Computation 192-02 Technische Universität Wien Arne Meier Parametrised Enumeration Habilitationsschrift, Datum der Annahme: 20.11.2019 Gutachter: Till Tantau, Stefan Woltran Gottfried Wilhelm Leibniz Universität Hannover Fachgebiet Theoretische Informatik Institut für Theoretische Informatik Fakultät für Elektrotechnik und Informatik Appelstrasse 4 30167 Hannover Dieses Werk ist lizenziert unter einer Creative Commons “Namensnennung-Nicht kommerziell 3.0 Deutschland” Lizenz. Für Julia, Jonas Heinrich und Leonie Anna. Ihr seid mein größtes Glück auf Erden. Danke für eure Geduld, euer Verständnis und eure Unterstützung. Euer Rückhalt bedeutet mir sehr viel. ♥ If I had an hour to solve a problem, I’d spend 55 minutes thinking about the problem and 5 min- “ utes thinking about solutions. ” — Albert Einstein Abstract In this thesis, we develop a framework of parametrised enumeration complexity. At first, we provide the reader with preliminary notions such as machine models and complexity classes besides proving them to be well-chosen. Then, we study the interplay and the landscape of these classes and present connections to classical enumeration classes.
    [Show full text]
  • Logic and Proof Release 3.18.4
    Logic and Proof Release 3.18.4 Jeremy Avigad, Robert Y. Lewis, and Floris van Doorn Sep 10, 2021 CONTENTS 1 Introduction 1 1.1 Mathematical Proof ............................................ 1 1.2 Symbolic Logic .............................................. 2 1.3 Interactive Theorem Proving ....................................... 4 1.4 The Semantic Point of View ....................................... 5 1.5 Goals Summarized ............................................ 6 1.6 About this Textbook ........................................... 6 2 Propositional Logic 7 2.1 A Puzzle ................................................. 7 2.2 A Solution ................................................ 7 2.3 Rules of Inference ............................................ 8 2.4 The Language of Propositional Logic ................................... 15 2.5 Exercises ................................................. 16 3 Natural Deduction for Propositional Logic 17 3.1 Derivations in Natural Deduction ..................................... 17 3.2 Examples ................................................. 19 3.3 Forward and Backward Reasoning .................................... 20 3.4 Reasoning by Cases ............................................ 22 3.5 Some Logical Identities .......................................... 23 3.6 Exercises ................................................. 24 4 Propositional Logic in Lean 25 4.1 Expressions for Propositions and Proofs ................................. 25 4.2 More commands ............................................
    [Show full text]
  • A New Characterization of Injective and Surjective Functions and Group Homomorphisms
    A new characterization of injective and surjective functions and group homomorphisms ANDREI TIBERIU PANTEA* Abstract. A model of a function f between two non-empty sets is defined to be a factorization f ¼ i, where ¼ is a surjective function and i is an injective Æ ± function. In this note we shall prove that a function f is injective (respectively surjective) if and only if it has a final (respectively initial) model. A similar result, for groups, is also proven. Keywords: factorization of morphisms, injective/surjective maps, initial/final objects MSC: Primary 03E20; Secondary 20A99 1 Introduction and preliminary remarks In this paper we consider the sets taken into account to be non-empty and groups denoted differently to be disjoint. For basic concepts on sets and functions see [1]. It is a well known fact that any function f : A B can be written as the composition of a surjective function ! followed by an injective function. Indeed, f f 0 id , where f 0 : A Im(f ) is the restriction Æ ± B ! of f to Im(f ) is one such factorization. Moreover, it is an elementary exercise to prove that this factorization is unique up to an isomorphism: i.e. if f i ¼, i : A X , ¼: X B is 1 ¡ Æ ±¢ ! 1 ! another factorization for f , then we easily see that X i ¡ Im(f ) and that ¼ i ¡ f 0. The Æ Æ ± purpose of this note is to study the dual problem. Let f : A B be a function. We shall define ! a model of the function f to be a triple (X ,i,¼) made up of a set X , an injective function i : A X and a surjective function ¼: X B such that f ¼ i, that is, the following diagram ! ! Æ ± is commutative.
    [Show full text]