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 38389
Description: If one case of an if- condition is a consequence of the other, the expression in df-ifp 1079 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 964 . . . . . . 7 ((𝜒 → 𝜓) ↔ (𝜓 ↔ (𝜒 ∨ 𝜓)))
21biimpi 219 . . . . . 6 ((𝜒 → 𝜓) → (𝜓 ↔ (𝜒 ∨ 𝜓)))
3 orcom 884 . . . . . 6 ((𝜒 ∨ 𝜓) ↔ (𝜓 ∨ 𝜒))
42, 3bitrdi 290 . . . . 5 ((𝜒 → 𝜓) → (𝜓 ↔ (𝜓 ∨ 𝜒)))
54anbi2d 642 . . . 4 ((𝜒 → 𝜓) → ((𝜑 ∧ 𝜓) ↔ (𝜑 ∧ (𝜓 ∨ 𝜒))))
6 andi 1025 . . . 4 ((𝜑 ∧ (𝜓 ∨ 𝜒)) ↔ ((𝜑 ∧ 𝜓) ∨ (𝜑 ∧ 𝜒)))
75, 6bitrdi 290 . . 3 ((𝜒 → 𝜓) → ((𝜑 ∧ 𝜓) ↔ ((𝜑 ∧ 𝜓) ∨ (𝜑 ∧ 𝜒))))
87orbi1d 930 . 2 ((𝜒 → 𝜓) → (((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒)) ↔ (((𝜑 ∧ 𝜓) ∨ (𝜑 ∧ 𝜒)) ∨ (¬ 𝜑 ∧ 𝜒))))
9 df-ifp 1079 . 2 (if-(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒)))
10 biidd 265 . . . . 5 (𝜑 → (𝜒 ↔ 𝜒))
11 biidd 265 . . . . 5 (¬ 𝜑 → (𝜒 ↔ 𝜒))
1210, 11cases 1058 . . . 4 (𝜒 ↔ ((𝜑 ∧ 𝜒) ∨ (¬ 𝜑 ∧ 𝜒)))
1312orbi2i 926 . . 3 (((𝜑 ∧ 𝜓) ∨ 𝜒) ↔ ((𝜑 ∧ 𝜓) ∨ ((𝜑 ∧ 𝜒) ∨ (¬ 𝜑 ∧ 𝜒))))
14 orass 935 . . 3 ((((𝜑 ∧ 𝜓) ∨ (𝜑 ∧ 𝜒)) ∨ (¬ 𝜑 ∧ 𝜒)) ↔ ((𝜑 ∧ 𝜓) ∨ ((𝜑 ∧ 𝜒) ∨ (¬ 𝜑 ∧ 𝜒))))
1513, 14bitr4i 281 . 2 (((𝜑 ∧ 𝜓) ∨ 𝜒) ↔ (((𝜑 ∧ 𝜓) ∨ (𝜑 ∧ 𝜒)) ∨ (¬ 𝜑 ∧ 𝜒)))
168, 9, 153bitr4g 317 1 ((𝜒 → 𝜓) → (if-(𝜑, 𝜓, 𝜒) ↔ ((𝜑 ∧ 𝜓) ∨ 𝜒)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861  if-wif 1078
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ifp 1079
This theorem is used by:  wl-ifp4impr  38390  wl-df2-3mintru2  38408
  Copyright terms: Public domain W3C validator