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

Theorem elz2 9313
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 9257 . 2 (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
2 nn0p1nn 9204 . . . . . 6 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
32adantl 277 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → (𝑁 + 1) ∈ ℕ)
4 1nn 8919 . . . . . 6 1 ∈ ℕ
54a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 1 ∈ ℕ)
6 recn 7935 . . . . . . . 8 (𝑁 ∈ ℝ → 𝑁 ∈ ℂ)
76adantr 276 . . . . . . 7 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
8 ax-1cn 7895 . . . . . . 7 1 ∈ ℂ
9 pncan 8153 . . . . . . 7 ((𝑁 ∈ ℂ ∧ 1 ∈ ℂ) → ((𝑁 + 1) − 1) = 𝑁)
107, 8, 9sylancl 413 . . . . . 6 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁)
1110eqcomd 2183 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 = ((𝑁 + 1) − 1))
12 rspceov 5911 . . . . 5 (((𝑁 + 1) ∈ ℕ ∧ 1 ∈ ℕ ∧ 𝑁 = ((𝑁 + 1) − 1)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
133, 5, 11, 12syl3anc 1238 . . . 4 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
144a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 1 ∈ ℕ)
156adantr 276 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
16 negsub 8195 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 + -𝑁) = (1 − 𝑁))
178, 15, 16sylancr 414 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) = (1 − 𝑁))
18 simpr 110 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → -𝑁 ∈ ℕ0)
19 nnnn0addcl 9195 . . . . . . 7 ((1 ∈ ℕ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
204, 18, 19sylancr 414 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
2117, 20eqeltrrd 2255 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − 𝑁) ∈ ℕ)
22 nncan 8176 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 − (1 − 𝑁)) = 𝑁)
238, 15, 22sylancr 414 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − (1 − 𝑁)) = 𝑁)
2423eqcomd 2183 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 = (1 − (1 − 𝑁)))
25 rspceov 5911 . . . . 5 ((1 ∈ ℕ ∧ (1 − 𝑁) ∈ ℕ ∧ 𝑁 = (1 − (1 − 𝑁))) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2614, 21, 24, 25syl3anc 1238 . . . 4 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2713, 26jaodan 797 . . 3 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
28 nnre 8915 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℝ)
29 nnre 8915 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℝ)
30 resubcl 8211 . . . . . . 7 ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) → (𝑥𝑦) ∈ ℝ)
3128, 29, 30syl2an 289 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦) ∈ ℝ)
32 nnz 9261 . . . . . . . 8 (𝑦 ∈ ℕ → 𝑦 ∈ ℤ)
33 nnz 9261 . . . . . . . 8 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
34 zletric 9286 . . . . . . . 8 ((𝑦 ∈ ℤ ∧ 𝑥 ∈ ℤ) → (𝑦𝑥𝑥𝑦))
3532, 33, 34syl2anr 290 . . . . . . 7 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥𝑥𝑦))
36 nnnn0 9172 . . . . . . . . 9 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
37 nnnn0 9172 . . . . . . . . 9 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
38 nn0sub 9308 . . . . . . . . 9 ((𝑦 ∈ ℕ0𝑥 ∈ ℕ0) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
3936, 37, 38syl2anr 290 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
40 nn0sub 9308 . . . . . . . . . 10 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
4137, 36, 40syl2an 289 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
42 nncn 8916 . . . . . . . . . . 11 (𝑥 ∈ ℕ → 𝑥 ∈ ℂ)
43 nncn 8916 . . . . . . . . . . 11 (𝑦 ∈ ℕ → 𝑦 ∈ ℂ)
44 negsubdi2 8206 . . . . . . . . . . 11 ((𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ) → -(𝑥𝑦) = (𝑦𝑥))
4542, 43, 44syl2an 289 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → -(𝑥𝑦) = (𝑦𝑥))
4645eleq1d 2246 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (-(𝑥𝑦) ∈ ℕ0 ↔ (𝑦𝑥) ∈ ℕ0))
4741, 46bitr4d 191 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 ↔ -(𝑥𝑦) ∈ ℕ0))
4839, 47orbi12d 793 . . . . . . 7 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑦𝑥𝑥𝑦) ↔ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
4935, 48mpbid 147 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0))
5031, 49jca 306 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑥𝑦) ∈ ℝ ∧ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
51 eleq1 2240 . . . . . 6 (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ↔ (𝑥𝑦) ∈ ℝ))
52 eleq1 2240 . . . . . . 7 (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℕ0 ↔ (𝑥𝑦) ∈ ℕ0))
53 negeq 8140 . . . . . . . 8 (𝑁 = (𝑥𝑦) → -𝑁 = -(𝑥𝑦))
5453eleq1d 2246 . . . . . . 7 (𝑁 = (𝑥𝑦) → (-𝑁 ∈ ℕ0 ↔ -(𝑥𝑦) ∈ ℕ0))
5552, 54orbi12d 793 . . . . . 6 (𝑁 = (𝑥𝑦) → ((𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0) ↔ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0)))
5651, 55anbi12d 473 . . . . 5 (𝑁 = (𝑥𝑦) → ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) ↔ ((𝑥𝑦) ∈ ℝ ∧ ((𝑥𝑦) ∈ ℕ0 ∨ -(𝑥𝑦) ∈ ℕ0))))
5750, 56syl5ibrcom 157 . . . 4 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0))))
5857rexlimivv 2600 . . 3 (∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦) → (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
5927, 58impbii 126 . 2 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
601, 59bitri 184 1 (𝑁 ∈ ℤ ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
Colors of variables: wff set class
Syntax hints:  wa 104  wb 105  wo 708   = wceq 1353  wcel 2148  wrex 2456   class class class wbr 4000  (class class class)co 5869  cc 7800  cr 7801  1c1 7803   + caddc 7805  cle 7983  cmin 8118  -cneg 8119  cn 8908  0cn0 9165  cz 9242
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 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-13 2150  ax-14 2151  ax-ext 2159  ax-sep 4118  ax-pow 4171  ax-pr 4206  ax-un 4430  ax-setind 4533  ax-cnex 7893  ax-resscn 7894  ax-1cn 7895  ax-1re 7896  ax-icn 7897  ax-addcl 7898  ax-addrcl 7899  ax-mulcl 7900  ax-addcom 7902  ax-addass 7904  ax-distr 7906  ax-i2m1 7907  ax-0lt1 7908  ax-0id 7910  ax-rnegex 7911  ax-cnre 7913  ax-pre-ltirr 7914  ax-pre-ltwlin 7915  ax-pre-lttrn 7916  ax-pre-ltadd 7918
This theorem depends on definitions:  df-bi 117  df-3or 979  df-3an 980  df-tru 1356  df-fal 1359  df-nf 1461  df-sb 1763  df-eu 2029  df-mo 2030  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-nel 2443  df-ral 2460  df-rex 2461  df-reu 2462  df-rab 2464  df-v 2739  df-sbc 2963  df-dif 3131  df-un 3133  df-in 3135  df-ss 3142  df-pw 3576  df-sn 3597  df-pr 3598  df-op 3600  df-uni 3808  df-int 3843  df-br 4001  df-opab 4062  df-id 4290  df-xp 4629  df-rel 4630  df-cnv 4631  df-co 4632  df-dm 4633  df-iota 5174  df-fun 5214  df-fv 5220  df-riota 5825  df-ov 5872  df-oprab 5873  df-mpo 5874  df-pnf 7984  df-mnf 7985  df-xr 7986  df-ltxr 7987  df-le 7988  df-sub 8120  df-neg 8121  df-inn 8909  df-n0 9166  df-z 9243
This theorem is referenced by:  dfz2  9314
  Copyright terms: Public domain W3C validator