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

Theorem elz2 8419
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 8366 . 2 (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
2 nn0p1nn 8327 . . . . . 6 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
32adantl 271 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → (𝑁 + 1) ∈ ℕ)
4 1nn 8050 . . . . . 6 1 ∈ ℕ
54a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 1 ∈ ℕ)
6 recn 7106 . . . . . . . 8 (𝑁 ∈ ℝ → 𝑁 ∈ ℂ)
76adantr 270 . . . . . . 7 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
8 ax-1cn 7069 . . . . . . 7 1 ∈ ℂ
9 pncan 7314 . . . . . . 7 ((𝑁 ∈ ℂ ∧ 1 ∈ ℂ) → ((𝑁 + 1) − 1) = 𝑁)
107, 8, 9sylancl 404 . . . . . 6 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁)
1110eqcomd 2086 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 = ((𝑁 + 1) − 1))
12 rspceov 5567 . . . . 5 (((𝑁 + 1) ∈ ℕ ∧ 1 ∈ ℕ ∧ 𝑁 = ((𝑁 + 1) − 1)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
133, 5, 11, 12syl3anc 1169 . . . 4 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
144a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 1 ∈ ℕ)
156adantr 270 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
16 negsub 7356 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 + -𝑁) = (1 − 𝑁))
178, 15, 16sylancr 405 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) = (1 − 𝑁))
18 simpr 108 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → -𝑁 ∈ ℕ0)
19 nnnn0addcl 8318 . . . . . . 7 ((1 ∈ ℕ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
204, 18, 19sylancr 405 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
2117, 20eqeltrrd 2156 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − 𝑁) ∈ ℕ)
22 nncan 7337 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 − (1 − 𝑁)) = 𝑁)
238, 15, 22sylancr 405 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − (1 − 𝑁)) = 𝑁)
2423eqcomd 2086 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 = (1 − (1 − 𝑁)))
25 rspceov 5567 . . . . 5 ((1 ∈ ℕ ∧ (1 − 𝑁) ∈ ℕ ∧ 𝑁 = (1 − (1 − 𝑁))) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2614, 21, 24, 25syl3anc 1169 . . . 4 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2713, 26jaodan 743 . . 3 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
28 nnre 8046 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℝ)
29 nnre 8046 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℝ)
30 resubcl 7372 . . . . . . 7 ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) → (𝑥𝑦) ∈ ℝ)
3128, 29, 30syl2an 283 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦) ∈ ℝ)
32 nnz 8370 . . . . . . . 8 (𝑦 ∈ ℕ → 𝑦 ∈ ℤ)
33 nnz 8370 . . . . . . . 8 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
34 zletric 8395 . . . . . . . 8 ((𝑦 ∈ ℤ ∧ 𝑥 ∈ ℤ) → (𝑦𝑥𝑥𝑦))
3532, 33, 34syl2anr 284 . . . . . . 7 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥𝑥𝑦))
36 nnnn0 8295 . . . . . . . . 9 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
37 nnnn0 8295 . . . . . . . . 9 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
38 nn0sub 8417 . . . . . . . . 9 ((𝑦 ∈ ℕ0𝑥 ∈ ℕ0) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
3936, 37, 38syl2anr 284 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
40 nn0sub 8417 . . . . . . . . . 10 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
4137, 36, 40syl2an 283 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
42 nncn 8047 . . . . . . . . . . 11 (𝑥 ∈ ℕ → 𝑥 ∈ ℂ)
43 nncn 8047 . . . . . . . . . . 11 (𝑦 ∈ ℕ → 𝑦 ∈ ℂ)
44 negsubdi2 7367 . . . . . . . . . . 11 ((𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ) → -(𝑥𝑦) = (𝑦𝑥))
4542, 43, 44syl2an 283 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → -(𝑥𝑦) = (𝑦𝑥))
4645eleq1d 2147 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (-(𝑥𝑦) ∈ ℕ0 ↔ (𝑦𝑥) ∈ ℕ0))
4741, 46bitr4d 189 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 ↔ -(𝑥𝑦) ∈ ℕ0))
4839, 47orbi12d 739 . . . . . . 7 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑦𝑥𝑥𝑦) ↔ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
4935, 48mpbid 145 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0))
5031, 49jca 300 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥𝑦) ∈ ℝ ∧ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
51 eleq1 2141 . . . . . 6 (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ↔ (𝑥𝑦) ∈ ℝ))
52 eleq1 2141 . . . . . . 7 (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℕ0 ↔ (𝑥𝑦) ∈ ℕ0))
53 negeq 7301 . . . . . . . 8 (𝑁 = (𝑥𝑦) → -𝑁 = -(𝑥𝑦))
5453eleq1d 2147 . . . . . . 7 (𝑁 = (𝑥𝑦) → (-𝑁 ∈ ℕ0 ↔ -(𝑥𝑦) ∈ ℕ0))
5552, 54orbi12d 739 . . . . . 6 (𝑁 = (𝑥𝑦) → ((𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0) ↔ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
5651, 55anbi12d 456 . . . . 5 (𝑁 = (𝑥𝑦) → ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) ↔ ((𝑥𝑦) ∈ ℝ ∧ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0))))
5750, 56syl5ibrcom 155 . . . 4 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0))))
5857rexlimivv 2482 . . 3 (∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
5927, 58impbii 124 . 2 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
601, 59bitri 182 1 (𝑁 ∈ ℤ ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
Colors of variables: wff set class
Syntax hints:  wa 102  wb 103  wo 661   = wceq 1284  wcel 1433  wrex 2349   class class class wbr 3785  (class class class)co 5532  cc 6979  cr 6980  1c1 6982   + caddc 6984  cle 7154  cmin 7279  -cneg 7280  cn 8039  0cn0 8288  cz 8351
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 576  ax-in2 577  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-13 1444  ax-14 1445  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063  ax-sep 3896  ax-pow 3948  ax-pr 3964  ax-un 4188  ax-setind 4280  ax-cnex 7067  ax-resscn 7068  ax-1cn 7069  ax-1re 7070  ax-icn 7071  ax-addcl 7072  ax-addrcl 7073  ax-mulcl 7074  ax-addcom 7076  ax-addass 7078  ax-distr 7080  ax-i2m1 7081  ax-0lt1 7082  ax-0id 7084  ax-rnegex 7085  ax-cnre 7087  ax-pre-ltirr 7088  ax-pre-ltwlin 7089  ax-pre-lttrn 7090  ax-pre-ltadd 7092
This theorem depends on definitions:  df-bi 115  df-3or 920  df-3an 921  df-tru 1287  df-fal 1290  df-nf 1390  df-sb 1686  df-eu 1944  df-mo 1945  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ne 2246  df-nel 2340  df-ral 2353  df-rex 2354  df-reu 2355  df-rab 2357  df-v 2603  df-sbc 2816  df-dif 2975  df-un 2977  df-in 2979  df-ss 2986  df-pw 3384  df-sn 3404  df-pr 3405  df-op 3407  df-uni 3602  df-int 3637  df-br 3786  df-opab 3840  df-id 4048  df-xp 4369  df-rel 4370  df-cnv 4371  df-co 4372  df-dm 4373  df-iota 4887  df-fun 4924  df-fv 4930  df-riota 5488  df-ov 5535  df-oprab 5536  df-mpt2 5537  df-pnf 7155  df-mnf 7156  df-xr 7157  df-ltxr 7158  df-le 7159  df-sub 7281  df-neg 7282  df-inn 8040  df-n0 8289  df-z 8352
This theorem is referenced by:  dfz2  8420
  Copyright terms: Public domain W3C validator