ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  pcmpt GIF version

Theorem pcmpt 12273
Description: Construct a function with given prime count characteristics. (Contributed by Mario Carneiro, 12-Mar-2014.)
Hypotheses
Ref Expression
pcmpt.1 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (𝑛𝐴), 1))
pcmpt.2 (𝜑 → ∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0)
pcmpt.3 (𝜑𝑁 ∈ ℕ)
pcmpt.4 (𝜑𝑃 ∈ ℙ)
pcmpt.5 (𝑛 = 𝑃𝐴 = 𝐵)
Assertion
Ref Expression
pcmpt (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑁)) = if(𝑃𝑁, 𝐵, 0))
Distinct variable groups:   𝐵,𝑛   𝑃,𝑛
Allowed substitution hints:   𝜑(𝑛)   𝐴(𝑛)   𝐹(𝑛)   𝑁(𝑛)

Proof of Theorem pcmpt
Dummy variables 𝑘 𝑝 𝑖 𝑗 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 pcmpt.3 . 2 (𝜑𝑁 ∈ ℕ)
2 fveq2 5486 . . . . . 6 (𝑝 = 1 → (seq1( · , 𝐹)‘𝑝) = (seq1( · , 𝐹)‘1))
32oveq2d 5858 . . . . 5 (𝑝 = 1 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = (𝑃 pCnt (seq1( · , 𝐹)‘1)))
4 breq2 3986 . . . . . 6 (𝑝 = 1 → (𝑃𝑝𝑃 ≤ 1))
54ifbid 3541 . . . . 5 (𝑝 = 1 → if(𝑃𝑝, 𝐵, 0) = if(𝑃 ≤ 1, 𝐵, 0))
63, 5eqeq12d 2180 . . . 4 (𝑝 = 1 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0) ↔ (𝑃 pCnt (seq1( · , 𝐹)‘1)) = if(𝑃 ≤ 1, 𝐵, 0)))
76imbi2d 229 . . 3 (𝑝 = 1 → ((𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0)) ↔ (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘1)) = if(𝑃 ≤ 1, 𝐵, 0))))
8 fveq2 5486 . . . . . 6 (𝑝 = 𝑘 → (seq1( · , 𝐹)‘𝑝) = (seq1( · , 𝐹)‘𝑘))
98oveq2d 5858 . . . . 5 (𝑝 = 𝑘 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)))
10 breq2 3986 . . . . . 6 (𝑝 = 𝑘 → (𝑃𝑝𝑃𝑘))
1110ifbid 3541 . . . . 5 (𝑝 = 𝑘 → if(𝑃𝑝, 𝐵, 0) = if(𝑃𝑘, 𝐵, 0))
129, 11eqeq12d 2180 . . . 4 (𝑝 = 𝑘 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0) ↔ (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0)))
1312imbi2d 229 . . 3 (𝑝 = 𝑘 → ((𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0)) ↔ (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0))))
14 fveq2 5486 . . . . . 6 (𝑝 = (𝑘 + 1) → (seq1( · , 𝐹)‘𝑝) = (seq1( · , 𝐹)‘(𝑘 + 1)))
1514oveq2d 5858 . . . . 5 (𝑝 = (𝑘 + 1) → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))))
16 breq2 3986 . . . . . 6 (𝑝 = (𝑘 + 1) → (𝑃𝑝𝑃 ≤ (𝑘 + 1)))
1716ifbid 3541 . . . . 5 (𝑝 = (𝑘 + 1) → if(𝑃𝑝, 𝐵, 0) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0))
1815, 17eqeq12d 2180 . . . 4 (𝑝 = (𝑘 + 1) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0) ↔ (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0)))
1918imbi2d 229 . . 3 (𝑝 = (𝑘 + 1) → ((𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0)) ↔ (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0))))
20 fveq2 5486 . . . . . 6 (𝑝 = 𝑁 → (seq1( · , 𝐹)‘𝑝) = (seq1( · , 𝐹)‘𝑁))
2120oveq2d 5858 . . . . 5 (𝑝 = 𝑁 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = (𝑃 pCnt (seq1( · , 𝐹)‘𝑁)))
22 breq2 3986 . . . . . 6 (𝑝 = 𝑁 → (𝑃𝑝𝑃𝑁))
2322ifbid 3541 . . . . 5 (𝑝 = 𝑁 → if(𝑃𝑝, 𝐵, 0) = if(𝑃𝑁, 𝐵, 0))
2421, 23eqeq12d 2180 . . . 4 (𝑝 = 𝑁 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0) ↔ (𝑃 pCnt (seq1( · , 𝐹)‘𝑁)) = if(𝑃𝑁, 𝐵, 0)))
2524imbi2d 229 . . 3 (𝑝 = 𝑁 → ((𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑝)) = if(𝑃𝑝, 𝐵, 0)) ↔ (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑁)) = if(𝑃𝑁, 𝐵, 0))))
26 pcmpt.4 . . . . 5 (𝜑𝑃 ∈ ℙ)
27 pc1 12237 . . . . 5 (𝑃 ∈ ℙ → (𝑃 pCnt 1) = 0)
2826, 27syl 14 . . . 4 (𝜑 → (𝑃 pCnt 1) = 0)
29 1zzd 9218 . . . . . . 7 (𝜑 → 1 ∈ ℤ)
30 elnnuz 9502 . . . . . . . 8 (𝑖 ∈ ℕ ↔ 𝑖 ∈ (ℤ‘1))
31 simpr 109 . . . . . . . . . 10 ((𝜑𝑖 ∈ ℕ) → 𝑖 ∈ ℕ)
3231adantr 274 . . . . . . . . . . . 12 (((𝜑𝑖 ∈ ℕ) ∧ 𝑖 ∈ ℙ) → 𝑖 ∈ ℕ)
33 simpr 109 . . . . . . . . . . . . 13 (((𝜑𝑖 ∈ ℕ) ∧ 𝑖 ∈ ℙ) → 𝑖 ∈ ℙ)
34 pcmpt.2 . . . . . . . . . . . . . 14 (𝜑 → ∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0)
3534ad2antrr 480 . . . . . . . . . . . . 13 (((𝜑𝑖 ∈ ℕ) ∧ 𝑖 ∈ ℙ) → ∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0)
36 nfcsb1v 3078 . . . . . . . . . . . . . . 15 𝑛𝑖 / 𝑛𝐴
3736nfel1 2319 . . . . . . . . . . . . . 14 𝑛𝑖 / 𝑛𝐴 ∈ ℕ0
38 csbeq1a 3054 . . . . . . . . . . . . . . 15 (𝑛 = 𝑖𝐴 = 𝑖 / 𝑛𝐴)
3938eleq1d 2235 . . . . . . . . . . . . . 14 (𝑛 = 𝑖 → (𝐴 ∈ ℕ0𝑖 / 𝑛𝐴 ∈ ℕ0))
4037, 39rspc 2824 . . . . . . . . . . . . 13 (𝑖 ∈ ℙ → (∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0𝑖 / 𝑛𝐴 ∈ ℕ0))
4133, 35, 40sylc 62 . . . . . . . . . . . 12 (((𝜑𝑖 ∈ ℕ) ∧ 𝑖 ∈ ℙ) → 𝑖 / 𝑛𝐴 ∈ ℕ0)
4232, 41nnexpcld 10610 . . . . . . . . . . 11 (((𝜑𝑖 ∈ ℕ) ∧ 𝑖 ∈ ℙ) → (𝑖𝑖 / 𝑛𝐴) ∈ ℕ)
43 1nn 8868 . . . . . . . . . . . 12 1 ∈ ℕ
4443a1i 9 . . . . . . . . . . 11 (((𝜑𝑖 ∈ ℕ) ∧ ¬ 𝑖 ∈ ℙ) → 1 ∈ ℕ)
45 prmdc 12062 . . . . . . . . . . . 12 (𝑖 ∈ ℕ → DECID 𝑖 ∈ ℙ)
4645adantl 275 . . . . . . . . . . 11 ((𝜑𝑖 ∈ ℕ) → DECID 𝑖 ∈ ℙ)
4742, 44, 46ifcldadc 3549 . . . . . . . . . 10 ((𝜑𝑖 ∈ ℕ) → if(𝑖 ∈ ℙ, (𝑖𝑖 / 𝑛𝐴), 1) ∈ ℕ)
48 nfcv 2308 . . . . . . . . . . 11 𝑛𝑖
4948nfel1 2319 . . . . . . . . . . . 12 𝑛 𝑖 ∈ ℙ
50 nfcv 2308 . . . . . . . . . . . . 13 𝑛
5148, 50, 36nfov 5872 . . . . . . . . . . . 12 𝑛(𝑖𝑖 / 𝑛𝐴)
52 nfcv 2308 . . . . . . . . . . . 12 𝑛1
5349, 51, 52nfif 3548 . . . . . . . . . . 11 𝑛if(𝑖 ∈ ℙ, (𝑖𝑖 / 𝑛𝐴), 1)
54 eleq1 2229 . . . . . . . . . . . 12 (𝑛 = 𝑖 → (𝑛 ∈ ℙ ↔ 𝑖 ∈ ℙ))
55 id 19 . . . . . . . . . . . . 13 (𝑛 = 𝑖𝑛 = 𝑖)
5655, 38oveq12d 5860 . . . . . . . . . . . 12 (𝑛 = 𝑖 → (𝑛𝐴) = (𝑖𝑖 / 𝑛𝐴))
5754, 56ifbieq1d 3542 . . . . . . . . . . 11 (𝑛 = 𝑖 → if(𝑛 ∈ ℙ, (𝑛𝐴), 1) = if(𝑖 ∈ ℙ, (𝑖𝑖 / 𝑛𝐴), 1))
58 pcmpt.1 . . . . . . . . . . 11 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (𝑛𝐴), 1))
5948, 53, 57, 58fvmptf 5578 . . . . . . . . . 10 ((𝑖 ∈ ℕ ∧ if(𝑖 ∈ ℙ, (𝑖𝑖 / 𝑛𝐴), 1) ∈ ℕ) → (𝐹𝑖) = if(𝑖 ∈ ℙ, (𝑖𝑖 / 𝑛𝐴), 1))
6031, 47, 59syl2anc 409 . . . . . . . . 9 ((𝜑𝑖 ∈ ℕ) → (𝐹𝑖) = if(𝑖 ∈ ℙ, (𝑖𝑖 / 𝑛𝐴), 1))
6160, 47eqeltrd 2243 . . . . . . . 8 ((𝜑𝑖 ∈ ℕ) → (𝐹𝑖) ∈ ℕ)
6230, 61sylan2br 286 . . . . . . 7 ((𝜑𝑖 ∈ (ℤ‘1)) → (𝐹𝑖) ∈ ℕ)
63 nnmulcl 8878 . . . . . . . 8 ((𝑖 ∈ ℕ ∧ 𝑗 ∈ ℕ) → (𝑖 · 𝑗) ∈ ℕ)
6463adantl 275 . . . . . . 7 ((𝜑 ∧ (𝑖 ∈ ℕ ∧ 𝑗 ∈ ℕ)) → (𝑖 · 𝑗) ∈ ℕ)
6529, 62, 64seq3-1 10395 . . . . . 6 (𝜑 → (seq1( · , 𝐹)‘1) = (𝐹‘1))
66 1nprm 12046 . . . . . . . . . 10 ¬ 1 ∈ ℙ
67 eleq1 2229 . . . . . . . . . 10 (𝑛 = 1 → (𝑛 ∈ ℙ ↔ 1 ∈ ℙ))
6866, 67mtbiri 665 . . . . . . . . 9 (𝑛 = 1 → ¬ 𝑛 ∈ ℙ)
6968iffalsed 3530 . . . . . . . 8 (𝑛 = 1 → if(𝑛 ∈ ℙ, (𝑛𝐴), 1) = 1)
70 1ex 7894 . . . . . . . 8 1 ∈ V
7169, 58, 70fvmpt 5563 . . . . . . 7 (1 ∈ ℕ → (𝐹‘1) = 1)
7243, 71ax-mp 5 . . . . . 6 (𝐹‘1) = 1
7365, 72eqtrdi 2215 . . . . 5 (𝜑 → (seq1( · , 𝐹)‘1) = 1)
7473oveq2d 5858 . . . 4 (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘1)) = (𝑃 pCnt 1))
75 prmgt1 12064 . . . . . . 7 (𝑃 ∈ ℙ → 1 < 𝑃)
76 1z 9217 . . . . . . . 8 1 ∈ ℤ
77 prmz 12043 . . . . . . . 8 (𝑃 ∈ ℙ → 𝑃 ∈ ℤ)
78 zltnle 9237 . . . . . . . 8 ((1 ∈ ℤ ∧ 𝑃 ∈ ℤ) → (1 < 𝑃 ↔ ¬ 𝑃 ≤ 1))
7976, 77, 78sylancr 411 . . . . . . 7 (𝑃 ∈ ℙ → (1 < 𝑃 ↔ ¬ 𝑃 ≤ 1))
8075, 79mpbid 146 . . . . . 6 (𝑃 ∈ ℙ → ¬ 𝑃 ≤ 1)
8180iffalsed 3530 . . . . 5 (𝑃 ∈ ℙ → if(𝑃 ≤ 1, 𝐵, 0) = 0)
8226, 81syl 14 . . . 4 (𝜑 → if(𝑃 ≤ 1, 𝐵, 0) = 0)
8328, 74, 823eqtr4d 2208 . . 3 (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘1)) = if(𝑃 ≤ 1, 𝐵, 0))
8426adantr 274 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → 𝑃 ∈ ℙ)
8558, 34pcmptcl 12272 . . . . . . . . . . . . . . . 16 (𝜑 → (𝐹:ℕ⟶ℕ ∧ seq1( · , 𝐹):ℕ⟶ℕ))
8685simpld 111 . . . . . . . . . . . . . . 15 (𝜑𝐹:ℕ⟶ℕ)
87 peano2nn 8869 . . . . . . . . . . . . . . 15 (𝑘 ∈ ℕ → (𝑘 + 1) ∈ ℕ)
88 ffvelrn 5618 . . . . . . . . . . . . . . 15 ((𝐹:ℕ⟶ℕ ∧ (𝑘 + 1) ∈ ℕ) → (𝐹‘(𝑘 + 1)) ∈ ℕ)
8986, 87, 88syl2an 287 . . . . . . . . . . . . . 14 ((𝜑𝑘 ∈ ℕ) → (𝐹‘(𝑘 + 1)) ∈ ℕ)
9089adantrr 471 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝐹‘(𝑘 + 1)) ∈ ℕ)
9184, 90pccld 12232 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑃 pCnt (𝐹‘(𝑘 + 1))) ∈ ℕ0)
9291nn0cnd 9169 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑃 pCnt (𝐹‘(𝑘 + 1))) ∈ ℂ)
9392addid2d 8048 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (0 + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = (𝑃 pCnt (𝐹‘(𝑘 + 1))))
9487ad2antrl 482 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑘 + 1) ∈ ℕ)
9587ad2antlr 481 . . . . . . . . . . . . . . . 16 (((𝜑𝑘 ∈ ℕ) ∧ (𝑘 + 1) ∈ ℙ) → (𝑘 + 1) ∈ ℕ)
96 simpr 109 . . . . . . . . . . . . . . . . 17 (((𝜑𝑘 ∈ ℕ) ∧ (𝑘 + 1) ∈ ℙ) → (𝑘 + 1) ∈ ℙ)
9734ad2antrr 480 . . . . . . . . . . . . . . . . 17 (((𝜑𝑘 ∈ ℕ) ∧ (𝑘 + 1) ∈ ℙ) → ∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0)
98 nfcsb1v 3078 . . . . . . . . . . . . . . . . . . 19 𝑛(𝑘 + 1) / 𝑛𝐴
9998nfel1 2319 . . . . . . . . . . . . . . . . . 18 𝑛(𝑘 + 1) / 𝑛𝐴 ∈ ℕ0
100 csbeq1a 3054 . . . . . . . . . . . . . . . . . . 19 (𝑛 = (𝑘 + 1) → 𝐴 = (𝑘 + 1) / 𝑛𝐴)
101100eleq1d 2235 . . . . . . . . . . . . . . . . . 18 (𝑛 = (𝑘 + 1) → (𝐴 ∈ ℕ0(𝑘 + 1) / 𝑛𝐴 ∈ ℕ0))
10299, 101rspc 2824 . . . . . . . . . . . . . . . . 17 ((𝑘 + 1) ∈ ℙ → (∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0(𝑘 + 1) / 𝑛𝐴 ∈ ℕ0))
10396, 97, 102sylc 62 . . . . . . . . . . . . . . . 16 (((𝜑𝑘 ∈ ℕ) ∧ (𝑘 + 1) ∈ ℙ) → (𝑘 + 1) / 𝑛𝐴 ∈ ℕ0)
10495, 103nnexpcld 10610 . . . . . . . . . . . . . . 15 (((𝜑𝑘 ∈ ℕ) ∧ (𝑘 + 1) ∈ ℙ) → ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴) ∈ ℕ)
10543a1i 9 . . . . . . . . . . . . . . 15 (((𝜑𝑘 ∈ ℕ) ∧ ¬ (𝑘 + 1) ∈ ℙ) → 1 ∈ ℕ)
10687adantl 275 . . . . . . . . . . . . . . . 16 ((𝜑𝑘 ∈ ℕ) → (𝑘 + 1) ∈ ℕ)
107 prmdc 12062 . . . . . . . . . . . . . . . 16 ((𝑘 + 1) ∈ ℕ → DECID (𝑘 + 1) ∈ ℙ)
108106, 107syl 14 . . . . . . . . . . . . . . 15 ((𝜑𝑘 ∈ ℕ) → DECID (𝑘 + 1) ∈ ℙ)
109104, 105, 108ifcldadc 3549 . . . . . . . . . . . . . 14 ((𝜑𝑘 ∈ ℕ) → if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1) ∈ ℕ)
110109adantrr 471 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1) ∈ ℕ)
111 nfcv 2308 . . . . . . . . . . . . . 14 𝑛(𝑘 + 1)
112 nfv 1516 . . . . . . . . . . . . . . 15 𝑛(𝑘 + 1) ∈ ℙ
113111, 50, 98nfov 5872 . . . . . . . . . . . . . . 15 𝑛((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴)
114112, 113, 52nfif 3548 . . . . . . . . . . . . . 14 𝑛if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1)
115 eleq1 2229 . . . . . . . . . . . . . . 15 (𝑛 = (𝑘 + 1) → (𝑛 ∈ ℙ ↔ (𝑘 + 1) ∈ ℙ))
116 id 19 . . . . . . . . . . . . . . . 16 (𝑛 = (𝑘 + 1) → 𝑛 = (𝑘 + 1))
117116, 100oveq12d 5860 . . . . . . . . . . . . . . 15 (𝑛 = (𝑘 + 1) → (𝑛𝐴) = ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴))
118115, 117ifbieq1d 3542 . . . . . . . . . . . . . 14 (𝑛 = (𝑘 + 1) → if(𝑛 ∈ ℙ, (𝑛𝐴), 1) = if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1))
119111, 114, 118, 58fvmptf 5578 . . . . . . . . . . . . 13 (((𝑘 + 1) ∈ ℕ ∧ if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1) ∈ ℕ) → (𝐹‘(𝑘 + 1)) = if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1))
12094, 110, 119syl2anc 409 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝐹‘(𝑘 + 1)) = if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1))
121 simprr 522 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑘 + 1) = 𝑃)
122121, 84eqeltrd 2243 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑘 + 1) ∈ ℙ)
123122iftrued 3527 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1) = ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴))
124121csbeq1d 3052 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑘 + 1) / 𝑛𝐴 = 𝑃 / 𝑛𝐴)
125 nfcvd 2309 . . . . . . . . . . . . . . . 16 (𝑃 ∈ ℙ → 𝑛𝐵)
126 pcmpt.5 . . . . . . . . . . . . . . . 16 (𝑛 = 𝑃𝐴 = 𝐵)
127125, 126csbiegf 3088 . . . . . . . . . . . . . . 15 (𝑃 ∈ ℙ → 𝑃 / 𝑛𝐴 = 𝐵)
12884, 127syl 14 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → 𝑃 / 𝑛𝐴 = 𝐵)
129124, 128eqtrd 2198 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑘 + 1) / 𝑛𝐴 = 𝐵)
130121, 129oveq12d 5860 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴) = (𝑃𝐵))
131120, 123, 1303eqtrd 2202 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝐹‘(𝑘 + 1)) = (𝑃𝐵))
132131oveq2d 5858 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑃 pCnt (𝐹‘(𝑘 + 1))) = (𝑃 pCnt (𝑃𝐵)))
133126eleq1d 2235 . . . . . . . . . . . . . 14 (𝑛 = 𝑃 → (𝐴 ∈ ℕ0𝐵 ∈ ℕ0))
134133rspcv 2826 . . . . . . . . . . . . 13 (𝑃 ∈ ℙ → (∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0𝐵 ∈ ℕ0))
13526, 34, 134sylc 62 . . . . . . . . . . . 12 (𝜑𝐵 ∈ ℕ0)
136135adantr 274 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → 𝐵 ∈ ℕ0)
137 pcidlem 12254 . . . . . . . . . . 11 ((𝑃 ∈ ℙ ∧ 𝐵 ∈ ℕ0) → (𝑃 pCnt (𝑃𝐵)) = 𝐵)
13826, 136, 137syl2an2r 585 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑃 pCnt (𝑃𝐵)) = 𝐵)
13993, 132, 1383eqtrd 2202 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (0 + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = 𝐵)
140 oveq1 5849 . . . . . . . . . 10 ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = 0 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = (0 + (𝑃 pCnt (𝐹‘(𝑘 + 1)))))
141140eqeq1d 2174 . . . . . . . . 9 ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = 0 → (((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = 𝐵 ↔ (0 + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = 𝐵))
142139, 141syl5ibrcom 156 . . . . . . . 8 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = 0 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = 𝐵))
143 nnre 8864 . . . . . . . . . . . . . 14 (𝑘 ∈ ℕ → 𝑘 ∈ ℝ)
144143ltp1d 8825 . . . . . . . . . . . . 13 (𝑘 ∈ ℕ → 𝑘 < (𝑘 + 1))
145 nnz 9210 . . . . . . . . . . . . . 14 (𝑘 ∈ ℕ → 𝑘 ∈ ℤ)
14687nnzd 9312 . . . . . . . . . . . . . 14 (𝑘 ∈ ℕ → (𝑘 + 1) ∈ ℤ)
147 zltnle 9237 . . . . . . . . . . . . . 14 ((𝑘 ∈ ℤ ∧ (𝑘 + 1) ∈ ℤ) → (𝑘 < (𝑘 + 1) ↔ ¬ (𝑘 + 1) ≤ 𝑘))
148145, 146, 147syl2anc 409 . . . . . . . . . . . . 13 (𝑘 ∈ ℕ → (𝑘 < (𝑘 + 1) ↔ ¬ (𝑘 + 1) ≤ 𝑘))
149144, 148mpbid 146 . . . . . . . . . . . 12 (𝑘 ∈ ℕ → ¬ (𝑘 + 1) ≤ 𝑘)
150149ad2antrl 482 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ¬ (𝑘 + 1) ≤ 𝑘)
151121breq1d 3992 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ((𝑘 + 1) ≤ 𝑘𝑃𝑘))
152150, 151mtbid 662 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ¬ 𝑃𝑘)
153152iffalsed 3530 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → if(𝑃𝑘, 𝐵, 0) = 0)
154153eqeq2d 2177 . . . . . . . 8 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0) ↔ (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = 0))
155 simpr 109 . . . . . . . . . . . . . 14 ((𝜑𝑘 ∈ ℕ) → 𝑘 ∈ ℕ)
156 nnuz 9501 . . . . . . . . . . . . . 14 ℕ = (ℤ‘1)
157155, 156eleqtrdi 2259 . . . . . . . . . . . . 13 ((𝜑𝑘 ∈ ℕ) → 𝑘 ∈ (ℤ‘1))
15862adantlr 469 . . . . . . . . . . . . 13 (((𝜑𝑘 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘1)) → (𝐹𝑖) ∈ ℕ)
15963adantl 275 . . . . . . . . . . . . 13 (((𝜑𝑘 ∈ ℕ) ∧ (𝑖 ∈ ℕ ∧ 𝑗 ∈ ℕ)) → (𝑖 · 𝑗) ∈ ℕ)
160157, 158, 159seq3p1 10397 . . . . . . . . . . . 12 ((𝜑𝑘 ∈ ℕ) → (seq1( · , 𝐹)‘(𝑘 + 1)) = ((seq1( · , 𝐹)‘𝑘) · (𝐹‘(𝑘 + 1))))
161160oveq2d 5858 . . . . . . . . . . 11 ((𝜑𝑘 ∈ ℕ) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = (𝑃 pCnt ((seq1( · , 𝐹)‘𝑘) · (𝐹‘(𝑘 + 1)))))
16226adantr 274 . . . . . . . . . . . 12 ((𝜑𝑘 ∈ ℕ) → 𝑃 ∈ ℙ)
16385simprd 113 . . . . . . . . . . . . . 14 (𝜑 → seq1( · , 𝐹):ℕ⟶ℕ)
164163ffvelrnda 5620 . . . . . . . . . . . . 13 ((𝜑𝑘 ∈ ℕ) → (seq1( · , 𝐹)‘𝑘) ∈ ℕ)
165 nnz 9210 . . . . . . . . . . . . . 14 ((seq1( · , 𝐹)‘𝑘) ∈ ℕ → (seq1( · , 𝐹)‘𝑘) ∈ ℤ)
166 nnne0 8885 . . . . . . . . . . . . . 14 ((seq1( · , 𝐹)‘𝑘) ∈ ℕ → (seq1( · , 𝐹)‘𝑘) ≠ 0)
167165, 166jca 304 . . . . . . . . . . . . 13 ((seq1( · , 𝐹)‘𝑘) ∈ ℕ → ((seq1( · , 𝐹)‘𝑘) ∈ ℤ ∧ (seq1( · , 𝐹)‘𝑘) ≠ 0))
168164, 167syl 14 . . . . . . . . . . . 12 ((𝜑𝑘 ∈ ℕ) → ((seq1( · , 𝐹)‘𝑘) ∈ ℤ ∧ (seq1( · , 𝐹)‘𝑘) ≠ 0))
169 nnz 9210 . . . . . . . . . . . . . 14 ((𝐹‘(𝑘 + 1)) ∈ ℕ → (𝐹‘(𝑘 + 1)) ∈ ℤ)
170 nnne0 8885 . . . . . . . . . . . . . 14 ((𝐹‘(𝑘 + 1)) ∈ ℕ → (𝐹‘(𝑘 + 1)) ≠ 0)
171169, 170jca 304 . . . . . . . . . . . . 13 ((𝐹‘(𝑘 + 1)) ∈ ℕ → ((𝐹‘(𝑘 + 1)) ∈ ℤ ∧ (𝐹‘(𝑘 + 1)) ≠ 0))
17289, 171syl 14 . . . . . . . . . . . 12 ((𝜑𝑘 ∈ ℕ) → ((𝐹‘(𝑘 + 1)) ∈ ℤ ∧ (𝐹‘(𝑘 + 1)) ≠ 0))
173 pcmul 12233 . . . . . . . . . . . 12 ((𝑃 ∈ ℙ ∧ ((seq1( · , 𝐹)‘𝑘) ∈ ℤ ∧ (seq1( · , 𝐹)‘𝑘) ≠ 0) ∧ ((𝐹‘(𝑘 + 1)) ∈ ℤ ∧ (𝐹‘(𝑘 + 1)) ≠ 0)) → (𝑃 pCnt ((seq1( · , 𝐹)‘𝑘) · (𝐹‘(𝑘 + 1)))) = ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))))
174162, 168, 172, 173syl3anc 1228 . . . . . . . . . . 11 ((𝜑𝑘 ∈ ℕ) → (𝑃 pCnt ((seq1( · , 𝐹)‘𝑘) · (𝐹‘(𝑘 + 1)))) = ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))))
175161, 174eqtrd 2198 . . . . . . . . . 10 ((𝜑𝑘 ∈ ℕ) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))))
176175adantrr 471 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))))
177 prmnn 12042 . . . . . . . . . . . . . . 15 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
17826, 177syl 14 . . . . . . . . . . . . . 14 (𝜑𝑃 ∈ ℕ)
179178nnred 8870 . . . . . . . . . . . . 13 (𝜑𝑃 ∈ ℝ)
180179adantr 274 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → 𝑃 ∈ ℝ)
181180leidd 8412 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → 𝑃𝑃)
182181, 121breqtrrd 4010 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → 𝑃 ≤ (𝑘 + 1))
183182iftrued 3527 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → if(𝑃 ≤ (𝑘 + 1), 𝐵, 0) = 𝐵)
184176, 183eqeq12d 2180 . . . . . . . 8 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0) ↔ ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = 𝐵))
185142, 154, 1843imtr4d 202 . . . . . . 7 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) = 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0)))
186185expr 373 . . . . . 6 ((𝜑𝑘 ∈ ℕ) → ((𝑘 + 1) = 𝑃 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0))))
187175adantrr 471 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))))
188 simplrr 526 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝑘 + 1) ≠ 𝑃)
189188necomd 2422 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → 𝑃 ≠ (𝑘 + 1))
19026ad2antrr 480 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → 𝑃 ∈ ℙ)
191 simpr 109 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝑘 + 1) ∈ ℙ)
19234ad2antrr 480 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → ∀𝑛 ∈ ℙ 𝐴 ∈ ℕ0)
193191, 192, 102sylc 62 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝑘 + 1) / 𝑛𝐴 ∈ ℕ0)
194 prmdvdsexpr 12082 . . . . . . . . . . . . . . . . 17 ((𝑃 ∈ ℙ ∧ (𝑘 + 1) ∈ ℙ ∧ (𝑘 + 1) / 𝑛𝐴 ∈ ℕ0) → (𝑃 ∥ ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴) → 𝑃 = (𝑘 + 1)))
195190, 191, 193, 194syl3anc 1228 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝑃 ∥ ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴) → 𝑃 = (𝑘 + 1)))
196195necon3ad 2378 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝑃 ≠ (𝑘 + 1) → ¬ 𝑃 ∥ ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴)))
197189, 196mpd 13 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → ¬ 𝑃 ∥ ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴))
19887ad2antrl 482 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑘 + 1) ∈ ℕ)
199109adantrr 471 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1) ∈ ℕ)
200198, 199, 119syl2anc 409 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝐹‘(𝑘 + 1)) = if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1))
201 iftrue 3525 . . . . . . . . . . . . . . . 16 ((𝑘 + 1) ∈ ℙ → if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1) = ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴))
202200, 201sylan9eq 2219 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝐹‘(𝑘 + 1)) = ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴))
203202breq2d 3994 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝑃 ∥ (𝐹‘(𝑘 + 1)) ↔ 𝑃 ∥ ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴)))
204197, 203mtbird 663 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → ¬ 𝑃 ∥ (𝐹‘(𝑘 + 1)))
20586, 198, 88syl2an2r 585 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝐹‘(𝑘 + 1)) ∈ ℕ)
206205adantr 274 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝐹‘(𝑘 + 1)) ∈ ℕ)
207 pceq0 12253 . . . . . . . . . . . . . 14 ((𝑃 ∈ ℙ ∧ (𝐹‘(𝑘 + 1)) ∈ ℕ) → ((𝑃 pCnt (𝐹‘(𝑘 + 1))) = 0 ↔ ¬ 𝑃 ∥ (𝐹‘(𝑘 + 1))))
208190, 206, 207syl2anc 409 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → ((𝑃 pCnt (𝐹‘(𝑘 + 1))) = 0 ↔ ¬ 𝑃 ∥ (𝐹‘(𝑘 + 1))))
209204, 208mpbird 166 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ (𝑘 + 1) ∈ ℙ) → (𝑃 pCnt (𝐹‘(𝑘 + 1))) = 0)
210 iffalse 3528 . . . . . . . . . . . . . . 15 (¬ (𝑘 + 1) ∈ ℙ → if((𝑘 + 1) ∈ ℙ, ((𝑘 + 1)↑(𝑘 + 1) / 𝑛𝐴), 1) = 1)
211200, 210sylan9eq 2219 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ ¬ (𝑘 + 1) ∈ ℙ) → (𝐹‘(𝑘 + 1)) = 1)
212211oveq2d 5858 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ ¬ (𝑘 + 1) ∈ ℙ) → (𝑃 pCnt (𝐹‘(𝑘 + 1))) = (𝑃 pCnt 1))
21328ad2antrr 480 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ ¬ (𝑘 + 1) ∈ ℙ) → (𝑃 pCnt 1) = 0)
214212, 213eqtrd 2198 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) ∧ ¬ (𝑘 + 1) ∈ ℙ) → (𝑃 pCnt (𝐹‘(𝑘 + 1))) = 0)
215 exmiddc 826 . . . . . . . . . . . . 13 (DECID (𝑘 + 1) ∈ ℙ → ((𝑘 + 1) ∈ ℙ ∨ ¬ (𝑘 + 1) ∈ ℙ))
216198, 107, 2153syl 17 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → ((𝑘 + 1) ∈ ℙ ∨ ¬ (𝑘 + 1) ∈ ℙ))
217209, 214, 216mpjaodan 788 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 pCnt (𝐹‘(𝑘 + 1))) = 0)
218217oveq2d 5858 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + (𝑃 pCnt (𝐹‘(𝑘 + 1)))) = ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + 0))
21926adantr 274 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → 𝑃 ∈ ℙ)
220164adantrr 471 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (seq1( · , 𝐹)‘𝑘) ∈ ℕ)
221219, 220pccld 12232 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) ∈ ℕ0)
222221nn0cnd 9169 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) ∈ ℂ)
223222addid1d 8047 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) + 0) = (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)))
224187, 218, 2233eqtrd 2202 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)))
225219, 77syl 14 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → 𝑃 ∈ ℤ)
226146ad2antrl 482 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑘 + 1) ∈ ℤ)
227 zltlen 9269 . . . . . . . . . . . 12 ((𝑃 ∈ ℤ ∧ (𝑘 + 1) ∈ ℤ) → (𝑃 < (𝑘 + 1) ↔ (𝑃 ≤ (𝑘 + 1) ∧ (𝑘 + 1) ≠ 𝑃)))
228225, 226, 227syl2anc 409 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 < (𝑘 + 1) ↔ (𝑃 ≤ (𝑘 + 1) ∧ (𝑘 + 1) ≠ 𝑃)))
229 simprl 521 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → 𝑘 ∈ ℕ)
230 nnleltp1 9250 . . . . . . . . . . . 12 ((𝑃 ∈ ℕ ∧ 𝑘 ∈ ℕ) → (𝑃𝑘𝑃 < (𝑘 + 1)))
231178, 229, 230syl2an2r 585 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃𝑘𝑃 < (𝑘 + 1)))
232 simprr 522 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑘 + 1) ≠ 𝑃)
233232biantrud 302 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 ≤ (𝑘 + 1) ↔ (𝑃 ≤ (𝑘 + 1) ∧ (𝑘 + 1) ≠ 𝑃)))
234228, 231, 2333bitr4rd 220 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → (𝑃 ≤ (𝑘 + 1) ↔ 𝑃𝑘))
235234ifbid 3541 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → if(𝑃 ≤ (𝑘 + 1), 𝐵, 0) = if(𝑃𝑘, 𝐵, 0))
236224, 235eqeq12d 2180 . . . . . . . 8 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0) ↔ (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0)))
237236biimprd 157 . . . . . . 7 ((𝜑 ∧ (𝑘 ∈ ℕ ∧ (𝑘 + 1) ≠ 𝑃)) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0)))
238237expr 373 . . . . . 6 ((𝜑𝑘 ∈ ℕ) → ((𝑘 + 1) ≠ 𝑃 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0))))
239106nnzd 9312 . . . . . . . 8 ((𝜑𝑘 ∈ ℕ) → (𝑘 + 1) ∈ ℤ)
240162, 77syl 14 . . . . . . . 8 ((𝜑𝑘 ∈ ℕ) → 𝑃 ∈ ℤ)
241 zdceq 9266 . . . . . . . 8 (((𝑘 + 1) ∈ ℤ ∧ 𝑃 ∈ ℤ) → DECID (𝑘 + 1) = 𝑃)
242239, 240, 241syl2anc 409 . . . . . . 7 ((𝜑𝑘 ∈ ℕ) → DECID (𝑘 + 1) = 𝑃)
243 dcne 2347 . . . . . . 7 (DECID (𝑘 + 1) = 𝑃 ↔ ((𝑘 + 1) = 𝑃 ∨ (𝑘 + 1) ≠ 𝑃))
244242, 243sylib 121 . . . . . 6 ((𝜑𝑘 ∈ ℕ) → ((𝑘 + 1) = 𝑃 ∨ (𝑘 + 1) ≠ 𝑃))
245186, 238, 244mpjaod 708 . . . . 5 ((𝜑𝑘 ∈ ℕ) → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0)))
246245expcom 115 . . . 4 (𝑘 ∈ ℕ → (𝜑 → ((𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0) → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0))))
247246a2d 26 . . 3 (𝑘 ∈ ℕ → ((𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑘)) = if(𝑃𝑘, 𝐵, 0)) → (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘(𝑘 + 1))) = if(𝑃 ≤ (𝑘 + 1), 𝐵, 0))))
2487, 13, 19, 25, 83, 247nnind 8873 . 2 (𝑁 ∈ ℕ → (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑁)) = if(𝑃𝑁, 𝐵, 0)))
2491, 248mpcom 36 1 (𝜑 → (𝑃 pCnt (seq1( · , 𝐹)‘𝑁)) = if(𝑃𝑁, 𝐵, 0))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 698  DECID wdc 824   = wceq 1343  wcel 2136  wne 2336  wral 2444  csb 3045  ifcif 3520   class class class wbr 3982  cmpt 4043  wf 5184  cfv 5188  (class class class)co 5842  cr 7752  0cc0 7753  1c1 7754   + caddc 7756   · cmul 7758   < clt 7933  cle 7934  cn 8857  0cn0 9114  cz 9191  cuz 9466  seqcseq 10380  cexp 10454  cdvds 11727  cprime 12039   pCnt cpc 12216
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-mulrcl 7852  ax-addcom 7853  ax-mulcom 7854  ax-addass 7855  ax-mulass 7856  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-1rid 7860  ax-0id 7861  ax-rnegex 7862  ax-precex 7863  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-apti 7868  ax-pre-ltadd 7869  ax-pre-mulgt0 7870  ax-pre-mulext 7871  ax-arch 7872  ax-caucvg 7873
This theorem depends on definitions:  df-bi 116  df-stab 821  df-dc 825  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rmo 2452  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-po 4274  df-iso 4275  df-iord 4344  df-on 4346  df-ilim 4347  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-isom 5197  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-1st 6108  df-2nd 6109  df-recs 6273  df-frec 6359  df-1o 6384  df-2o 6385  df-er 6501  df-en 6707  df-fin 6709  df-sup 6949  df-inf 6950  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-reap 8473  df-ap 8480  df-div 8569  df-inn 8858  df-2 8916  df-3 8917  df-4 8918  df-n0 9115  df-z 9192  df-uz 9467  df-q 9558  df-rp 9590  df-fz 9945  df-fzo 10078  df-fl 10205  df-mod 10258  df-seqfrec 10381  df-exp 10455  df-cj 10784  df-re 10785  df-im 10786  df-rsqrt 10940  df-abs 10941  df-dvds 11728  df-gcd 11876  df-prm 12040  df-pc 12217
This theorem is referenced by:  pcmpt2  12274  pcprod  12276  1arithlem4  12296
  Copyright terms: Public domain W3C validator