Past exam of the mathematics course of the University of Cambridge 2009 ia Paper 4 1E Solution Created 2026-09-24 Updated 2026-10-14
Write and regard each binary relation as a subset of . Then is the reflexive closure of : every satisfies because . The relation is its symmetric closure. It is a reflexive relation since it contains , and means either or , either of which also gives .
For , a one-step chain is allowed because , so . If witnesses , the reversed chain witnesses , since is a symmetric relation. Finally, concatenate a chain from to with a chain from to to obtain a positive-length chain from to . Hence is a transitive relation as well, andThus is the transitive closure of a relation applied to .
Now suppose is an equivalence relation containing . Its reflexivity implies , hence . Its symmetry then implies , hence . Along a chain witnessing , every consecutive pair is -related. Induction on the chain length using transitivity gives : the one-step case is , and the last step joins to . ThereforeTogether with , this proves that is exactly the equivalence closure of . The reasoning also covers an empty , where all assertions about elements are vacuous.
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 4 2E Solution Created 2026-09-24 Updated 2026-10-14
An equivalence relation is a binary relation that is simultaneously a reflexive relation, a symmetric relation and a transitive relation: ; implies ; and , imply . The equivalence class of isEach equivalence class is nonempty by reflexivity, and every belongs to , so the classes cover . If , then the symmetric relation and transitive relation properties give . Every therefore satisfies , so ; the reverse inclusion follows similarly. Thus two classes are either identical or disjoint. The distinct equivalence classes consequently form a set partition of .
The divisibility-comparability relation is a reflexive relation and a symmetric relation, but is not an equivalence relation. Indeed, and , whereas neither nor , so transitivity fails.
For the requested four-class construction, partition the positive integers intoDefine exactly when they lie in the same . Equality of the class label is an equivalence relation. Its four classes are the two finite singletons and the two infinite parity classes displayed above.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 2D a Solution Created 2026-09-24 Updated 2026-10-05
A binary relation on a set is a subset of its Cartesian product; means . It is an equivalence relation when it is a reflexive relation, a symmetric relation, and a transitive relation:An equivalence relation partitions into equivalence classes: two elements belong to the same class exactly when they are related.
The divisibility binary relation on positive natural numbers is not a Euclidean relation. With , , , we have and but . Therefore
The binary relation on the natural numbers is not a Euclidean relation. Choose , , . Then and , but . Thus
Inequality on a domain containing at least two people is not a Euclidean relation. Choose distinct people and put , . Both premises hold, but the conclusion would be . ThusThe possibility matters: the defining universal quantifiers do not require distinct arguments. On a domain with at most one element the inequality binary relation is empty and the condition holds by vacuous truth.
The “same age” binary relation is a Euclidean relation, with age understood as one consistently measured value at a fixed time. If has the same age as both and , the ages of and are equal. HenceThis is another instance of equality of the values of a function inducing an equivalence relation.
A binary relation on a set is an equivalence relation when it is a reflexive relation, a symmetric relation, and a transitive relation. In first-order logic, these three requirements are
On the nonempty set take the empty binary relation . There are no triples for which holds. The defining implication is therefore true for every triple by vacuous truth, making a Euclidean relation.
The answer is no, even when both original binary relations are equivalence relations. On , let have equivalence classes and have equivalence classes . Each is a transitive relation and, by the earlier proof, a Euclidean relation.
Use exactly the paper's convention for composition of relations: means and for some . The possible successors areIndeed, from or the first step can reach or , whose successors together exhaust ; from the first step must stay at , whose successors are only . Consequently and , but not . Therefore
The requested examples are binary relations on sets, rather than partially ordered sets: a partially ordered set necessarily has all three properties. This corrects the wording of the source.[ref]
For an antisymmetric relation and transitive relation that is not a reflexive relation, take and . No distinct pair relates both ways, so the antisymmetric relation condition holds. There are no composable pairs, so the transitive relation condition holds vacuously. Neither nor belongs to , so the reflexive relation condition fails.
For a reflexive relation and transitive relation that is not an antisymmetric relation, take and . All diagonal pairs and all composite pairs belong to , but and both hold with .
For a reflexive relation and antisymmetric relation that is not a transitive relation, takeAll diagonal pairs are present, and no off-diagonal pair has its reverse present. However and hold while fails. Thus each pair of axioms can hold without the third.
Totality of the binary relation is expressed byWhen is already an order, this adds comparability and makes it a total order. In fact this first-order sentence alone entails .
By the definition of semantic entailment, means that every first-order structure satisfying also satisfies . Let be any such first-order structure, and let be any element of its domain of a first-order structure. The instance of with gives , which is true only if is true. Since was arbitrary, . ThereforeThere is no exception for in the displayed totality axiom; that case is exactly what forces the reflexive relation property.
- A reflexive relation satisfies .
- A symmetric relation satisfies .
- An antisymmetric relation satisfies .
- A transitive relation satisfies .
- An irreflexive relation satisfies .
- A serial relation satisfies .
Thus an equivalence relation is a binary relation that is simultaneously reflexive, symmetric and transitive. The equivalence class of is the set of all elements related to it:Antisymmetry permits diagonal pairs and does not mean that a binary relation fails to be a symmetric relation.
The binary relation is reflexive and transitive but is not a symmetric relation. For example, while . ThereforeThere are consequently no equivalence classes for this binary relation in the requested sense.
In a symmetric relation, each of the diagonal pairs can be chosen independently. For each of the unordered pairs of distinct elements, either both ordered pairs occur or neither occurs. Every such choice is free and produces a distinct symmetric relation. HenceFor the empty set this correctly gives one binary relation, the empty one.
Use the first binary relation for the outer generator, the second for the inner generator, and match their middle values. Different witnesses can generate the same output pair, so apply duplicate removal:
relcomp :: Eq a => [(a, a)] -> [(a, a)] -> [(a, a)]
relcomp r s = removedup [(a, b) | (a, c) <- r,
(d, b) <- s, c == d]The guards give precisely the existential witness required for composition of relations:Every output is sound by its generating witness, and every witness is visited for finite inputs. Duplicate removal converts the resulting enumeration back to the required representation by distinct pairs.
Maintain all pairs discovered so far. Extend every discovered path by one original binary relation edge, keeping the old pairs first:
transclose :: Eq a => [(a, a)] -> [(a, a)]
transclose r = grow (removedup r)
where
grow s =
let t = removedup (s ++ relcomp r s)
in if length t == length s then s else grow tAfter extensions, the represented binary relation is . This loop invariant follows by distributivity of composition of relations over a union. The old list
s is a duplicate-free prefix of t; therefore equality of lengths is equivalent to equality of the represented sets and signals a fixed point.Let be the finite set of endpoints appearing in the input. No extension introduces a new endpoint, so there are at most distinct pairs. Every nonfinal iteration adds at least one pair, proving algorithm termination. At the fixed point , we have and . Mathematical induction gives for every positive , while the loop invariant says that each discovered pair belongs to some . HenceThis is the transitive closure of a relation, rather than a reflexive closure: diagonal pairs appear only when supported by nonempty cycles. The empty input is handled immediately.
The answer depends on the actual definitions above, especially the direction used for duplicate removal.
invertworks for an infinite binary relation enumerated by a lazy list: each output needs only one input pair, and swapping preserves distinctness.removedupis productive whenever the input has infinitely many distinct values and equality tests terminate. Each next new value occurs at a finite input position and passes finitely many earlier filters. In particular, it works on the stipulated distinct-element representation of an infinite binary relation. On an infinite list with only finitely many distinct values it emits those values but cannot certify that there is no next new value; for example, demanding the tail after the first result ofremovedup (repeat 1)diverges.relcompdoes not work for arbitrary infinite inputs. Its nested list comprehension can remain forever in the inner generator. Withr = [(i,0) | i <- [0..]]ands = [(0,j) | j <- [0..]], it emits only pairs whose first component is zero, starving every later outer value. Duplicate removal cannot repair this lack of fair enumeration.transclosedoes not work for a general infinite input: even its firstlength scannot finish. It waits for finite saturation before returning any result.
Thus . A fairer enumeration may improve the latter constructions, but would be a different algorithm; ordinary depth-first enumeration does not become fair through lazy evaluation alone.
For a binary relation , reflexivity means for every ; a symmetric relation satisfies for every ; an antisymmetric relation satisfies for every ; transitivity means for every ; an irreflexive relation satisfies for every . In particular, failure of reflexivity means at least one missing diagonal pair, whereas irreflexivity requires every diagonal pair to be missing.
There are possible ordered pairs and hence binary relations. A reflexive relation must contain the diagonal pairs, while its remaining pairs are unrestricted. Subtracting the reflexive relations givesbinary relations that are not reflexive.