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

Theorem 1arithlem4 17084
Description: Lemma for 1arith 17085. (Contributed by Mario Carneiro, 30-May-2014.)
Hypotheses
Ref Expression
1arith.1 𝑀 = (𝑛 ∈ ℕ ↦ (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)))
1arithlem4.2 𝐺 = (𝑦 ∈ ℕ ↦ if(𝑦 ∈ ℙ, (𝑦↑(𝐹‘𝑦)), 1))
1arithlem4.3 (𝜑 → 𝐹:ℙ⟶ℕ0)
1arithlem4.4 (𝜑 → 𝑁 ∈ ℕ)
1arithlem4.5 ((𝜑 ∧ (𝑞 ∈ ℙ ∧ 𝑁 ≤ 𝑞)) → (𝐹‘𝑞) = 0)
Assertion
Ref Expression
1arithlem4 (𝜑 → ∃𝑥 ∈ ℕ 𝐹 = (𝑀‘𝑥))
Distinct variable groups:   𝑛,𝑝,𝑞,𝑥,𝑦   𝐹,𝑞,𝑥,𝑦   𝑀,𝑞,𝑥,𝑦   𝜑,𝑞,𝑦   𝑛,𝐺,𝑝,𝑞,𝑥   𝑛,𝑁,𝑝,𝑞,𝑥
Allowed substitution hints:   𝜑(𝑥, 𝑛, 𝑝)   𝐹(𝑛, 𝑝)   𝐺(𝑦)   𝑀(𝑛, 𝑝)   𝑁(𝑦)

Proof of Theorem 1arithlem4
StepHypRef Expression
1 1arithlem4.2 . . . . 5 𝐺 = (𝑦 ∈ ℕ ↦ if(𝑦 ∈ ℙ, (𝑦↑(𝐹‘𝑦)), 1))
2 1arithlem4.3 . . . . . . 7 (𝜑 → 𝐹:ℙ⟶ℕ0)
32ffvelcdmda 7076 . . . . . 6 ((𝜑 ∧ 𝑦 ∈ ℙ) → (𝐹‘𝑦) ∈ ℕ0)
43ralrimiva 3155 . . . . 5 (𝜑 → ∀𝑦 ∈ ℙ (𝐹‘𝑦) ∈ ℕ0)
51, 4pcmptcl 17049 . . . 4 (𝜑 → (𝐺:ℕ⟶ℕ ∧ seq1( · , 𝐺):ℕ⟶ℕ))
65simprd 501 . . 3 (𝜑 → seq1( · , 𝐺):ℕ⟶ℕ)
7 1arithlem4.4 . . 3 (𝜑 → 𝑁 ∈ ℕ)
86, 7ffvelcdmd 7077 . 2 (𝜑 → (seq1( · , 𝐺)‘𝑁) ∈ ℕ)
9 1arith.1 . . . . . . 7 𝑀 = (𝑛 ∈ ℕ ↦ (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)))
1091arithlem2 17082 . . . . . 6 (((seq1( · , 𝐺)‘𝑁) ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀‘(seq1( · , 𝐺)‘𝑁))‘𝑞) = (𝑞 pCnt (seq1( · , 𝐺)‘𝑁)))
118, 10sylan 592 . . . . 5 ((𝜑 ∧ 𝑞 ∈ ℙ) → ((𝑀‘(seq1( · , 𝐺)‘𝑁))‘𝑞) = (𝑞 pCnt (seq1( · , 𝐺)‘𝑁)))
124adantr 486 . . . . . 6 ((𝜑 ∧ 𝑞 ∈ ℙ) → ∀𝑦 ∈ ℙ (𝐹‘𝑦) ∈ ℕ0)
137adantr 486 . . . . . 6 ((𝜑 ∧ 𝑞 ∈ ℙ) → 𝑁 ∈ ℕ)
14 simpr 490 . . . . . 6 ((𝜑 ∧ 𝑞 ∈ ℙ) → 𝑞 ∈ ℙ)
15 fveq2 6877 . . . . . 6 (𝑦 = 𝑞 → (𝐹‘𝑦) = (𝐹‘𝑞))
161, 12, 13, 14, 15pcmpt 17050 . . . . 5 ((𝜑 ∧ 𝑞 ∈ ℙ) → (𝑞 pCnt (seq1( · , 𝐺)‘𝑁)) = if(𝑞 ≤ 𝑁, (𝐹‘𝑞), 0))
1713nnred 12331 . . . . . 6 ((𝜑 ∧ 𝑞 ∈ ℙ) → 𝑁 ∈ ℝ)
18 prmz 16830 . . . . . . . 8 (𝑞 ∈ ℙ → 𝑞 ∈ ℤ)
1918zred 12784 . . . . . . 7 (𝑞 ∈ ℙ → 𝑞 ∈ ℝ)
2019adantl 487 . . . . . 6 ((𝜑 ∧ 𝑞 ∈ ℙ) → 𝑞 ∈ ℝ)
21 1arithlem4.5 . . . . . . . . 9 ((𝜑 ∧ (𝑞 ∈ ℙ ∧ 𝑁 ≤ 𝑞)) → (𝐹‘𝑞) = 0)
2221anassrs 473 . . . . . . . 8 (((𝜑 ∧ 𝑞 ∈ ℙ) ∧ 𝑁 ≤ 𝑞) → (𝐹‘𝑞) = 0)
2322ifeq2d 4503 . . . . . . 7 (((𝜑 ∧ 𝑞 ∈ ℙ) ∧ 𝑁 ≤ 𝑞) → if(𝑞 ≤ 𝑁, (𝐹‘𝑞), (𝐹‘𝑞)) = if(𝑞 ≤ 𝑁, (𝐹‘𝑞), 0))
24 ifid 4523 . . . . . . 7 if(𝑞 ≤ 𝑁, (𝐹‘𝑞), (𝐹‘𝑞)) = (𝐹‘𝑞)
2523, 24eqtr3di 2811 . . . . . 6 (((𝜑 ∧ 𝑞 ∈ ℙ) ∧ 𝑁 ≤ 𝑞) → if(𝑞 ≤ 𝑁, (𝐹‘𝑞), 0) = (𝐹‘𝑞))
26 iftrue 4488 . . . . . . 7 (𝑞 ≤ 𝑁 → if(𝑞 ≤ 𝑁, (𝐹‘𝑞), 0) = (𝐹‘𝑞))
2726adantl 487 . . . . . 6 (((𝜑 ∧ 𝑞 ∈ ℙ) ∧ 𝑞 ≤ 𝑁) → if(𝑞 ≤ 𝑁, (𝐹‘𝑞), 0) = (𝐹‘𝑞))
2817, 20, 25, 27lecasei 11397 . . . . 5 ((𝜑 ∧ 𝑞 ∈ ℙ) → if(𝑞 ≤ 𝑁, (𝐹‘𝑞), 0) = (𝐹‘𝑞))
2911, 16, 283eqtrrd 2801 . . . 4 ((𝜑 ∧ 𝑞 ∈ ℙ) → (𝐹‘𝑞) = ((𝑀‘(seq1( · , 𝐺)‘𝑁))‘𝑞))
3029ralrimiva 3155 . . 3 (𝜑 → ∀𝑞 ∈ ℙ (𝐹‘𝑞) = ((𝑀‘(seq1( · , 𝐺)‘𝑁))‘𝑞))
3191arithlem3 17083 . . . . 5 ((seq1( · , 𝐺)‘𝑁) ∈ ℕ → (𝑀‘(seq1( · , 𝐺)‘𝑁)):ℙ⟶ℕ0)
328, 31syl 18 . . . 4 (𝜑 → (𝑀‘(seq1( · , 𝐺)‘𝑁)):ℙ⟶ℕ0)
33 ffn 6701 . . . . 5 (𝐹:ℙ⟶ℕ0 → 𝐹 Fn ℙ)
34 ffn 6701 . . . . 5 ((𝑀‘(seq1( · , 𝐺)‘𝑁)):ℙ⟶ℕ0 → (𝑀‘(seq1( · , 𝐺)‘𝑁)) Fn ℙ)
35 eqfnfv 7021 . . . . 5 ((𝐹 Fn ℙ ∧ (𝑀‘(seq1( · , 𝐺)‘𝑁)) Fn ℙ) → (𝐹 = (𝑀‘(seq1( · , 𝐺)‘𝑁)) ↔ ∀𝑞 ∈ ℙ (𝐹‘𝑞) = ((𝑀‘(seq1( · , 𝐺)‘𝑁))‘𝑞)))
3633, 34, 35syl2an 608 . . . 4 ((𝐹:ℙ⟶ℕ0 ∧ (𝑀‘(seq1( · , 𝐺)‘𝑁)):ℙ⟶ℕ0) → (𝐹 = (𝑀‘(seq1( · , 𝐺)‘𝑁)) ↔ ∀𝑞 ∈ ℙ (𝐹‘𝑞) = ((𝑀‘(seq1( · , 𝐺)‘𝑁))‘𝑞)))
372, 32, 36syl2anc 596 . . 3 (𝜑 → (𝐹 = (𝑀‘(seq1( · , 𝐺)‘𝑁)) ↔ ∀𝑞 ∈ ℙ (𝐹‘𝑞) = ((𝑀‘(seq1( · , 𝐺)‘𝑁))‘𝑞)))
3830, 37mpbird 260 . 2 (𝜑 → 𝐹 = (𝑀‘(seq1( · , 𝐺)‘𝑁)))
39 fveq2 6877 . . 3 (𝑥 = (seq1( · , 𝐺)‘𝑁) → (𝑀‘𝑥) = (𝑀‘(seq1( · , 𝐺)‘𝑁)))
4039rspceeqv 3599 . 2 (((seq1( · , 𝐺)‘𝑁) ∈ ℕ ∧ 𝐹 = (𝑀‘(seq1( · , 𝐺)‘𝑁))) → ∃𝑥 ∈ ℕ 𝐹 = (𝑀‘𝑥))
418, 38, 40syl2anc 596 1 (𝜑 → ∃𝑥 ∈ ℕ 𝐹 = (𝑀‘𝑥))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ∀wral 3077  ∃wrex 3087  ifcif 4482   class class class wbr 5103   ↦ cmpt 5186   Fn wfn 6526  ⟶wf 6527  ‘cfv 6531  (class class class)co 7412  ℝcr 11180  0cc0 11181  1c1 11182   · cmul 11186   ≤ cle 11325  ℕcn 12316  ℕ0cn0 12587  seqcseq 14124  ↑cexp 14184  ℙcprime 16826   pCnt cpc 16994
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-rep 5232  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-1st 7990  df-2nd 7991  df-frecs 8283  df-wrecs 8314  df-recs 8363  df-rdg 8402  df-1o 8460  df-2o 8461  df-er 8701  df-en 8958  df-dom 8959  df-sdom 8960  df-fin 8961  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-div 11955  df-nn 12317  df-2 12386  df-3 12387  df-n0 12588  df-z 12675  df-uz 12947  df-q 13057  df-rp 13102  df-fz 13621  df-fl 13912  df-mod 13990  df-seq 14125  df-exp 14185  df-cj 15246  df-re 15247  df-im 15248  df-sqrt 15382  df-abs 15383  df-dvds 16403  df-gcd 16645  df-prm 16827  df-pc 16995
This theorem is used by:  1arith  17085
  Copyright terms: Public domain W3C validator