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

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

Proof of Theorem nndceq
StepHypRef Expression
1 nntri3or 6725 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵𝐴 = 𝐵𝐵𝐴))
2 elirr 4662 . . . . . . 7 ¬ 𝐴𝐴
3 eleq2 2296 . . . . . . 7 (𝐴 = 𝐵 → (𝐴𝐴𝐴𝐵))
42, 3mtbii 681 . . . . . 6 (𝐴 = 𝐵 → ¬ 𝐴𝐵)
54con2i 632 . . . . 5 (𝐴𝐵 → ¬ 𝐴 = 𝐵)
65olcd 742 . . . 4 (𝐴𝐵 → (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
7 orc 720 . . . 4 (𝐴 = 𝐵 → (𝐴 = 𝐵 ∨ ¬ 𝐴 = 𝐵))
8 elirr 4662 . . . . . . 7 ¬ 𝐵𝐵
9 eleq2 2296 . . . . . . 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 2203  ωcom 4711
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-13 2205  ax-14 2206  ax-ext 2214  ax-sep 4227  ax-nul 4235  ax-pow 4286  ax-pr 4321  ax-un 4553  ax-setind 4658  ax-iinf 4709
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 2219  df-cleq 2225  df-clel 2228  df-nfc 2373  df-ne 2413  df-ral 2525  df-rex 2526  df-v 2814  df-dif 3212  df-un 3214  df-in 3216  df-ss 3223  df-nul 3508  df-pw 3670  df-sn 3694  df-pr 3695  df-uni 3914  df-int 3949  df-tr 4208  df-iord 4486  df-on 4488  df-suc 4491  df-iom 4712
This theorem is referenced by:  nndifsnid  6739  fidceq  7123  fidcen  7155  unsnfidcex  7179  unsnfidcel  7180  2omap  7268  nninfwlporlemd  7462  nninfwlporlem  7463  nninfwlpoimlemg  7465  nninfwlpoimlemginf  7466  2onetap  7565  2omotaplemap  7567  enqdc  7672  nninfctlemfo  12729  xpscf  13549  nninfsellemdc  16775
  Copyright terms: Public domain W3C validator