جميع الكتب

مهني

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المسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

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

اقرأ في الفصل →