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

Theorem etransclem3 47216
Description: The given if term is an integer. (Contributed by Glauco Siliprandi, 5-Apr-2020.)
Hypotheses
Ref Expression
etransclem3.n (𝜑 → 𝑃 ∈ ℕ)
etransclem3.c (𝜑 → 𝐶:(0...𝑀)⟶(0...𝑁))
etransclem3.j (𝜑 → 𝐽 ∈ (0...𝑀))
etransclem3.4 (𝜑 → 𝐾 ∈ ℤ)
Assertion
Ref Expression
etransclem3 (𝜑 → if(𝑃 < (𝐶‘𝐽), 0, (((!‘𝑃) / (!‘(𝑃 − (𝐶‘𝐽)))) · ((𝐾 − 𝐽)↑(𝑃 − (𝐶‘𝐽))))) ∈ ℤ)

Proof of Theorem etransclem3
StepHypRef Expression
1 0zd 12698 . 2 ((𝜑 ∧ 𝑃 < (𝐶‘𝐽)) → 0 ∈ ℤ)
2 0zd 12698 . . . . . 6 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → 0 ∈ ℤ)
3 etransclem3.n . . . . . . . 8 (𝜑 → 𝑃 ∈ ℕ)
43nnzd 12712 . . . . . . 7 (𝜑 → 𝑃 ∈ ℤ)
54adantr 486 . . . . . 6 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → 𝑃 ∈ ℤ)
6 etransclem3.c . . . . . . . . . 10 (𝜑 → 𝐶:(0...𝑀)⟶(0...𝑁))
7 etransclem3.j . . . . . . . . . 10 (𝜑 → 𝐽 ∈ (0...𝑀))
86, 7ffvelcdmd 7083 . . . . . . . . 9 (𝜑 → (𝐶‘𝐽) ∈ (0...𝑁))
98elfzelzd 13650 . . . . . . . 8 (𝜑 → (𝐶‘𝐽) ∈ ℤ)
104, 9zsubcld 12801 . . . . . . 7 (𝜑 → (𝑃 − (𝐶‘𝐽)) ∈ ℤ)
1110adantr 486 . . . . . 6 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (𝑃 − (𝐶‘𝐽)) ∈ ℤ)
129zred 12796 . . . . . . . . 9 (𝜑 → (𝐶‘𝐽) ∈ ℝ)
1312adantr 486 . . . . . . . 8 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (𝐶‘𝐽) ∈ ℝ)
145zred 12796 . . . . . . . 8 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → 𝑃 ∈ ℝ)
15 simpr 490 . . . . . . . 8 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → ¬ 𝑃 < (𝐶‘𝐽))
1613, 14, 15nltled 11453 . . . . . . 7 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (𝐶‘𝐽) ≤ 𝑃)
1714, 13subge0d 11899 . . . . . . 7 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (0 ≤ (𝑃 − (𝐶‘𝐽)) ↔ (𝐶‘𝐽) ≤ 𝑃))
1816, 17mpbird 260 . . . . . 6 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → 0 ≤ (𝑃 − (𝐶‘𝐽)))
19 elfzle1 13653 . . . . . . . . 9 ((𝐶‘𝐽) ∈ (0...𝑁) → 0 ≤ (𝐶‘𝐽))
208, 19syl 18 . . . . . . . 8 (𝜑 → 0 ≤ (𝐶‘𝐽))
213nnred 12343 . . . . . . . . 9 (𝜑 → 𝑃 ∈ ℝ)
2221, 12subge02d 11901 . . . . . . . 8 (𝜑 → (0 ≤ (𝐶‘𝐽) ↔ (𝑃 − (𝐶‘𝐽)) ≤ 𝑃))
2320, 22mpbid 235 . . . . . . 7 (𝜑 → (𝑃 − (𝐶‘𝐽)) ≤ 𝑃)
2423adantr 486 . . . . . 6 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (𝑃 − (𝐶‘𝐽)) ≤ 𝑃)
252, 5, 11, 18, 24elfzd 13640 . . . . 5 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (𝑃 − (𝐶‘𝐽)) ∈ (0...𝑃))
26 permnn 14463 . . . . 5 ((𝑃 − (𝐶‘𝐽)) ∈ (0...𝑃) → ((!‘𝑃) / (!‘(𝑃 − (𝐶‘𝐽)))) ∈ ℕ)
2725, 26syl 18 . . . 4 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → ((!‘𝑃) / (!‘(𝑃 − (𝐶‘𝐽)))) ∈ ℕ)
2827nnzd 12712 . . 3 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → ((!‘𝑃) / (!‘(𝑃 − (𝐶‘𝐽)))) ∈ ℤ)
29 etransclem3.4 . . . . . 6 (𝜑 → 𝐾 ∈ ℤ)
307elfzelzd 13650 . . . . . 6 (𝜑 → 𝐽 ∈ ℤ)
3129, 30zsubcld 12801 . . . . 5 (𝜑 → (𝐾 − 𝐽) ∈ ℤ)
3231adantr 486 . . . 4 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (𝐾 − 𝐽) ∈ ℤ)
33 elnn0z 12699 . . . . 5 ((𝑃 − (𝐶‘𝐽)) ∈ ℕ0 ↔ ((𝑃 − (𝐶‘𝐽)) ∈ ℤ ∧ 0 ≤ (𝑃 − (𝐶‘𝐽))))
3411, 18, 33sylanbrc 595 . . . 4 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (𝑃 − (𝐶‘𝐽)) ∈ ℕ0)
35 zexpcl 14212 . . . 4 (((𝐾 − 𝐽) ∈ ℤ ∧ (𝑃 − (𝐶‘𝐽)) ∈ ℕ0) → ((𝐾 − 𝐽)↑(𝑃 − (𝐶‘𝐽))) ∈ ℤ)
3632, 34, 35syl2anc 596 . . 3 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → ((𝐾 − 𝐽)↑(𝑃 − (𝐶‘𝐽))) ∈ ℤ)
3728, 36zmulcld 12802 . 2 ((𝜑 ∧ ¬ 𝑃 < (𝐶‘𝐽)) → (((!‘𝑃) / (!‘(𝑃 − (𝐶‘𝐽)))) · ((𝐾 − 𝐽)↑(𝑃 − (𝐶‘𝐽)))) ∈ ℤ)
381, 37ifclda 4518 1 (𝜑 → if(𝑃 < (𝐶‘𝐽), 0, (((!‘𝑃) / (!‘(𝑃 − (𝐶‘𝐽)))) · ((𝐾 − 𝐽)↑(𝑃 − (𝐶‘𝐽))))) ∈ ℤ)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∈ wcel 2145  ifcif 4482   class class class wbr 5103  ⟶wf 6533  ‘cfv 6537  (class class class)co 7418  ℝcr 11192  0cc0 11193   · cmul 11198   < clt 11336   ≤ cle 11337   − cmin 11534   / cdiv 11966  ℕcn 12328  ℕ0cn0 12599  ℤcz 12686  ...cfz 13632  ↑cexp 14197  !cfa 14410
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
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-1st 7999  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-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-n0 12600  df-z 12687  df-uz 12959  df-rp 13114  df-fz 13633  df-seq 14138  df-exp 14198  df-fac 14411  df-bc 14440
This theorem is used by:  etransclem24  47237  etransclem25  47238  etransclem26  47239  etransclem35  47248  etransclem37  47250
  Copyright terms: Public domain W3C validator