Discrete math help that checks every line of the proof.

Paste the statement and your proof. Check my work stops at the first line that does not follow and leaves the repair to you.

5 free questions a day. No account, no card.

A proof in discrete math is graded line by line. One step that does not follow from the step before it costs the whole proof, and it is the hardest kind of mistake to see in your own work. Check my work reads your proof the way a grader does and stops at the first line that breaks.

Check my work on an induction proof

A student proves that 1 + 3 + 5 + ... + (2n - 1) = n² for every positive integer n.

  1. Base case: n = 1. The left side is 1 and the right side is 1² = 1. True.
  2. Inductive hypothesis: assume 1 + 3 + ... + (2k - 1) = k² for some k ≥ 1.
  3. Inductive step: adding the next term, 2k - 1, gives k² + 2k - 1.

Check my work answers with line 3. The next term after 2k - 1 is the (k + 1)th odd number, 2(k + 1) - 1 = 2k + 1, and line 3 added the kth term a second time. It stops there. The student redoes the line: k² + 2k + 1 = (k + 1)², which is the statement for k + 1, and the proof is complete.

A worked counting problem

How many 5-card hands from a standard 52-card deck contain exactly 2 hearts?

  1. Order does not matter in a hand and no card repeats, so every count is a combination.
  2. Choose the 2 hearts from 13: C(13, 2) = 13 × 12 ÷ 2 = 78.
  3. Choose the other 3 cards from the 39 that are not hearts: C(39, 3) = 39 × 38 × 37 ÷ 6 = 9,139.
  4. Each choice of hearts pairs with each choice of the rest, so multiply: 78 × 9,139 = 712,842 hands.

Check: there are C(52, 5) = 2,598,960 hands in all, and 712,842 ÷ 2,598,960 is about 0.274, so a little more than one hand in four has exactly two hearts.

Other ways to use it

  • Hint. Only the next move on a proof you are stuck on, such as which case to split or what to assume for contradiction. The proof stays yours to write.
  • Explain it back. Write what the pigeonhole principle says in your own words and it grades the explanation and asks about the part you missed.
  • Explain. Numbered steps for a truth table, a recurrence or a graph question, with the rule behind each step and a way to check the result.
  • Quiz me. One graded question at a time on quantifiers, set identities or counting, with a score after five.

Next to discrete math

Probability questions that turn into distributions and hypothesis tests are on the statistics page. Recursion and algorithm assignments written in code are on the coding page.

Already wrote the proof? Check my proof reads it in order and stops at the first claim that is not justified, with no sign-up.

Keep going

Try one of these.

Each one opens the chat with the question in the box. Change it to yours.

Questions.

Something else? Email hello@nerdly.us

The usual Discrete Mathematics course for computer science and math majors: propositional and predicate logic, sets and functions, proof techniques, induction, recursion, counting and combinations, probability, relations, and graphs and trees.

Yes. Pick Check my work and paste the statement with your proof. It reads the proof line by line, quotes the first line that does not follow from the ones before it, says which rule it breaks, and stops so you write the repair.

Words work: "for all x", "there exists", "not", "and", "or", "implies". So do the plain stand-ins most courses accept, such as ~p, p ^ q, p v q and p -> q. Say which one your course uses and it answers in the same notation.

In Hint mode it suggests a method and why it fits, for example contradiction for "there is no largest prime" or induction for a sum over 1 to n, and leaves the proof to you.

Yes. It says whether order matters and whether repeats are allowed before it picks permutations or combinations, so you can reuse the decision on the next problem.

If it fits in one message, yes; a long proof can be split into parts. Each message is one of the 5 free questions a day with no account.

Proof due tomorrow?

5 questions a day, free. No account, no card, nothing to install.

Ask a question
Join on TelegramHelp