MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  uzin2 Structured version   Visualization version   GIF version

Theorem uzin2 14703
Description: The upper integers are closed under intersection. (Contributed by Mario Carneiro, 24-Dec-2013.)
Assertion
Ref Expression
uzin2 ((𝐴 ∈ ran ℤ𝐵 ∈ ran ℤ) → (𝐴𝐵) ∈ ran ℤ)

Proof of Theorem uzin2
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 uzf 12245 . . . 4 :ℤ⟶𝒫 ℤ
2 ffn 6513 . . . 4 (ℤ:ℤ⟶𝒫 ℤ → ℤ Fn ℤ)
31, 2ax-mp 5 . . 3 Fn ℤ
4 fvelrnb 6725 . . 3 (ℤ Fn ℤ → (𝐴 ∈ ran ℤ ↔ ∃𝑥 ∈ ℤ (ℤ𝑥) = 𝐴))
53, 4ax-mp 5 . 2 (𝐴 ∈ ran ℤ ↔ ∃𝑥 ∈ ℤ (ℤ𝑥) = 𝐴)
6 fvelrnb 6725 . . 3 (ℤ Fn ℤ → (𝐵 ∈ ran ℤ ↔ ∃𝑦 ∈ ℤ (ℤ𝑦) = 𝐵))
73, 6ax-mp 5 . 2 (𝐵 ∈ ran ℤ ↔ ∃𝑦 ∈ ℤ (ℤ𝑦) = 𝐵)
8 ineq1 4180 . . 3 ((ℤ𝑥) = 𝐴 → ((ℤ𝑥) ∩ (ℤ𝑦)) = (𝐴 ∩ (ℤ𝑦)))
98eleq1d 2897 . 2 ((ℤ𝑥) = 𝐴 → (((ℤ𝑥) ∩ (ℤ𝑦)) ∈ ran ℤ ↔ (𝐴 ∩ (ℤ𝑦)) ∈ ran ℤ))
10 ineq2 4182 . . 3 ((ℤ𝑦) = 𝐵 → (𝐴 ∩ (ℤ𝑦)) = (𝐴𝐵))
1110eleq1d 2897 . 2 ((ℤ𝑦) = 𝐵 → ((𝐴 ∩ (ℤ𝑦)) ∈ ran ℤ ↔ (𝐴𝐵) ∈ ran ℤ))
12 uzin 12277 . . 3 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → ((ℤ𝑥) ∩ (ℤ𝑦)) = (ℤ‘if(𝑥𝑦, 𝑦, 𝑥)))
13 ifcl 4510 . . . . 5 ((𝑦 ∈ ℤ ∧ 𝑥 ∈ ℤ) → if(𝑥𝑦, 𝑦, 𝑥) ∈ ℤ)
1413ancoms 461 . . . 4 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → if(𝑥𝑦, 𝑦, 𝑥) ∈ ℤ)
15 fnfvelrn 6847 . . . 4 ((ℤ Fn ℤ ∧ if(𝑥𝑦, 𝑦, 𝑥) ∈ ℤ) → (ℤ‘if(𝑥𝑦, 𝑦, 𝑥)) ∈ ran ℤ)
163, 14, 15sylancr 589 . . 3 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (ℤ‘if(𝑥𝑦, 𝑦, 𝑥)) ∈ ran ℤ)
1712, 16eqeltrd 2913 . 2 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → ((ℤ𝑥) ∩ (ℤ𝑦)) ∈ ran ℤ)
185, 7, 9, 11, 172gencl 3535 1 ((𝐴 ∈ ran ℤ𝐵 ∈ ran ℤ) → (𝐴𝐵) ∈ ran ℤ)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  wcel 2110  wrex 3139  cin 3934  ifcif 4466  𝒫 cpw 4538   class class class wbr 5065  ran crn 5555   Fn wfn 6349  wf 6350  cfv 6354  cle 10675  cz 11980  cuz 12242
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5202  ax-nul 5209  ax-pow 5265  ax-pr 5329  ax-un 7460  ax-cnex 10592  ax-resscn 10593  ax-pre-lttri 10610  ax-pre-lttrn 10611
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4838  df-br 5066  df-opab 5128  df-mpt 5146  df-id 5459  df-po 5473  df-so 5474  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-res 5566  df-ima 5567  df-iota 6313  df-fun 6356  df-fn 6357  df-f 6358  df-f1 6359  df-fo 6360  df-f1o 6361  df-fv 6362  df-ov 7158  df-er 8288  df-en 8509  df-dom 8510  df-sdom 8511  df-pnf 10676  df-mnf 10677  df-xr 10678  df-ltxr 10679  df-le 10680  df-neg 10872  df-z 11981  df-uz 12243
This theorem is referenced by:  rexanuz  14704  zfbas  22503  heibor1lem  35086
  Copyright terms: Public domain W3C validator