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

Theorem elz2 9318
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 9262 . 2 (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
2 nn0p1nn 9209 . . . . . 6 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
32adantl 277 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → (𝑁 + 1) ∈ ℕ)
4 1nn 8924 . . . . . 6 1 ∈ ℕ
54a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 1 ∈ ℕ)
6 recn 7939 . . . . . . . 8 (𝑁 ∈ ℝ → 𝑁 ∈ ℂ)
76adantr 276 . . . . . . 7 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
8 ax-1cn 7899 . . . . . . 7 1 ∈ ℂ
9 pncan 8157 . . . . . . 7 ((𝑁 ∈ ℂ ∧ 1 ∈ ℂ) → ((𝑁 + 1) − 1) = 𝑁)
107, 8, 9sylancl 413 . . . . . 6 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ((𝑁 + 1) − 1) = 𝑁)
1110eqcomd 2183 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → 𝑁 = ((𝑁 + 1) − 1))
12 rspceov 5912 . . . . 5 (((𝑁 + 1) ∈ ℕ ∧ 1 ∈ ℕ ∧ 𝑁 = ((𝑁 + 1) − 1)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
133, 5, 11, 12syl3anc 1238 . . . 4 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
144a1i 9 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 1 ∈ ℕ)
156adantr 276 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 ∈ ℂ)
16 negsub 8199 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 + -𝑁) = (1 − 𝑁))
178, 15, 16sylancr 414 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) = (1 − 𝑁))
18 simpr 110 . . . . . . 7 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → -𝑁 ∈ ℕ0)
19 nnnn0addcl 9200 . . . . . . 7 ((1 ∈ ℕ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
204, 18, 19sylancr 414 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 + -𝑁) ∈ ℕ)
2117, 20eqeltrrd 2255 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − 𝑁) ∈ ℕ)
22 nncan 8180 . . . . . . 7 ((1 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (1 − (1 − 𝑁)) = 𝑁)
238, 15, 22sylancr 414 . . . . . 6 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (1 − (1 − 𝑁)) = 𝑁)
2423eqcomd 2183 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → 𝑁 = (1 − (1 − 𝑁)))
25 rspceov 5912 . . . . 5 ((1 ∈ ℕ ∧ (1 − 𝑁) ∈ ℕ ∧ 𝑁 = (1 − (1 − 𝑁))) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2614, 21, 24, 25syl3anc 1238 . . . 4 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
2713, 26jaodan 797 . . 3 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑁 = (𝑥𝑦))
28 nnre 8920 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℝ)
29 nnre 8920 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℝ)
30 resubcl 8215 . . . . . . 7 ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) → (𝑥𝑦) ∈ ℝ)
3128, 29, 30syl2an 289 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦) ∈ ℝ)
32 nnz 9266 . . . . . . . 8 (𝑦 ∈ ℕ → 𝑦 ∈ ℤ)
33 nnz 9266 . . . . . . . 8 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
34 zletric 9291 . . . . . . . 8 ((𝑦 ∈ ℤ ∧ 𝑥 ∈ ℤ) → (𝑦𝑥𝑥𝑦))
3532, 33, 34syl2anr 290 . . . . . . 7 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥𝑥𝑦))
36 nnnn0 9177 . . . . . . . . 9 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
37 nnnn0 9177 . . . . . . . . 9 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
38 nn0sub 9313 . . . . . . . . 9 ((𝑦 ∈ ℕ0𝑥 ∈ ℕ0) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
3936, 37, 38syl2anr 290 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦𝑥 ↔ (𝑥𝑦) ∈ ℕ0))
40 nn0sub 9313 . . . . . . . . . 10 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
4137, 36, 40syl2an 289 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 ↔ (𝑦𝑥) ∈ ℕ0))
42 nncn 8921 . . . . . . . . . . 11 (𝑥 ∈ ℕ → 𝑥 ∈ ℂ)
43 nncn 8921 . . . . . . . . . . 11 (𝑦 ∈ ℕ → 𝑦 ∈ ℂ)
44 negsubdi2 8210 . . . . . . . . . . 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 8144 . . . . . . . 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 4001  (class class class)co 5870  cc 7804  cr 7805  1c1 7807   + caddc 7809  cle 7987  cmin 8122  -cneg 8123  cn 8913  0cn0 9170  cz 9247
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 4119  ax-pow 4172  ax-pr 4207  ax-un 4431  ax-setind 4534  ax-cnex 7897  ax-resscn 7898  ax-1cn 7899  ax-1re 7900  ax-icn 7901  ax-addcl 7902  ax-addrcl 7903  ax-mulcl 7904  ax-addcom 7906  ax-addass 7908  ax-distr 7910  ax-i2m1 7911  ax-0lt1 7912  ax-0id 7914  ax-rnegex 7915  ax-cnre 7917  ax-pre-ltirr 7918  ax-pre-ltwlin 7919  ax-pre-lttrn 7920  ax-pre-ltadd 7922
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 3577  df-sn 3598  df-pr 3599  df-op 3601  df-uni 3809  df-int 3844  df-br 4002  df-opab 4063  df-id 4291  df-xp 4630  df-rel 4631  df-cnv 4632  df-co 4633  df-dm 4634  df-iota 5175  df-fun 5215  df-fv 5221  df-riota 5826  df-ov 5873  df-oprab 5874  df-mpo 5875  df-pnf 7988  df-mnf 7989  df-xr 7990  df-ltxr 7991  df-le 7992  df-sub 8124  df-neg 8125  df-inn 8914  df-n0 9171  df-z 9248
This theorem is referenced by:  dfz2  9319
  Copyright terms: Public domain W3C validator