Put one object into each box first. The remaining objects can be distributed without restrictions, so stars and bars gives
Equivalently, the substitution gives a bijection between positive integer solutions of and nonnegative integer solutions of .
Let be the number of objects in box . The arrangements correspond exactly to nonnegative integer solutions of . By stars and bars, place stars and separating bars in a row. The number of stars between consecutive bars records the occupancy of each distinguishable box, with adjacent bars allowing an empty box. Choosing the bar positions gives
First suppose the sets are finite, with cardinalities and . The power set and Cartesian product counting rules give
Since , the desired inequality follows.
The power-set product cardinality inequality also has an injection proof that does not assume finiteness. Choose distinct and distinct . For and , define the subset of
These three encoding regions are disjoint. The row with second coordinate recovers ; the column with first coordinate and second coordinate different from recovers ; the extra position records whether . Thus is injective, proving for arbitrary sets
Encoding by alone would fail: all pairs with either factor empty would have the same output.
For every set , the definition of a power set gives
Equality by identical membership therefore proves
The essential observation is that being a subset of a set intersection means being a subset of both factors.
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.
With the convention , the even inputs map to for , while the odd inputs map to for . These two images of a function are disjoint and together equal . Within either class there are no repeated outputs. More explicitly the inverse function is
Consequently is both injective and surjective, hence a bijection. If instead , the input zero is absent: remains injective but its image of a function is , so it is not onto. The printed paper does not specify this convention; the zero-based convention gives the apparent intended bijection.
If , then and , so . Thus the function is strictly increasing on its domain and is injective. Its values are nonnegative, so it is not surjective onto :
If means its image of a function is ; if it includes zero its image of a function is . Indeed, for any , set and ; then . This convention does not change the classification.
Since , the image of a function is contained in . Both endpoints occur, at and . By continuity and the intermediate value theorem applied on , every intermediate value occurs too. Hence
It is not surjective onto because, for example, is not attained. It is not injective because although .
Choose fresh. Here double-negation elimination is necessary to turn the negation of a possible counterexample into the positive statement:
The remaining context at line 7 contains no free . The universal quantifier introduction rule therefore gives
Choose an eigenvariable fresh for the premise. Use the existential quantifier introduction rule to contradict the premise under a temporary assumption :
At line 6 the assumption has been discharged and the sole remaining premise has no free , satisfying the eigenvariable condition. Thus
A variable is fresh for the surrounding context when it does not occur free in any undischarged assumption in . Choose it also distinct from bound variables that would cause variable capture in the intended substitution. The universal quantifier introduction rule is
Its justification is that the logical derivation of used no special information about , so it establishes the property of an arbitrary object. Semantically, changing the assignment of preserves the truth of ; therefore holds for every possible assigned object. Without the eigenvariable condition, the assumption could incorrectly be generalized to in an interpretation where only one of two objects satisfies .
Use proof by contradiction, expanding the final classical step explicitly into negation introduction followed by double-negation elimination. First the assumption forces : otherwise immediately gives the prohibited logical disjunction. It similarly forces . The formal natural deduction derivation is
Hence
This direction of De Morgan's laws uses the classical rule supplied on the source rule sheet; it has not been silently treated as an available inference rule.
In proof by contradiction, assume the negation of the desired conclusion and derive logical falsity; discharge that assumption and infer the desired conclusion. Its sequent rule is
This is a rule of classical propositional logic. It follows from the paper's negation introduction rule, which first yields , and double-negation elimination, which yields . This is stronger than merely deriving by showing that leads to logical falsity.
Use negation introduction separately for each component, introducing the forbidden logical disjunction in each subproof:
Both temporary assumptions have been discharged before the final conjunction introduction, so
Extract both negations, assume the logical disjunction, and use disjunction elimination to derive logical falsity in either case:
The two case subproofs are siblings, not nested within one another. Therefore
Use conjunction elimination to extract the three inputs, then apply the implication elimination rule three times:
The implication introduction rule closes the only subproof, giving
Read chained logical implications as right-associative. Use the following natural deduction derivation; indentation bars mark nested subproofs and the last column records rules and discharged line ranges:
Each application of the implication introduction rule discharges only its matching temporary assumption. Thus
A common-context sequent version of the disjunction elimination rule is
The second and third premises record exactly the two boxed subproofs of the natural deduction presentation. Their additional case assumptions do not occur in the conclusion: that is assumption discharge. The surrounding context remains throughout. A formulation with different surrounding contexts is equivalent after retaining their union by weakening.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact