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

Theorem prmreclem2 16618
Description: Lemma for prmrec 16623. 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 7308 . . . 4 ({0, 1} ↑m (1...𝐾)) ∈ V
2 fveqeq2 6783 . . . . . . 7 (𝑥 = 𝑦 → ((𝑄𝑥) = 1 ↔ (𝑄𝑦) = 1))
32elrab 3624 . . . . . 6 (𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ↔ (𝑦𝑀 ∧ (𝑄𝑦) = 1))
4 prmrec.4 . . . . . . . . . . . . . . . . . . . 20 𝑀 = {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛}
54ssrab3 4015 . . . . . . . . . . . . . . . . . . 19 𝑀 ⊆ (1...𝑁)
6 simprl 768 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) → 𝑦𝑀)
76ad2antrr 723 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦𝑀)
85, 7sselid 3919 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ (1...𝑁))
9 elfznn 13285 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ (1...𝑁) → 𝑦 ∈ ℕ)
108, 9syl 17 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ ℕ)
11 simpr 485 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑛 ∈ ℙ)
12 prmuz2 16401 . . . . . . . . . . . . . . . . . 18 (𝑛 ∈ ℙ → 𝑛 ∈ (ℤ‘2))
1311, 12syl 17 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑛 ∈ (ℤ‘2))
14 prmreclem2.5 . . . . . . . . . . . . . . . . . . 19 𝑄 = (𝑛 ∈ ℕ ↦ sup({𝑟 ∈ ℕ ∣ (𝑟↑2) ∥ 𝑛}, ℝ, < ))
1514prmreclem1 16617 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ ℕ → ((𝑄𝑦) ∈ ℕ ∧ ((𝑄𝑦)↑2) ∥ 𝑦 ∧ (𝑛 ∈ (ℤ‘2) → ¬ (𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)))))
1615simp3d 1143 . . . . . . . . . . . . . . . . 17 (𝑦 ∈ ℕ → (𝑛 ∈ (ℤ‘2) → ¬ (𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2))))
1710, 13, 16sylc 65 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ¬ (𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)))
18 simprr 770 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) → (𝑄𝑦) = 1)
1918ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑄𝑦) = 1)
2019oveq1d 7290 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑄𝑦)↑2) = (1↑2))
21 sq1 13912 . . . . . . . . . . . . . . . . . . . . 21 (1↑2) = 1
2220, 21eqtrdi 2794 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑄𝑦)↑2) = 1)
2322oveq2d 7291 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑦 / ((𝑄𝑦)↑2)) = (𝑦 / 1))
2410nncnd 11989 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ ℂ)
2524div1d 11743 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑦 / 1) = 𝑦)
2623, 25eqtrd 2778 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑦 / ((𝑄𝑦)↑2)) = 𝑦)
2726breq2d 5086 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)) ↔ (𝑛↑2) ∥ 𝑦))
2810nnzd 12425 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 𝑦 ∈ ℤ)
29 2nn0 12250 . . . . . . . . . . . . . . . . . . 19 2 ∈ ℕ0
3029a1i 11 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → 2 ∈ ℕ0)
31 pcdvdsb 16570 . . . . . . . . . . . . . . . . . 18 ((𝑛 ∈ ℙ ∧ 𝑦 ∈ ℤ ∧ 2 ∈ ℕ0) → (2 ≤ (𝑛 pCnt 𝑦) ↔ (𝑛↑2) ∥ 𝑦))
3211, 28, 30, 31syl3anc 1370 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (2 ≤ (𝑛 pCnt 𝑦) ↔ (𝑛↑2) ∥ 𝑦))
3327, 32bitr4d 281 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛↑2) ∥ (𝑦 / ((𝑄𝑦)↑2)) ↔ 2 ≤ (𝑛 pCnt 𝑦)))
3417, 33mtbid 324 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ¬ 2 ≤ (𝑛 pCnt 𝑦))
3511, 10pccld 16551 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ ℕ0)
3635nn0red 12294 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ ℝ)
37 2re 12047 . . . . . . . . . . . . . . . 16 2 ∈ ℝ
38 ltnle 11054 . . . . . . . . . . . . . . . 16 (((𝑛 pCnt 𝑦) ∈ ℝ ∧ 2 ∈ ℝ) → ((𝑛 pCnt 𝑦) < 2 ↔ ¬ 2 ≤ (𝑛 pCnt 𝑦)))
3936, 37, 38sylancl 586 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛 pCnt 𝑦) < 2 ↔ ¬ 2 ≤ (𝑛 pCnt 𝑦)))
4034, 39mpbird 256 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) < 2)
41 df-2 12036 . . . . . . . . . . . . . 14 2 = (1 + 1)
4240, 41breqtrdi 5115 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) < (1 + 1))
4335nn0zd 12424 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ ℤ)
44 1z 12350 . . . . . . . . . . . . . 14 1 ∈ ℤ
45 zleltp1 12371 . . . . . . . . . . . . . 14 (((𝑛 pCnt 𝑦) ∈ ℤ ∧ 1 ∈ ℤ) → ((𝑛 pCnt 𝑦) ≤ 1 ↔ (𝑛 pCnt 𝑦) < (1 + 1)))
4643, 44, 45sylancl 586 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛 pCnt 𝑦) ≤ 1 ↔ (𝑛 pCnt 𝑦) < (1 + 1)))
4742, 46mpbird 256 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ≤ 1)
48 nn0uz 12620 . . . . . . . . . . . . . 14 0 = (ℤ‘0)
4935, 48eleqtrdi 2849 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ (ℤ‘0))
50 elfz5 13248 . . . . . . . . . . . . 13 (((𝑛 pCnt 𝑦) ∈ (ℤ‘0) ∧ 1 ∈ ℤ) → ((𝑛 pCnt 𝑦) ∈ (0...1) ↔ (𝑛 pCnt 𝑦) ≤ 1))
5149, 44, 50sylancl 586 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → ((𝑛 pCnt 𝑦) ∈ (0...1) ↔ (𝑛 pCnt 𝑦) ≤ 1))
5247, 51mpbird 256 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ (0...1))
53 0z 12330 . . . . . . . . . . . . 13 0 ∈ ℤ
54 fzpr 13311 . . . . . . . . . . . . 13 (0 ∈ ℤ → (0...(0 + 1)) = {0, (0 + 1)})
5553, 54ax-mp 5 . . . . . . . . . . . 12 (0...(0 + 1)) = {0, (0 + 1)}
56 1e0p1 12479 . . . . . . . . . . . . 13 1 = (0 + 1)
5756oveq2i 7286 . . . . . . . . . . . 12 (0...1) = (0...(0 + 1))
5856preq2i 4673 . . . . . . . . . . . 12 {0, 1} = {0, (0 + 1)}
5955, 57, 583eqtr4i 2776 . . . . . . . . . . 11 (0...1) = {0, 1}
6052, 59eleqtrdi 2849 . . . . . . . . . 10 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑦) ∈ {0, 1})
61 c0ex 10969 . . . . . . . . . . . 12 0 ∈ V
6261prid1 4698 . . . . . . . . . . 11 0 ∈ {0, 1}
6362a1i 11 . . . . . . . . . 10 ((((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) ∧ ¬ 𝑛 ∈ ℙ) → 0 ∈ {0, 1})
6460, 63ifclda 4494 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) ∧ 𝑛 ∈ (1...𝐾)) → if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0) ∈ {0, 1})
6564fmpttd 6989 . . . . . . . 8 ((𝜑 ∧ (𝑦𝑀 ∧ (𝑄𝑦) = 1)) → (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)):(1...𝐾)⟶{0, 1})
66 prex 5355 . . . . . . . . 9 {0, 1} ∈ V
67 ovex 7308 . . . . . . . . 9 (1...𝐾) ∈ V
6866, 67elmap 8659 . . . . . . . 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 413 . . . . . 6 (𝜑 → ((𝑦𝑀 ∧ (𝑄𝑦) = 1) → (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) ∈ ({0, 1} ↑m (1...𝐾))))
713, 70syl5bi 241 . . . . 5 (𝜑 → (𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} → (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) ∈ ({0, 1} ↑m (1...𝐾))))
72 fveqeq2 6783 . . . . . . . 8 (𝑥 = 𝑧 → ((𝑄𝑥) = 1 ↔ (𝑄𝑧) = 1))
7372elrab 3624 . . . . . . 7 (𝑧 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ↔ (𝑧𝑀 ∧ (𝑄𝑧) = 1))
743, 73anbi12i 627 . . . . . 6 ((𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∧ 𝑧 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1}) ↔ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1)))
75 ovex 7308 . . . . . . . . . . . 12 (𝑛 pCnt 𝑦) ∈ V
7675, 61ifex 4509 . . . . . . . . . . 11 if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0) ∈ V
77 eqid 2738 . . . . . . . . . . 11 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))
7876, 77fnmpti 6576 . . . . . . . . . 10 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) Fn (1...𝐾)
79 ovex 7308 . . . . . . . . . . . 12 (𝑛 pCnt 𝑧) ∈ V
8079, 61ifex 4509 . . . . . . . . . . 11 if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0) ∈ V
81 eqid 2738 . . . . . . . . . . 11 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))
8280, 81fnmpti 6576 . . . . . . . . . 10 (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) Fn (1...𝐾)
83 eqfnfv 6909 . . . . . . . . . 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 689 . . . . . . . . 9 ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ ∀𝑝 ∈ (1...𝐾)((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))‘𝑝) = ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))‘𝑝))
85 eleq1w 2821 . . . . . . . . . . . . 13 (𝑛 = 𝑝 → (𝑛 ∈ ℙ ↔ 𝑝 ∈ ℙ))
86 oveq1 7282 . . . . . . . . . . . . 13 (𝑛 = 𝑝 → (𝑛 pCnt 𝑦) = (𝑝 pCnt 𝑦))
8785, 86ifbieq1d 4483 . . . . . . . . . . . 12 (𝑛 = 𝑝 → if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0))
88 ovex 7308 . . . . . . . . . . . . 13 (𝑝 pCnt 𝑦) ∈ V
8988, 61ifex 4509 . . . . . . . . . . . 12 if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) ∈ V
9087, 77, 89fvmpt 6875 . . . . . . . . . . 11 (𝑝 ∈ (1...𝐾) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0))‘𝑝) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0))
91 oveq1 7282 . . . . . . . . . . . . 13 (𝑛 = 𝑝 → (𝑛 pCnt 𝑧) = (𝑝 pCnt 𝑧))
9285, 91ifbieq1d 4483 . . . . . . . . . . . 12 (𝑛 = 𝑝 → if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
93 ovex 7308 . . . . . . . . . . . . 13 (𝑝 pCnt 𝑧) ∈ V
9493, 61ifex 4509 . . . . . . . . . . . 12 if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∈ V
9592, 81, 94fvmpt 6875 . . . . . . . . . . 11 (𝑝 ∈ (1...𝐾) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0))‘𝑝) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
9690, 95eqeq12d 2754 . . . . . . . . . 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 274 . . . . . . . 8 ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ ∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
99 simprll 776 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑦𝑀)
100 breq2 5078 . . . . . . . . . . . . . . . . 17 (𝑛 = 𝑦 → (𝑝𝑛𝑝𝑦))
101100notbid 318 . . . . . . . . . . . . . . . 16 (𝑛 = 𝑦 → (¬ 𝑝𝑛 ↔ ¬ 𝑝𝑦))
102101ralbidv 3112 . . . . . . . . . . . . . . 15 (𝑛 = 𝑦 → (∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛 ↔ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦))
103102, 4elrab2 3627 . . . . . . . . . . . . . 14 (𝑦𝑀 ↔ (𝑦 ∈ (1...𝑁) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦))
104103simprbi 497 . . . . . . . . . . . . 13 (𝑦𝑀 → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦)
10599, 104syl 17 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦)
106 simprrl 778 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑧𝑀)
107 breq2 5078 . . . . . . . . . . . . . . . . 17 (𝑛 = 𝑧 → (𝑝𝑛𝑝𝑧))
108107notbid 318 . . . . . . . . . . . . . . . 16 (𝑛 = 𝑧 → (¬ 𝑝𝑛 ↔ ¬ 𝑝𝑧))
109108ralbidv 3112 . . . . . . . . . . . . . . 15 (𝑛 = 𝑧 → (∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛 ↔ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧))
110109, 4elrab2 3627 . . . . . . . . . . . . . 14 (𝑧𝑀 ↔ (𝑧 ∈ (1...𝑁) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧))
111110simprbi 497 . . . . . . . . . . . . 13 (𝑧𝑀 → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧)
112106, 111syl 17 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧)
113 r19.26 3095 . . . . . . . . . . . . 13 (∀𝑝 ∈ (ℙ ∖ (1...𝐾))(¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧) ↔ (∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦 ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧))
114 eldifi 4061 . . . . . . . . . . . . . . . . 17 (𝑝 ∈ (ℙ ∖ (1...𝐾)) → 𝑝 ∈ ℙ)
115 fz1ssnn 13287 . . . . . . . . . . . . . . . . . . 19 (1...𝑁) ⊆ ℕ
1165, 115sstri 3930 . . . . . . . . . . . . . . . . . 18 𝑀 ⊆ ℕ
117116, 99sselid 3919 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑦 ∈ ℕ)
118 pceq0 16572 . . . . . . . . . . . . . . . . 17 ((𝑝 ∈ ℙ ∧ 𝑦 ∈ ℕ) → ((𝑝 pCnt 𝑦) = 0 ↔ ¬ 𝑝𝑦))
119114, 117, 118syl2anr 597 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → ((𝑝 pCnt 𝑦) = 0 ↔ ¬ 𝑝𝑦))
120116, 106sselid 3919 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑧 ∈ ℕ)
121 pceq0 16572 . . . . . . . . . . . . . . . . 17 ((𝑝 ∈ ℙ ∧ 𝑧 ∈ ℕ) → ((𝑝 pCnt 𝑧) = 0 ↔ ¬ 𝑝𝑧))
122114, 120, 121syl2anr 597 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → ((𝑝 pCnt 𝑧) = 0 ↔ ¬ 𝑝𝑧))
123119, 122anbi12d 631 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → (((𝑝 pCnt 𝑦) = 0 ∧ (𝑝 pCnt 𝑧) = 0) ↔ (¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧)))
124 eqtr3 2764 . . . . . . . . . . . . . . 15 (((𝑝 pCnt 𝑦) = 0 ∧ (𝑝 pCnt 𝑧) = 0) → (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
125123, 124syl6bir 253 . . . . . . . . . . . . . 14 (((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) ∧ 𝑝 ∈ (ℙ ∖ (1...𝐾))) → ((¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧) → (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
126125ralimdva 3108 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (∀𝑝 ∈ (ℙ ∖ (1...𝐾))(¬ 𝑝𝑦 ∧ ¬ 𝑝𝑧) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
127113, 126syl5bir 242 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ((∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑦 ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑧) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
128105, 112, 127mp2and 696 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
129128biantrud 532 . . . . . . . . . 10 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))))
130 incom 4135 . . . . . . . . . . . . . . 15 (ℙ ∩ (1...𝐾)) = ((1...𝐾) ∩ ℙ)
131130uneq1i 4093 . . . . . . . . . . . . . 14 ((ℙ ∩ (1...𝐾)) ∪ ((1...𝐾) ∖ ℙ)) = (((1...𝐾) ∩ ℙ) ∪ ((1...𝐾) ∖ ℙ))
132 inundif 4412 . . . . . . . . . . . . . 14 (((1...𝐾) ∩ ℙ) ∪ ((1...𝐾) ∖ ℙ)) = (1...𝐾)
133131, 132eqtri 2766 . . . . . . . . . . . . 13 ((ℙ ∩ (1...𝐾)) ∪ ((1...𝐾) ∖ ℙ)) = (1...𝐾)
134133raleqi 3346 . . . . . . . . . . . 12 (∀𝑝 ∈ ((ℙ ∩ (1...𝐾)) ∪ ((1...𝐾) ∖ ℙ))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ ∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
135 ralunb 4125 . . . . . . . . . . . 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 276 . . . . . . . . . . 11 (∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∧ ∀𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)))
137 eldifn 4062 . . . . . . . . . . . . . . 15 (𝑝 ∈ ((1...𝐾) ∖ ℙ) → ¬ 𝑝 ∈ ℙ)
138 iffalse 4468 . . . . . . . . . . . . . . . 16 𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = 0)
139 iffalse 4468 . . . . . . . . . . . . . . . 16 𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) = 0)
140138, 139eqtr4d 2781 . . . . . . . . . . . . . . 15 𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
141137, 140syl 17 . . . . . . . . . . . . . 14 (𝑝 ∈ ((1...𝐾) ∖ ℙ) → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0))
142141rgen 3074 . . . . . . . . . . . . 13 𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)
143142biantru 530 . . . . . . . . . . . 12 (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∧ ∀𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)))
144 elinel1 4129 . . . . . . . . . . . . . 14 (𝑝 ∈ (ℙ ∩ (1...𝐾)) → 𝑝 ∈ ℙ)
145 iftrue 4465 . . . . . . . . . . . . . . 15 (𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = (𝑝 pCnt 𝑦))
146 iftrue 4465 . . . . . . . . . . . . . . 15 (𝑝 ∈ ℙ → if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) = (𝑝 pCnt 𝑧))
147145, 146eqeq12d 2754 . . . . . . . . . . . . . 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 276 . . . . . . . . . . 11 ((∀𝑝 ∈ (ℙ ∩ (1...𝐾))if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ∧ ∀𝑝 ∈ ((1...𝐾) ∖ ℙ)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0)) ↔ ∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
151136, 150bitri 274 . . . . . . . . . 10 (∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ ∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
152 inundif 4412 . . . . . . . . . . . 12 ((ℙ ∩ (1...𝐾)) ∪ (ℙ ∖ (1...𝐾))) = ℙ
153152raleqi 3346 . . . . . . . . . . 11 (∀𝑝 ∈ ((ℙ ∩ (1...𝐾)) ∪ (ℙ ∖ (1...𝐾)))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧))
154 ralunb 4125 . . . . . . . . . . 11 (∀𝑝 ∈ ((ℙ ∩ (1...𝐾)) ∪ (ℙ ∖ (1...𝐾)))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ↔ (∀𝑝 ∈ (ℙ ∩ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧) ∧ ∀𝑝 ∈ (ℙ ∖ (1...𝐾))(𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
155153, 154bitr3i 276 . . . . . . . . . 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 12293 . . . . . . . . . 10 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑦 ∈ ℕ0)
158120nnnn0d 12293 . . . . . . . . . 10 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → 𝑧 ∈ ℕ0)
159 pc11 16581 . . . . . . . . . 10 ((𝑦 ∈ ℕ0𝑧 ∈ ℕ0) → (𝑦 = 𝑧 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
160157, 158, 159syl2anc 584 . . . . . . . . 9 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (𝑦 = 𝑧 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) = (𝑝 pCnt 𝑧)))
161156, 160bitr4d 281 . . . . . . . 8 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → (∀𝑝 ∈ (1...𝐾)if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑦), 0) = if(𝑝 ∈ ℙ, (𝑝 pCnt 𝑧), 0) ↔ 𝑦 = 𝑧))
16298, 161bitrid 282 . . . . . . 7 ((𝜑 ∧ ((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1))) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ 𝑦 = 𝑧))
163162ex 413 . . . . . 6 (𝜑 → (((𝑦𝑀 ∧ (𝑄𝑦) = 1) ∧ (𝑧𝑀 ∧ (𝑄𝑧) = 1)) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ 𝑦 = 𝑧)))
16474, 163syl5bi 241 . . . . 5 (𝜑 → ((𝑦 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∧ 𝑧 ∈ {𝑥𝑀 ∣ (𝑄𝑥) = 1}) → ((𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑦), 0)) = (𝑛 ∈ (1...𝐾) ↦ if(𝑛 ∈ ℙ, (𝑛 pCnt 𝑧), 0)) ↔ 𝑦 = 𝑧)))
16571, 164dom2d 8781 . . . 4 (𝜑 → (({0, 1} ↑m (1...𝐾)) ∈ V → {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾))))
1661, 165mpi 20 . . 3 (𝜑 → {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾)))
167 fzfi 13692 . . . . . . 7 (1...𝑁) ∈ Fin
168 ssrab2 4013 . . . . . . 7 {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ⊆ (1...𝑁)
169 ssfi 8956 . . . . . . 7 (((1...𝑁) ∈ Fin ∧ {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ⊆ (1...𝑁)) → {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ∈ Fin)
170167, 168, 169mp2an 689 . . . . . 6 {𝑛 ∈ (1...𝑁) ∣ ∀𝑝 ∈ (ℙ ∖ (1...𝐾)) ¬ 𝑝𝑛} ∈ Fin
1714, 170eqeltri 2835 . . . . 5 𝑀 ∈ Fin
172 ssrab2 4013 . . . . 5 {𝑥𝑀 ∣ (𝑄𝑥) = 1} ⊆ 𝑀
173 ssfi 8956 . . . . 5 ((𝑀 ∈ Fin ∧ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ⊆ 𝑀) → {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∈ Fin)
174171, 172, 173mp2an 689 . . . 4 {𝑥𝑀 ∣ (𝑄𝑥) = 1} ∈ Fin
175 prfi 9089 . . . . 5 {0, 1} ∈ Fin
176 fzfid 13693 . . . . 5 (𝜑 → (1...𝐾) ∈ Fin)
177 mapfi 9115 . . . . 5 (({0, 1} ∈ Fin ∧ (1...𝐾) ∈ Fin) → ({0, 1} ↑m (1...𝐾)) ∈ Fin)
178175, 176, 177sylancr 587 . . . 4 (𝜑 → ({0, 1} ↑m (1...𝐾)) ∈ Fin)
179 hashdom 14094 . . . 4 (({𝑥𝑀 ∣ (𝑄𝑥) = 1} ∈ Fin ∧ ({0, 1} ↑m (1...𝐾)) ∈ Fin) → ((♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (♯‘({0, 1} ↑m (1...𝐾))) ↔ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾))))
180174, 178, 179sylancr 587 . . 3 (𝜑 → ((♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (♯‘({0, 1} ↑m (1...𝐾))) ↔ {𝑥𝑀 ∣ (𝑄𝑥) = 1} ≼ ({0, 1} ↑m (1...𝐾))))
181166, 180mpbird 256 . 2 (𝜑 → (♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (♯‘({0, 1} ↑m (1...𝐾))))
182 hashmap 14150 . . . 4 (({0, 1} ∈ Fin ∧ (1...𝐾) ∈ Fin) → (♯‘({0, 1} ↑m (1...𝐾))) = ((♯‘{0, 1})↑(♯‘(1...𝐾))))
183175, 176, 182sylancr 587 . . 3 (𝜑 → (♯‘({0, 1} ↑m (1...𝐾))) = ((♯‘{0, 1})↑(♯‘(1...𝐾))))
184 prhash2ex 14114 . . . . 5 (♯‘{0, 1}) = 2
185184a1i 11 . . . 4 (𝜑 → (♯‘{0, 1}) = 2)
186 prmrec.2 . . . . . 6 (𝜑𝐾 ∈ ℕ)
187186nnnn0d 12293 . . . . 5 (𝜑𝐾 ∈ ℕ0)
188 hashfz1 14060 . . . . 5 (𝐾 ∈ ℕ0 → (♯‘(1...𝐾)) = 𝐾)
189187, 188syl 17 . . . 4 (𝜑 → (♯‘(1...𝐾)) = 𝐾)
190185, 189oveq12d 7293 . . 3 (𝜑 → ((♯‘{0, 1})↑(♯‘(1...𝐾))) = (2↑𝐾))
191183, 190eqtrd 2778 . 2 (𝜑 → (♯‘({0, 1} ↑m (1...𝐾))) = (2↑𝐾))
192181, 191breqtrd 5100 1 (𝜑 → (♯‘{𝑥𝑀 ∣ (𝑄𝑥) = 1}) ≤ (2↑𝐾))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wral 3064  {crab 3068  Vcvv 3432  cdif 3884  cun 3885  cin 3886  wss 3887  ifcif 4459  {cpr 4563   class class class wbr 5074  cmpt 5157   Fn wfn 6428  wf 6429  cfv 6433  (class class class)co 7275  m cmap 8615  cdom 8731  Fincfn 8733  supcsup 9199  cr 10870  0cc0 10871  1c1 10872   + caddc 10874   < clt 11009  cle 11010   / cdiv 11632  cn 11973  2c2 12028  0cn0 12233  cz 12319  cuz 12582  ...cfz 13239  cexp 13782  chash 14044  cdvds 15963  cprime 16376   pCnt cpc 16537
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948  ax-pre-sup 10949
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-2o 8298  df-oadd 8301  df-er 8498  df-map 8617  df-pm 8618  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-sup 9201  df-inf 9202  df-dju 9659  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-3 12037  df-n0 12234  df-xnn0 12306  df-z 12320  df-uz 12583  df-q 12689  df-rp 12731  df-fz 13240  df-fl 13512  df-mod 13590  df-seq 13722  df-exp 13783  df-hash 14045  df-cj 14810  df-re 14811  df-im 14812  df-sqrt 14946  df-abs 14947  df-dvds 15964  df-gcd 16202  df-prm 16377  df-pc 16538
This theorem is referenced by:  prmreclem3  16619
  Copyright terms: Public domain W3C validator