Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ceil5half3 Structured version   Visualization version   GIF version

Theorem ceil5half3 48385
Description: The ceiling of half of 5 is 3. (Contributed by AV, 7-Sep-2025.)
Assertion
Ref Expression
ceil5half3 (⌈‘(5 / 2)) = 3

Proof of Theorem ceil5half3
StepHypRef Expression
1 5re 12423 . . 3 5 ∈ ℝ
2 2rp 13118 . . 3 2 ∈ ℝ+
3 ceildivmod 48384 . . 3 ((5 ∈ ℝ ∧ 2 ∈ ℝ+) → (⌈‘(5 / 2)) = ((5 + ((2 − 5) mod 2)) / 2))
41, 2, 3mp2an 705 . 2 (⌈‘(5 / 2)) = ((5 + ((2 − 5) mod 2)) / 2)
5 df-6 12402 . . . . 5 6 = (5 + 1)
6 3t2e6 12501 . . . . 5 (3 · 2) = 6
7 2t2e4 12499 . . . . . . . . . 10 (2 · 2) = 4
87oveq1i 7428 . . . . . . . . 9 ((2 · 2) + (2 − 5)) = (4 + (2 − 5))
9 4cn 12421 . . . . . . . . . 10 4 ∈ ℂ
10 2cn 12411 . . . . . . . . . 10 2 ∈ ℂ
11 5cn 12424 . . . . . . . . . 10 5 ∈ ℂ
129, 10, 11addsubassi 11642 . . . . . . . . 9 ((4 + 2) − 5) = (4 + (2 − 5))
13 ax-1cn 11251 . . . . . . . . . 10 1 ∈ ℂ
14 4p2e6 12488 . . . . . . . . . . 11 (4 + 2) = 6
1514, 5eqtri 2784 . . . . . . . . . 10 (4 + 2) = (5 + 1)
1611, 13, 15mvrladdi 11568 . . . . . . . . 9 ((4 + 2) − 5) = 1
178, 12, 163eqtr2i 2790 . . . . . . . 8 ((2 · 2) + (2 − 5)) = 1
1817oveq1i 7428 . . . . . . 7 (((2 · 2) + (2 − 5)) mod 2) = (1 mod 2)
19 2re 12410 . . . . . . . . 9 2 ∈ ℝ
2019, 1resubcli 11613 . . . . . . . 8 (2 − 5) ∈ ℝ
21 2z 12721 . . . . . . . 8 2 ∈ ℤ
22 muladdmod 14048 . . . . . . . 8 (((2 − 5) ∈ ℝ ∧ 2 ∈ ℝ+ ∧ 2 ∈ ℤ) → (((2 · 2) + (2 − 5)) mod 2) = ((2 − 5) mod 2))
2320, 2, 21, 22mp3an 1490 . . . . . . 7 (((2 · 2) + (2 − 5)) mod 2) = ((2 − 5) mod 2)
24 1lt2 12508 . . . . . . . 8 1 < 2
25 1mod 14036 . . . . . . . 8 ((2 ∈ ℝ ∧ 1 < 2) → (1 mod 2) = 1)
2619, 24, 25mp2an 705 . . . . . . 7 (1 mod 2) = 1
2718, 23, 263eqtr3i 2792 . . . . . 6 ((2 − 5) mod 2) = 1
2827oveq2i 7429 . . . . 5 (5 + ((2 − 5) mod 2)) = (5 + 1)
295, 6, 283eqtr4ri 2795 . . . 4 (5 + ((2 − 5) mod 2)) = (3 · 2)
3029oveq1i 7428 . . 3 ((5 + ((2 − 5) mod 2)) / 2) = ((3 · 2) / 2)
31 3cn 12417 . . . 4 3 ∈ ℂ
32 2ne0 12442 . . . 4 2 ≠ 0
3331, 10, 32divcan4i 12057 . . 3 ((3 · 2) / 2) = 3
3430, 33eqtri 2784 . 2 ((5 + ((2 − 5) mod 2)) / 2) = 3
354, 34eqtri 2784 1 (⌈‘(5 / 2)) = 3
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1570   ∈ wcel 2145   class class class wbr 5103  ‘cfv 6537  (class class class)co 7418  ℝcr 11192  1c1 11194   + caddc 11196   · cmul 11198   < clt 11336   − cmin 11534   / cdiv 11966  2c2 12390  3c3 12391  4c4 12392  5c5 12393  6c6 12394  ℤcz 12686  ℝ+crp 13113  ⌈cceil 13924   mod cmo 14002
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 7749  ax-cnex 11249  ax-resscn 11250  ax-1cn 11251  ax-icn 11252  ax-addcl 11253  ax-addrcl 11254  ax-mulcl 11255  ax-mulrcl 11256  ax-mulcom 11257  ax-addass 11258  ax-mulass 11259  ax-distr 11260  ax-i2m1 11261  ax-1ne0 11262  ax-1rid 11263  ax-rnegex 11264  ax-rrecex 11265  ax-cnre 11266  ax-pre-lttri 11267  ax-pre-lttrn 11268  ax-pre-ltadd 11269  ax-pre-mulgt0 11270  ax-pre-sup 11271
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 6303  df-ord 6364  df-on 6365  df-lim 6366  df-suc 6367  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-riota 7375  df-ov 7421  df-oprab 7422  df-mpo 7423  df-om 7876  df-2nd 8000  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-rdg 8411  df-er 8710  df-en 8967  df-dom 8968  df-sdom 8969  df-sup 9427  df-inf 9428  df-pnf 11338  df-mnf 11339  df-xr 11340  df-ltxr 11341  df-le 11342  df-sub 11536  df-neg 11537  df-div 11967  df-nn 12329  df-2 12398  df-3 12399  df-4 12400  df-5 12401  df-6 12402  df-n0 12600  df-z 12687  df-uz 12959  df-rp 13114  df-fl 13925  df-ceil 13926  df-mod 14003
This theorem is used by:  gpg5order  49127  gpg5nbgrvtx13starlem2  49139  gpg5gricstgr3  49157  pglem  49158  gpg5grlim  49160  gpg5grlic  49161
  Copyright terms: Public domain W3C validator