Logic Propositions and Proof Checker
Truth tables for any propositional formula, argument validity with critical rows, equivalence checks and a checker for proofs using MP, MT, HS, DS and other rules.
ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ
…
วิธีทำ
- 1Build a truth table
Type a formula in the Truth table tab and read the type and the rows.
- 2Test an argument
In Argument validity list the premises and the conclusion.
- 3Compare formulas
In Equivalence type two formulas or press a law button.
- 4Write a proof
In Proof checker press Start from the premises, then add lines with a rule and cited line numbers.
- 5Read the checks
Each line shows whether it follows; the status says when the conclusion is reached.
- 6Practise
Practice asks about validity and equivalence of common forms.
เกี่ยวกับเครื่องมือนี้
Propositional logic studies statements that are true or false and the connectives that join them: not, and, or, if-then and if-and-only-if. This tool covers the four tasks of an introductory logic or discrete mathematics course. The truth table tab evaluates any formula on every combination of truth values and says whether it is a tautology, a contradiction or neither. The validity tab takes premises and a conclusion, highlights the critical rows where every premise is true, and either confirms the argument is valid or shows a counterexample. The equivalence tab compares two formulas row by row, with buttons for De Morgan's laws, the contrapositive, material implication and the converse. The proof checker lets you write a formal proof line by line, choosing a rule such as modus ponens, modus tollens, hypothetical or disjunctive syllogism, conjunction, simplification, addition, constructive dilemma or a replacement, and citing earlier lines; each line is checked and the tool says when the conclusion has been reached.
Connectives
¬p is true when p is false. p ∧ q is true only when both are true. p ∨ q is true when at least one is true. p → q is false only when p is true and q is false. p ↔ q is true when p and q have the same value. With n variables a truth table has 2ⁿ rows.
Validity
An argument is valid if the conclusion is true in every row where all premises are true. One row with true premises and a false conclusion is a counterexample and makes it invalid. Modus ponens (p → q, p, so q) is valid; affirming the consequent (p → q, q, so p) is not, as the row p false, q true shows.
Formal proofs
A proof lists formulas, each a premise or a consequence of earlier lines by a rule of inference. Rules of inference, such as modus tollens (p → q and ¬q give ¬p), are checked by their pattern. Replacement rules, such as De Morgan's laws or double negation, may be applied to a whole line and are accepted when the new line is logically equivalent to the cited one.
Worked example
Premises p → q, q → r and ¬r; conclusion ¬p. Line 4: p → r by hypothetical syllogism from lines 1 and 2. Line 5: ¬p by modus tollens from lines 4 and 3. The truth table confirms the argument is valid: the only row with all premises true has p, q and r all false, and there ¬p is true.
Limits
Only propositional logic is covered; predicates and quantifiers (for all, there exists) are not part of this tool. Replacement rules are accepted for any logically equivalent rewriting, which is more generous than courses that require naming the specific law. Truth tables are limited by size; more than about eight variables becomes slow. It is a study aid.
ตัวอย่างพร้อมวิธีทำ
p → q, q → r, ¬r ⊢ ¬p: line 4 p → r (HS 1, 2), line 5 ¬p (MT 4, 3); valid.
สรุปสั้น ๆ
- หมวดหมู่: คณิตศาสตร์และวิทยาศาสตร์
- ทำงานในเบราว์เซอร์ ไม่ต้องสมัคร ไม่ต้องอัปโหลด
- ข้อมูลที่คุณกรอกอยู่บนอุปกรณ์ของคุณ
- มีภาษาอังกฤษ
- ตรวจสอบเนื้อหาล่าสุด:
- แหล่งข้อมูลทางการ: OpenStax Contemporary Mathematics, chapter 2: logic, truth tables, equivalent statements and validity of arguments; rules of inference as in Copi, Introduction to Logic
คำถามที่พบบ่อย
How do I type the connectives?
Use ~ or ¬ for not, & or ∧ for and, | or ∨ for or, -> for implies and <-> for if and only if, or press the symbol buttons.
When is an argument valid?
When no row of the truth table makes all premises true and the conclusion false.
What is a counterexample?
An assignment of truth values that makes every premise true and the conclusion false. It proves the argument invalid.
Are p → q and q → p equivalent?
No. The converse differs when p is false and q is true. The contrapositive ¬q → ¬p is equivalent to p → q.
Which rules can the proof checker use?
Premise, modus ponens, modus tollens, hypothetical and disjunctive syllogism, conjunction, simplification, addition, constructive dilemma and replacement by an equivalent formula.
Can I export a truth table?
Yes. Truth table CSV saves the table, and Print proof prints the proof with each line's check.
