सभी किताबें

पेशेवर

1 Markets I: The Ecosystem and Exchange-Traded Marketsबाज़ार ऑनलाइन 2 Markets II: Rates, FX and Creditबाज़ार ऑनलाइन 3 Markets III: Commodities, Energy and Cryptoबाज़ार ऑनलाइन 4 Quantitative Methodsविधियाँ ऑनलाइन 5 Derivatives and Volatilityडेरिवेटिव्स ऑनलाइन 6 Rates, Credit, XVA and Riskब्याज दरें, क्रेडिट और जोखिम ऑनलाइन 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosअनुसंधान ऑनलाइन 8 Strategies I: Equities and Futuresरणनीतियाँ ऑनलाइन 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksरणनीतियाँ ऑनलाइन 10 Microstructure and Executionनिष्पादन ऑनलाइन 11 Market Making and High-Frequency Tradingमार्केट मेकिंग ऑनलाइन 12 Machine Learning for Marketsमशीन लर्निंग ऑनलाइन 13 Low-Latency Softwareतकनीक ऑनलाइन 14 Networks, Hardware and Trading Infrastructureतकनीक ऑनलाइन 15 Research, Data and Risk Platformsतकनीक ऑनलाइन 16 The Desk and the Firmफ़र्म ऑनलाइन 17 The Industry: Firms, Roles and Careersकरियर ऑनलाइन 18 Interviews I: Maths, Probability and Speedकरियर ऑनलाइन 19 Interviews II: Markets, Trading Games and the Final Roundकरियर ऑनलाइन 20 Interviews III: Codeकरियर ऑनलाइन
ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

Computer Science · शब्दावली

Natural deduction, introduction rule, elimination rule क्या है?

अन्य नाम: natural deduction · introduction rule · elimination rule

Definition 24.9 University Computer Science — Year 2 · अध्याय 24 — Predicate Logic and Formal Proofs

Natural deduction is the system of rules drawn below. Each connective and quantifier has introduction rules, which conclude a formula with that symbol at its root, and elimination rules, which use such a formula among the premises. The rule raa (reductio ad absurdum) makes it classical logic; without it, the logic is intuitionistic (Exercise 24.11).

 Γ⊢A hyp (A∈Γ)Γ⊢AΓ⊢BΓ⊢A∧B ∧iΓ⊢A∧BΓ⊢A ∧e1Γ⊢A∧BΓ⊢B ∧e2Γ⊢AΓ⊢A∨B ∨i1Γ⊢BΓ⊢A∨B ∨i2Γ⊢A∨BΓ,A⊢CΓ,B⊢CΓ⊢C ∨eΓ,A⊢BΓ⊢A→B →iΓ⊢A→BΓ⊢AΓ⊢B →eΓ,A⊢⊥Γ⊢¬A ¬iΓ⊢AΓ⊢¬AΓ⊢⊥ ¬eΓ⊢⊥Γ⊢A ⊥eΓ,¬A⊢⊥Γ⊢A raaΓ⊢A[y/x]Γ⊢∀x A ∀i (∗)Γ⊢∀x AΓ⊢A[t/x] ∀eΓ⊢A[t/x]Γ⊢∃x A ∃iΓ⊢∃x AΓ,A[y/x]⊢CΓ⊢C ∃e (∗∗)\begin{gather*}{\dfrac{\ }{\Gamma \vdash A}\,\scriptstyle\text{hyp}}\ (A \in \Gamma) \qquad {\dfrac{\Gamma \vdash A \qquad \Gamma \vdash B}{\Gamma \vdash A \wedge B}\,\scriptstyle\text{$\wedge$i}} \qquad {\dfrac{\Gamma \vdash A \wedge B}{\Gamma \vdash A}\,\scriptstyle\text{$\wedge$e$_1$}} \qquad {\dfrac{\Gamma \vdash A \wedge B}{\Gamma \vdash B}\,\scriptstyle\text{$\wedge$e$_2$}} \\ {\dfrac{\Gamma \vdash A}{\Gamma \vdash A \vee B}\,\scriptstyle\text{$\vee$i$_1$}} \\[2ex] {\dfrac{\Gamma \vdash B}{\Gamma \vdash A \vee B}\,\scriptstyle\text{$\vee$i$_2$}} \qquad {\dfrac{\Gamma \vdash A \vee B \qquad \Gamma, A \vdash C \qquad \Gamma, B \vdash C}{\Gamma \vdash C}\,\scriptstyle\text{$\vee$e}} \\ {\dfrac{\Gamma, A \vdash B}{\Gamma \vdash A \to B}\,\scriptstyle\text{$\to$i}} \qquad {\dfrac{\Gamma \vdash A \to B \qquad \Gamma \vdash A}{\Gamma \vdash B}\,\scriptstyle\text{$\to$e}} \qquad {\dfrac{\Gamma, A \vdash \bot}{\Gamma \vdash \neg A}\,\scriptstyle\text{$\neg$i}} \\[2ex] {\dfrac{\Gamma \vdash A \qquad \Gamma \vdash \neg A}{\Gamma \vdash \bot}\,\scriptstyle\text{$\neg$e}} \\ {\dfrac{\Gamma \vdash \bot}{\Gamma \vdash A}\,\scriptstyle\text{$\bot$e}} \qquad {\dfrac{\Gamma, \neg A \vdash \bot}{\Gamma \vdash A}\,\scriptstyle\text{raa}} \qquad {\dfrac{\Gamma \vdash A[y/x]}{\Gamma \vdash \forall x\, A}\,\scriptstyle\text{$\forall$i}}\ (*) \\[2ex] {\dfrac{\Gamma \vdash \forall x\, A}{\Gamma \vdash A[t/x]}\,\scriptstyle\text{$\forall$e}} \\ {\dfrac{\Gamma \vdash A[t/x]}{\Gamma \vdash \exists x\, A}\,\scriptstyle\text{$\exists$i}} \qquad {\dfrac{\Gamma \vdash \exists x\, A \qquad \Gamma, A[y/x] \vdash C}{\Gamma \vdash C}\,\scriptstyle\text{$\exists$e}}\ (**)\end{gather*}
The rules of natural deduction; tt is any term. Side conditions: (∗)(*) yy is free neither in Γ\Gamma nor in ∀x A\forall x\, A; (∗∗)(**) yy is free neither in Γ\Gamma, nor in ∃x A\exists x\, A, nor in CC.

उदाहरण

Example 24.10 (Modus ponens and the syllogism)

From P→QP \to Q and PP, the rule →\toe gives QQ: this is modus ponens. From P→QP \to Q and Q→RQ \to R the conclusion P→RP \to R needs a hypothesis that is later discharged: under the extra hypothesis PP, two uses of →\toe give RR, and →\toi turns “RR under PP” into P→RP \to R with PP no longer among the hypotheses. With Γ={P→Q, Q→R}\Gamma = \{P \to Q,\ Q \to R\}:

 P→Q,P⊢P→Q hyp P→Q,P⊢P hypP→Q,P⊢Q →e{\dfrac{{\dfrac{\ }{P \to Q, P \vdash P \to Q}\,\scriptstyle\text{hyp}} \qquad {\dfrac{\ }{P \to Q, P \vdash P}\,\scriptstyle\text{hyp}}}{P \to Q, P \vdash Q}\,\scriptstyle\text{$\to$e}}  Γ,P⊢Q→R hyp Γ,P⊢P→Q hyp Γ,P⊢P hypΓ,P⊢Q →eΓ,P⊢R →eΓ⊢P→R →i{\dfrac{{\dfrac{{\dfrac{\ }{\Gamma, P \vdash Q \to R}\,\scriptstyle\text{hyp}} \qquad {\dfrac{{\dfrac{\ }{\Gamma, P \vdash P \to Q}\,\scriptstyle\text{hyp}} \qquad {\dfrac{\ }{\Gamma, P \vdash P}\,\scriptstyle\text{hyp}}}{\Gamma, P \vdash Q}\,\scriptstyle\text{$\to$e}}}{\Gamma, P \vdash R}\,\scriptstyle\text{$\to$e}}}{\Gamma \vdash P \to R}\,\scriptstyle\text{$\to$i}}

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}}

अध्याय में पढ़ें →