Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Sequent, inference rule, proof tree?

Ook bekend als: sequent · inference rule · proof tree

Definition 24.8 University Computer Science — Year 2 · Hoofdstuk 24 — Predicate Logic and Formal Proofs

A sequent Γ⊢A\Gamma \vdash A is a finite set of formulas Γ\Gamma, the hypotheses, and a formula AA, the conclusion; it claims that AA follows from Γ\Gamma. An inference rule gives a sequent, its conclusion, from zero or more sequents, its premises, possibly under a side condition. A proof tree is a tree of sequents in which every node follows from its children by a rule; it proves the sequent at its root. One writes Γ⊢A\Gamma \vdash A also for “some proof tree proves Γ⊢A\Gamma \vdash A”.

Voorbeelden

Example 24.11 (No counterexample)

The sequent ⊢(P→Q)→¬(P∧¬Q)\vdash (P \to Q) \to \neg(P \wedge \neg Q) says that an implication has no counterexample. Read from the bottom: to prove an implication, assume its left side; to prove a negation, assume the formula and reach ⊥\bot. With Δ={P→Q, P∧¬Q}\Delta = \{P \to Q,\ P \wedge \neg Q\}:

 Δ⊢P→Q hyp Δ⊢P∧¬Q hypΔ⊢P ∧e1Δ⊢Q →e Δ⊢P∧¬Q hypΔ⊢¬Q ∧e2Δ⊢⊥ ¬eP→Q⊢¬(P∧¬Q) ¬i⊢(P→Q)→¬(P∧¬Q) →i{\dfrac{{\dfrac{{\dfrac{{\dfrac{{\dfrac{\ }{\Delta \vdash P \to Q}\,\scriptstyle\text{hyp}} \qquad {\dfrac{{\dfrac{\ }{\Delta \vdash P \wedge \neg Q}\,\scriptstyle\text{hyp}}}{\Delta \vdash P}\,\scriptstyle\text{$\wedge$e$_1$}}}{\Delta \vdash Q}\,\scriptstyle\text{$\to$e}} \qquad {\dfrac{{\dfrac{\ }{\Delta \vdash P \wedge \neg Q}\,\scriptstyle\text{hyp}}}{\Delta \vdash \neg Q}\,\scriptstyle\text{$\wedge$e$_2$}}}{\Delta \vdash \bot}\,\scriptstyle\text{$\neg$e}}}{P \to Q \vdash \neg(P \wedge \neg Q)}\,\scriptstyle\text{$\neg$i}}}{\vdash (P \to Q) \to \neg(P \wedge \neg Q)}\,\scriptstyle\text{$\to$i}}

Lees in het hoofdstuk →