MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  df-ifp Structured version   Visualization version   GIF version

Definition df-ifp 1080
Description: Definition of the conditional operator for propositions. The expression if-(𝜑, 𝜓, 𝜒) is read "if 𝜑 then 𝜓 else 𝜒". See dfifp2 1081, dfifp3 1082, dfifp4 1083, dfifp5 1084, dfifp6 1085 and dfifp7 1086 for alternate definitions.

This definition (in the form of dfifp2 1081) appears in Section II.24 of [Church] p. 129 (Definition D12 page 132), where it is called "conditioned disjunction". Church's [𝜓, 𝜑, 𝜒] corresponds to our if-(𝜑, 𝜓, 𝜒) (note the permutation of the first two variables).

This form was chosen as the definition rather than dfifp2 1081 for compatibility with intuitionistic logic development: with this form, it is clear that if-(𝜑, 𝜓, 𝜒) implies decidability of 𝜑, which is most often what is wanted.

Church uses the conditional operator as an intermediate step to prove completeness of some systems of connectives. The first result is that the system {if-, ⊤, ⊥} is complete: for the induction step, consider a formula of n+1 variables; single out one variable, say 𝜑; when one sets 𝜑 to True (resp. False), then what remains is a formula of n variables, so by the induction hypothesis it is equivalent to a formula using only the connectives if-, ⊤, ⊥, say 𝜓 (resp. 𝜒); therefore, the formula if-(𝜑, 𝜓, 𝜒) is equivalent to the initial formula of n+1 variables. Now, since { → , ¬ } and similar systems suffice to express the connectives if-, ⊤, ⊥, they are also complete.

(Contributed by BJ, 22-Jun-2019.)

Assertion
Ref Expression
df-ifp (if-(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒)))

Detailed syntax breakdown of Definition df-ifp
StepHypRef Expression
1 wph . . 3 wff 𝜑
2 wps . . 3 wff 𝜓
3 wch . . 3 wff 𝜒
41, 2, 3wif 1079 . 2 wff if-(𝜑, 𝜓, 𝜒)
51, 2wa 401 . . 3 wff (𝜑 ∧ 𝜓)
61wn 3 . . . 4 wff ¬ 𝜑
76, 3wa 401 . . 3 wff (¬ 𝜑 ∧ 𝜒)
85, 7wo 861 . 2 wff ((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒))
94, 8wb 209 1 wff (if-(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒)))
Colors of variables:    wff setvar class
This definition is used by:  dfifp2  1081  dfifp6  1085  ifpdfbi  1087  ifpor  1090  casesifp  1095  1fpid3  1099  wlk1walk  30364  upgriswlk  30366  bj-df-ifc  37745  bj-dfif  37746  bj-ififc  37747  wl-ifp-ncond1  38738  wl-ifpimpr  38740  ifpdfan  44868  ifpnot23  44880  upgrwlkupwlk  49649
  Copyright terms: Public domain W3C validator