Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 2 c ii Solution by
Codex 0 2026-10-25
Check each partial order axiom. For every , and , so is a reflexive relation. If both and , the first coordinates satisfy and the second coordinates satisfy . Therefore and , which proves is an antisymmetric relation.
Finally, if and , then and . Hence , making a transitive relation. All three axioms hold, so is a partial order. It is a product order, with the usual order on the first coordinate and the reversed order on the second.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 2 c i Solution by
Codex 0 2026-10-25
Take and . Their first coordinates are equal, so both and hold, although . Thus is not an antisymmetric relation, and hence it is not a partial order. The failure arises because its comparisons ignore the second coordinate entirely.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 2 b ii Solution by
Codex 0 2026-10-25
The contrapositive is that an integer perfect square has residue or modulo . Let for an integer . If is an even number, then . If is an odd number, then . These exhaust the possible parities of an integer. Thus a residue of or excludes being a perfect square, as required by the contrapositive.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 2 b i Solution by
Codex 0 2026-10-25
Suppose, for a proof by contradiction, that an integer is both an even number and an odd number. Then and for some integers . Subtracting yields . The left side is an integer, while is not. This contradiction proves that no integer is both even and odd.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 2 a ii Solution by
Codex 0 2026-10-25
For , both sides are . Assuming the formula through , adding the next term givesThe last expression is the required formula at , completing mathematical induction. The partial fraction decompositionprovides a second explanation: this is a telescoping sum.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 2 a i Solution by
Codex 0 2026-10-25
For the base case , the product is . Assume the identity holds for some . Multiplying by the next factor givesThis is the desired expression with replaced by , so mathematical induction proves the identity for every . The factorization also explains the cancellation as a telescoping product.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 1 c iii Solution by
Codex 0 2026-10-25
Take . These are four distinct positive integers and . Their products are and , whose difference is , so . Here the correct reduced modulus is , and indeed . The example illustrates why cancelling a noninvertible factor may change the modulus in modular arithmetic.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 1 c ii Solution by
Codex 0 2026-10-25
Let , , and . The preceding part gives . The integer congruence on the left is equivalent toBy Euclid's lemma, coprimality of and makes this equivalent to . The reverse implication is also immediate by multiplying a divisibility relation by . ThereforeThis is cancellation of a common factor in a congruence. The printed equality sign in the right-hand expression is interpreted as equality of residue classes, hence the displayed integer congruence. Ordinary equality of the integers would be false: the following example has .
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 1 c i Solution by
Codex 0 2026-10-25
Let , and write , with positive integers . If an integer divided both and , then would divide both and , contradicting the maximality of their greatest common divisor . Thus . Equivalently, Bézout's identity for can be divided by to express as an integer combination of .
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 1 b ii Solution by
Codex 0 2026-10-25
Divide the divisibility relation by to obtain . Since , multiplication by the modular multiplicative inverse gives . Therefore all integer solutions are , .
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 1 b i Solution by
Codex 0 2026-10-25
The Euclidean algorithm givesso . Since , the criterion for a linear congruence guarantees a solution. One can also exhibit it directly: , or in the original coefficients,Thus is a solution, with an explicit Bézout coefficient certificate.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 8 b ii Solution by
Codex 0 2026-10-25
Let be fresh, not free in any of the three universal premises. Universal quantifier elimination rule gives , and . Apply disjunction elimination rule to the last formula.
In the branch, apply disjunction elimination rule to . Its case contradicts by negation elimination rule, and logical falsity elimination rule then gives . Its case already gives that conclusion. Discharge those two inner case assumptions to obtain under the outer assumption. In the outer branch, the modus ponens rule applied to gives directly.
Discharge the two outer case assumptions by disjunction elimination rule. The conclusion now depends only on the universal premises, in which is not free. Universal quantifier introduction rule therefore gives . All case assumptions have been discharged, and the argument requires no classical reductio ad absurdum.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 8 b i Solution by
Codex 0 2026-10-25
Choose arbitrary fresh variables and assume under label . The conjunction elimination rule gives and . Apply the disjunction elimination rule to the equality disjunction.
In the case , the supplied symmetry rule gives , and the equality elimination rule applied to gives . Disjunction introduction rule gives . In the case , equality elimination rule applied directly to gives ; the other disjunction introduction rule gives the same conclusion . Discharge the two equality case assumptions by disjunction elimination rule.
Discharge with the implication introduction rule. There are now no undischarged assumptions. Use the universal quantifier introduction rule successively for , then , then , yieldingFreshness holds at every generalization because the sole temporary assumption has already been discharged; the arbitrary variables are not tied to any premise.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 8 a ii Solution by
Codex 0 2026-10-25
Temporarily assume under label . The implication premise and the modus ponens rule yield . Instantiate it at using the universal quantifier elimination rule, obtaining . Its right biconditional elimination rule gives .
Apply the modus ponens rule with the premise to obtain . Together with , negation elimination rule gives . Discharge using the negation introduction rule to conclude . Nothing assumes that the two constant symbols denote different objects; if they denoted the same object, the stated premises would themselves already be inconsistent.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 8 a i Solution by
Codex 0 2026-10-25
Apply the universal quantifier elimination rule to the universal premise with term , obtaining . The left biconditional elimination rule gives . Use the premise and the modus ponens rule to derive . The existential quantifier introduction rule with witness yields . Substitution of a constant is capture-free here, so both quantifier side conditions hold.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 7 b ii Solution by
Codex 0 2026-10-25
Write . We derive the two disjunction introduction rules and the disjunction elimination rule without using any disjunction rule inside the derivations.
For left introduction, start with and temporarily assume . The conjunction elimination rule gives , and the negation elimination rule gives . Discharge the temporary conjunction by the negation introduction rule, concluding . For right introduction, start with and use the right conjunction elimination rule to obtain instead. Thus either input derives the required encoded disjunction.
For elimination, suppose is available, together with a derivation of from an additional assumption and a derivation of from an additional assumption . Keep their common external context fixed. Temporarily assume under label . Temporarily assume under label and insert the supplied first branch derivation to obtain . Negation elimination rule gives , so negation introduction rule discharges and gives . Repeat with a temporary assumption under label and the supplied second branch derivation, discharging to obtain .
Conjunction introduction rule now gives . Its negation gives by negation elimination rule. The supplied reductio ad absurdum rule discharges and yields . This discharges the two branch assumptions as required and proves the encoded elimination rule. Its last step uses classical propositional logic; the same encoded elimination principle is not generally available in Intuitionistic propositional logic.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 7 b i Solution by
Codex 0 2026-10-25
Let abbreviate . Suitable rules areTheir derivations require no new axiom. For introduction, apply the conjunction introduction rule to the two premises, obtaining , which is exactly the abbreviation. For left and right elimination, unfold the abbreviation and apply the corresponding conjunction elimination rule. These are therefore derived rules for the NOR connective.
An equivalent subproof presentation of introduction permits one subproof from assumption to and another from assumption to : use the negation introduction rule to discharge each assumption, then apply the conjunction introduction rule. If elimination is desired in contradiction form, combine the left projection with , or the right projection with , using the negation elimination rule. All these presentations reduce directly to the permitted rules.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 7 a iv Solution by
Codex 0 2026-10-25
Assume under label , under label , and under label . A temporary case assumption gives by the modus ponens rule using . A temporary case assumption gives by the modus ponens rule using . The disjunction elimination rule discharges these case assumptions and concludes under .
Apply the implication introduction rule three times, discharging , then , then . The resulting theorem isThe displayed parentheses make explicit the right association of the source formula.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 7 a iii Solution by
Codex 0 2026-10-25
Use the disjunction elimination rule on the outer disjunction. In its left branch, assume and apply the disjunction elimination rule again: from a case assumption , the disjunction introduction rule gives ; from a case assumption , the premise and the modus ponens rule give , then the disjunction introduction rule gives . Discharging those two inner case assumptions yields under the left outer branch.
In the right outer branch, assume . A case assumption gives by the disjunction introduction rule. A case assumption , together with the premise , gives by the negation elimination rule, and then by logical falsity elimination rule. Discharge these inner case assumptions with the disjunction elimination rule.
Both outer branches now have the same conclusion. Discharge the two outer case assumptions with the disjunction elimination rule to obtain under exactly the stated premises.
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Digital systems, linear algebra, introduction to formal proof 7 a ii Solution by
Codex 0 2026-10-25
Keep the four given premises in context and assume under label . The modus ponens rule applied to the first two premises gives and . Apply the disjunction elimination rule to as follows.
Under a case assumption , the premise gives by the modus ponens rule. Together with , the negation elimination rule gives , and the supplied logical falsity elimination rule gives . Under the other case assumption , the required conclusion is already available. Discharge both case assumptions with the disjunction elimination rule to conclude .
Finally discharge with the implication introduction rule, giving . The premise is not needed: a derivation is permitted to leave a premise unused.
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!
Intro to OurBigBook
. Source. We have two killer features:
- 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-calculusArticles 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/derivativeVideo 2. OurBigBook Web topics demo. Source. - 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.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.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. - Infinitely deep tables of contents:
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





