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

Theorem nndceq 6747
Description: Equality of natural numbers is decidable. Theorem 7.2.6 of [HoTT], p. (varies). For the specific case where 𝐵 is zero, see nndceq0 4747. (Contributed by Jim Kingdon, 31-Aug-2019.)
Assertion
Ref Expression
nndceq ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → DECID 𝐴 = 𝐵)

Proof of Theorem nndceq
StepHypRef Expression
1 nntri3or 6741 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵𝐴 = 𝐵𝐵𝐴))
2 elirr 4670 . . . . . . 7 ¬ 𝐴𝐴
3 eleq2 2298 . . . . . . 7 (𝐴 = 𝐵 → (𝐴𝐴𝐴𝐵))
42, 3mtbii 681 . . . . . 6 (𝐴 = 𝐵 → ¬ 𝐴𝐵)
54con2i 632 . . . . 5 (𝐴𝐵 → ¬ 𝐴 = 𝐵)
65olcd 742 . . . 4 (𝐴𝐵 → (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
7 orc 720 . . . 4 (𝐴 = 𝐵 → (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
8 elirr 4670 . . . . . . 7 ¬ 𝐵𝐵
9 eleq2 2298 . . . . . . 7 (𝐴 = 𝐵 → (𝐵𝐴𝐵𝐵))
108, 9mtbiri 682 . . . . . 6 (𝐴 = 𝐵 → ¬ 𝐵𝐴)
1110con2i 632 . . . . 5 (𝐵𝐴 → ¬ 𝐴 = 𝐵)
1211olcd 742 . . . 4 (𝐵𝐴 → (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
136, 7, 123jaoi 1340 . . 3 ((𝐴𝐵𝐴 = 𝐵𝐵𝐴) → (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
141, 13syl 14 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
15 df-dc 843 . 2 (DECID 𝐴 = 𝐵 ↔ (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
1614, 15sylibr 134 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → DECID 𝐴 = 𝐵)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 104  wo 716  DECID wdc 842  w3o 1004   = wceq 1398  wcel 2205  ωcom 4719
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 619  ax-in2 620  ax-io 717  ax-5 1496  ax-7 1497  ax-gen 1498  ax-ie1 1542  ax-ie2 1543  ax-8 1553  ax-10 1554  ax-11 1555  ax-i12 1556  ax-bndl 1558  ax-4 1559  ax-17 1575  ax-i9 1579  ax-ial 1583  ax-i5r 1584  ax-14 2208  ax-ext 2216  ax-sep 4234  ax-nul 4242  ax-pow 4293  ax-pr 4328  ax-un 4560  ax-setind 4666  ax-iinf 4717
This theorem depends on definitions:  df-bi 117  df-dc 843  df-3or 1006  df-3an 1007  df-tru 1401  df-nf 1510  df-sb 1812  df-clab 2221  df-cleq 2227  df-clel 2230  df-nfc 2375  df-ne 2415  df-ral 2527  df-rex 2528  df-v 2817  df-dif 3216  df-un 3218  df-in 3220  df-ss 3227  df-nul 3513  df-pw 3677  df-sn 3701  df-pr 3702  df-uni 3921  df-int 3956  df-tr 4215  df-iord 4493  df-on 4495  df-suc 4498  df-iom 4720
This theorem is referenced by:  nndifsnid  6755  fidceq  7139  fidcen  7171  unsnfidcex  7195  unsnfidcel  7196  2omap  7284  nninfwlporlemd  7478  nninfwlporlem  7479  nninfwlpoimlemg  7481  nninfwlpoimlemginf  7482  2onetap  7587  2omotaplemap  7589  enqdc  7694  nninfctlemfo  12767  xpscf  13617  nninfsellemdc  16930
  Copyright terms: Public domain W3C validator