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

Theorem rexuzre 14714
Description: Convert an upper real quantifier to an upper integer quantifier. (Contributed by Mario Carneiro, 7-May-2016.)
Hypothesis
Ref Expression
rexuz3.1 𝑍 = (ℤ𝑀)
Assertion
Ref Expression
rexuzre (𝑀 ∈ ℤ → (∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑 ↔ ∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑)))
Distinct variable groups:   𝑗,𝑀   𝜑,𝑗   𝑗,𝑘,𝑍   𝑘,𝑀
Allowed substitution hint:   𝜑(𝑘)

Proof of Theorem rexuzre
Dummy variable 𝑚 is distinct from all other variables.
StepHypRef Expression
1 eluzelre 12257 . . . . . 6 (𝑗 ∈ (ℤ𝑀) → 𝑗 ∈ ℝ)
2 rexuz3.1 . . . . . 6 𝑍 = (ℤ𝑀)
31, 2eleq2s 2933 . . . . 5 (𝑗𝑍𝑗 ∈ ℝ)
43adantr 483 . . . 4 ((𝑗𝑍 ∧ ∀𝑘 ∈ (ℤ𝑗)𝜑) → 𝑗 ∈ ℝ)
5 eluzelz 12256 . . . . . . . . . . . 12 (𝑗 ∈ (ℤ𝑀) → 𝑗 ∈ ℤ)
65, 2eleq2s 2933 . . . . . . . . . . 11 (𝑗𝑍𝑗 ∈ ℤ)
7 eluzelz 12256 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ𝑀) → 𝑘 ∈ ℤ)
87, 2eleq2s 2933 . . . . . . . . . . 11 (𝑘𝑍𝑘 ∈ ℤ)
9 eluz 12260 . . . . . . . . . . 11 ((𝑗 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ (ℤ𝑗) ↔ 𝑗𝑘))
106, 8, 9syl2an 597 . . . . . . . . . 10 ((𝑗𝑍𝑘𝑍) → (𝑘 ∈ (ℤ𝑗) ↔ 𝑗𝑘))
1110biimprd 250 . . . . . . . . 9 ((𝑗𝑍𝑘𝑍) → (𝑗𝑘𝑘 ∈ (ℤ𝑗)))
1211expimpd 456 . . . . . . . 8 (𝑗𝑍 → ((𝑘𝑍𝑗𝑘) → 𝑘 ∈ (ℤ𝑗)))
1312imim1d 82 . . . . . . 7 (𝑗𝑍 → ((𝑘 ∈ (ℤ𝑗) → 𝜑) → ((𝑘𝑍𝑗𝑘) → 𝜑)))
1413exp4a 434 . . . . . 6 (𝑗𝑍 → ((𝑘 ∈ (ℤ𝑗) → 𝜑) → (𝑘𝑍 → (𝑗𝑘𝜑))))
1514ralimdv2 3178 . . . . 5 (𝑗𝑍 → (∀𝑘 ∈ (ℤ𝑗)𝜑 → ∀𝑘𝑍 (𝑗𝑘𝜑)))
1615imp 409 . . . 4 ((𝑗𝑍 ∧ ∀𝑘 ∈ (ℤ𝑗)𝜑) → ∀𝑘𝑍 (𝑗𝑘𝜑))
174, 16jca 514 . . 3 ((𝑗𝑍 ∧ ∀𝑘 ∈ (ℤ𝑗)𝜑) → (𝑗 ∈ ℝ ∧ ∀𝑘𝑍 (𝑗𝑘𝜑)))
1817reximi2 3246 . 2 (∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑 → ∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑))
19 simpl 485 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑀 ∈ ℤ)
20 flcl 13168 . . . . . . . . . 10 (𝑗 ∈ ℝ → (⌊‘𝑗) ∈ ℤ)
2120adantl 484 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (⌊‘𝑗) ∈ ℤ)
2221peano2zd 12093 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((⌊‘𝑗) + 1) ∈ ℤ)
2322, 19ifcld 4514 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℤ)
24 zre 11988 . . . . . . . 8 (𝑀 ∈ ℤ → 𝑀 ∈ ℝ)
25 reflcl 13169 . . . . . . . . 9 (𝑗 ∈ ℝ → (⌊‘𝑗) ∈ ℝ)
26 peano2re 10815 . . . . . . . . 9 ((⌊‘𝑗) ∈ ℝ → ((⌊‘𝑗) + 1) ∈ ℝ)
2725, 26syl 17 . . . . . . . 8 (𝑗 ∈ ℝ → ((⌊‘𝑗) + 1) ∈ ℝ)
28 max1 12581 . . . . . . . 8 ((𝑀 ∈ ℝ ∧ ((⌊‘𝑗) + 1) ∈ ℝ) → 𝑀 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
2924, 27, 28syl2an 597 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑀 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
30 eluz2 12252 . . . . . . 7 (if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ (ℤ𝑀) ↔ (𝑀 ∈ ℤ ∧ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℤ ∧ 𝑀 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)))
3119, 23, 29, 30syl3anbrc 1339 . . . . . 6 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ (ℤ𝑀))
3231, 2eleqtrrdi 2926 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ 𝑍)
33 impexp 453 . . . . . . 7 (((𝑘𝑍𝑗𝑘) → 𝜑) ↔ (𝑘𝑍 → (𝑗𝑘𝜑)))
34 uzss 12268 . . . . . . . . . . . . 13 (if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ (ℤ𝑀) → (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) ⊆ (ℤ𝑀))
3531, 34syl 17 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) ⊆ (ℤ𝑀))
3635, 2sseqtrrdi 4020 . . . . . . . . . . 11 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) ⊆ 𝑍)
3736sselda 3969 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑘𝑍)
38 simplr 767 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑗 ∈ ℝ)
3923adantr 483 . . . . . . . . . . . 12 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℤ)
4039zred 12090 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℝ)
41 eluzelre 12257 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → 𝑘 ∈ ℝ)
4241adantl 484 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑘 ∈ ℝ)
43 simpr 487 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑗 ∈ ℝ)
4427adantl 484 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((⌊‘𝑗) + 1) ∈ ℝ)
4523zred 12090 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℝ)
46 fllep1 13174 . . . . . . . . . . . . . 14 (𝑗 ∈ ℝ → 𝑗 ≤ ((⌊‘𝑗) + 1))
4746adantl 484 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑗 ≤ ((⌊‘𝑗) + 1))
48 max2 12583 . . . . . . . . . . . . . 14 ((𝑀 ∈ ℝ ∧ ((⌊‘𝑗) + 1) ∈ ℝ) → ((⌊‘𝑗) + 1) ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
4924, 27, 48syl2an 597 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((⌊‘𝑗) + 1) ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
5043, 44, 45, 47, 49letrd 10799 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑗 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
5150adantr 483 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑗 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
52 eluzle 12259 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ≤ 𝑘)
5352adantl 484 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ≤ 𝑘)
5438, 40, 42, 51, 53letrd 10799 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑗𝑘)
5537, 54jca 514 . . . . . . . . 9 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → (𝑘𝑍𝑗𝑘))
5655ex 415 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → (𝑘𝑍𝑗𝑘)))
5756imim1d 82 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (((𝑘𝑍𝑗𝑘) → 𝜑) → (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → 𝜑)))
5833, 57syl5bir 245 . . . . . 6 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((𝑘𝑍 → (𝑗𝑘𝜑)) → (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → 𝜑)))
5958ralimdv2 3178 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (∀𝑘𝑍 (𝑗𝑘𝜑) → ∀𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))𝜑))
60 fveq2 6672 . . . . . . 7 (𝑚 = if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) → (ℤ𝑚) = (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)))
6160raleqdv 3417 . . . . . 6 (𝑚 = if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) → (∀𝑘 ∈ (ℤ𝑚)𝜑 ↔ ∀𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))𝜑))
6261rspcev 3625 . . . . 5 ((if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ 𝑍 ∧ ∀𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))𝜑) → ∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑)
6332, 59, 62syl6an 682 . . . 4 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (∀𝑘𝑍 (𝑗𝑘𝜑) → ∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑))
6463rexlimdva 3286 . . 3 (𝑀 ∈ ℤ → (∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑) → ∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑))
65 fveq2 6672 . . . . 5 (𝑚 = 𝑗 → (ℤ𝑚) = (ℤ𝑗))
6665raleqdv 3417 . . . 4 (𝑚 = 𝑗 → (∀𝑘 ∈ (ℤ𝑚)𝜑 ↔ ∀𝑘 ∈ (ℤ𝑗)𝜑))
6766cbvrexvw 3452 . . 3 (∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑 ↔ ∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑)
6864, 67syl6ib 253 . 2 (𝑀 ∈ ℤ → (∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑) → ∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑))
6918, 68impbid2 228 1 (𝑀 ∈ ℤ → (∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑 ↔ ∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wcel 2114  wral 3140  wrex 3141  wss 3938  ifcif 4469   class class class wbr 5068  cfv 6357  (class class class)co 7158  cr 10538  1c1 10540   + caddc 10542  cle 10678  cz 11984  cuz 12246  cfl 13163
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332  ax-un 7463  ax-cnex 10595  ax-resscn 10596  ax-1cn 10597  ax-icn 10598  ax-addcl 10599  ax-addrcl 10600  ax-mulcl 10601  ax-mulrcl 10602  ax-mulcom 10603  ax-addass 10604  ax-mulass 10605  ax-distr 10606  ax-i2m1 10607  ax-1ne0 10608  ax-1rid 10609  ax-rnegex 10610  ax-rrecex 10611  ax-cnre 10612  ax-pre-lttri 10613  ax-pre-lttrn 10614  ax-pre-ltadd 10615  ax-pre-mulgt0 10616  ax-pre-sup 10617
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-nel 3126  df-ral 3145  df-rex 3146  df-reu 3147  df-rmo 3148  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-pss 3956  df-nul 4294  df-if 4470  df-pw 4543  df-sn 4570  df-pr 4572  df-tp 4574  df-op 4576  df-uni 4841  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-tr 5175  df-id 5462  df-eprel 5467  df-po 5476  df-so 5477  df-fr 5516  df-we 5518  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-pred 6150  df-ord 6196  df-on 6197  df-lim 6198  df-suc 6199  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-riota 7116  df-ov 7161  df-oprab 7162  df-mpo 7163  df-om 7583  df-wrecs 7949  df-recs 8010  df-rdg 8048  df-er 8291  df-en 8512  df-dom 8513  df-sdom 8514  df-sup 8908  df-inf 8909  df-pnf 10679  df-mnf 10680  df-xr 10681  df-ltxr 10682  df-le 10683  df-sub 10874  df-neg 10875  df-nn 11641  df-n0 11901  df-z 11985  df-uz 12247  df-fl 13165
This theorem is referenced by:  limsupubuz2  42101
  Copyright terms: Public domain W3C validator