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

Theorem rexuzre 14092
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 11698 . . . . . 6 (𝑗 ∈ (ℤ𝑀) → 𝑗 ∈ ℝ)
2 rexuz3.1 . . . . . 6 𝑍 = (ℤ𝑀)
31, 2eleq2s 2719 . . . . 5 (𝑗𝑍𝑗 ∈ ℝ)
43adantr 481 . . . 4 ((𝑗𝑍 ∧ ∀𝑘 ∈ (ℤ𝑗)𝜑) → 𝑗 ∈ ℝ)
5 eluzelz 11697 . . . . . . . . . . . 12 (𝑗 ∈ (ℤ𝑀) → 𝑗 ∈ ℤ)
65, 2eleq2s 2719 . . . . . . . . . . 11 (𝑗𝑍𝑗 ∈ ℤ)
7 eluzelz 11697 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ𝑀) → 𝑘 ∈ ℤ)
87, 2eleq2s 2719 . . . . . . . . . . 11 (𝑘𝑍𝑘 ∈ ℤ)
9 eluz 11701 . . . . . . . . . . 11 ((𝑗 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ (ℤ𝑗) ↔ 𝑗𝑘))
106, 8, 9syl2an 494 . . . . . . . . . 10 ((𝑗𝑍𝑘𝑍) → (𝑘 ∈ (ℤ𝑗) ↔ 𝑗𝑘))
1110biimprd 238 . . . . . . . . 9 ((𝑗𝑍𝑘𝑍) → (𝑗𝑘𝑘 ∈ (ℤ𝑗)))
1211expimpd 629 . . . . . . . 8 (𝑗𝑍 → ((𝑘𝑍𝑗𝑘) → 𝑘 ∈ (ℤ𝑗)))
1312imim1d 82 . . . . . . 7 (𝑗𝑍 → ((𝑘 ∈ (ℤ𝑗) → 𝜑) → ((𝑘𝑍𝑗𝑘) → 𝜑)))
1413exp4a 633 . . . . . 6 (𝑗𝑍 → ((𝑘 ∈ (ℤ𝑗) → 𝜑) → (𝑘𝑍 → (𝑗𝑘𝜑))))
1514ralimdv2 2961 . . . . 5 (𝑗𝑍 → (∀𝑘 ∈ (ℤ𝑗)𝜑 → ∀𝑘𝑍 (𝑗𝑘𝜑)))
1615imp 445 . . . 4 ((𝑗𝑍 ∧ ∀𝑘 ∈ (ℤ𝑗)𝜑) → ∀𝑘𝑍 (𝑗𝑘𝜑))
174, 16jca 554 . . 3 ((𝑗𝑍 ∧ ∀𝑘 ∈ (ℤ𝑗)𝜑) → (𝑗 ∈ ℝ ∧ ∀𝑘𝑍 (𝑗𝑘𝜑)))
1817reximi2 3010 . 2 (∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑 → ∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑))
19 simpl 473 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑀 ∈ ℤ)
20 flcl 12596 . . . . . . . . . 10 (𝑗 ∈ ℝ → (⌊‘𝑗) ∈ ℤ)
2120adantl 482 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (⌊‘𝑗) ∈ ℤ)
2221peano2zd 11485 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((⌊‘𝑗) + 1) ∈ ℤ)
2322, 19ifcld 4131 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℤ)
24 zre 11381 . . . . . . . 8 (𝑀 ∈ ℤ → 𝑀 ∈ ℝ)
25 reflcl 12597 . . . . . . . . 9 (𝑗 ∈ ℝ → (⌊‘𝑗) ∈ ℝ)
26 peano2re 10209 . . . . . . . . 9 ((⌊‘𝑗) ∈ ℝ → ((⌊‘𝑗) + 1) ∈ ℝ)
2725, 26syl 17 . . . . . . . 8 (𝑗 ∈ ℝ → ((⌊‘𝑗) + 1) ∈ ℝ)
28 max1 12016 . . . . . . . 8 ((𝑀 ∈ ℝ ∧ ((⌊‘𝑗) + 1) ∈ ℝ) → 𝑀 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
2924, 27, 28syl2an 494 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑀 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
30 eluz2 11693 . . . . . . 7 (if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ (ℤ𝑀) ↔ (𝑀 ∈ ℤ ∧ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℤ ∧ 𝑀 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)))
3119, 23, 29, 30syl3anbrc 1246 . . . . . 6 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ (ℤ𝑀))
3231, 2syl6eleqr 2712 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ 𝑍)
33 impexp 462 . . . . . . 7 (((𝑘𝑍𝑗𝑘) → 𝜑) ↔ (𝑘𝑍 → (𝑗𝑘𝜑)))
34 uzss 11708 . . . . . . . . . . . . 13 (if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ (ℤ𝑀) → (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) ⊆ (ℤ𝑀))
3531, 34syl 17 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) ⊆ (ℤ𝑀))
3635, 2syl6sseqr 3652 . . . . . . . . . . 11 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) ⊆ 𝑍)
3736sselda 3603 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑘𝑍)
38 simplr 792 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑗 ∈ ℝ)
3923adantr 481 . . . . . . . . . . . 12 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℤ)
4039zred 11482 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℝ)
41 eluzelre 11698 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → 𝑘 ∈ ℝ)
4241adantl 482 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑘 ∈ ℝ)
43 simpr 477 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑗 ∈ ℝ)
4427adantl 482 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((⌊‘𝑗) + 1) ∈ ℝ)
4523zred 11482 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ ℝ)
46 fllep1 12602 . . . . . . . . . . . . . 14 (𝑗 ∈ ℝ → 𝑗 ≤ ((⌊‘𝑗) + 1))
4746adantl 482 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑗 ≤ ((⌊‘𝑗) + 1))
48 max2 12018 . . . . . . . . . . . . . 14 ((𝑀 ∈ ℝ ∧ ((⌊‘𝑗) + 1) ∈ ℝ) → ((⌊‘𝑗) + 1) ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
4924, 27, 48syl2an 494 . . . . . . . . . . . . 13 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((⌊‘𝑗) + 1) ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
5043, 44, 45, 47, 49letrd 10194 . . . . . . . . . . . 12 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → 𝑗 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
5150adantr 481 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑗 ≤ if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))
52 eluzle 11700 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ≤ 𝑘)
5352adantl 482 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ≤ 𝑘)
5438, 40, 42, 51, 53letrd 10194 . . . . . . . . . 10 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → 𝑗𝑘)
5537, 54jca 554 . . . . . . . . 9 (((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) ∧ 𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))) → (𝑘𝑍𝑗𝑘))
5655ex 450 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → (𝑘𝑍𝑗𝑘)))
5756imim1d 82 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (((𝑘𝑍𝑗𝑘) → 𝜑) → (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → 𝜑)))
5833, 57syl5bir 233 . . . . . 6 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → ((𝑘𝑍 → (𝑗𝑘𝜑)) → (𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)) → 𝜑)))
5958ralimdv2 2961 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (∀𝑘𝑍 (𝑗𝑘𝜑) → ∀𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))𝜑))
60 fveq2 6191 . . . . . . 7 (𝑚 = if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) → (ℤ𝑚) = (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀)))
6160raleqdv 3144 . . . . . 6 (𝑚 = if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) → (∀𝑘 ∈ (ℤ𝑚)𝜑 ↔ ∀𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))𝜑))
6261rspcev 3309 . . . . 5 ((if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀) ∈ 𝑍 ∧ ∀𝑘 ∈ (ℤ‘if(𝑀 ≤ ((⌊‘𝑗) + 1), ((⌊‘𝑗) + 1), 𝑀))𝜑) → ∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑)
6332, 59, 62syl6an 568 . . . 4 ((𝑀 ∈ ℤ ∧ 𝑗 ∈ ℝ) → (∀𝑘𝑍 (𝑗𝑘𝜑) → ∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑))
6463rexlimdva 3031 . . 3 (𝑀 ∈ ℤ → (∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑) → ∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑))
65 fveq2 6191 . . . . 5 (𝑚 = 𝑗 → (ℤ𝑚) = (ℤ𝑗))
6665raleqdv 3144 . . . 4 (𝑚 = 𝑗 → (∀𝑘 ∈ (ℤ𝑚)𝜑 ↔ ∀𝑘 ∈ (ℤ𝑗)𝜑))
6766cbvrexv 3172 . . 3 (∃𝑚𝑍𝑘 ∈ (ℤ𝑚)𝜑 ↔ ∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑)
6864, 67syl6ib 241 . 2 (𝑀 ∈ ℤ → (∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑) → ∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑))
6918, 68impbid2 216 1 (𝑀 ∈ ℤ → (∃𝑗𝑍𝑘 ∈ (ℤ𝑗)𝜑 ↔ ∃𝑗 ∈ ℝ ∀𝑘𝑍 (𝑗𝑘𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1483  wcel 1990  wral 2912  wrex 2913  wss 3574  ifcif 4086   class class class wbr 4653  cfv 5888  (class class class)co 6650  cr 9935  1c1 9937   + caddc 9939  cle 10075  cz 11377  cuz 11687  cfl 12591
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949  ax-cnex 9992  ax-resscn 9993  ax-1cn 9994  ax-icn 9995  ax-addcl 9996  ax-addrcl 9997  ax-mulcl 9998  ax-mulrcl 9999  ax-mulcom 10000  ax-addass 10001  ax-mulass 10002  ax-distr 10003  ax-i2m1 10004  ax-1ne0 10005  ax-1rid 10006  ax-rnegex 10007  ax-rrecex 10008  ax-cnre 10009  ax-pre-lttri 10010  ax-pre-lttrn 10011  ax-pre-ltadd 10012  ax-pre-mulgt0 10013  ax-pre-sup 10014
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1038  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-nel 2898  df-ral 2917  df-rex 2918  df-reu 2919  df-rmo 2920  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-pss 3590  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-tp 4182  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-tr 4753  df-id 5024  df-eprel 5029  df-po 5035  df-so 5036  df-fr 5073  df-we 5075  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-pred 5680  df-ord 5726  df-on 5727  df-lim 5728  df-suc 5729  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-riota 6611  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-om 7066  df-wrecs 7407  df-recs 7468  df-rdg 7506  df-er 7742  df-en 7956  df-dom 7957  df-sdom 7958  df-sup 8348  df-inf 8349  df-pnf 10076  df-mnf 10077  df-xr 10078  df-ltxr 10079  df-le 10080  df-sub 10268  df-neg 10269  df-nn 11021  df-n0 11293  df-z 11378  df-uz 11688  df-fl 12593
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator