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 36859
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 36855 . 2 (((𝜑𝜓) ↔ if-(𝜒, 𝜓, ¬ 𝜑)) ↔ ((((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)) ∧ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))))
2 dfor2 426 . . . . 5 ((𝜑𝜓) ↔ ((𝜑𝜓) → 𝜓))
32imbi2i 325 . . . 4 ((𝜒 → (𝜑𝜓)) ↔ (𝜒 → ((𝜑𝜓) → 𝜓)))
4 impexp 461 . . . 4 (((𝜒 ∧ (𝜑𝜓)) → 𝜓) ↔ (𝜒 → ((𝜑𝜓) → 𝜓)))
5 ax-1 6 . . . . . 6 (𝜓 → (𝜑𝜓))
65adantl 481 . . . . 5 ((𝜒𝜓) → (𝜑𝜓))
76biantrur 526 . . . 4 (((𝜒 ∧ (𝜑𝜓)) → 𝜓) ↔ (((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)))
83, 4, 73bitr2i 287 . . 3 ((𝜒 → (𝜑𝜓)) ↔ (((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)))
9 impexp 461 . . . . 5 (((𝜑𝜓) → 𝜒) ↔ (𝜑 → (𝜓𝜒)))
10 imdi 377 . . . . . 6 ((𝜑 → (𝜓𝜒)) ↔ ((𝜑𝜓) → (𝜑𝜒)))
11 imor 427 . . . . . . . 8 ((𝜑𝜒) ↔ (¬ 𝜑𝜒))
12 orcom 401 . . . . . . . 8 ((¬ 𝜑𝜒) ↔ (𝜒 ∨ ¬ 𝜑))
1311, 12bitri 263 . . . . . . 7 ((𝜑𝜒) ↔ (𝜒 ∨ ¬ 𝜑))
1413imbi2i 325 . . . . . 6 (((𝜑𝜓) → (𝜑𝜒)) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
1510, 14bitri 263 . . . . 5 ((𝜑 → (𝜓𝜒)) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
169, 15bitri 263 . . . 4 (((𝜑𝜓) → 𝜒) ↔ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))
17 pm2.21 119 . . . . . 6 𝜑 → (𝜑𝜓))
1817olcd 407 . . . . 5 𝜑 → (𝜒 ∨ (𝜑𝜓)))
1918biantrur 526 . . . 4 (((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)) ↔ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑))))
2016, 19bitri 263 . . 3 (((𝜑𝜓) → 𝜒) ↔ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑))))
218, 20anbi12i 729 . 2 (((𝜒 → (𝜑𝜓)) ∧ ((𝜑𝜓) → 𝜒)) ↔ ((((𝜒𝜓) → (𝜑𝜓)) ∧ ((𝜒 ∧ (𝜑𝜓)) → 𝜓)) ∧ ((¬ 𝜑 → (𝜒 ∨ (𝜑𝜓))) ∧ ((𝜑𝜓) → (𝜒 ∨ ¬ 𝜑)))))
22 ancom 465 . 2 (((𝜒 → (𝜑𝜓)) ∧ ((𝜑𝜓) → 𝜒)) ↔ (((𝜑𝜓) → 𝜒) ∧ (𝜒 → (𝜑𝜓))))
231, 21, 223bitr2i 287 1 (((𝜑𝜓) ↔ if-(𝜒, 𝜓, ¬ 𝜑)) ↔ (((𝜑𝜓) → 𝜒) ∧ (𝜒 → (𝜑𝜓))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  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:  ifpim3  36860  ifpim4  36862
  Copyright terms: Public domain W3C validator