Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  limsup10exlem Structured version   Visualization version   GIF version

Theorem limsup10exlem 42414
Description: The range of the given function. (Contributed by Glauco Siliprandi, 2-Jan-2022.)
Hypotheses
Ref Expression
limsup10exlem.1 𝐹 = (𝑛 ∈ ℕ ↦ if(2 ∥ 𝑛, 0, 1))
limsup10exlem.2 (𝜑𝐾 ∈ ℝ)
Assertion
Ref Expression
limsup10exlem (𝜑 → (𝐹 “ (𝐾[,)+∞)) = {0, 1})
Distinct variable groups:   𝑛,𝐾   𝜑,𝑛
Allowed substitution hint:   𝐹(𝑛)

Proof of Theorem limsup10exlem
StepHypRef Expression
1 c0ex 10624 . . . . . . 7 0 ∈ V
21prid1 4658 . . . . . 6 0 ∈ {0, 1}
3 1re 10630 . . . . . . . 8 1 ∈ ℝ
43elexi 3460 . . . . . . 7 1 ∈ V
54prid2 4659 . . . . . 6 1 ∈ {0, 1}
62, 5ifcli 4471 . . . . 5 if(2 ∥ 𝑛, 0, 1) ∈ {0, 1}
76a1i 11 . . . 4 ((𝜑𝑛 ∈ (ℕ ∩ (𝐾[,)+∞))) → if(2 ∥ 𝑛, 0, 1) ∈ {0, 1})
87ralrimiva 3149 . . 3 (𝜑 → ∀𝑛 ∈ (ℕ ∩ (𝐾[,)+∞))if(2 ∥ 𝑛, 0, 1) ∈ {0, 1})
9 nfv 1915 . . . 4 𝑛𝜑
101, 4ifex 4473 . . . . 5 if(2 ∥ 𝑛, 0, 1) ∈ V
1110a1i 11 . . . 4 ((𝜑𝑛 ∈ (ℕ ∩ (𝐾[,)+∞))) → if(2 ∥ 𝑛, 0, 1) ∈ V)
12 limsup10exlem.1 . . . 4 𝐹 = (𝑛 ∈ ℕ ↦ if(2 ∥ 𝑛, 0, 1))
139, 11, 12imassmpt 41902 . . 3 (𝜑 → ((𝐹 “ (𝐾[,)+∞)) ⊆ {0, 1} ↔ ∀𝑛 ∈ (ℕ ∩ (𝐾[,)+∞))if(2 ∥ 𝑛, 0, 1) ∈ {0, 1}))
148, 13mpbird 260 . 2 (𝜑 → (𝐹 “ (𝐾[,)+∞)) ⊆ {0, 1})
15 limsup10exlem.2 . . . . . . . . . 10 (𝜑𝐾 ∈ ℝ)
1615ceilcld 42089 . . . . . . . . 9 (𝜑 → (⌈‘𝐾) ∈ ℤ)
17 1zzd 12001 . . . . . . . . 9 (𝜑 → 1 ∈ ℤ)
1816, 17ifcld 4470 . . . . . . . 8 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ)
1918adantr 484 . . . . . . 7 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ)
20 simpr 488 . . . . . . 7 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → 𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
21 2teven 15696 . . . . . . 7 ((if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ ∧ 𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → 2 ∥ 𝑛)
2219, 20, 21syl2anc 587 . . . . . 6 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → 2 ∥ 𝑛)
2322iftrued 4433 . . . . 5 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → if(2 ∥ 𝑛, 0, 1) = 0)
24 2nn 11698 . . . . . . 7 2 ∈ ℕ
2524a1i 11 . . . . . 6 (𝜑 → 2 ∈ ℕ)
26 eqid 2798 . . . . . . . 8 (ℤ‘1) = (ℤ‘1)
273a1i 11 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ∈ ℝ)
2815adantr 484 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 𝐾 ∈ ℝ)
2916zred 12075 . . . . . . . . . . . 12 (𝜑 → (⌈‘𝐾) ∈ ℝ)
3029adantr 484 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → (⌈‘𝐾) ∈ ℝ)
31 simpr 488 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ≤ 𝐾)
3215ceilged 42083 . . . . . . . . . . . 12 (𝜑𝐾 ≤ (⌈‘𝐾))
3332adantr 484 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 𝐾 ≤ (⌈‘𝐾))
3427, 28, 30, 31, 33letrd 10786 . . . . . . . . . 10 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ≤ (⌈‘𝐾))
35 iftrue 4431 . . . . . . . . . . 11 (1 ≤ 𝐾 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = (⌈‘𝐾))
3635adantl 485 . . . . . . . . . 10 ((𝜑 ∧ 1 ≤ 𝐾) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = (⌈‘𝐾))
3734, 36breqtrrd 5058 . . . . . . . . 9 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
383leidi 11163 . . . . . . . . . . 11 1 ≤ 1
3938a1i 11 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 ≤ 1)
40 iffalse 4434 . . . . . . . . . . 11 (¬ 1 ≤ 𝐾 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = 1)
4140adantl 485 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = 1)
4239, 41breqtrrd 5058 . . . . . . . . 9 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
4337, 42pm2.61dan 812 . . . . . . . 8 (𝜑 → 1 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
4426, 17, 18, 43eluzd 42046 . . . . . . 7 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ (ℤ‘1))
45 nnuz 12269 . . . . . . 7 ℕ = (ℤ‘1)
4644, 45eleqtrrdi 2901 . . . . . 6 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℕ)
4725, 46nnmulcld 11678 . . . . 5 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ ℕ)
481a1i 11 . . . . 5 (𝜑 → 0 ∈ V)
4912, 23, 47, 48fvmptd2 6753 . . . 4 (𝜑 → (𝐹‘(2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) = 0)
5010, 12fnmpti 6463 . . . . . 6 𝐹 Fn ℕ
5150a1i 11 . . . . 5 (𝜑𝐹 Fn ℕ)
5215rexrd 10680 . . . . . 6 (𝜑𝐾 ∈ ℝ*)
53 pnfxr 10684 . . . . . . 7 +∞ ∈ ℝ*
5453a1i 11 . . . . . 6 (𝜑 → +∞ ∈ ℝ*)
5547nnxrd 41671 . . . . . 6 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ ℝ*)
5647nnred 11640 . . . . . . 7 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ ℝ)
5746nnred 11640 . . . . . . . 8 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℝ)
5833, 36breqtrrd 5058 . . . . . . . . 9 ((𝜑 ∧ 1 ≤ 𝐾) → 𝐾 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
5915adantr 484 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 ∈ ℝ)
603a1i 11 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 ∈ ℝ)
61 simpr 488 . . . . . . . . . . . 12 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → ¬ 1 ≤ 𝐾)
6259, 60, 61nleltd 42091 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 < 1)
6359, 60, 62ltled 10777 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 ≤ 1)
6441eqcomd 2804 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 = if(1 ≤ 𝐾, (⌈‘𝐾), 1))
6563, 64breqtrd 5056 . . . . . . . . 9 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
6658, 65pm2.61dan 812 . . . . . . . 8 (𝜑𝐾 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
6746nnrpd 12417 . . . . . . . . 9 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℝ+)
68 2timesgt 41919 . . . . . . . . 9 (if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℝ+ → if(1 ≤ 𝐾, (⌈‘𝐾), 1) < (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
6967, 68syl 17 . . . . . . . 8 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) < (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
7015, 57, 56, 66, 69lelttrd 10787 . . . . . . 7 (𝜑𝐾 < (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
7115, 56, 70ltled 10777 . . . . . 6 (𝜑𝐾 ≤ (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
7256ltpnfd 12504 . . . . . 6 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) < +∞)
7352, 54, 55, 71, 72elicod 12775 . . . . 5 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ (𝐾[,)+∞))
7451, 47, 73fnfvimad 6974 . . . 4 (𝜑 → (𝐹‘(2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) ∈ (𝐹 “ (𝐾[,)+∞)))
7549, 74eqeltrrd 2891 . . 3 (𝜑 → 0 ∈ (𝐹 “ (𝐾[,)+∞)))
7618adantr 484 . . . . . . 7 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ)
77 simpr 488 . . . . . . 7 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → 𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
78 2tp1odd 15693 . . . . . . 7 ((if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ ∧ 𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → ¬ 2 ∥ 𝑛)
7976, 77, 78syl2anc 587 . . . . . 6 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → ¬ 2 ∥ 𝑛)
8079iffalsed 4436 . . . . 5 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → if(2 ∥ 𝑛, 0, 1) = 1)
8147peano2nnd 11642 . . . . 5 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ ℕ)
82 1xr 10689 . . . . . 6 1 ∈ ℝ*
8382a1i 11 . . . . 5 (𝜑 → 1 ∈ ℝ*)
8412, 80, 81, 83fvmptd2 6753 . . . 4 (𝜑 → (𝐹‘((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) = 1)
8581nnxrd 41671 . . . . . 6 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ ℝ*)
8681nnred 11640 . . . . . . 7 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ ℝ)
8756ltp1d 11559 . . . . . . . 8 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) < ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
8815, 56, 86, 70, 87lttrd 10790 . . . . . . 7 (𝜑𝐾 < ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
8915, 86, 88ltled 10777 . . . . . 6 (𝜑𝐾 ≤ ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
9086ltpnfd 12504 . . . . . 6 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) < +∞)
9152, 54, 85, 89, 90elicod 12775 . . . . 5 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ (𝐾[,)+∞))
9251, 81, 91fnfvimad 6974 . . . 4 (𝜑 → (𝐹‘((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) ∈ (𝐹 “ (𝐾[,)+∞)))
9384, 92eqeltrrd 2891 . . 3 (𝜑 → 1 ∈ (𝐹 “ (𝐾[,)+∞)))
9475, 93prssd 4715 . 2 (𝜑 → {0, 1} ⊆ (𝐹 “ (𝐾[,)+∞)))
9514, 94eqssd 3932 1 (𝜑 → (𝐹 “ (𝐾[,)+∞)) = {0, 1})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399   = wceq 1538  wcel 2111  wral 3106  Vcvv 3441  cin 3880  wss 3881  ifcif 4425  {cpr 4527   class class class wbr 5030  cmpt 5110  cima 5522   Fn wfn 6319  cfv 6324  (class class class)co 7135  cr 10525  0cc0 10526  1c1 10527   + caddc 10529   · cmul 10531  +∞cpnf 10661  *cxr 10663   < clt 10664  cle 10665  cn 11625  2c2 11680  cz 11969  cuz 12231  +crp 12377  [,)cico 12728  cceil 13156  cdvds 15599
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603  ax-pre-sup 10604
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-sup 8890  df-inf 8891  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-div 11287  df-nn 11626  df-2 11688  df-n0 11886  df-z 11970  df-uz 12232  df-rp 12378  df-ico 12732  df-fl 13157  df-ceil 13158  df-dvds 15600
This theorem is referenced by:  limsup10ex  42415  liminf10ex  42416
  Copyright terms: Public domain W3C validator