ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  dcun GIF version

Theorem dcun 3571
Description: The union of two decidable classes is decidable. (Contributed by Jim Kingdon, 5-Oct-2022.) (Revised by Jim Kingdon, 13-Oct-2025.)
Hypotheses
Ref Expression
dcun.a (𝜑DECID 𝐶𝐴)
dcun.b (𝜑DECID 𝐶𝐵)
Assertion
Ref Expression
dcun (𝜑DECID 𝐶 ∈ (𝐴𝐵))

Proof of Theorem dcun
StepHypRef Expression
1 elun1 3341 . . . . 5 (𝐶𝐴𝐶 ∈ (𝐴𝐵))
21adantl 277 . . . 4 ((𝜑𝐶𝐴) → 𝐶 ∈ (𝐴𝐵))
32orcd 735 . . 3 ((𝜑𝐶𝐴) → (𝐶 ∈ (𝐴𝐵) ∨ ¬ 𝐶 ∈ (𝐴𝐵)))
4 df-dc 837 . . 3 (DECID 𝐶 ∈ (𝐴𝐵) ↔ (𝐶 ∈ (𝐴𝐵) ∨ ¬ 𝐶 ∈ (𝐴𝐵)))
53, 4sylibr 134 . 2 ((𝜑𝐶𝐴) → DECID 𝐶 ∈ (𝐴𝐵))
6 elun2 3342 . . . . . 6 (𝐶𝐵𝐶 ∈ (𝐴𝐵))
76adantl 277 . . . . 5 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ 𝐶𝐵) → 𝐶 ∈ (𝐴𝐵))
87orcd 735 . . . 4 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ 𝐶𝐵) → (𝐶 ∈ (𝐴𝐵) ∨ ¬ 𝐶 ∈ (𝐴𝐵)))
98, 4sylibr 134 . . 3 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ 𝐶𝐵) → DECID 𝐶 ∈ (𝐴𝐵))
10 simplr 528 . . . . . . 7 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ ¬ 𝐶𝐵) → ¬ 𝐶𝐴)
11 simpr 110 . . . . . . 7 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ ¬ 𝐶𝐵) → ¬ 𝐶𝐵)
12 ioran 754 . . . . . . 7 (¬ (𝐶𝐴𝐶𝐵) ↔ (¬ 𝐶𝐴 ∧ ¬ 𝐶𝐵))
1310, 11, 12sylanbrc 417 . . . . . 6 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ ¬ 𝐶𝐵) → ¬ (𝐶𝐴𝐶𝐵))
14 elun 3315 . . . . . 6 (𝐶 ∈ (𝐴𝐵) ↔ (𝐶𝐴𝐶𝐵))
1513, 14sylnibr 679 . . . . 5 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ ¬ 𝐶𝐵) → ¬ 𝐶 ∈ (𝐴𝐵))
1615olcd 736 . . . 4 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ ¬ 𝐶𝐵) → (𝐶 ∈ (𝐴𝐵) ∨ ¬ 𝐶 ∈ (𝐴𝐵)))
1716, 4sylibr 134 . . 3 (((𝜑 ∧ ¬ 𝐶𝐴) ∧ ¬ 𝐶𝐵) → DECID 𝐶 ∈ (𝐴𝐵))
18 dcun.b . . . . 5 (𝜑DECID 𝐶𝐵)
19 exmiddc 838 . . . . 5 (DECID 𝐶𝐵 → (𝐶𝐵 ∨ ¬ 𝐶𝐵))
2018, 19syl 14 . . . 4 (𝜑 → (𝐶𝐵 ∨ ¬ 𝐶𝐵))
2120adantr 276 . . 3 ((𝜑 ∧ ¬ 𝐶𝐴) → (𝐶𝐵 ∨ ¬ 𝐶𝐵))
229, 17, 21mpjaodan 800 . 2 ((𝜑 ∧ ¬ 𝐶𝐴) → DECID 𝐶 ∈ (𝐴𝐵))
23 dcun.a . . 3 (𝜑DECID 𝐶𝐴)
24 exmiddc 838 . . 3 (DECID 𝐶𝐴 → (𝐶𝐴 ∨ ¬ 𝐶𝐴))
2523, 24syl 14 . 2 (𝜑 → (𝐶𝐴 ∨ ¬ 𝐶𝐴))
265, 22, 25mpjaodan 800 1 (𝜑DECID 𝐶 ∈ (𝐴𝐵))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 104  wo 710  DECID wdc 836  wcel 2177  cun 3165
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 711  ax-5 1471  ax-7 1472  ax-gen 1473  ax-ie1 1517  ax-ie2 1518  ax-8 1528  ax-10 1529  ax-11 1530  ax-i12 1531  ax-bndl 1533  ax-4 1534  ax-17 1550  ax-i9 1554  ax-ial 1558  ax-i5r 1559  ax-ext 2188
This theorem depends on definitions:  df-bi 117  df-dc 837  df-tru 1376  df-nf 1485  df-sb 1787  df-clab 2193  df-cleq 2199  df-clel 2202  df-nfc 2338  df-v 2775  df-un 3171  df-in 3173  df-ss 3180
This theorem is referenced by:  tpfidceq  7034  sumsplitdc  11787
  Copyright terms: Public domain W3C validator