Users' Mathboxes Mathbox for Wolf Lammen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  wl-ifpimpr Structured version   Visualization version   GIF version

Theorem wl-ifpimpr 35616
Description: If one case of an if- condition is a consequence of the other, the expression in df-ifp 1060 can be shortened. (Contributed by Wolf Lammen, 12-Jun-2024.)
Assertion
Ref Expression
wl-ifpimpr ((𝜒𝜓) → (if-(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ 𝜒)))

Proof of Theorem wl-ifpimpr
StepHypRef Expression
1 pm4.72 946 . . . . . . 7 ((𝜒𝜓) ↔ (𝜓 ↔ (𝜒𝜓)))
21biimpi 215 . . . . . 6 ((𝜒𝜓) → (𝜓 ↔ (𝜒𝜓)))
3 orcom 866 . . . . . 6 ((𝜒𝜓) ↔ (𝜓𝜒))
42, 3bitrdi 286 . . . . 5 ((𝜒𝜓) → (𝜓 ↔ (𝜓𝜒)))
54anbi2d 628 . . . 4 ((𝜒𝜓) → ((𝜑𝜓) ↔ (𝜑 ∧ (𝜓𝜒))))
6 andi 1004 . . . 4 ((𝜑 ∧ (𝜓𝜒)) ↔ ((𝜑𝜓) ∨ (𝜑𝜒)))
75, 6bitrdi 286 . . 3 ((𝜒𝜓) → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜒))))
87orbi1d 913 . 2 ((𝜒𝜓) → (((𝜑𝜓) ∨ (¬ 𝜑𝜒)) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (¬ 𝜑𝜒))))
9 df-ifp 1060 . 2 (if-(𝜑, 𝜓, 𝜒) ↔ ((𝜑𝜓) ∨ (¬ 𝜑𝜒)))
10 biidd 261 . . . . 5 (𝜑 → (𝜒𝜒))
11 biidd 261 . . . . 5 𝜑 → (𝜒𝜒))
1210, 11cases 1039 . . . 4 (𝜒 ↔ ((𝜑𝜒) ∨ (¬ 𝜑𝜒)))
1312orbi2i 909 . . 3 (((𝜑𝜓) ∨ 𝜒) ↔ ((𝜑𝜓) ∨ ((𝜑𝜒) ∨ (¬ 𝜑𝜒))))
14 orass 918 . . 3 ((((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (¬ 𝜑𝜒)) ↔ ((𝜑𝜓) ∨ ((𝜑𝜒) ∨ (¬ 𝜑𝜒))))
1513, 14bitr4i 277 . 2 (((𝜑𝜓) ∨ 𝜒) ↔ (((𝜑𝜓) ∨ (𝜑𝜒)) ∨ (¬ 𝜑𝜒)))
168, 9, 153bitr4g 313 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:  wl-ifp4impr  35617  wl-df2-3mintru2  35635
  Copyright terms: Public domain W3C validator