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

Theorem prmreclem2 16794
Description: Lemma for prmrec 16799. There are at most 2↑𝐾 squarefree numbers which divide no primes larger than 𝐾. (We could strengthen this to 2↑♯(ℙ ∩ (1...𝐾)) but there's no reason to.) We establish the inequality by showing that the prime counts of the number up to 𝐾 completely determine it because all higher prime counts are zero, and they are all at most 1 because no square divides the number, so there are at most 2↑𝐾 possibilities. (Contributed by Mario Carneiro, 5-Aug-2014.)
Hypotheses
Ref Expression
prmrec.1 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (1 / 𝑛), 0))
prmrec.2 (𝜑𝐾 ∈ ℕ)
prmrec.3 (𝜑𝑁 ∈ ℕ)
prmrec.4 𝑀 = {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛}
prmreclem2.5 𝑄 = (𝑛 ∈ ℕ ↦ sup({𝑟 ∈ ℕ ∣ (𝑟↑2) ∥ 𝑛}, ℝ, < ))
Assertion
Ref Expression
prmreclem2 (𝜑 → (♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (2↑𝐾))
Distinct variable groups:   𝑛,𝑝,𝑟,𝑥,𝐹   𝑛,𝐾,𝑝,𝑥   𝑛,𝑀,𝑝,𝑥   𝜑,𝑛,𝑝,𝑥   𝑄,𝑛,𝑝,𝑟,𝑥   𝑛,𝑁,𝑝,𝑥
Allowed substitution hints:   𝜑(𝑟)   𝐾(𝑟)   𝑀(𝑟)   𝑁(𝑟)

Proof of Theorem prmreclem2
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ovex 7391 . . . 4 ({0, 1} ↑m (1...𝐾)) ∈ V
2 fveqeq2 6852 . . . . . . 7 (𝑥 = 𝑦 → ((𝑄𝑥) = 1 ↔ (𝑄𝑦) = 1))
32elrab 3646 . . . . . 6 (𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ↔ (𝑦𝑀 ∧ (𝑄𝑦) = 1))
4 prmrec.4 . . . . . . . . . . . . . . . . . . . 20 𝑀 = {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛}
54ssrab3 4041 . . . . . . . . . . . . . . . . . . 19 𝑀 ⊆ (1...𝑁)
6 simprl 770 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) → 𝑦𝑀)
76ad2antrr 725 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦𝑀)
85, 7sselid 3943 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ (1...𝑁))
9 elfznn 13476 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ (1...𝑁) → 𝑦 ∈ ℕ)
108, 9syl 17 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ ℕ)
11 simpr 486 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑛 ∈ ℙ)
12 prmuz2 16577 . . . . . . . . . . . . . . . . . 18 (𝑛 ∈ ℙ → 𝑛 ∈ (ℤ‘2))
1311, 12syl 17 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑛 ∈ (ℤ‘2))
14 prmreclem2.5 . . . . . . . . . . . . . . . . . . 19 𝑄 = (𝑛 ∈ ℕ ↦ sup({𝑟 ∈ ℕ ∣ (𝑟↑2) ∥ 𝑛}, ℝ, < ))
1514prmreclem1 16793 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ ℕ → ((𝑄𝑦) ∈ ℕ ∧ ((𝑄𝑦)↑2) ∥ 𝑦 ∧ (𝑛 ∈ (ℤ‘2) → ¬ (𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)))))
1615simp3d 1145 . . . . . . . . . . . . . . . . 17 (𝑦 ∈ ℕ → (𝑛 ∈ (ℤ‘2) → ¬ (𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2))))
1710, 13, 16sylc 65 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ¬ (𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)))
18 simprr 772 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) → (𝑄𝑦) = 1)
1918ad2antrr 725 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑄𝑦) = 1)
2019oveq1d 7373 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑄𝑦)↑2) = (1↑2))
21 sq1 14105 . . . . . . . . . . . . . . . . . . . . 21 (1↑2) = 1
2220, 21eqtrdi 2789 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑄𝑦)↑2) = 1)
2322oveq2d 7374 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑦 / ((𝑄𝑦)↑2)) = (𝑦 / 1))
2410nncnd 12174 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ ℂ)
2524div1d 11928 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑦 / 1) = 𝑦)
2623, 25eqtrd 2773 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑦 / ((𝑄𝑦)↑2)) = 𝑦)
2726breq2d 5118 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)) ↔ (𝑛↑2) ∥ 𝑦))
2810nnzd 12531 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ ℤ)
29 2nn0 12435 . . . . . . . . . . . . . . . . . . 19 2 ∈ ℕ0
3029a1i 11 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 2 ∈ ℕ0)
31 pcdvdsb 16746 . . . . . . . . . . . . . . . . . 18 ((𝑛 ∈ ℙ ∧ 𝑦 ∈ ℤ ∧ 2 ∈ ℕ0) → (2 ≤ (𝑛 pCnt 𝑦) ↔ (𝑛↑2) ∥ 𝑦))
3211, 28, 30, 31syl3anc 1372 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (2 ≤ (𝑛 pCnt 𝑦) ↔ (𝑛↑2) ∥ 𝑦))
3327, 32bitr4d 282 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)) ↔ 2 ≤ (𝑛 pCnt 𝑦)))
3417, 33mtbid 324 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ¬ 2 ≤ (𝑛 pCnt 𝑦))
3511, 10pccld 16727 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ ℕ0)
3635nn0red 12479 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ ℝ)
37 2re 12232 . . . . . . . . . . . . . . . 16 2 ∈ ℝ
38 ltnle 11239 . . . . . . . . . . . . . . . 16 (((𝑛 pCnt 𝑦) ∈ ℝ ∧ 2 ∈ ℝ) → ((𝑛 pCnt 𝑦) < 2 ↔ ¬ 2 ≤ (𝑛 pCnt 𝑦)))
3936, 37, 38sylancl 587 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛 pCnt 𝑦) < 2 ↔ ¬ 2 ≤ (𝑛 pCnt 𝑦)))
4034, 39mpbird 257 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) < 2)
41 df-2 12221 . . . . . . . . . . . . . 14 2 = (1 + 1)
4240, 41breqtrdi 5147 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) < (1 + 1))
4335nn0zd 12530 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ ℤ)
44 1z 12538 . . . . . . . . . . . . . 14 1 ∈ ℤ
45 zleltp1 12559 . . . . . . . . . . . . . 14 (((𝑛 pCnt 𝑦) ∈ ℤ ∧ 1 ∈ ℤ) → ((𝑛 pCnt 𝑦) ≤ 1 ↔ (𝑛 pCnt 𝑦) < (1 + 1)))
4643, 44, 45sylancl 587 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛 pCnt 𝑦) ≤ 1 ↔ (𝑛 pCnt 𝑦) < (1 + 1)))
4742, 46mpbird 257 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ≤ 1)
48 nn0uz 12810 . . . . . . . . . . . . . 14 0 = (ℤ‘0)
4935, 48eleqtrdi 2844 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ (ℤ‘0))
50 elfz5 13439 . . . . . . . . . . . . 13 (((𝑛 pCnt 𝑦) ∈ (ℤ‘0) ∧ 1 ∈ ℤ) → ((𝑛 pCnt 𝑦) ∈ (0...1) ↔ (𝑛 pCnt 𝑦) ≤ 1))
5149, 44, 50sylancl 587 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛 pCnt 𝑦) ∈ (0...1) ↔ (𝑛 pCnt 𝑦) ≤ 1))
5247, 51mpbird 257 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ (0...1))
53 0z 12515 . . . . . . . . . . . . 13 0 ∈ ℤ
54 fzpr 13502 . . . . . . . . . . . . 13 (0 ∈ ℤ → (0...(0 + 1)) = {0, (0 + 1)})
5553, 54ax-mp 5 . . . . . . . . . . . 12 (0...(0 + 1)) = {0, (0 + 1)}
56 1e0p1 12665 . . . . . . . . . . . . 13 1 = (0 + 1)
5756oveq2i 7369 . . . . . . . . . . . 12 (0...1) = (0...(0 + 1))
5856preq2i 4699 . . . . . . . . . . . 12 {0, 1} = {0, (0 + 1)}
5955, 57, 583eqtr4i 2771 . . . . . . . . . . 11 (0...1) = {0, 1}
6052, 59eleqtrdi 2844 . . . . . . . . . 10 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ {0, 1})
61 c0ex 11154 . . . . . . . . . . . 12 0 ∈ V
6261prid1 4724 . . . . . . . . . . 11 0 ∈ {0, 1}
6362a1i 11 . . . . . . . . . 10 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ ¬ 𝑛 ∈ ℙ) → 0 ∈ {0, 1})
6460, 63ifclda 4522 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) → if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0) ∈ {0, 1})
6564fmpttd 7064 . . . . . . . 8 ((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) → (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)):(1...𝐾)⟶{0, 1})
66 prex 5390 . . . . . . . . 9 {0, 1} ∈ V
67 ovex 7391 . . . . . . . . 9 (1...𝐾) ∈ V
6866, 67elmap 8812 . . . . . . . 8 ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) ∈ ({0, 1} ↑m (1...𝐾)) ↔ (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)):(1...𝐾)⟶{0, 1})
6965, 68sylibr 233 . . . . . . 7 ((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) → (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) ∈ ({0, 1} ↑m (1...𝐾)))
7069ex 414 . . . . . 6 (𝜑 → ((𝑦𝑀 ∧ (𝑄𝑦) = 1) → (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) ∈ ({0, 1} ↑m (1...𝐾))))
713, 70biimtrid 241 . . . . 5 (𝜑 → (𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} → (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) ∈ ({0, 1} ↑m (1...𝐾))))
72 fveqeq2 6852 . . . . . . . 8 (𝑥 = 𝑧 → ((𝑄𝑥) = 1 ↔ (𝑄𝑧) = 1))
7372elrab 3646 . . . . . . 7 (𝑧 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ↔ (𝑧𝑀 ∧ (𝑄𝑧) = 1))
743, 73anbi12i 628 . . . . . 6 ((𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∧ 𝑧 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1}) ↔ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1)))
75 ovex 7391 . . . . . . . . . . . 12 (𝑛 pCnt 𝑦) ∈ V
7675, 61ifex 4537 . . . . . . . . . . 11 if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0) ∈ V
77 eqid 2733 . . . . . . . . . . 11 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))
7876, 77fnmpti 6645 . . . . . . . . . 10 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) Fn (1...𝐾)
79 ovex 7391 . . . . . . . . . . . 12 (𝑛 pCnt 𝑧) ∈ V
8079, 61ifex 4537 . . . . . . . . . . 11 if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0) ∈ V
81 eqid 2733 . . . . . . . . . . 11 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))
8280, 81fnmpti 6645 . . . . . . . . . 10 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) Fn (1...𝐾)
83 eqfnfv 6983 . . . . . . . . . 10 (((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) Fn (1...𝐾) ∧ (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) Fn (1...𝐾)) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ ∀𝑝 ∈ (1...𝐾)((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))‘𝑝) = ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))‘𝑝)))
8478, 82, 83mp2an 691 . . . . . . . . 9 ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ ∀𝑝 ∈ (1...𝐾)((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))‘𝑝) = ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))‘𝑝))
85 eleq1w 2817 . . . . . . . . . . . . 13 (𝑛 = 𝑝 → (𝑛 ∈ ℙ ↔ 𝑝 ∈ ℙ))
86 oveq1 7365 . . . . . . . . . . . . 13 (𝑛 = 𝑝 → (𝑛 pCnt 𝑦) = (𝑝 pCnt 𝑦))
8785, 86ifbieq1d 4511 . . . . . . . . . . . 12 (𝑛 = 𝑝 → if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0))
88 ovex 7391 . . . . . . . . . . . . 13 (𝑝 pCnt 𝑦) ∈ V
8988, 61ifex 4537 . . . . . . . . . . . 12 if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) ∈ V
9087, 77, 89fvmpt 6949 . . . . . . . . . . 11 (𝑝 ∈ (1...𝐾) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))‘𝑝) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0))
91 oveq1 7365 . . . . . . . . . . . . 13 (𝑛 = 𝑝 → (𝑛 pCnt 𝑧) = (𝑝 pCnt 𝑧))
9285, 91ifbieq1d 4511 . . . . . . . . . . . 12 (𝑛 = 𝑝 → if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
93 ovex 7391 . . . . . . . . . . . . 13 (𝑝 pCnt 𝑧) ∈ V
9493, 61ifex 4537 . . . . . . . . . . . 12 if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∈ V
9592, 81, 94fvmpt 6949 . . . . . . . . . . 11 (𝑝 ∈ (1...𝐾) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))‘𝑝) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
9690, 95eqeq12d 2749 . . . . . . . . . 10 (𝑝 ∈ (1...𝐾) → (((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))‘𝑝) = ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))‘𝑝) ↔ if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)))
9796ralbiia 3091 . . . . . . . . 9 (∀𝑝 ∈ (1...𝐾)((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))‘𝑝) = ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))‘𝑝) ↔ ∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
9884, 97bitri 275 . . . . . . . 8 ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ ∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
99 simprll 778 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑦𝑀)
100 breq2 5110 . . . . . . . . . . . . . . . . 17 (𝑛 = 𝑦 → (𝑝𝑛𝑝𝑦))
101100notbid 318 . . . . . . . . . . . . . . . 16 (𝑛 = 𝑦 → (¬ 𝑝𝑛 ↔ ¬ 𝑝𝑦))
102101ralbidv 3171 . . . . . . . . . . . . . . 15 (𝑛 = 𝑦 → (∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛 ↔ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦))
103102, 4elrab2 3649 . . . . . . . . . . . . . 14 (𝑦𝑀 ↔ (𝑦 ∈ (1...𝑁) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦))
104103simprbi 498 . . . . . . . . . . . . 13 (𝑦𝑀 → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦)
10599, 104syl 17 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦)
106 simprrl 780 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑧𝑀)
107 breq2 5110 . . . . . . . . . . . . . . . . 17 (𝑛 = 𝑧 → (𝑝𝑛𝑝𝑧))
108107notbid 318 . . . . . . . . . . . . . . . 16 (𝑛 = 𝑧 → (¬ 𝑝𝑛 ↔ ¬ 𝑝𝑧))
109108ralbidv 3171 . . . . . . . . . . . . . . 15 (𝑛 = 𝑧 → (∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛 ↔ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧))
110109, 4elrab2 3649 . . . . . . . . . . . . . 14 (𝑧𝑀 ↔ (𝑧 ∈ (1...𝑁) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧))
111110simprbi 498 . . . . . . . . . . . . 13 (𝑧𝑀 → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧)
112106, 111syl 17 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧)
113 r19.26 3111 . . . . . . . . . . . . 13 (∀𝑝 ∈ (ℙ ∖ (1...𝐾))(¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧) ↔ (∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦 ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧))
114 eldifi 4087 . . . . . . . . . . . . . . . . 17 (𝑝 ∈ (ℙ ∖ (1...𝐾)) → 𝑝 ∈ ℙ)
115 fz1ssnn 13478 . . . . . . . . . . . . . . . . . . 19 (1...𝑁) ⊆ ℕ
1165, 115sstri 3954 . . . . . . . . . . . . . . . . . 18 𝑀 ⊆ ℕ
117116, 99sselid 3943 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑦 ∈ ℕ)
118 pceq0 16748 . . . . . . . . . . . . . . . . 17 ((𝑝 ∈ ℙ ∧ 𝑦 ∈ ℕ) → ((𝑝 pCnt 𝑦) = 0 ↔ ¬ 𝑝𝑦))
119114, 117, 118syl2anr 598 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → ((𝑝 pCnt 𝑦) = 0 ↔ ¬ 𝑝𝑦))
120116, 106sselid 3943 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑧 ∈ ℕ)
121 pceq0 16748 . . . . . . . . . . . . . . . . 17 ((𝑝 ∈ ℙ ∧ 𝑧 ∈ ℕ) → ((𝑝 pCnt 𝑧) = 0 ↔ ¬ 𝑝𝑧))
122114, 120, 121syl2anr 598 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → ((𝑝 pCnt 𝑧) = 0 ↔ ¬ 𝑝𝑧))
123119, 122anbi12d 632 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → (((𝑝 pCnt 𝑦) = 0 ∧ (𝑝 pCnt 𝑧) = 0) ↔ (¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧)))
124 eqtr3 2759 . . . . . . . . . . . . . . 15 (((𝑝 pCnt 𝑦) = 0 ∧ (𝑝 pCnt 𝑧) = 0) → (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
125123, 124syl6bir 254 . . . . . . . . . . . . . 14 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → ((¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧) → (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
126125ralimdva 3161 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (∀𝑝 ∈ (ℙ ∖ (1...𝐾))(¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
127113, 126biimtrrid 242 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ((∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦 ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
128105, 112, 127mp2and 698 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
129128biantrud 533 . . . . . . . . . 10 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))))
130 incom 4162 . . . . . . . . . . . . . . 15 (ℙ ∩ (1...𝐾)) = ((1...𝐾) ∩ ℙ)
131130uneq1i 4120 . . . . . . . . . . . . . 14 ((ℙ ∩ (1...𝐾)) ∪ ((1...𝐾) ∖ ℙ)) = (((1...𝐾) ∩ ℙ) ∪ ((1...𝐾) ∖ ℙ))
132 inundif 4439 . . . . . . . . . . . . . 14 (((1...𝐾) ∩ ℙ) ∪ ((1...𝐾) ∖ ℙ)) = (1...𝐾)
133131, 132eqtri 2761 . . . . . . . . . . . . 13 ((ℙ ∩ (1...𝐾)) ∪ ((1...𝐾) ∖ ℙ)) = (1...𝐾)
134133raleqi 3310 . . . . . . . . . . . 12 (∀𝑝 ∈ ((ℙ ∩ (1...𝐾)) ∪ ((1...𝐾) ∖ ℙ))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ ∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
135 ralunb 4152 . . . . . . . . . . . 12 (∀𝑝 ∈ ((ℙ ∩ (1...𝐾)) ∪ ((1...𝐾) ∖ ℙ))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∧ ∀𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)))
136134, 135bitr3i 277 . . . . . . . . . . 11 (∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∧ ∀𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)))
137 eldifn 4088 . . . . . . . . . . . . . . 15 (𝑝 ∈ ((1...𝐾) ∖ ℙ) → ¬ 𝑝 ∈ ℙ)
138 iffalse 4496 . . . . . . . . . . . . . . . 16 𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = 0)
139 iffalse 4496 . . . . . . . . . . . . . . . 16 𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) = 0)
140138, 139eqtr4d 2776 . . . . . . . . . . . . . . 15 𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
141137, 140syl 17 . . . . . . . . . . . . . 14 (𝑝 ∈ ((1...𝐾) ∖ ℙ) → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
142141rgen 3063 . . . . . . . . . . . . 13 𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)
143142biantru 531 . . . . . . . . . . . 12 (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∧ ∀𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)))
144 elinel1 4156 . . . . . . . . . . . . . 14 (𝑝 ∈ (ℙ ∩ (1...𝐾)) → 𝑝 ∈ ℙ)
145 iftrue 4493 . . . . . . . . . . . . . . 15 (𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = (𝑝 pCnt 𝑦))
146 iftrue 4493 . . . . . . . . . . . . . . 15 (𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) = (𝑝 pCnt 𝑧))
147145, 146eqeq12d 2749 . . . . . . . . . . . . . 14 (𝑝 ∈ ℙ → (if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
148144, 147syl 17 . . . . . . . . . . . . 13 (𝑝 ∈ (ℙ ∩ (1...𝐾)) → (if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
149148ralbiia 3091 . . . . . . . . . . . 12 (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ ∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
150143, 149bitr3i 277 . . . . . . . . . . 11 ((∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∧ ∀𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)) ↔ ∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
151136, 150bitri 275 . . . . . . . . . 10 (∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ ∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
152 inundif 4439 . . . . . . . . . . . 12 ((ℙ ∩ (1...𝐾)) ∪ (ℙ ∖ (1...𝐾))) = ℙ
153152raleqi 3310 . . . . . . . . . . 11 (∀𝑝 ∈ ((ℙ ∩ (1...𝐾)) ∪ (ℙ ∖ (1...𝐾)))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
154 ralunb 4152 . . . . . . . . . . 11 (∀𝑝 ∈ ((ℙ ∩ (1...𝐾)) ∪ (ℙ ∖ (1...𝐾)))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
155153, 154bitr3i 277 . . . . . . . . . 10 (∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
156129, 151, 1553bitr4g 314 . . . . . . . . 9 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
157117nnnn0d 12478 . . . . . . . . . 10 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑦 ∈ ℕ0)
158120nnnn0d 12478 . . . . . . . . . 10 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑧 ∈ ℕ0)
159 pc11 16757 . . . . . . . . . 10 ((𝑦 ∈ ℕ0𝑧 ∈ ℕ0) → (𝑦 = 𝑧 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
160157, 158, 159syl2anc 585 . . . . . . . . 9 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (𝑦 = 𝑧 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
161156, 160bitr4d 282 . . . . . . . 8 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ 𝑦 = 𝑧))
16298, 161bitrid 283 . . . . . . 7 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ 𝑦 = 𝑧))
163162ex 414 . . . . . 6 (𝜑 → (((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1)) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ 𝑦 = 𝑧)))
16474, 163biimtrid 241 . . . . 5 (𝜑 → ((𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∧ 𝑧 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1}) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ 𝑦 = 𝑧)))
16571, 164dom2d 8936 . . . 4 (𝜑 → (({0, 1} ↑m (1...𝐾)) ∈ V → {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾))))
1661, 165mpi 20 . . 3 (𝜑 → {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾)))
167 fzfi 13883 . . . . . . 7 (1...𝑁) ∈ Fin
168 ssrab2 4038 . . . . . . 7 {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ⊆ (1...𝑁)
169 ssfi 9120 . . . . . . 7 (((1...𝑁) ∈ Fin ∧ {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ⊆ (1...𝑁)) → {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ∈ Fin)
170167, 168, 169mp2an 691 . . . . . 6 {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ∈ Fin
1714, 170eqeltri 2830 . . . . 5 𝑀 ∈ Fin
172 ssrab2 4038 . . . . 5 {𝑥𝑀 ∣ (𝑄𝑥) = 1} ⊆ 𝑀
173 ssfi 9120 . . . . 5 ((𝑀 ∈ Fin ∧ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ⊆ 𝑀) → {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∈ Fin)
174171, 172, 173mp2an 691 . . . 4 {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∈ Fin
175 prfi 9269 . . . . 5 {0, 1} ∈ Fin
176 fzfid 13884 . . . . 5 (𝜑 → (1...𝐾) ∈ Fin)
177 mapfi 9295 . . . . 5 (({0, 1} ∈ Fin ∧ (1...𝐾) ∈ Fin) → ({0, 1} ↑m (1...𝐾)) ∈ Fin)
178175, 176, 177sylancr 588 . . . 4 (𝜑 → ({0, 1} ↑m (1...𝐾)) ∈ Fin)
179 hashdom 14285 . . . 4 (({𝑥𝑀 ∣ (𝑄𝑥) = 1} ∈ Fin ∧ ({0, 1} ↑m (1...𝐾)) ∈ Fin) → ((♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (♯‘({0, 1} ↑m (1...𝐾))) ↔ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾))))
180174, 178, 179sylancr 588 . . 3 (𝜑 → ((♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (♯‘({0, 1} ↑m (1...𝐾))) ↔ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾))))
181166, 180mpbird 257 . 2 (𝜑 → (♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (♯‘({0, 1} ↑m (1...𝐾))))
182 hashmap 14341 . . . 4 (({0, 1} ∈ Fin ∧ (1...𝐾) ∈ Fin) → (♯‘({0, 1} ↑m (1...𝐾))) = ((♯‘{0, 1})↑(♯‘(1...𝐾))))
183175, 176, 182sylancr 588 . . 3 (𝜑 → (♯‘({0, 1} ↑m (1...𝐾))) = ((♯‘{0, 1})↑(♯‘(1...𝐾))))
184 prhash2ex 14305 . . . . 5 (♯‘{0, 1}) = 2
185184a1i 11 . . . 4 (𝜑 → (♯‘{0, 1}) = 2)
186 prmrec.2 . . . . . 6 (𝜑𝐾 ∈ ℕ)
187186nnnn0d 12478 . . . . 5 (𝜑𝐾 ∈ ℕ0)
188 hashfz1 14252 . . . . 5 (𝐾 ∈ ℕ0 → (♯‘(1...𝐾)) = 𝐾)
189187, 188syl 17 . . . 4 (𝜑 → (♯‘(1...𝐾)) = 𝐾)
190185, 189oveq12d 7376 . . 3 (𝜑 → ((♯‘{0, 1})↑(♯‘(1...𝐾))) = (2↑𝐾))
191183, 190eqtrd 2773 . 2 (𝜑 → (♯‘({0, 1} ↑m (1...𝐾))) = (2↑𝐾))
192181, 191breqtrd 5132 1 (𝜑 → (♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (2↑𝐾))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 397   = wceq 1542  wcel 2107  wral 3061  {crab 3406  Vcvv 3444  cdif 3908  cun 3909  cin 3910  wss 3911  ifcif 4487  {cpr 4589   class class class wbr 5106  cmpt 5189   Fn wfn 6492  wf 6493  cfv 6497  (class class class)co 7358  m cmap 8768  cdom 8884  Fincfn 8886  supcsup 9381  cr 11055  0cc0 11056  1c1 11057   + caddc 11059   < clt 11194  cle 11195   / cdiv 11817  cn 12158  2c2 12213  0cn0 12418  cz 12504  cuz 12768  ...cfz 13430  cexp 13973  chash 14236  cdvds 16141  cprime 16552   pCnt cpc 16713
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-rep 5243  ax-sep 5257  ax-nul 5264  ax-pow 5321  ax-pr 5385  ax-un 7673  ax-cnex 11112  ax-resscn 11113  ax-1cn 11114  ax-icn 11115  ax-addcl 11116  ax-addrcl 11117  ax-mulcl 11118  ax-mulrcl 11119  ax-mulcom 11120  ax-addass 11121  ax-mulass 11122  ax-distr 11123  ax-i2m1 11124  ax-1ne0 11125  ax-1rid 11126  ax-rnegex 11127  ax-rrecex 11128  ax-cnre 11129  ax-pre-lttri 11130  ax-pre-lttrn 11131  ax-pre-ltadd 11132  ax-pre-mulgt0 11133  ax-pre-sup 11134
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2941  df-nel 3047  df-ral 3062  df-rex 3071  df-rmo 3352  df-reu 3353  df-rab 3407  df-v 3446  df-sbc 3741  df-csb 3857  df-dif 3914  df-un 3916  df-in 3918  df-ss 3928  df-pss 3930  df-nul 4284  df-if 4488  df-pw 4563  df-sn 4588  df-pr 4590  df-op 4594  df-uni 4867  df-int 4909  df-iun 4957  df-br 5107  df-opab 5169  df-mpt 5190  df-tr 5224  df-id 5532  df-eprel 5538  df-po 5546  df-so 5547  df-fr 5589  df-we 5591  df-xp 5640  df-rel 5641  df-cnv 5642  df-co 5643  df-dm 5644  df-rn 5645  df-res 5646  df-ima 5647  df-pred 6254  df-ord 6321  df-on 6322  df-lim 6323  df-suc 6324  df-iota 6449  df-fun 6499  df-fn 6500  df-f 6501  df-f1 6502  df-fo 6503  df-f1o 6504  df-fv 6505  df-riota 7314  df-ov 7361  df-oprab 7362  df-mpo 7363  df-om 7804  df-1st 7922  df-2nd 7923  df-frecs 8213  df-wrecs 8244  df-recs 8318  df-rdg 8357  df-1o 8413  df-2o 8414  df-oadd 8417  df-er 8651  df-map 8770  df-pm 8771  df-en 8887  df-dom 8888  df-sdom 8889  df-fin 8890  df-sup 9383  df-inf 9384  df-dju 9842  df-card 9880  df-pnf 11196  df-mnf 11197  df-xr 11198  df-ltxr 11199  df-le 11200  df-sub 11392  df-neg 11393  df-div 11818  df-nn 12159  df-2 12221  df-3 12222  df-n0 12419  df-xnn0 12491  df-z 12505  df-uz 12769  df-q 12879  df-rp 12921  df-fz 13431  df-fl 13703  df-mod 13781  df-seq 13913  df-exp 13974  df-hash 14237  df-cj 14990  df-re 14991  df-im 14992  df-sqrt 15126  df-abs 15127  df-dvds 16142  df-gcd 16380  df-prm 16553  df-pc 16714
This theorem is referenced by:  prmreclem3  16795
  Copyright terms: Public domain W3C validator