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

Theorem cases 1058
Description: Case disjunction according to the value of 𝜑. (Contributed by NM, 25-Apr-2019.)
Hypotheses
Ref Expression
cases.1 (𝜑 → (𝜓 ↔ 𝜒))
cases.2 (¬ 𝜑 → (𝜓 ↔ 𝜃))
Assertion
Ref Expression
cases (𝜓 ↔ ((𝜑 ∧ 𝜒) ∨ (¬ 𝜑 ∧ 𝜃)))

Proof of Theorem cases
StepHypRef Expression
1 exmid 908 . . 3 (𝜑 ∨ ¬ 𝜑)
21biantrur 540 . 2 (𝜓 ↔ ((𝜑 ∨ ¬ 𝜑) ∧ 𝜓))
3 andir 1026 . 2 (((𝜑 ∨ ¬ 𝜑) ∧ 𝜓) ↔ ((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜓)))
4 cases.1 . . . 4 (𝜑 → (𝜓 ↔ 𝜒))
54pm5.32i 585 . . 3 ((𝜑 ∧ 𝜓) ↔ (𝜑 ∧ 𝜒))
6 cases.2 . . . 4 (¬ 𝜑 → (𝜓 ↔ 𝜃))
76pm5.32i 585 . . 3 ((¬ 𝜑 ∧ 𝜓) ↔ (¬ 𝜑 ∧ 𝜃))
85, 7orbi12i 928 . 2 (((𝜑 ∧ 𝜓) ∨ (¬ 𝜑 ∧ 𝜓)) ↔ ((𝜑 ∧ 𝜒) ∨ (¬ 𝜑 ∧ 𝜃)))
92, 3, 83bitri 300 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:  casesifp  1094  elimif  4519  elim2if  33074  wl-ifpimpr  38309
  Copyright terms: Public domain W3C validator