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 42046
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 10629 . . . . . . 7 0 ∈ V
21prid1 4691 . . . . . 6 0 ∈ {0, 1}
3 1re 10635 . . . . . . . 8 1 ∈ ℝ
43elexi 3513 . . . . . . 7 1 ∈ V
54prid2 4692 . . . . . 6 1 ∈ {0, 1}
62, 5ifcli 4512 . . . . 5 if(2 ∥ 𝑛, 0, 1) ∈ {0, 1}
76a1i 11 . . . 4 ((𝜑𝑛 ∈ (ℕ ∩ (𝐾[,)+∞))) → if(2 ∥ 𝑛, 0, 1) ∈ {0, 1})
87ralrimiva 3182 . . 3 (𝜑 → ∀𝑛 ∈ (ℕ ∩ (𝐾[,)+∞))if(2 ∥ 𝑛, 0, 1) ∈ {0, 1})
9 nfv 1911 . . . 4 𝑛𝜑
101, 4ifex 4514 . . . . 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 41530 . . 3 (𝜑 → ((𝐹 “ (𝐾[,)+∞)) ⊆ {0, 1} ↔ ∀𝑛 ∈ (ℕ ∩ (𝐾[,)+∞))if(2 ∥ 𝑛, 0, 1) ∈ {0, 1}))
148, 13mpbird 259 . 2 (𝜑 → (𝐹 “ (𝐾[,)+∞)) ⊆ {0, 1})
15 limsup10exlem.2 . . . . . . . . . 10 (𝜑𝐾 ∈ ℝ)
1615ceilcld 41719 . . . . . . . . 9 (𝜑 → (⌈‘𝐾) ∈ ℤ)
17 1zzd 12007 . . . . . . . . 9 (𝜑 → 1 ∈ ℤ)
1816, 17ifcld 4511 . . . . . . . 8 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ)
1918adantr 483 . . . . . . 7 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ)
20 simpr 487 . . . . . . 7 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → 𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
21 2teven 15698 . . . . . . 7 ((if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ ∧ 𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → 2 ∥ 𝑛)
2219, 20, 21syl2anc 586 . . . . . 6 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → 2 ∥ 𝑛)
2322iftrued 4474 . . . . 5 ((𝜑𝑛 = (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) → if(2 ∥ 𝑛, 0, 1) = 0)
24 2nn 11704 . . . . . . 7 2 ∈ ℕ
2524a1i 11 . . . . . 6 (𝜑 → 2 ∈ ℕ)
26 eqid 2821 . . . . . . . 8 (ℤ‘1) = (ℤ‘1)
273a1i 11 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ∈ ℝ)
2815adantr 483 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 𝐾 ∈ ℝ)
2916zred 12081 . . . . . . . . . . . 12 (𝜑 → (⌈‘𝐾) ∈ ℝ)
3029adantr 483 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → (⌈‘𝐾) ∈ ℝ)
31 simpr 487 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ≤ 𝐾)
3215ceilged 41713 . . . . . . . . . . . 12 (𝜑𝐾 ≤ (⌈‘𝐾))
3332adantr 483 . . . . . . . . . . 11 ((𝜑 ∧ 1 ≤ 𝐾) → 𝐾 ≤ (⌈‘𝐾))
3427, 28, 30, 31, 33letrd 10791 . . . . . . . . . 10 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ≤ (⌈‘𝐾))
35 iftrue 4472 . . . . . . . . . . 11 (1 ≤ 𝐾 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = (⌈‘𝐾))
3635adantl 484 . . . . . . . . . 10 ((𝜑 ∧ 1 ≤ 𝐾) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = (⌈‘𝐾))
3734, 36breqtrrd 5086 . . . . . . . . 9 ((𝜑 ∧ 1 ≤ 𝐾) → 1 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
383leidi 11168 . . . . . . . . . . 11 1 ≤ 1
3938a1i 11 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 ≤ 1)
40 iffalse 4475 . . . . . . . . . . 11 (¬ 1 ≤ 𝐾 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = 1)
4140adantl 484 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) = 1)
4239, 41breqtrrd 5086 . . . . . . . . 9 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
4337, 42pm2.61dan 811 . . . . . . . 8 (𝜑 → 1 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
4426, 17, 18, 43eluzd 41675 . . . . . . 7 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ (ℤ‘1))
45 nnuz 12275 . . . . . . 7 ℕ = (ℤ‘1)
4644, 45eleqtrrdi 2924 . . . . . 6 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℕ)
4725, 46nnmulcld 11684 . . . . 5 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ ℕ)
481a1i 11 . . . . 5 (𝜑 → 0 ∈ V)
4912, 23, 47, 48fvmptd2 6770 . . . 4 (𝜑 → (𝐹‘(2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) = 0)
5010, 12fnmpti 6485 . . . . . 6 𝐹 Fn ℕ
5150a1i 11 . . . . 5 (𝜑𝐹 Fn ℕ)
5215rexrd 10685 . . . . . 6 (𝜑𝐾 ∈ ℝ*)
53 pnfxr 10689 . . . . . . 7 +∞ ∈ ℝ*
5453a1i 11 . . . . . 6 (𝜑 → +∞ ∈ ℝ*)
5547nnxrd 41292 . . . . . 6 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ ℝ*)
5647nnred 11647 . . . . . . 7 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ ℝ)
5746nnred 11647 . . . . . . . 8 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℝ)
5833, 36breqtrrd 5086 . . . . . . . . 9 ((𝜑 ∧ 1 ≤ 𝐾) → 𝐾 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
5915adantr 483 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 ∈ ℝ)
603a1i 11 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 ∈ ℝ)
61 simpr 487 . . . . . . . . . . . 12 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → ¬ 1 ≤ 𝐾)
6259, 60, 61nleltd 41721 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 < 1)
6359, 60, 62ltled 10782 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 ≤ 1)
6441eqcomd 2827 . . . . . . . . . 10 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 1 = if(1 ≤ 𝐾, (⌈‘𝐾), 1))
6563, 64breqtrd 5084 . . . . . . . . 9 ((𝜑 ∧ ¬ 1 ≤ 𝐾) → 𝐾 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
6658, 65pm2.61dan 811 . . . . . . . 8 (𝜑𝐾 ≤ if(1 ≤ 𝐾, (⌈‘𝐾), 1))
6746nnrpd 12423 . . . . . . . . 9 (𝜑 → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℝ+)
68 2timesgt 41547 . . . . . . . . 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 10792 . . . . . . 7 (𝜑𝐾 < (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
7115, 56, 70ltled 10782 . . . . . 6 (𝜑𝐾 ≤ (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)))
7256ltpnfd 12510 . . . . . 6 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) < +∞)
7352, 54, 55, 71, 72elicod 12781 . . . . 5 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) ∈ (𝐾[,)+∞))
7451, 47, 73fnfvimad 6990 . . . 4 (𝜑 → (𝐹‘(2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1))) ∈ (𝐹 “ (𝐾[,)+∞)))
7549, 74eqeltrrd 2914 . . 3 (𝜑 → 0 ∈ (𝐹 “ (𝐾[,)+∞)))
7618adantr 483 . . . . . . 7 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ)
77 simpr 487 . . . . . . 7 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → 𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
78 2tp1odd 15695 . . . . . . 7 ((if(1 ≤ 𝐾, (⌈‘𝐾), 1) ∈ ℤ ∧ 𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → ¬ 2 ∥ 𝑛)
7976, 77, 78syl2anc 586 . . . . . 6 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → ¬ 2 ∥ 𝑛)
8079iffalsed 4477 . . . . 5 ((𝜑𝑛 = ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) → if(2 ∥ 𝑛, 0, 1) = 1)
8147peano2nnd 11649 . . . . 5 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ ℕ)
82 1xr 10694 . . . . . 6 1 ∈ ℝ*
8382a1i 11 . . . . 5 (𝜑 → 1 ∈ ℝ*)
8412, 80, 81, 83fvmptd2 6770 . . . 4 (𝜑 → (𝐹‘((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) = 1)
8581nnxrd 41292 . . . . . 6 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ ℝ*)
8681nnred 11647 . . . . . . 7 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ ℝ)
8756ltp1d 11564 . . . . . . . 8 (𝜑 → (2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) < ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
8815, 56, 86, 70, 87lttrd 10795 . . . . . . 7 (𝜑𝐾 < ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
8915, 86, 88ltled 10782 . . . . . 6 (𝜑𝐾 ≤ ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1))
9086ltpnfd 12510 . . . . . 6 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) < +∞)
9152, 54, 85, 89, 90elicod 12781 . . . . 5 (𝜑 → ((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1) ∈ (𝐾[,)+∞))
9251, 81, 91fnfvimad 6990 . . . 4 (𝜑 → (𝐹‘((2 · if(1 ≤ 𝐾, (⌈‘𝐾), 1)) + 1)) ∈ (𝐹 “ (𝐾[,)+∞)))
9384, 92eqeltrrd 2914 . . 3 (𝜑 → 1 ∈ (𝐹 “ (𝐾[,)+∞)))
9475, 93prssd 4748 . 2 (𝜑 → {0, 1} ⊆ (𝐹 “ (𝐾[,)+∞)))
9514, 94eqssd 3983 1 (𝜑 → (𝐹 “ (𝐾[,)+∞)) = {0, 1})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398   = wceq 1533  wcel 2110  wral 3138  Vcvv 3494  cin 3934  wss 3935  ifcif 4466  {cpr 4562   class class class wbr 5058  cmpt 5138  cima 5552   Fn wfn 6344  cfv 6349  (class class class)co 7150  cr 10530  0cc0 10531  1c1 10532   + caddc 10534   · cmul 10536  +∞cpnf 10666  *cxr 10668   < clt 10669  cle 10670  cn 11632  2c2 11686  cz 11975  cuz 12237  +crp 12383  [,)cico 12734  cceil 13155  cdvds 15601
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 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455  ax-cnex 10587  ax-resscn 10588  ax-1cn 10589  ax-icn 10590  ax-addcl 10591  ax-addrcl 10592  ax-mulcl 10593  ax-mulrcl 10594  ax-mulcom 10595  ax-addass 10596  ax-mulass 10597  ax-distr 10598  ax-i2m1 10599  ax-1ne0 10600  ax-1rid 10601  ax-rnegex 10602  ax-rrecex 10603  ax-cnre 10604  ax-pre-lttri 10605  ax-pre-lttrn 10606  ax-pre-ltadd 10607  ax-pre-mulgt0 10608  ax-pre-sup 10609
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-reu 3145  df-rmo 3146  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-pss 3953  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4561  df-pr 4563  df-tp 4565  df-op 4567  df-uni 4832  df-iun 4913  df-br 5059  df-opab 5121  df-mpt 5139  df-tr 5165  df-id 5454  df-eprel 5459  df-po 5468  df-so 5469  df-fr 5508  df-we 5510  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-res 5561  df-ima 5562  df-pred 6142  df-ord 6188  df-on 6189  df-lim 6190  df-suc 6191  df-iota 6308  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7575  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-er 8283  df-en 8504  df-dom 8505  df-sdom 8506  df-sup 8900  df-inf 8901  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-sub 10866  df-neg 10867  df-div 11292  df-nn 11633  df-2 11694  df-n0 11892  df-z 11976  df-uz 12238  df-rp 12384  df-ico 12738  df-fl 13156  df-ceil 13157  df-dvds 15602
This theorem is referenced by:  limsup10ex  42047  liminf10ex  42048
  Copyright terms: Public domain W3C validator