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

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

Proof of Theorem ifpidg
StepHypRef Expression
1 dfifp4 1064 . . 3 (if-(𝜑, 𝜓, 𝜒) ↔ ((¬ 𝜑𝜓) ∧ (𝜑𝜒)))
21bibi2i 338 . 2 ((𝜃 ↔ if-(𝜑, 𝜓, 𝜒)) ↔ (𝜃 ↔ ((¬ 𝜑𝜓) ∧ (𝜑𝜒))))
3 dfbi2 475 . . 3 ((𝜃 ↔ ((¬ 𝜑𝜓) ∧ (𝜑𝜒))) ↔ ((𝜃 → ((¬ 𝜑𝜓) ∧ (𝜑𝜒))) ∧ (((¬ 𝜑𝜓) ∧ (𝜑𝜒)) → 𝜃)))
4 imor 850 . . . . 5 ((𝜃 → ((¬ 𝜑𝜓) ∧ (𝜑𝜒))) ↔ (¬ 𝜃 ∨ ((¬ 𝜑𝜓) ∧ (𝜑𝜒))))
5 ordi 1003 . . . . 5 ((¬ 𝜃 ∨ ((¬ 𝜑𝜓) ∧ (𝜑𝜒))) ↔ ((¬ 𝜃 ∨ (¬ 𝜑𝜓)) ∧ (¬ 𝜃 ∨ (𝜑𝜒))))
6 ancomst 465 . . . . . . 7 (((𝜑𝜃) → 𝜓) ↔ ((𝜃𝜑) → 𝜓))
7 impexp 451 . . . . . . 7 (((𝜃𝜑) → 𝜓) ↔ (𝜃 → (𝜑𝜓)))
8 imor 850 . . . . . . . . 9 ((𝜑𝜓) ↔ (¬ 𝜑𝜓))
98imbi2i 336 . . . . . . . 8 ((𝜃 → (𝜑𝜓)) ↔ (𝜃 → (¬ 𝜑𝜓)))
10 imor 850 . . . . . . . 8 ((𝜃 → (¬ 𝜑𝜓)) ↔ (¬ 𝜃 ∨ (¬ 𝜑𝜓)))
119, 10bitri 274 . . . . . . 7 ((𝜃 → (𝜑𝜓)) ↔ (¬ 𝜃 ∨ (¬ 𝜑𝜓)))
126, 7, 113bitrri 298 . . . . . 6 ((¬ 𝜃 ∨ (¬ 𝜑𝜓)) ↔ ((𝜑𝜃) → 𝜓))
13 imor 850 . . . . . . 7 ((𝜃 → (𝜑𝜒)) ↔ (¬ 𝜃 ∨ (𝜑𝜒)))
1413bicomi 223 . . . . . 6 ((¬ 𝜃 ∨ (𝜑𝜒)) ↔ (𝜃 → (𝜑𝜒)))
1512, 14anbi12i 627 . . . . 5 (((¬ 𝜃 ∨ (¬ 𝜑𝜓)) ∧ (¬ 𝜃 ∨ (𝜑𝜒))) ↔ (((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒))))
164, 5, 153bitri 297 . . . 4 ((𝜃 → ((¬ 𝜑𝜓) ∧ (𝜑𝜒))) ↔ (((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒))))
178bicomi 223 . . . . . . . 8 ((¬ 𝜑𝜓) ↔ (𝜑𝜓))
18 df-or 845 . . . . . . . 8 ((𝜑𝜒) ↔ (¬ 𝜑𝜒))
1917, 18anbi12i 627 . . . . . . 7 (((¬ 𝜑𝜓) ∧ (𝜑𝜒)) ↔ ((𝜑𝜓) ∧ (¬ 𝜑𝜒)))
20 cases2 1045 . . . . . . . 8 (((𝜑𝜓) ∨ (¬ 𝜑𝜒)) ↔ ((𝜑𝜓) ∧ (¬ 𝜑𝜒)))
2120bicomi 223 . . . . . . 7 (((𝜑𝜓) ∧ (¬ 𝜑𝜒)) ↔ ((𝜑𝜓) ∨ (¬ 𝜑𝜒)))
2219, 21bitri 274 . . . . . 6 (((¬ 𝜑𝜓) ∧ (𝜑𝜒)) ↔ ((𝜑𝜓) ∨ (¬ 𝜑𝜒)))
2322imbi1i 350 . . . . 5 ((((¬ 𝜑𝜓) ∧ (𝜑𝜒)) → 𝜃) ↔ (((𝜑𝜓) ∨ (¬ 𝜑𝜒)) → 𝜃))
24 jaob 959 . . . . 5 ((((𝜑𝜓) ∨ (¬ 𝜑𝜒)) → 𝜃) ↔ (((𝜑𝜓) → 𝜃) ∧ ((¬ 𝜑𝜒) → 𝜃)))
25 ancomst 465 . . . . . . 7 (((¬ 𝜑𝜒) → 𝜃) ↔ ((𝜒 ∧ ¬ 𝜑) → 𝜃))
26 pm5.6 999 . . . . . . 7 (((𝜒 ∧ ¬ 𝜑) → 𝜃) ↔ (𝜒 → (𝜑𝜃)))
2725, 26bitri 274 . . . . . 6 (((¬ 𝜑𝜒) → 𝜃) ↔ (𝜒 → (𝜑𝜃)))
2827anbi2i 623 . . . . 5 ((((𝜑𝜓) → 𝜃) ∧ ((¬ 𝜑𝜒) → 𝜃)) ↔ (((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃))))
2923, 24, 283bitri 297 . . . 4 ((((¬ 𝜑𝜓) ∧ (𝜑𝜒)) → 𝜃) ↔ (((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃))))
3016, 29anbi12i 627 . . 3 (((𝜃 → ((¬ 𝜑𝜓) ∧ (𝜑𝜒))) ∧ (((¬ 𝜑𝜓) ∧ (𝜑𝜒)) → 𝜃)) ↔ ((((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃)))))
313, 30bitri 274 . 2 ((𝜃 ↔ ((¬ 𝜑𝜓) ∧ (𝜑𝜒))) ↔ ((((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃)))))
32 ancom 461 . . 3 (((((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃)))) ↔ ((((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃))) ∧ (((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒)))))
33 an4 653 . . 3 (((((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃))) ∧ (((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒)))) ↔ ((((𝜑𝜓) → 𝜃) ∧ ((𝜑𝜃) → 𝜓)) ∧ ((𝜒 → (𝜑𝜃)) ∧ (𝜃 → (𝜑𝜒)))))
3432, 33bitri 274 . 2 (((((𝜑𝜃) → 𝜓) ∧ (𝜃 → (𝜑𝜒))) ∧ (((𝜑𝜓) → 𝜃) ∧ (𝜒 → (𝜑𝜃)))) ↔ ((((𝜑𝜓) → 𝜃) ∧ ((𝜑𝜃) → 𝜓)) ∧ ((𝜒 → (𝜑𝜃)) ∧ (𝜃 → (𝜑𝜒)))))
352, 31, 343bitri 297 1 ((𝜃 ↔ if-(𝜑, 𝜓, 𝜒)) ↔ ((((𝜑𝜓) → 𝜃) ∧ ((𝜑𝜃) → 𝜓)) ∧ ((𝜒 → (𝜑𝜃)) ∧ (𝜃 → (𝜑𝜒)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  if-wif 1060
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 397  df-or 845  df-ifp 1061
This theorem is referenced by:  ifpid3g  41099  ifpid2g  41100  ifpid1g  41101  ifpim23g  41102
  Copyright terms: Public domain W3C validator