RatMath ShelfCourse guide

University: upper level

Mathematical logic

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

80%

32 of 40 focal problems use RatMath for a calculation or a substantive step.

Direct calculation
29 · 72.5%
Assisted
3 · 7.5%
Worked by hand
8 · 20%

Using the packages

The logic package makes finite truth tables, countermodels and many proof steps inspectable. Translating ordinary language, choosing a calculus and checking side conditions still require judgment.

Calculator interface

Offer a formula editor with scopes highlighted, a truth-table view with counterexample rows and a proof tree that displays discharged assumptions and fresh-variable conditions.

Packages used in the lessons

@ratmath/logic (31 days) · @ratmath/symbolic (1 days)

How to read the percentages

Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.

Classroom inputs and practical limits

32 of 40 days include a checked executable example. On 10 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.

Ranges across the five units

Days 1–8 · Propositions and translation. Two to six named propositions and short formulas; truth tables have 2ⁿ valuations.

Unit benchmark · logic.countModels, Boolean atoms. Largest passing sample 20 (21.16 ms, 97.1 MiB peak process RSS). Library refusal at 24.

Days 9–16 · Boolean normal forms. Typically 2–6 atoms for truth tables, CNF, DNF or model counting; explicit normal forms can expand exponentially.

Unit benchmark · logic.countModels, Boolean atoms. Largest passing sample 20 (21.16 ms, 97.1 MiB peak process RSS). Library refusal at 24.

Days 17–24 · Proof systems. Natural-deduction and resolution exercises commonly use 3–20 lines and a few premises or assumptions.

Unit benchmark · logic.entails, successive implications. Largest passing sample 128 (20.49 ms, 89.4 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 25–32 · Quantification and models. One or two quantifier alternations and finite structures with about 1–5 elements for examples; arbitrary first-order validity has no decision procedure.

Unit benchmark · logic.entails, successive implications. Largest passing sample 128 (20.49 ms, 89.4 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 33–40 · Modal and metatheoretic reasoning. Short modal formulas and frames with a few worlds; distinguish frame assumptions, quantified validity and bounded countermodel search.

Unit benchmark · logic.entails, successive implications. Largest passing sample 128 (20.49 ms, 89.4 MiB peak process RSS). The runs did not locate a ceiling for this family.

Accuracy notes (2)

Fixed · The 20-atom model count passes. The disjunction of 20 distinct atoms has 2²⁰−1 = 1048575 satisfying assignments. Both runtimes now return that count. Logic also removed the extra bit required by its earlier intermediate mask.

Fixed · The first-order checker rejects variable capture. Equality substitution from x=a and ∀x P(a) to ∀x P(x) now produces errors. A two-element model with x assigned to a and P true only of a refutes the conclusion.

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Propositions and translation

Translate connectives, distinguish implication from converse, and construct truth tables.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 1 Converse error
  2. Day 2 Satisfiability
  3. Day 3 Entailment
  4. Day 4 Tautologies
  5. Day 5 Tautology
  6. Day 6 De Morgan
  7. Day 7 Empty conjunction
  8. Day 8 Counting models
Days 9–16 Boolean normal forms

Normalize formulas, count satisfying assignments and relate truth functions to circuits.

7 direct calculation · 1 assisted · 0 worked by hand

  1. Day 9 Conjunctive normal form
  2. Day 10 Minimal DNF
  3. Day 11 Resolution
  4. Day 12 Circuits
  5. Day 13 SAT as a decision problem
  6. Day 14 Equisatisfiability
  7. Day 15 Resolution invariant
  8. Day 16 Ripple-carry adder
Days 17–24 Proof systems

Derive consequences, diagnose invalid inferences and compare classical and constructive reasoning.

6 direct calculation · 1 assisted · 1 worked by hand

  1. Day 17 Natural deduction
  2. Day 18 Checking a proof
  3. Day 19 Intuitionistic logic
  4. Day 20 Syllogisms
  5. Day 21 Counting valid syllogisms
  6. Day 22 Scope of a hypothesis
  7. Day 23 Vacuous truth
  8. Day 24 A sum proved by induction
Days 25–32 Quantification and models

Interpret formulas in a structure and track bound variables during transformations.

6 direct calculation · 0 assisted · 2 worked by hand

  1. Day 25 First-order validity
  2. Day 26 Swapping quantifiers
  3. Day 27 Prenex normal form
  4. Day 28 Skolem normal form
  5. Day 29 Truth in a structure
  6. Day 30 Finding a model
  7. Day 31 Capture-free substitution
  8. Day 32 Existence versus uniqueness
Days 33–40 Modal and metatheoretic reasoning

Analyze accessibility frames, countermodels, consistency and decidability.

3 direct calculation · 1 assisted · 4 worked by hand

  1. Day 33 Modal logic: K
  2. Day 34 Modal systems T and S5
  3. Day 35 The halting problem
  4. Day 36 Modal duality
  5. Day 37 Semantic compactness
  6. Day 38 Inconsistent assumptions
  7. Day 39 Reflexive frames
  8. Day 40 Soundness versus completeness

Start day 1 →