Set Theory in Computer Science a Gentle Introduction to Mathematical Modeling I

Total Page:16

File Type:pdf, Size:1020Kb

Set Theory in Computer Science a Gentle Introduction to Mathematical Modeling I Set Theory in Computer Science A Gentle Introduction to Mathematical Modeling I Jose´ Meseguer University of Illinois at Urbana-Champaign Urbana, IL 61801, USA c Jose´ Meseguer, 2008–2010; all rights reserved. February 9, 2012 2 Contents 1 Motivation 7 2 Set Theory as an Axiomatic Theory 11 3 The Empty Set, Extensionality, and Separation 15 3.1 The Empty Set . 15 3.2 Extensionality . 15 3.3 The Failed Attempt of Comprehension . 16 3.4 Separation . 17 4 Pairing, Unions, Powersets, and Infinity 19 4.1 Pairing . 19 4.2 Unions . 21 4.3 Powersets . 24 4.4 Infinity . 26 5 Case Study: A Computable Model of Hereditarily Finite Sets 29 5.1 HF-Sets in Maude . 30 5.2 Terms, Equations, and Term Rewriting . 33 5.3 Confluence, Termination, and Sufficient Completeness . 36 5.4 A Computable Model of HF-Sets . 39 5.5 HF-Sets as a Universe for Finitary Mathematics . 43 5.6 HF-Sets with Atoms . 47 6 Relations, Functions, and Function Sets 51 6.1 Relations and Functions . 51 6.2 Formula, Assignment, and Lambda Notations . 52 6.3 Images . 54 6.4 Composing Relations and Functions . 56 6.5 Abstract Products and Disjoint Unions . 59 6.6 Relating Function Sets . 62 7 Simple and Primitive Recursion, and the Peano Axioms 65 7.1 Simple Recursion . 65 7.2 Primitive Recursion . 67 7.3 The Peano Axioms . 69 8 Case Study: The Peano Language 71 9 Binary Relations on a Set 73 9.1 Directed and Undirected Graphs . 73 9.2 Transition Systems and Automata . 75 9.3 Relation Homomorphisms and Simulations . 76 9.4 Orders . 78 3 9.5 Sups and Infs, Complete Posets, Lattices, and Fixpoints . 81 9.6 Equivalence Relations and Quotients . 84 9.7 Constructing Z and Q ..................................... 88 10 Case Study: Fixpoint Semantics of Recursive Functions and Lispy 91 10.1 Recursive Function Definitions in a Nutshell . 92 10.2 Fixpoint Semantics of Recursive Function Definitions . 93 10.3 The Lispy Programming Language . 96 11 Sets Come in Different Sizes 97 11.1 Cantor’s Theorem . 97 11.2 The Schroeder-Bernstein Theorem . 98 12 I-Indexed Sets 99 12.1 I-Indexed Sets are Surjective Functions . 99 12.2 Constructing I-Indexed Sets from other I-Indexed Sets . 104 12.3 I-Indexed Relations and Functions . 105 13 From I-Indexed Sets to Sets, and the Axiom of Choice 107 13.1 Some Constructions Associating a Set to an I-Indexed Set . 107 13.2 The Axiom of Choice . 112 14 Well-Founded Relations, and Well-Founded Induction and Recursion 117 14.1 Well-Founded Relations . 117 14.1.1 Constructing Well-Founded Relations . 118 14.2 Well-Founded Induction . 119 14.3 Well-Founded Recursion . 120 14.3.1 Examples of Well-Founded Recursion . 120 14.3.2 Well-Founded Recursive Definitions: Step Functions . 121 14.3.3 The Well-Founded Recursion Theorem . 123 15 Cardinal Numbers and Cardinal Arithmetic 125 15.1 Cardinal Arithmetic . 126 15.2 The Integers and the Rationals are Countable . 129 15.3 The Continuum and the Continuum Hypothesis . 131 15.3.1 Peano Curves . 132 15.3.2 The Continuum Hypothesis . 132 16 Classes, Intensional Relations and Functions, and Replacement 135 16.1 Classes . 135 16.1.1 Mathematical Theorems are Assertions about Classes . 138 16.2 Intensional Relations . 139 16.3 Intensional Functions . 141 16.3.1 Typing Intensional Functions . 142 16.3.2 Computing with Intensional Functions . 143 16.3.3 Dependent and Polymorphic Types . 144 16.4 The Axiom of Replacement . 145 17 Case Study: Dependent and Polymorphic Types in Maude 149 17.1 Dependent Types in Maude . 149 17.2 Polymorphic-and-Dependent Types in Maude . 152 17.3 Definability Issues . 154 4 18 Well Orders, Ordinals, Cardinals, and Transfinite Constructions 155 18.1 Well-Ordered Sets . 155 18.2 Ordinals . 157 18.2.1 Ordinals as Transitive Sets . 159 18.2.2 Successor and Limit Ordinals . 159 18.2.3 Ordinal Arithmetic . 161 18.3 Transfinite Induction . 162 18.4 Transfinite Recursion . 163 18.4.1 α-Recursion . 164 18.4.2 Simple Intensional Recursion . 165 18.4.3 Transfinite Recursion . 166 18.5 Well-Orderings, Choice, and Cardinals . 168 18.5.1 Cardinals . 169 18.5.2 More Cardinal Arithmetic . 171 18.5.3 Regular, Singular, and Inaccessible Cardinals . 172 19 Well-Founded Sets and The Axiom of Foundation 173 19.1 Well-Founded Sets from the Top Down . 173 19.1.1 3-Induction . 175 19.2 Well-Founded Sets from the Bottom Up . 176 19.3 The Axiom of Foundation . 178 5 6 Chapter 1 Motivation “... we cannot improve the language of any science without at the same time improving the science itself; neither can we, on the other hand, improve a science, without improving the language or nomenclature which belongs to it.” (Lavoisier, 1790, quoted in Goldenfeld and Woese [23]) I found the inadequacy of language to be an obstacle; no matter how unwieldly the expressions I was ready to accept, I was less and less able, as the relations became more and more complex, to attain the precision that my purpose required. This deficiency led me to the idea of the present ideography. ::: I believe that I can best make the relation of my ideography to ordinary language clear if I compare it to that which the microscope has to the eye. Because of the range of its possible uses and the versatility with which it can adapt to the most diverse circumstances, the eye is far superior to the microscope. Considered as an optical instrument, to be sure, it exhibits many imperfections, which ordinarily remain unnoticed only on account of its intimate connection with our mental life. But, as soon as scientific goals demand great sharpness of resolution, the eye proves to be insufficient. The microscope, on the other hand, is prefectly suited to precisely such goals, but that is just why it is useless for all others. (Frege, 1897, Begriffsschrift, in [52], 5–6) Language and thought are related in a deep way. Without any language it may become impossible to conceive and express any thoughts. In ordinary life we use the different natural languages spoken on the planet. But natural language, although extremely flexible, can be highly ambiguous, and it is not at all well suited for science. Imagine, for example, the task of professionally developing quantum mechanics (itself relying on very abstract concepts, such as those in the mathematical language of operators in a Hilbert space) in ordinary English. Such a task would be virtually impossible; indeed, ridiculous: as preposterous as trying to build the Eiffel tower in the Sahara desert with blocks of vanilla ice cream. Even the task of popularization, that is, of explaining informally in ordinary English what quantum mechanics is, is highly nontrivial, and must of necessity remain to a considerable extent suggestive, metaphorical, and fraught with the possibility of gross misunderstandings. The point is that without a precise scientific language it becomes virtually impossible, or at least enor- mously burdensome and awkward, to think.
Recommended publications
  • “The Church-Turing “Thesis” As a Special Corollary of Gödel's
    “The Church-Turing “Thesis” as a Special Corollary of Gödel’s Completeness Theorem,” in Computability: Turing, Gödel, Church, and Beyond, B. J. Copeland, C. Posy, and O. Shagrir (eds.), MIT Press (Cambridge), 2013, pp. 77-104. Saul A. Kripke This is the published version of the book chapter indicated above, which can be obtained from the publisher at https://mitpress.mit.edu/books/computability. It is reproduced here by permission of the publisher who holds the copyright. © The MIT Press The Church-Turing “ Thesis ” as a Special Corollary of G ö del ’ s 4 Completeness Theorem 1 Saul A. Kripke Traditionally, many writers, following Kleene (1952) , thought of the Church-Turing thesis as unprovable by its nature but having various strong arguments in its favor, including Turing ’ s analysis of human computation. More recently, the beauty, power, and obvious fundamental importance of this analysis — what Turing (1936) calls “ argument I ” — has led some writers to give an almost exclusive emphasis on this argument as the unique justification for the Church-Turing thesis. In this chapter I advocate an alternative justification, essentially presupposed by Turing himself in what he calls “ argument II. ” The idea is that computation is a special form of math- ematical deduction. Assuming the steps of the deduction can be stated in a first- order language, the Church-Turing thesis follows as a special case of G ö del ’ s completeness theorem (first-order algorithm theorem). I propose this idea as an alternative foundation for the Church-Turing thesis, both for human and machine computation. Clearly the relevant assumptions are justified for computations pres- ently known.
    [Show full text]
  • Arithmetic Equivalence and Isospectrality
    ARITHMETIC EQUIVALENCE AND ISOSPECTRALITY ANDREW V.SUTHERLAND ABSTRACT. In these lecture notes we give an introduction to the theory of arithmetic equivalence, a notion originally introduced in a number theoretic setting to refer to number fields with the same zeta function. Gassmann established a direct relationship between arithmetic equivalence and a purely group theoretic notion of equivalence that has since been exploited in several other areas of mathematics, most notably in the spectral theory of Riemannian manifolds by Sunada. We will explicate these results and discuss some applications and generalizations. 1. AN INTRODUCTION TO ARITHMETIC EQUIVALENCE AND ISOSPECTRALITY Let K be a number field (a finite extension of Q), and let OK be its ring of integers (the integral closure of Z in K). The Dedekind zeta function of K is defined by the Dirichlet series X s Y s 1 ζK (s) := N(I)− = (1 N(p)− )− I OK p − ⊆ where the sum ranges over nonzero OK -ideals, the product ranges over nonzero prime ideals, and N(I) := [OK : I] is the absolute norm. For K = Q the Dedekind zeta function ζQ(s) is simply the : P s Riemann zeta function ζ(s) = n 1 n− . As with the Riemann zeta function, the Dirichlet series (and corresponding Euler product) defining≥ the Dedekind zeta function converges absolutely and uniformly to a nonzero holomorphic function on Re(s) > 1, and ζK (s) extends to a meromorphic function on C and satisfies a functional equation, as shown by Hecke [25]. The Dedekind zeta function encodes many features of the number field K: it has a simple pole at s = 1 whose residue is intimately related to several invariants of K, including its class number, and as with the Riemann zeta function, the zeros of ζK (s) are intimately related to the distribution of prime ideals in OK .
    [Show full text]
  • Computability and Incompleteness Fact Sheets
    Computability and Incompleteness Fact Sheets Computability Definition. A Turing machine is given by: A finite set of symbols, s1; : : : ; sm (including a \blank" symbol) • A finite set of states, q1; : : : ; qn (including a special \start" state) • A finite set of instructions, each of the form • If in state qi scanning symbol sj, perform act A and go to state qk where A is either \move right," \move left," or \write symbol sl." The notion of a \computation" of a Turing machine can be described in terms of the data above. From now on, when I write \let f be a function from strings to strings," I mean that there is a finite set of symbols Σ such that f is a function from strings of symbols in Σ to strings of symbols in Σ. I will also adopt the analogous convention for sets. Definition. Let f be a function from strings to strings. Then f is computable (or recursive) if there is a Turing machine M that works as follows: when M is started with its input head at the beginning of the string x (on an otherwise blank tape), it eventually halts with its head at the beginning of the string f(x). Definition. Let S be a set of strings. Then S is computable (or decidable, or recursive) if there is a Turing machine M that works as follows: when M is started with its input head at the beginning of the string x, then if x is in S, then M eventually halts, with its head on a special \yes" • symbol; and if x is not in S, then M eventually halts, with its head on a special • \no" symbol.
    [Show full text]
  • NOTES on FINITE GROUP REPRESENTATIONS in Fall 2020, I
    NOTES ON FINITE GROUP REPRESENTATIONS CHARLES REZK In Fall 2020, I taught an undergraduate course on abstract algebra. I chose to spend two weeks on the theory of complex representations of finite groups. I covered the basic concepts, leading to the classification of representations by characters. I also briefly addressed a few more advanced topics, notably induced representations and Frobenius divisibility. I'm making the lectures and these associated notes for this material publicly available. The material here is standard, and is mainly based on Steinberg, Representation theory of finite groups, Ch 2-4, whose notation I will mostly follow. I also used Serre, Linear representations of finite groups, Ch 1-3.1 1. Group representations Given a vector space V over a field F , we write GL(V ) for the group of bijective linear maps T : V ! V . n n When V = F we can write GLn(F ) = GL(F ), and identify the group with the group of invertible n × n matrices. A representation of a group G is a homomorphism of groups φ: G ! GL(V ) for some representation choice of vector space V . I'll usually write φg 2 GL(V ) for the value of φ on g 2 G. n When V = F , so we have a homomorphism φ: G ! GLn(F ), we call it a matrix representation. matrix representation The choice of field F matters. For now, we will look exclusively at the case of F = C, i.e., representations in complex vector spaces. Remark. Since R ⊆ C is a subfield, GLn(R) is a subgroup of GLn(C).
    [Show full text]
  • Basic Structures: Sets, Functions, Sequences, and Sums 2-2
    CHAPTER Basic Structures: Sets, Functions, 2 Sequences, and Sums 2.1 Sets uch of discrete mathematics is devoted to the study of discrete structures, used to represent discrete objects. Many important discrete structures are built using sets, which 2.2 Set Operations M are collections of objects. Among the discrete structures built from sets are combinations, 2.3 Functions unordered collections of objects used extensively in counting; relations, sets of ordered pairs that represent relationships between objects; graphs, sets of vertices and edges that connect 2.4 Sequences and vertices; and finite state machines, used to model computing machines. These are some of the Summations topics we will study in later chapters. The concept of a function is extremely important in discrete mathematics. A function assigns to each element of a set exactly one element of a set. Functions play important roles throughout discrete mathematics. They are used to represent the computational complexity of algorithms, to study the size of sets, to count objects, and in a myriad of other ways. Useful structures such as sequences and strings are special types of functions. In this chapter, we will introduce the notion of a sequence, which represents ordered lists of elements. We will introduce some important types of sequences, and we will address the problem of identifying a pattern for the terms of a sequence from its first few terms. Using the notion of a sequence, we will define what it means for a set to be countable, namely, that we can list all the elements of the set in a sequence.
    [Show full text]
  • Class Numbers of Totally Real Number Fields
    CLASS NUMBERS OF TOTALLY REAL NUMBER FIELDS BY JOHN C. MILLER A dissertation submitted to the Graduate School|New Brunswick Rutgers, The State University of New Jersey in partial fulfillment of the requirements for the degree of Doctor of Philosophy Graduate Program in Mathematics Written under the direction of Henryk Iwaniec and approved by New Brunswick, New Jersey May, 2015 ABSTRACT OF THE DISSERTATION Class numbers of totally real number fields by John C. Miller Dissertation Director: Henryk Iwaniec The determination of the class number of totally real fields of large discriminant is known to be a difficult problem. The Minkowski bound is too large to be useful, and the root discriminant of the field can be too large to be treated by Odlyzko's discriminant bounds. This thesis describes a new approach. By finding nontrivial lower bounds for sums over prime ideals of the Hilbert class field, we establish upper bounds for class numbers of fields of larger discriminant. This analytic upper bound, together with algebraic arguments concerning the divisibility properties of class numbers, allows us to determine the class numbers of many number fields that have previously been untreatable by any known method. For example, we consider the cyclotomic fields and their real subfields. Surprisingly, the class numbers of cyclotomic fields have only been determined for fields of small conductor, e.g. for prime conductors up to 67, due to the problem of finding the class number of its maximal real subfield, a problem first considered by Kummer. Our results have significantly improved the situation. We also study the cyclotomic Zp-extensions of the rationals.
    [Show full text]
  • 171 Composition Operator on the Space of Functions
    Acta Math. Univ. Comenianae 171 Vol. LXXXI, 2 (2012), pp. 171{183 COMPOSITION OPERATOR ON THE SPACE OF FUNCTIONS TRIEBEL-LIZORKIN AND BOUNDED VARIATION TYPE M. MOUSSAI Abstract. For a Borel-measurable function f : R ! R satisfying f(0) = 0 and Z sup t−1 sup jf 0(x + h) − f 0(x)jp dx < +1; (0 < p < +1); t>0 R jh|≤t s n we study the composition operator Tf (g) := f◦g on Triebel-Lizorkin spaces Fp;q(R ) in the case 0 < s < 1 + (1=p). 1. Introduction and the main result The study of the composition operator Tf : g ! f ◦ g associated to a Borel- s n measurable function f : R ! R on Triebel-Lizorkin spaces Fp;q(R ), consists in finding a characterization of the functions f such that s n s n (1.1) Tf (Fp;q(R )) ⊆ Fp;q(R ): The investigation to establish (1.1) was improved by several works, for example the papers of Adams and Frazier [1,2 ], Brezis and Mironescu [6], Maz'ya and Shaposnikova [9], Runst and Sickel [12] and [10]. There were obtained some necessary conditions on f; from which we recall the following results. For s > 0, 1 < p < +1 and 1 ≤ q ≤ +1 n s n s n • if Tf takes L1(R ) \ Fp;q(R ) to Fp;q(R ), then f is locally Lipschitz con- tinuous. n s n • if Tf takes the Schwartz space S(R ) to Fp;q(R ), then f belongs locally to s Fp;q(R). The first assertion is proved in [3, Theorem 3.1].
    [Show full text]
  • Domain and Range of a Function
    4.1 Domain and Range of a Function How can you fi nd the domain and range of STATES a function? STANDARDS MA.8.A.1.1 MA.8.A.1.5 1 ACTIVITY: The Domain and Range of a Function Work with a partner. The table shows the number of adult and child tickets sold for a school concert. Input Number of Adult Tickets, x 01234 Output Number of Child Tickets, y 86420 The variables x and y are related by the linear equation 4x + 2y = 16. a. Write the equation in function form by solving for y. b. The domain of a function is the set of all input values. Find the domain of the function. Domain = Why is x = 5 not in the domain of the function? 1 Why is x = — not in the domain of the function? 2 c. The range of a function is the set of all output values. Find the range of the function. Range = d. Functions can be described in many ways. ● by an equation ● by an input-output table y 9 ● in words 8 ● by a graph 7 6 ● as a set of ordered pairs 5 4 Use the graph to write the function 3 as a set of ordered pairs. 2 1 , , ( , ) ( , ) 0 09321 45 876 x ( , ) , ( , ) , ( , ) 148 Chapter 4 Functions 2 ACTIVITY: Finding Domains and Ranges Work with a partner. ● Copy and complete each input-output table. ● Find the domain and range of the function represented by the table. 1 a. y = −3x + 4 b. y = — x − 6 2 x −2 −10 1 2 x 01234 y y c.
    [Show full text]
  • CS 173 Lecture 13: Bijections and Data Types
    CS 173 Lecture 13: Bijections and Data Types Jos´eMeseguer University of Illinois at Urbana-Champaign 1 More on Bijections Bijecive Functions and Cardinality. If A and B are finite sets we know that f : A Ñ B is bijective iff |A| “ |B|. If A and B are infinite sets we can define that they have the same cardinality, written |A| “ |B| iff there is a bijective function. f : A Ñ B. This agrees with our intuition since, as f is in particular surjective, we can use f : A Ñ B to \list1" all elements of B by elements of A. The reason why writing |A| “ |B| makes sense is that, since f : A Ñ B is also bijective, we can also use f ´1 : B Ñ A to \list" all elements of A by elements of B. Therefore, this captures the notion of A and B having the \same degree of infinity," since their elements can be put into a bijective correspondence (also called a one-to-one and onto correspondence) with each other. We will also use the notation A – B as a shorthand for the existence of a bijective function f : A Ñ B. Of course, then A – B iff |A| “ |B|, but the two notations emphasize sligtly different, though equivalent, intuitions. Namely, A – B emphasizes the idea that A and B can be placed in bijective correspondence, whereas |A| “ |B| emphasizes the idea that A and B have the same cardinality. In summary, the notations |A| “ |B| and A – B mean, by definition: A – B ôdef |A| “ |B| ôdef Df P rAÑBspf bijectiveq Arrow Notation and Arrow Composition.
    [Show full text]
  • REPRESENTATION THEORY WEEK 7 1. Characters of GL Kand Sn A
    REPRESENTATION THEORY WEEK 7 1. Characters of GLk and Sn A character of an irreducible representation of GLk is a polynomial function con- stant on every conjugacy class. Since the set of diagonalizable matrices is dense in GLk, a character is defined by its values on the subgroup of diagonal matrices in GLk. Thus, one can consider a character as a polynomial function of x1,...,xk. Moreover, a character is a symmetric polynomial of x1,...,xk as the matrices diag (x1,...,xk) and diag xs(1),...,xs(k) are conjugate for any s ∈ Sk. For example, the character of the standard representation in E is equal to x1 + ⊗n n ··· + xk and the character of E is equal to (x1 + ··· + xk) . Let λ = (λ1,...,λk) be such that λ1 ≥ λ2 ≥ ···≥ λk ≥ 0. Let Dλ denote the λj determinant of the k × k-matrix whose i, j entry equals xi . It is clear that Dλ is a skew-symmetric polynomial of x1,...,xk. If ρ = (k − 1,..., 1, 0) then Dρ = i≤j (xi − xj) is the well known Vandermonde determinant. Let Q Dλ+ρ Sλ = . Dρ It is easy to see that Sλ is a symmetric polynomial of x1,...,xk. It is called a Schur λ1 λk polynomial. The leading monomial of Sλ is the x ...xk (if one orders monomials lexicographically) and therefore it is not hard to show that Sλ form a basis in the ring of symmetric polynomials of x1,...,xk. Theorem 1.1. The character of Wλ equals to Sλ. I do not include a proof of this Theorem since it uses beautiful but hard combina- toric.
    [Show full text]
  • Adaptive Lower Bound for Testing Monotonicity on the Line
    Adaptive Lower Bound for Testing Monotonicity on the Line Aleksandrs Belovs∗ Abstract In the property testing model, the task is to distinguish objects possessing some property from the objects that are far from it. One of such properties is monotonicity, when the objects are functions from one poset to another. This is an active area of research. In this paper we study query complexity of ε-testing monotonicity of a function f :[n] → [r]. All our lower bounds are for adaptive two-sided testers. log r • We prove a nearly tight lower bound for this problem in terms of r. TheboundisΩ log log r when ε =1/2. No previous satisfactory lower bound in terms of r was known. • We completely characterise query complexity of this problem in terms of n for smaller values of ε. The complexity is Θ ε−1 log(εn) . Apart from giving the lower bound, this improves on the best known upper bound. Finally, we give an alternative proof of the Ω(ε−1d log n−ε−1 log ε−1) lower bound for testing monotonicity on the hypergrid [n]d due to Chakrabarty and Seshadhri (RANDOM’13). 1 Introduction The framework of property testing was formulated by Rubinfeld and Sudan [19] and Goldreich et al. [16]. A property testing problem is specified by a property P, which is a class of functions mapping some finite set D into some finite set R, and proximity parameter ε, which is a real number between 0 and 1. An ε-tester is a bounded-error randomised query algorithm which, given oracle access to a function f : D → R, distinguishes between the case when f belongs to P and the case when f is ε-far from P.
    [Show full text]
  • Comparative Programming Languages
    CSc 372 Comparative Programming Languages 10 : Haskell — Curried Functions Department of Computer Science University of Arizona [email protected] Copyright c 2013 Christian Collberg 1/22 Infix Functions Declaring Infix Functions Sometimes it is more natural to use an infix notation for a function application, rather than the normal prefix one: 5+6 (infix) (+) 5 6 (prefix) Haskell predeclares some infix operators in the standard prelude, such as those for arithmetic. For each operator we need to specify its precedence and associativity. The higher precedence of an operator, the stronger it binds (attracts) its arguments: hence: 3 + 5*4 ≡ 3 + (5*4) 3 + 5*4 6≡ (3 + 5) * 4 3/22 Declaring Infix Functions. The associativity of an operator describes how it binds when combined with operators of equal precedence. So, is 5-3+9 ≡ (5-3)+9 = 11 OR 5-3+9 ≡ 5-(3+9) = -7 The answer is that + and - associate to the left, i.e. parentheses are inserted from the left. Some operators are right associative: 5^3^2 ≡ 5^(3^2) Some operators have free (or no) associativity. Combining operators with free associativity is an error: 5==4<3 ⇒ ERROR 4/22 Declaring Infix Functions. The syntax for declaring operators: infixr prec oper -- right assoc. infixl prec oper -- left assoc. infix prec oper -- free assoc. From the standard prelude: infixl 7 * infix 7 /, ‘div‘, ‘rem‘, ‘mod‘ infix 4 ==, /=, <, <=, >=, > An infix function can be used in a prefix function application, by including it in parenthesis. Example: ? (+) 5 ((*) 6 4) 29 5/22 Multi-Argument Functions Multi-Argument Functions Haskell only supports one-argument functions.
    [Show full text]