Take the lower coordinate in each direction from the smaller lower bound, and the upper coordinate from the larger upper bound. This gives an axis-aligned bounding box, rather than the generally nonrectangular set union of the two regions. Use defensive copying because the paper's Point has mutable fields.
final class Rect {
    private final Point lowerLeft, upperRight;

    public Rect(Point ll, Point ur) {
        if (ll == null || ur == null)
            throw new IllegalArgumentException("null corner");
        double xl = ll.getX(), yl = ll.getY();
        double xh = ur.getX(), yh = ur.getY();
        if (!Double.isFinite(xl) || !Double.isFinite(yl)
                || !Double.isFinite(xh) || !Double.isFinite(yh)
                || xl > xh || yl > yh)
            throw new IllegalArgumentException("invalid rectangle");
        lowerLeft = new Point(xl, yl);
        upperRight = new Point(xh, yh);
    }

    public Rect Union(Rect r) {
        return new Rect(
            new Point(Math.min(lowerLeft.getX(), r.lowerLeft.getX()),
                      Math.min(lowerLeft.getY(), r.lowerLeft.getY())),
            new Point(Math.max(upperRight.getX(), r.upperRight.getX()),
                      Math.max(upperRight.getY(), r.upperRight.getY())));
    }

    public Point lowerLeft() { return lowerLeft.clone(); }
    public Point upperRight() { return upperRight.clone(); }
}
Any containing rectangle must reach at least as far as each input rectangle in all four coordinate directions. The constructed rectangle reaches exactly those four limits, which proves both containment and minimality:
The corner accessors return copies, so changing a constructor argument or returned Point cannot alter an existing Rect.
Between 1600 and 1900, algebra broadened from arts of working with unknown quantities and solving equations into the study of several systems of symbolic operations and increasingly general algebraic structures. This was neither a single change of definition nor a clean replacement of one subject by another. Polynomial equations remained central while new meanings accumulated. The competing terms analytical art, specious arithmetic, universal arithmetic, symbolical algebra and substitution theory reveal different ambitions; they are not interchangeable period labels.
Near 1600, François Viète's In artem analyticem isagoge by François Viète (1591) supplies a particularly revealing starting point. His analytical art uses letters for known quantities as well as unknown ones. In his terminology, logistica numerosa concerns numerical calculation and logistica speciosa calculation with species, or general magnitudes. Vowels represent unknowns and consonants known magnitudes. This allows a single relation to represent many particular problems, but it is still tied to geometrical homogeneity: a square and a length do not simply become quantities of the same kind because they are written with letters.[ref][ref]
For example, a relation we write as has quantities of compatible dimensions if and are lengths and is an area. Letters do more than abbreviate a numerical question: they express relations between whole families of magnitudes. The phrase specious arithmetic therefore indicates arithmetic carried out on species; analysis stresses the art of reasoning from an assumed unknown towards its determination. Neither term should be reduced to the modern subject real analysis.
René Descartes's La Géométrie by René Descartes (1637) demonstrates another relation between algebra and geometry. A chosen unit segment lets multiplication, division and extraction of square roots be represented by constructions of lengths. The product of two measured lengths can itself be represented by a length relative to that unit. In modern dimensional notation the construction gives for unit length , removing the obstacle that a product must always be treated as an area. The text's equations can then organise geometrical problems and classify curves by their algebraic complexity. Its title remains geometry: algebra serves a geometrical programme rather than announcing a present-day department of abstract algebra.[ref]
A further term, universal arithmetic, stresses the extension of calculation from particular numbers to general quantities. Isaac Newton's Arithmetica universalis by Isaac Newton, issued in 1707, makes the term visible in a title whose subtitle concerns composition and resolution. A title is evidence for the vocabulary, not a sufficient definition of all contemporary usage.[ref] In Leonhard Euler's Elements of Algebra by Leonhard Euler, published in German in 1770, general numerical calculation and the solution of equations remain a substantial conception of the subject. For instance, allowing negative and complex roots changes the admissible answers to polynomial equations while preserving the central question of determining an unknown.[ref]
The eighteenth-century elimination theory exemplified by Alexandre-Théophile Vandermonde's memoir broadens the scale of the task. Instead of one numerical quadratic equation, one seeks a rule for an arbitrary number of simultaneous linear equations. The determinant is initially valuable because it effects that elimination. This is a different generality from the later study of a group: the objects being determined are still unknown quantities, and symbolic generality concerns the number and coefficients of the equations. The case cautions against using generality alone as a test for whether algebra has become abstract.[ref]
In nineteenth-century British discussion, George Peacock's A Treatise on Algebra by George Peacock (1830) distinguishes arithmetical algebra from symbolical algebra. If the symbols mean positive numbers, has no positive-number result. Yet algebraists manipulate this expression without restriction. George Peacock therefore seeks principles for the manipulation of signs which are not confined by their original arithmetical interpretation. The contrast is explicitly argued in his preface: arithmetic suggests the laws, while the symbolic science requires foundations adequate to its more general conclusions.[ref]
The familiar extension illustrates the stakes. From distributivity, , so the rule is forced if these operations obey the assumed laws. This explains how a law can survive a change in interpretation. It does not establish that every familiar law must survive every extension: once the allowable systems themselves change, an argument must state which laws it assumes. The name symbolical algebra consequently carries a stronger methodological claim than simply writing an unknown as .
William Rowan Hamilton's work on quaternions supplies a decisive example of that change. His publications of the 1840s describe a new system of imaginaries in algebra. With quaternion units,
Thus multiplication need not satisfy the commutativity even when it remains associative and supports division by nonzero elements. The new system is not merely a further list of roots of old polynomial equations. It has its own operations, interpretation and laws. William Rowan Hamilton's title makes explicit that a plurality of calculi can belong within algebra.[ref]
George Boole's An Investigation of the Laws of Thought by George Boole (1854) offers a different interpretation of symbols. If represents selection of a class, repeating that selection gives ; multiplication can represent intersection and a complementary class. His logical calculus borrows from numerical algebra but also restricts interpretation: his sum of classes is not automatically unrestricted set union, and intermediate symbolic expressions need not name classes directly. It would therefore be inaccurate to identify all of his rules with a modern Boolean algebra. The example nevertheless shows why algebraic reasoning could extend beyond magnitudes.[ref]
The shift can also take a concrete linear form. Arthur Cayley's A Memoir on the Theory of Matrices by Arthur Cayley (1858) treats matrices with operations of their own. The identity matrix is no longer the scalar , though it plays an analogous role; matrix multiplication is generally noncommutative. For example,
produce and . This is a checkable reason why universal arithmetic can no longer mean that every rule of ordinary numbers applies unchanged.[ref]
Meanwhile, substitution theory studies permutations and their compositions, originally in close relation to polynomial equations. Évariste Galois's work connects the solvability by radicals of an equation with its associated group. Augustin-Louis Cauchy's work on substitutions and Heinrich Weber's 1882 definition illustrate successive forms of generalisation: from particular permutations towards arbitrary elements satisfying operational conditions. This is not a claim that one man supplied the complete modern hierarchy of groups, rings and fields at once. It identifies the change in the question: one can now investigate what follows from the laws of an operation, independently of whether the elements are numbers, substitutions or classes.[ref]
By 1900, algebra could concern the laws and structures of several calculi. Earlier meanings persisted in teaching and in the theory of equations. The strongest account of the change therefore combines continuity with enlargement: letters for general quantities, symbolic operations with explicit laws, nonnumerical interpretations, and structural questions about those laws. Analytical art foregrounded a method of discovery, universal arithmetic foregrounded general calculation, symbolical algebra foregrounded formal operations, and substitution theory foregrounded a particular class of transformations. Their differing uses help explain the expansion more precisely than a single date for the birth of abstraction.
Let , with the two copies of the graph vertex set distinguished. In , the diagonal pairs form an independent set of size : for , their adjacency cannot hold in both a graph and its complement graph. There is another such diagonal set in . These two types lie in different components of , so their set union is independent. Thus
which proves the printed bound.
A stronger complement-pair capacity gain will make the strict inequality transparent. In words of length , choose a pattern of coordinates from and from . Match the th coordinate of the first type with the th of the second type, and put the same graph vertex label in each pair. This gives independent words for each pattern: if two label tuples differ, their differing pair has a nonedge in one of the two complementary graphs. Codes belonging to distinct patterns are mutually nonadjacent, since some coordinate lies in different components of the disjoint set union. Consequently
The inequalities show that its th root tends to two. Therefore
This strengthens, rather than changes, the bound requested in the PDF.
For a polynomial representation of a graph over a field , choose points and polynomials , where is a finite-dimensional vector space, such that
No condition is imposed at adjacent pairs. To bound a strong power, put its polynomials in disjoint variable blocks:
They lie in a polynomial space canonically identified with , of dimension . For an independent set of words, evaluation of their polynomials at their associated point tuples is a diagonal matrix with nonzero diagonal: distinct words have a nonedge coordinate, which supplies a zero factor. The polynomials in that independent set are therefore linearly independent, since evaluating any linear relation at each tuple forces its corresponding coefficient to be zero. Hence
This is the polynomial form of the Haemers rank bound, proved here by evaluations and tensor products rather than assumed.
For an explicit counterexample, let the graph vertices of be the five-element subsets of . Join distinct exactly when is odd. There are graph vertices. Over , take and
At the diagonal in the field. At a distinct nonedge the set intersection is even, so . These polynomials lie in the twenty-dimensional space spanned by , proving .
Represent the complement graph over , using the same indicator vectors and
Its evaluation at is . The diagonal value is modulo three. Distinct nonedges of are edges of , so the set intersection size is one or three. Their evaluations are respectively zero and modulo three. The polynomials belong to the space spanned by the squarefree quadratic monomials , , of dimension . Therefore .
The graph capacity inequalities are real-number bounds regardless of which field supplies the polynomial representation of a graph. Combining them with the stronger set union lower bound gives
since . This proves nonadditivity of Shannon capacity for the graph just defined, with both individual upper bounds calculated explicitly.
With the condition-first name convention used here, evaluation of a forcing name is
Since a generic filter is nonempty, there is a condition in . In the given paired forcing name, every condition is paired with both and , and there are no other lower-rank names. Therefore
This is the unordered pair of the two interpreted sets. If the interpretations coincide, it is a singleton. It is neither an ordered pair nor the set union of those interpretations. Reversing the two components in the name-pair convention changes only the syntax of the same recursive evaluation.
The first condition concerns the domains: their symmetric difference must be a finite set. The original PDF prints this condition and the agreement condition together; the converted TeX omits both. The two existing solution scopes are used here to prove the domain and value parts of the single equivalence relation assertion.
Domain agreement is a reflexive relation because , and a symmetric relation because . For the transitive relation property, membership can differ between and only if it differs between and or between and . Thus
A set union of two finite sets is finite, so the domain condition passes through a chain of related pairs. This is the domain part of equivalence of partial functions modulo finite changes.
The Von Neumann hierarchy is the following transfinite recursion on the ordinals:
Here denotes the full power set. The levels are increasing transitive sets, and the construction is continuous at limit ordinals. Transfinite induction proves these properties: transitivity at a successor follows because a member of a subset of already belongs to ; at a limit it follows from the set union of increasing transitive sets. In ZF, Axiom of foundation and Axiom schema of replacement ensure that every set belongs to some . In terms of the rank of a set, exactly when .
Use relative constructible level recognition. The finite coding conditions matter here: merely writing “every set is relatively constructible” inside an arbitrary transitive set does not ensure that its computations are correct.
Let be a single finite conjunction expressing finite relation closure for set-theoretic coding. Concretely require the empty set, pairing, set union, set difference, Cartesian products, and the following uniform relation operations: for each finite ordinal and each set , the set of finite tuples exists; relations on these tuple domains can be complemented, intersected, projected along a coordinate and pulled back along finite coordinate maps; the equality and membership relations restricted to exist. These are finitely many first-order closure assertions with quantified, not an axiom schema. Each operation is specified by its usual elementwise membership equivalence. Transitivity makes the operations correct externally. Finite tuple domains are also correct: every individual finite tuple is already present by pairing and union.
These conditions make satisfaction for a set structure absolute. For a fixed coded first-order formula, compute its truth relations on by induction: equality and membership give the atomic cases, relative complement gives negation, intersection gives logical conjunction, and projection gives existential quantification. All required truth tables exist by and agree with the actual ones. Thus the first-order assertion is absolute whenever belong to a transitive structure satisfying : require that each member of has such a finite formula-and-parameter definition, and that each coded definition contributes a member of . Codes are finite objects; no truth predicate for the ambient universe is being used.
Write for the coded relative constructible stage assertion: is an ordinal and there is a function with domain , with , , at nonzero limit ordinals, and . Under , any such internal code is correct by transfinite induction. Restrictions of a code to shorter domains exist by the relation operations. Define the one-free-variable first-order formula
All displayed abbreviations expand into first-order formulas of the membership language.
Suppose is transitive, , and . Let be the externally defined set of indices of stage codes in . It contains , is downward closed by restricting codes, and has no largest member by the last conjunct. Thus is a nonzero limit ordinal . Correctness of stage codes gives for , hence by transitivity. Conversely the exhaustion conjunct puts every in some such level. Therefore
For the converse, every with nonzero limit satisfies : each listed operation on parameters from one level is definable at finitely many later levels, still below . Moreover stage histories appear below every limit constructible level. Here is the essential limit step of that lemma. If the histories for are available in , the correct predicate defines their graph of endpoints as a subset of . No endpoint with can belong to , because would then give , contradicting Axiom of foundation. The defined graph therefore has domain exactly . Adjoining its final pair takes finitely many more stages. Together with finite successor extensions, this proves by transfinite induction that every belongs to for some finite .
Thus all histories for belong to . Exhaustion follows from continuity, and supplies a larger represented stage. Hence , proving both directions without assuming ZF for the arbitrary input structure .
The two-argument version of Fn forcing consists of finite partial functions:
Thus a stronger condition specifies more values. The empty partial function is the greatest condition. Two conditions are compatible forcing conditions exactly when they agree on their common domain; if they do, their set union is a common strengthening. This is in the three-argument convention for Fn forcing. If or is empty, only the empty condition exists. For infinite and at least two elements in , assigning two different values at a fresh coordinate proves that this is an atomless forcing order.
A subset of a metric space is nowhere dense when the interior of its closure is empty. One form of the Baire category theorem says that a nonempty complete metric space cannot be a countable union of nowhere dense closed sets; equivalently, a countable intersection of dense open sets is dense.
Fix and work in the complete interval . For define the closed set
The sets are closed by the continuity of , and the assumed pointwise convergence gives . The Baire category theorem therefore gives an and a nonempty open interval contained in .
The intervals overlap once , which holds for every sufficiently large natural number . Their union consequently contains a half-line. Every sufficiently large can therefore be written as with and , and then . Since was arbitrary, as .
First form the singleton set and then use to take a set union:
The unused second argument of may be any term. Since , a term using only the prescribed operation symbols is
After substituting the displayed term for both occurrences of , this is literally a term in , and its value is .
Let
where is the golden ratio. If the union-closed family consists of one nonempty set, any element of that set has frequency one, so assume its cardinality exceeds one. Choose independent uniform members and let be their characteristic vectors of sets. Then .
Suppose for a contradiction that every element has frequency . Put , and let , the characteristic vector of a set of . The chain rule for information entropy and conditioning reduces entropy give
because is a function of .
Fix the two prefixes and set
The two conditioned bits are independent random variables, and exactly when both are zero. The supplied binary entropy product inequality therefore gives
Averaging over the independent prefixes yields
whenever either conditional entropy is positive. Summing and using gives .
But set union keeps inside the union-closed family, so is supported on . The maximum entropy distribution on a finite set gives , a contradiction. Some element must therefore occur in at least members, proving the entropy bound for a union-closed family.
Let the finite set contain distinct left cosets. By i, they form a disjoint partition of a set , and by ii each has elements. If is also finite, counting this finite disjoint set union gives
Thus is a finite group. This is the counting argument behind Lagrange's theorem.
Let be the two input lengths and suppose numeric comparisons cost constant time. The list-based set representation determines which representation invariant each answer must preserve.
For unsorted lists allowing repetition, retain every left-hand occurrence whose value appears on the right for set intersection, and use list concatenation for set union:
interR xs ys = [x | x <- xs, x `elem` ys]
unionR xs ys = xs ++ ys
The resulting lists represent exactly the desired sets; repeated entries are permitted. Membership by sequential search makes interR take time complexity in the worst case. The list concatenation in unionR costs to build its copied left spine and shares ys; fully enumerating the resulting list costs .
For unsorted, duplicate-free inputs, the same intersection keeps uniqueness, while the union retains xs and appends only right-hand elements absent from xs:
interU xs ys = [x | x <- xs, x `elem` ys]
unionU xs ys = xs ++ [y | y <- ys, not (y `elem` xs)]
Neither filtered list has internal repetitions, and the filter in unionU also excludes overlap with xs. Both operations have worst-case time complexity, customarily written when both lengths are positive. Using the original xs for each membership test avoids searching an ever-growing output.
For sorted, duplicate-free lists, compare only the two current heads:
interS [] ys = []
interS xs [] = []
interS (x:xs) (y:ys)
  | x < y = interS xs (y:ys)
  | x > y = interS (x:xs) ys
  | otherwise = x : interS xs ys

unionS [] ys = ys
unionS xs [] = xs
unionS (x:xs) (y:ys)
  | x < y = x : unionS xs (y:ys)
  | x > y = y : unionS (x:xs) ys
  | otherwise = x : unionS xs ys
When , sortedness proves that cannot occur anywhere in the right list, so it can be discarded from the set intersection or immediately emitted to the set union. The symmetric argument handles ; equal heads are consumed together. Each step consumes at least one input head, so both have worst-case time complexity. These bounds assume the sorted representation invariant is already established; sorting arbitrary inputs has its own cost.
RepresentationSet intersectionSet union, including output traversal
Unsorted, repetitions allowed
Unsorted, unique
Sorted, unique
The commutativity and associativity of set intersection give
Equivalently, part (ii) reduces both sides to removal of the same set union .
Take every complement of a set relative to . By set difference, De Morgan's laws, and distribution of set intersection over set union,
Here the middle term is the empty set, since a set and its complement of a set are disjoint.
Since the form a partition of a set of the sample space, the events are pairwise disjoint and their set union is . By countable additivity of probability, followed by the definition of conditional probability,
Every ratio is legitimate because each . This proves the countable law of total probability.
Using set difference as intersection with a complement of a set, then De Morgan's laws and distribution, gives
For the third equality, expand the two set unions: the terms and are absorbed by , and . This proves the required identity entirely by set algebra.
Write . The rules for set difference, set intersection, and complement of a set give
The second step is De Morgan's laws; the third distributes set intersection over set union. The fourth uses .
By definition the symmetric difference is . Put and . Distribution of set intersection over set union gives
For disjoint sets, set difference removes nothing, so . Consequently
Here the second equality combines with ; the last uses .
If , the definition of symmetric difference puts it in exactly one of . It is therefore in their set union and outside their set intersection, giving .
Conversely, an element of lies in at least one of the two sets but not both. It consequently belongs to or to , and hence to . Both set inclusions hold.