MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  cases2 Structured version   Visualization version   GIF version

Theorem cases2 1063
Description: Case disjunction according to the value of 𝜑. (Contributed by BJ, 6-Apr-2019.) (Proof shortened by Wolf Lammen, 28-Feb-2022.)
Assertion
Ref Expression
cases2 (((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒)) ↔ ((𝜑 → 𝜓) ∧ (¬ 𝜑 → 𝜒)))

Proof of Theorem cases2
StepHypRef Expression
1 pm4.83 1042 . 2 (((𝜑 → ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑))) ∧ (¬ 𝜑 → ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑)))) ↔ ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑)))
2 dedlema 1061 . . . 4 (𝜑 → (𝜓 ↔ ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑))))
32pm5.74i 274 . . 3 ((𝜑 → 𝜓) ↔ (𝜑 → ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑))))
4 dedlemb 1062 . . . 4 (¬ 𝜑 → (𝜒 ↔ ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑))))
54pm5.74i 274 . . 3 ((¬ 𝜑 → 𝜒) ↔ (¬ 𝜑 → ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑))))
63, 5anbi12i 640 . 2 (((𝜑 → 𝜓) ∧ (¬ 𝜑 → 𝜒)) ↔ ((𝜑 → ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑))) ∧ (¬ 𝜑 → ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑)))))
7 ancom 466 . . 3 ((𝜑 ∧ 𝜓) ↔ (𝜓 ∧ 𝜑))
8 ancom 466 . . 3 ((¬ 𝜑 ∧ 𝜒) ↔ (𝜒 ∧ ¬ 𝜑))
97, 8orbi12i 928 . 2 (((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒)) ↔ ((𝜓 ∧ 𝜑) ∨ (𝜒 ∧ ¬ 𝜑)))
101, 6, 93bitr4ri 307 1 (((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜒)) ↔ ((𝜑 → 𝜓) ∧ (¬ 𝜑 → 𝜒)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861
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
This theorem is used by:  dfbi3  1065  dfifp2  1080  ifval  4525  ifpidg  44450  ifpim123g  44459
  Copyright terms: Public domain W3C validator