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 41000
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 40996 . 2 (((𝜑𝜓) ↔ if-(𝜒, 𝜓, ¬ 𝜑)) ↔ ((((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)) ∧ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))))
2 dfor2 898 . . . . 5 ((𝜑𝜓) ↔ ((𝜑𝜓) → 𝜓))
32imbi2i 335 . . . 4 ((𝜒 → (𝜑𝜓)) ↔ (𝜒 → ((𝜑𝜓) → 𝜓)))
4 impexp 450 . . . 4 (((𝜒 ∧ (𝜑𝜓)) → 𝜓) ↔ (𝜒 → ((𝜑𝜓) → 𝜓)))
5 ax-1 6 . . . . . 6 (𝜓 → (𝜑𝜓))
65adantl 481 . . . . 5 ((𝜒𝜓) → (𝜑𝜓))
76biantrur 530 . . . 4 (((𝜒 ∧ (𝜑𝜓)) → 𝜓) ↔ (((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)))
83, 4, 73bitr2i 298 . . 3 ((𝜒 → (𝜑𝜓)) ↔ (((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)))
9 impexp 450 . . . . 5 (((𝜑𝜓) → 𝜒) ↔ (𝜑 → (𝜓𝜒)))
10 imdi 390 . . . . . 6 ((𝜑 → (𝜓𝜒)) ↔ ((𝜑𝜓) → (𝜑𝜒)))
11 imor 849 . . . . . . . 8 ((𝜑𝜒) ↔ (¬ 𝜑𝜒))
12 orcom 866 . . . . . . . 8 ((¬ 𝜑𝜒) ↔ (𝜒 ∨ ¬ 𝜑))
1311, 12bitri 274 . . . . . . 7 ((𝜑𝜒) ↔ (𝜒 ∨ ¬ 𝜑))
1413imbi2i 335 . . . . . 6 (((𝜑𝜓) → (𝜑𝜒)) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
1510, 14bitri 274 . . . . 5 ((𝜑 → (𝜓𝜒)) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
169, 15bitri 274 . . . 4 (((𝜑𝜓) → 𝜒) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
17 pm2.21 123 . . . . . 6 𝜑 → (𝜑𝜓))
1817olcd 870 . . . . 5 𝜑 → (𝜒 ∨ (𝜑𝜓)))
1918biantrur 530 . . . 4 (((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)) ↔ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑))))
2016, 19bitri 274 . . 3 (((𝜑𝜓) → 𝜒) ↔ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑))))
218, 20anbi12i 626 . 2 (((𝜒 → (𝜑𝜓)) ∧ ((𝜑𝜓) → 𝜒)) ↔ ((((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)) ∧ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))))
22 ancom 460 . 2 (((𝜒 → (𝜑𝜓)) ∧ ((𝜑𝜓) → 𝜒)) ↔ (((𝜑𝜓) → 𝜒) ∧ (𝜒 → (𝜑𝜓))))
231, 21, 223bitr2i 298 1 (((𝜑𝜓) ↔ if-(𝜒, 𝜓, ¬ 𝜑)) ↔ (((𝜑𝜓) → 𝜒) ∧ (𝜒 → (𝜑𝜓))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  if-wif 1059
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 206  df-an 396  df-or 844  df-ifp 1060
This theorem is referenced by:  ifpim3  41001  ifpim4  41003
  Copyright terms: Public domain W3C validator