Users' Mathboxes Mathbox for Richard Penner < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ifpid1g Structured version   Visualization version   GIF version

Theorem ifpid1g 39853
Description: Restate wff as conditional logic operator. (Contributed by RP, 20-Apr-2020.)
Assertion
Ref Expression
ifpid1g ((𝜑 ↔ if-(𝜑, 𝜓, 𝜒)) ↔ ((𝜒𝜑) ∧ (𝜑𝜓)))

Proof of Theorem ifpid1g
StepHypRef Expression
1 ifpidg 39850 . 2 ((𝜑 ↔ if-(𝜑, 𝜓, 𝜒)) ↔ ((((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)) ∧ ((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒)))))
2 ancom 463 . 2 (((((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)) ∧ ((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒)))) ↔ (((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓))))
3 pm4.25 902 . . . . 5 (𝜑 ↔ (𝜑𝜑))
43imbi2i 338 . . . 4 ((𝜒𝜑) ↔ (𝜒 → (𝜑𝜑)))
5 orc 863 . . . . 5 (𝜑 → (𝜑𝜒))
65biantru 532 . . . 4 ((𝜒 → (𝜑𝜑)) ↔ ((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))))
74, 6bitr2i 278 . . 3 (((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))) ↔ (𝜒𝜑))
8 pm4.24 566 . . . . 5 (𝜑 ↔ (𝜑𝜑))
98imbi1i 352 . . . 4 ((𝜑𝜓) ↔ ((𝜑𝜑) → 𝜓))
10 simpl 485 . . . . 5 ((𝜑𝜓) → 𝜑)
1110biantrur 533 . . . 4 (((𝜑𝜑) → 𝜓) ↔ (((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)))
129, 11bitr2i 278 . . 3 ((((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)) ↔ (𝜑𝜓))
137, 12anbi12i 628 . 2 ((((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓))) ↔ ((𝜒𝜑) ∧ (𝜑𝜓)))
141, 2, 133bitri 299 1 ((𝜑 ↔ if-(𝜑, 𝜓, 𝜒)) ↔ ((𝜒𝜑) ∧ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wo 843  if-wif 1057
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ifp 1058
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator