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

Theorem dfceil2 13959
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 13913 . 2 ⌈ = (𝑥 ∈ ℝ ↦ -(⌊‘-𝑥))
2 zre 12678 . . . . . . 7 (𝑧 ∈ ℤ → 𝑧 ∈ ℝ)
3 lenegcon2 11802 . . . . . . . 8 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (𝑥 ≤ -𝑧 ↔ 𝑧 ≤ -𝑥))
4 peano2re 11464 . . . . . . . . . . 11 (𝑥 ∈ ℝ → (𝑥 + 1) ∈ ℝ)
54anim1ci 628 . . . . . . . . . 10 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (𝑧 ∈ ℝ ∧ (𝑥 + 1) ∈ ℝ))
6 ltnegcon1 11798 . . . . . . . . . 10 ((𝑧 ∈ ℝ ∧ (𝑥 + 1) ∈ ℝ) → (-𝑧 < (𝑥 + 1) ↔ -(𝑥 + 1) < 𝑧))
75, 6syl 18 . . . . . . . . 9 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (-𝑧 < (𝑥 + 1) ↔ -(𝑥 + 1) < 𝑧))
8 recn 11271 . . . . . . . . . . . 12 (𝑥 ∈ ℝ → 𝑥 ∈ ℂ)
9 1cnd 11283 . . . . . . . . . . . 12 (𝑥 ∈ ℝ → 1 ∈ ℂ)
108, 9negdid 11663 . . . . . . . . . . 11 (𝑥 ∈ ℝ → -(𝑥 + 1) = (-𝑥 + -1))
1110adantr 486 . . . . . . . . . 10 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → -(𝑥 + 1) = (-𝑥 + -1))
1211breq1d 5113 . . . . . . . . 9 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (-(𝑥 + 1) < 𝑧 ↔ (-𝑥 + -1) < 𝑧))
13 renegcl 11602 . . . . . . . . . . . 12 (𝑥 ∈ ℝ → -𝑥 ∈ ℝ)
1413adantr 486 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → -𝑥 ∈ ℝ)
15 neg1rr 12287 . . . . . . . . . . . 12 -1 ∈ ℝ
1615a1i 11 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → -1 ∈ ℝ)
17 simpr 490 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → 𝑧 ∈ ℝ)
1814, 16, 17ltaddsubd 11897 . . . . . . . . . 10 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → ((-𝑥 + -1) < 𝑧 ↔ -𝑥 < (𝑧 − -1)))
19 recn 11271 . . . . . . . . . . . . 13 (𝑧 ∈ ℝ → 𝑧 ∈ ℂ)
20 1cnd 11283 . . . . . . . . . . . . 13 (𝑧 ∈ ℝ → 1 ∈ ℂ)
2119, 20subnegd 11657 . . . . . . . . . . . 12 (𝑧 ∈ ℝ → (𝑧 − -1) = (𝑧 + 1))
2221adantl 487 . . . . . . . . . . 11 ((𝑥 ∈ ℝ ∧ 𝑧 ∈ ℝ) → (𝑧 − -1) = (𝑧 + 1))
2322breq2d 5115 . . . . . . . . . 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 7388 . . . . 5 (𝑥 ∈ ℝ → (℩𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))) = (℩𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
2928negeqd 11532 . . . 4 (𝑥 ∈ ℝ → -(℩𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))) = -(℩𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
30 zbtwnre 13054 . . . . 5 (𝑥 ∈ ℝ → ∃!𝑦 ∈ ℤ (𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1)))
31 breq2 5107 . . . . . . 7 (𝑦 = -𝑧 → (𝑥 ≤ 𝑦 ↔ 𝑥 ≤ -𝑧))
32 breq1 5106 . . . . . . 7 (𝑦 = -𝑧 → (𝑦 < (𝑥 + 1) ↔ -𝑧 < (𝑥 + 1)))
3331, 32anbi12d 644 . . . . . 6 (𝑦 = -𝑧 → ((𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1)) ↔ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))))
3433zriotaneg 12793 . . . . 5 (∃!𝑦 ∈ ℤ (𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1)) → (℩𝑦 ∈ ℤ (𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1))) = -(℩𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))))
3530, 34syl 18 . . . 4 (𝑥 ∈ ℝ → (℩𝑦 ∈ ℤ (𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1))) = -(℩𝑧 ∈ ℤ (𝑥 ≤ -𝑧 ∧ -𝑧 < (𝑥 + 1))))
36 flval 13914 . . . . . 6 (-𝑥 ∈ ℝ → (⌊‘-𝑥) = (℩𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
3713, 36syl 18 . . . . 5 (𝑥 ∈ ℝ → (⌊‘-𝑥) = (℩𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
3837negeqd 11532 . . . 4 (𝑥 ∈ ℝ → -(⌊‘-𝑥) = -(℩𝑧 ∈ ℤ (𝑧 ≤ -𝑥 ∧ -𝑥 < (𝑧 + 1))))
3929, 35, 383eqtr4rd 2807 . . 3 (𝑥 ∈ ℝ → -(⌊‘-𝑥) = (℩𝑦 ∈ ℤ (𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1))))
4039mpteq2ia 5200 . 2 (𝑥 ∈ ℝ ↦ -(⌊‘-𝑥)) = (𝑥 ∈ ℝ ↦ (℩𝑦 ∈ ℤ (𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1))))
411, 40eqtri 2784 1 ⌈ = (𝑥 ∈ ℝ ↦ (℩𝑦 ∈ ℤ (𝑥 ≤ 𝑦 ∧ 𝑦 < (𝑥 + 1))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ∃!wreu 3364   class class class wbr 5103   ↦ cmpt 5186  ‘cfv 6531  ℩crio 7368  (class class class)co 7412  ℝcr 11180  1c1 11182   + caddc 11184   < clt 11324   ≤ cle 11325   − cmin 11522  -cneg 11523  ℤcz 12674  ⌊cfl 13910  ⌈cceil 13911
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 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7740  ax-cnex 11237  ax-resscn 11238  ax-1cn 11239  ax-icn 11240  ax-addcl 11241  ax-addrcl 11242  ax-mulcl 11243  ax-mulrcl 11244  ax-mulcom 11245  ax-addass 11246  ax-mulass 11247  ax-distr 11248  ax-i2m1 11249  ax-1ne0 11250  ax-1rid 11251  ax-rnegex 11252  ax-rrecex 11253  ax-cnre 11254  ax-pre-lttri 11255  ax-pre-lttrn 11256  ax-pre-ltadd 11257  ax-pre-mulgt0 11258  ax-pre-sup 11259
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 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6297  df-ord 6358  df-on 6359  df-lim 6360  df-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-riota 7369  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7867  df-2nd 7991  df-frecs 8283  df-wrecs 8314  df-recs 8363  df-rdg 8402  df-er 8701  df-en 8958  df-dom 8959  df-sdom 8960  df-sup 9418  df-inf 9419  df-pnf 11326  df-mnf 11327  df-xr 11328  df-ltxr 11329  df-le 11330  df-sub 11524  df-neg 11525  df-nn 12317  df-n0 12588  df-z 12675  df-uz 12947  df-fl 13912  df-ceil 13913
This theorem is used by:  ceilval2  13960
  Copyright terms: Public domain W3C validator