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 36858
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 36855 . 2 ((𝜑 ↔ if-(𝜑, 𝜓, 𝜒)) ↔ ((((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)) ∧ ((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒)))))
2 ancom 465 . 2 (((((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)) ∧ ((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒)))) ↔ (((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓))))
3 pm4.25 536 . . . . 5 (𝜑 ↔ (𝜑𝜑))
43imbi2i 325 . . . 4 ((𝜒𝜑) ↔ (𝜒 → (𝜑𝜑)))
5 orc 399 . . . . 5 (𝜑 → (𝜑𝜒))
65biantru 525 . . . 4 ((𝜒 → (𝜑𝜑)) ↔ ((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))))
74, 6bitr2i 264 . . 3 (((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))) ↔ (𝜒𝜑))
8 pm4.24 673 . . . . 5 (𝜑 ↔ (𝜑𝜑))
98imbi1i 338 . . . 4 ((𝜑𝜓) ↔ ((𝜑𝜑) → 𝜓))
10 simpl 472 . . . . 5 ((𝜑𝜓) → 𝜑)
1110biantrur 526 . . . 4 (((𝜑𝜑) → 𝜓) ↔ (((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)))
129, 11bitr2i 264 . . 3 ((((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓)) ↔ (𝜑𝜓))
137, 12anbi12i 729 . 2 ((((𝜒 → (𝜑𝜑)) ∧ (𝜑 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜑) ∧ ((𝜑𝜑) → 𝜓))) ↔ ((𝜒𝜑) ∧ (𝜑𝜓)))
141, 2, 133bitri 285 1 ((𝜑 ↔ if-(𝜑, 𝜓, 𝜒)) ↔ ((𝜒𝜑) ∧ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wo 382  wa 383  if-wif 1006
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 196  df-or 384  df-an 385  df-ifp 1007
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator