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

Theorem elz2 9122
Description: Membership in the set of integers. Commonly used in constructions of the integers as equivalence classes under subtraction of the positive integers. (Contributed by Mario Carneiro, 16-May-2014.)
Assertion
Ref Expression
elz2 (𝑁 ∈ ℤ ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
Distinct variable group:   𝑥,𝑦,𝑁

Proof of Theorem elz2
StepHypRef Expression
1 elznn0 9069 . 2 (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
2 nn0p1nn 9016 . . . . . 6 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
32adantl 275 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → (𝑁 + 1) ∈ ℕ)
4 1nn 8731 . . . . . 6 1 ∈ ℕ
54a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 1 ∈ ℕ)
6 recn 7753 . . . . . . . 8 (𝑁 ∈ ℝ → 𝑁 ∈ ℂ)
76adantr 274 . . . . . . 7 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
8 ax-1cn 7713 . . . . . . 7 1 ∈ ℂ
9 pncan 7968 . . . . . . 7 ((𝑁 ∈ ℂ ∧ 1 ∈ ℂ) → ((𝑁 + 1) − 1) = 𝑁)
107, 8, 9sylancl 409 . . . . . 6 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁)
1110eqcomd 2145 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 = ((𝑁 + 1) − 1))
12 rspceov 5813 . . . . 5 (((𝑁 + 1) ∈ ℕ ∧ 1 ∈ ℕ ∧ 𝑁 = ((𝑁 + 1) − 1)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
133, 5, 11, 12syl3anc 1216 . . . 4 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
144a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 1 ∈ ℕ)
156adantr 274 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
16 negsub 8010 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 + -𝑁) = (1 − 𝑁))
178, 15, 16sylancr 410 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) = (1 − 𝑁))
18 simpr 109 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → -𝑁 ∈ ℕ0)
19 nnnn0addcl 9007 . . . . . . 7 ((1 ∈ ℕ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
204, 18, 19sylancr 410 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
2117, 20eqeltrrd 2217 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − 𝑁) ∈ ℕ)
22 nncan 7991 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 − (1 − 𝑁)) = 𝑁)
238, 15, 22sylancr 410 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − (1 − 𝑁)) = 𝑁)
2423eqcomd 2145 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 = (1 − (1 − 𝑁)))
25 rspceov 5813 . . . . 5 ((1 ∈ ℕ ∧ (1 − 𝑁) ∈ ℕ ∧ 𝑁 = (1 − (1 − 𝑁))) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2614, 21, 24, 25syl3anc 1216 . . . 4 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2713, 26jaodan 786 . . 3 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
28 nnre 8727 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℝ)
29 nnre 8727 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℝ)
30 resubcl 8026 . . . . . . 7 ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) → (𝑥𝑦) ∈ ℝ)
3128, 29, 30syl2an 287 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦) ∈ ℝ)
32 nnz 9073 . . . . . . . 8 (𝑦 ∈ ℕ → 𝑦 ∈ ℤ)
33 nnz 9073 . . . . . . . 8 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
34 zletric 9098 . . . . . . . 8 ((𝑦 ∈ ℤ ∧ 𝑥 ∈ ℤ) → (𝑦𝑥𝑥𝑦))
3532, 33, 34syl2anr 288 . . . . . . 7 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥𝑥𝑦))
36 nnnn0 8984 . . . . . . . . 9 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
37 nnnn0 8984 . . . . . . . . 9 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
38 nn0sub 9120 . . . . . . . . 9 ((𝑦 ∈ ℕ0𝑥 ∈ ℕ0) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
3936, 37, 38syl2anr 288 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
40 nn0sub 9120 . . . . . . . . . 10 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
4137, 36, 40syl2an 287 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
42 nncn 8728 . . . . . . . . . . 11 (𝑥 ∈ ℕ → 𝑥 ∈ ℂ)
43 nncn 8728 . . . . . . . . . . 11 (𝑦 ∈ ℕ → 𝑦 ∈ ℂ)
44 negsubdi2 8021 . . . . . . . . . . 11 ((𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ) → -(𝑥𝑦) = (𝑦𝑥))
4542, 43, 44syl2an 287 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → -(𝑥𝑦) = (𝑦𝑥))
4645eleq1d 2208 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (-(𝑥𝑦) ∈ ℕ0 ↔ (𝑦𝑥) ∈ ℕ0))
4741, 46bitr4d 190 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 ↔ -(𝑥𝑦) ∈ ℕ0))
4839, 47orbi12d 782 . . . . . . 7 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑦𝑥𝑥𝑦) ↔ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
4935, 48mpbid 146 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0))
5031, 49jca 304 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥𝑦) ∈ ℝ ∧ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
51 eleq1 2202 . . . . . 6 (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ↔ (𝑥𝑦) ∈ ℝ))
52 eleq1 2202 . . . . . . 7 (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℕ0 ↔ (𝑥𝑦) ∈ ℕ0))
53 negeq 7955 . . . . . . . 8 (𝑁 = (𝑥𝑦) → -𝑁 = -(𝑥𝑦))
5453eleq1d 2208 . . . . . . 7 (𝑁 = (𝑥𝑦) → (-𝑁 ∈ ℕ0 ↔ -(𝑥𝑦) ∈ ℕ0))
5552, 54orbi12d 782 . . . . . 6 (𝑁 = (𝑥𝑦) → ((𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0) ↔ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
5651, 55anbi12d 464 . . . . 5 (𝑁 = (𝑥𝑦) → ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) ↔ ((𝑥𝑦) ∈ ℝ ∧ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0))))
5750, 56syl5ibrcom 156 . . . 4 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0))))
5857rexlimivv 2555 . . 3 (∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
5927, 58impbii 125 . 2 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
601, 59bitri 183 1 (𝑁 ∈ ℤ ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
Colors of variables: wff set class
Syntax hints:  wa 103  wb 104  wo 697   = wceq 1331  wcel 1480  wrex 2417   class class class wbr 3929  (class class class)co 5774  cc 7618  cr 7619  1c1 7621   + caddc 7623  cle 7801  cmin 7933  -cneg 7934  cn 8720  0cn0 8977  cz 9054
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-sep 4046  ax-pow 4098  ax-pr 4131  ax-un 4355  ax-setind 4452  ax-cnex 7711  ax-resscn 7712  ax-1cn 7713  ax-1re 7714  ax-icn 7715  ax-addcl 7716  ax-addrcl 7717  ax-mulcl 7718  ax-addcom 7720  ax-addass 7722  ax-distr 7724  ax-i2m1 7725  ax-0lt1 7726  ax-0id 7728  ax-rnegex 7729  ax-cnre 7731  ax-pre-ltirr 7732  ax-pre-ltwlin 7733  ax-pre-lttrn 7734  ax-pre-ltadd 7736
This theorem depends on definitions:  df-bi 116  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-nel 2404  df-ral 2421  df-rex 2422  df-reu 2423  df-rab 2425  df-v 2688  df-sbc 2910  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-int 3772  df-br 3930  df-opab 3990  df-id 4215  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-iota 5088  df-fun 5125  df-fv 5131  df-riota 5730  df-ov 5777  df-oprab 5778  df-mpo 5779  df-pnf 7802  df-mnf 7803  df-xr 7804  df-ltxr 7805  df-le 7806  df-sub 7935  df-neg 7936  df-inn 8721  df-n0 8978  df-z 9055
This theorem is referenced by:  dfz2  9123
  Copyright terms: Public domain W3C validator