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

Theorem dfceil2 13892
Description: Alternative definition of the ceiling function using restricted iota. (Contributed by AV, 1-Dec-2018.)
Assertion
Ref Expression
dfceil2 ⌈ = (𝑥 ∈ ℝ ↦ (𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1))))
Distinct variable group:   𝑥,𝑦

Proof of Theorem dfceil2
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 df-ceil 13846 . 2 ⌈ = (𝑥 ∈ ℝ ↦ -(⌊‘-𝑥))
2 zre 12613 . . . . . . 7 (𝑧 ∈ ℤ → 𝑧 ∈ ℝ)
3 lenegcon2 11737 . . . . . . . 8 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (𝑥 ≤ -𝑧𝑧 ≤ -𝑥))
4 peano2re 11401 . . . . . . . . . . 11 (𝑥 ∈ ℝ → (𝑥 + 1) ∈ ℝ)
54anim1ci 628 . . . . . . . . . 10 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (𝑧 ∈ ℝ ∧ (𝑥 + 1) ∈ ℝ))
6 ltnegcon1 11733 . . . . . . . . . 10 ((𝑧 ∈ ℝ ∧ (𝑥 + 1) ∈ ℝ) → (-𝑧 < (𝑥 + 1) ↔ -(𝑥 + 1) < 𝑧))
75, 6syl 18 . . . . . . . . 9 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (-𝑧 < (𝑥 + 1) ↔ -(𝑥 + 1) < 𝑧))
8 recn 11208 . . . . . . . . . . . 12 (𝑥 ∈ ℝ → 𝑥 ∈ ℂ)
9 1cnd 11220 . . . . . . . . . . . 12 (𝑥 ∈ ℝ → 1 ∈ ℂ)
108, 9negdid 11600 . . . . . . . . . . 11 (𝑥 ∈ ℝ → -(𝑥 + 1) = (-𝑥 + -1))
1110adantr 486 . . . . . . . . . 10 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → -(𝑥 + 1) = (-𝑥 + -1))
1211breq1d 5124 . . . . . . . . 9 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (-(𝑥 + 1) < 𝑧 ↔ (-𝑥 + -1) < 𝑧))
13 renegcl 11539 . . . . . . . . . . . 12 (𝑥 ∈ ℝ → -𝑥 ∈ ℝ)
1413adantr 486 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → -𝑥 ∈ ℝ)
15 neg1rr 12222 . . . . . . . . . . . 12 -1 ∈ ℝ
1615a1i 11 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → -1 ∈ ℝ)
17 simpr 490 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → 𝑧 ∈ ℝ)
1814, 16, 17ltaddsubd 11832 . . . . . . . . . 10 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → ((-𝑥 + -1) < 𝑧 ↔ -𝑥 < (𝑧 − -1)))
19 recn 11208 . . . . . . . . . . . . 13 (𝑧 ∈ ℝ → 𝑧 ∈ ℂ)
20 1cnd 11220 . . . . . . . . . . . . 13 (𝑧 ∈ ℝ → 1 ∈ ℂ)
2119, 20subnegd 11594 . . . . . . . . . . . 12 (𝑧 ∈ ℝ → (𝑧 − -1) = (𝑧 + 1))
2221adantl 487 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (𝑧 − -1) = (𝑧 + 1))
2322breq2d 5126 . . . . . . . . . 10 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (-𝑥 < (𝑧 − -1) ↔ -𝑥 < (𝑧 + 1)))
2418, 23bitrd 282 . . . . . . . . 9 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → ((-𝑥 + -1) < 𝑧 ↔ -𝑥 < (𝑧 + 1)))
257, 12, 243bitrd 308 . . . . . . . 8 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (-𝑧 < (𝑥 + 1) ↔ -𝑥 < (𝑧 + 1)))
263, 25anbi12d 644 . . . . . . 7 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → ((𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1)) ↔ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
272, 26sylan2 605 . . . . . 6 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℤ) → ((𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1)) ↔ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
2827riotabidva 7399 . . . . 5 (𝑥 ∈ ℝ → (𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))) = (𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
2928negeqd 11469 . . . 4 (𝑥 ∈ ℝ → -(𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))) = -(𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
30 zbtwnre 12988 . . . . 5 (𝑥 ∈ ℝ → ∃!𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1)))
31 breq2 5118 . . . . . . 7 (𝑦 = -𝑧 → (𝑥𝑦𝑥 ≤ -𝑧))
32 breq1 5117 . . . . . . 7 (𝑦 = -𝑧 → (𝑦 < (𝑥 + 1) ↔ -𝑧 < (𝑥 + 1)))
3331, 32anbi12d 644 . . . . . 6 (𝑦 = -𝑧 → ((𝑥𝑦𝑦 < (𝑥 + 1)) ↔ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))))
3433zriotaneg 12727 . . . . 5 (∃!𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1)) → (𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1))) = -(𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))))
3530, 34syl 18 . . . 4 (𝑥 ∈ ℝ → (𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1))) = -(𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))))
36 flval 13847 . . . . . 6 (-𝑥 ∈ ℝ → (⌊‘-𝑥) = (𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
3713, 36syl 18 . . . . 5 (𝑥 ∈ ℝ → (⌊‘-𝑥) = (𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
3837negeqd 11469 . . . 4 (𝑥 ∈ ℝ → -(⌊‘-𝑥) = -(𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
3929, 35, 383eqtr4rd 2812 . . 3 (𝑥 ∈ ℝ → -(⌊‘-𝑥) = (𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1))))
4039mpteq2ia 5211 . 2 (𝑥 ∈ ℝ ↦ -(⌊‘-𝑥)) = (𝑥 ∈ ℝ ↦ (𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1))))
411, 40eqtri 2789 1 ⌈ = (𝑥 ∈ ℝ ↦ (𝑦 ∈ ℤ (𝑥𝑦𝑦 < (𝑥 + 1))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wb 209  wa 401   = wceq 1570  wcel 2146  ∃!wreu 3370   class class class wbr 5114  cmpt 5197  cfv 6543  crio 7379  (class class class)co 7423  cr 11117  1c1 11119   + caddc 11121   < clt 11261  cle 11262  cmin 11459  -cneg 11460  cz 12609  cfl 13843  cceil 13844
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2738  ax-sep 5262  ax-nul 5274  ax-pow 5341  ax-pr 5409  ax-un 7745  ax-cnex 11174  ax-resscn 11175  ax-1cn 11176  ax-icn 11177  ax-addcl 11178  ax-addrcl 11179  ax-mulcl 11180  ax-mulrcl 11181  ax-mulcom 11182  ax-addass 11183  ax-mulass 11184  ax-distr 11185  ax-i2m1 11186  ax-1ne0 11187  ax-1rid 11188  ax-rnegex 11189  ax-rrecex 11190  ax-cnre 11191  ax-pre-lttri 11192  ax-pre-lttrn 11193  ax-pre-ltadd 11194  ax-pre-mulgt0 11195  ax-pre-sup 11196
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2841  df-nfc 2915  df-ne 2962  df-nel 3068  df-ral 3083  df-rex 3093  df-rmo 3372  df-reu 3373  df-rab 3420  df-v 3460  df-sbc 3748  df-csb 3857  df-dif 3911  df-un 3913  df-in 3915  df-ss 3925  df-pss 3928  df-nul 4290  df-if 4493  df-pw 4569  df-sn 4595  df-pr 4597  df-op 4601  df-uni 4878  df-iun 4963  df-br 5115  df-opab 5179  df-mpt 5198  df-tr 5224  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6309  df-ord 6370  df-on 6371  df-lim 6372  df-suc 6373  df-iota 6499  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7380  df-ov 7426  df-oprab 7427  df-mpo 7428  df-om 7872  df-2nd 7996  df-frecs 8287  df-wrecs 8318  df-recs 8367  df-rdg 8406  df-er 8703  df-en 8953  df-dom 8954  df-sdom 8955  df-sup 9412  df-inf 9413  df-pnf 11263  df-mnf 11264  df-xr 11265  df-ltxr 11266  df-le 11267  df-sub 11461  df-neg 11462  df-nn 12252  df-n0 12523  df-z 12610  df-uz 12881  df-fl 13845  df-ceil 13846
This theorem is used by:  ceilval2  13893
  Copyright terms: Public domain W3C validator