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

Theorem ifpim23g 39854
Description: Restate implication as conditional logic operator. (Contributed by RP, 25-Apr-2020.)
Assertion
Ref Expression
ifpim23g (((𝜑𝜓) ↔ if-(𝜒, 𝜓, ¬ 𝜑)) ↔ (((𝜑𝜓) → 𝜒) ∧ (𝜒 → (𝜑𝜓))))

Proof of Theorem ifpim23g
StepHypRef Expression
1 ifpidg 39850 . 2 (((𝜑𝜓) ↔ if-(𝜒, 𝜓, ¬ 𝜑)) ↔ ((((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)) ∧ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))))
2 dfor2 898 . . . . 5 ((𝜑𝜓) ↔ ((𝜑𝜓) → 𝜓))
32imbi2i 338 . . . 4 ((𝜒 → (𝜑𝜓)) ↔ (𝜒 → ((𝜑𝜓) → 𝜓)))
4 impexp 453 . . . 4 (((𝜒 ∧ (𝜑𝜓)) → 𝜓) ↔ (𝜒 → ((𝜑𝜓) → 𝜓)))
5 ax-1 6 . . . . . 6 (𝜓 → (𝜑𝜓))
65adantl 484 . . . . 5 ((𝜒𝜓) → (𝜑𝜓))
76biantrur 533 . . . 4 (((𝜒 ∧ (𝜑𝜓)) → 𝜓) ↔ (((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)))
83, 4, 73bitr2i 301 . . 3 ((𝜒 → (𝜑𝜓)) ↔ (((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)))
9 impexp 453 . . . . 5 (((𝜑𝜓) → 𝜒) ↔ (𝜑 → (𝜓𝜒)))
10 imdi 393 . . . . . 6 ((𝜑 → (𝜓𝜒)) ↔ ((𝜑𝜓) → (𝜑𝜒)))
11 imor 849 . . . . . . . 8 ((𝜑𝜒) ↔ (¬ 𝜑𝜒))
12 orcom 866 . . . . . . . 8 ((¬ 𝜑𝜒) ↔ (𝜒 ∨ ¬ 𝜑))
1311, 12bitri 277 . . . . . . 7 ((𝜑𝜒) ↔ (𝜒 ∨ ¬ 𝜑))
1413imbi2i 338 . . . . . 6 (((𝜑𝜓) → (𝜑𝜒)) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
1510, 14bitri 277 . . . . 5 ((𝜑 → (𝜓𝜒)) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
169, 15bitri 277 . . . 4 (((𝜑𝜓) → 𝜒) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
17 pm2.21 123 . . . . . 6 𝜑 → (𝜑𝜓))
1817olcd 870 . . . . 5 𝜑 → (𝜒 ∨ (𝜑𝜓)))
1918biantrur 533 . . . 4 (((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)) ↔ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑))))
2016, 19bitri 277 . . 3 (((𝜑𝜓) → 𝜒) ↔ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑))))
218, 20anbi12i 628 . 2 (((𝜒 → (𝜑𝜓)) ∧ ((𝜑𝜓) → 𝜒)) ↔ ((((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)) ∧ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))))
22 ancom 463 . 2 (((𝜒 → (𝜑𝜓)) ∧ ((𝜑𝜓) → 𝜒)) ↔ (((𝜑𝜓) → 𝜒) ∧ (𝜒 → (𝜑𝜓))))
231, 21, 223bitr2i 301 1 (((𝜑𝜓) ↔ if-(𝜒, 𝜓, ¬ 𝜑)) ↔ (((𝜑𝜓) → 𝜒) ∧ (𝜒 → (𝜑𝜓))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  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:  ifpim3  39855  ifpim4  39857
  Copyright terms: Public domain W3C validator