Users' Mathboxes Mathbox for Brendan Leahy < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  poimirlem27 Structured version   Visualization version   GIF version

Theorem poimirlem27 35804
Description: Lemma for poimir 35810 showing that the difference between admissible faces in the whole cube and admissible faces on the back face is even. Equation (7) of [Kulpa] p. 548. (Contributed by Brendan Leahy, 21-Aug-2020.)
Hypotheses
Ref Expression
poimir.0 (𝜑𝑁 ∈ ℕ)
poimirlem28.1 (𝑝 = ((1st𝑠) ∘f + ((((2nd𝑠) “ (1...𝑗)) × {1}) ∪ (((2nd𝑠) “ ((𝑗 + 1)...𝑁)) × {0}))) → 𝐵 = 𝐶)
poimirlem28.2 ((𝜑𝑝:(1...𝑁)⟶(0...𝐾)) → 𝐵 ∈ (0...𝑁))
poimirlem28.3 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 0)) → 𝐵 < 𝑛)
poimirlem28.4 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 𝐾)) → 𝐵 ≠ (𝑛 − 1))
Assertion
Ref Expression
poimirlem27 (𝜑 → 2 ∥ ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) − (♯‘{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})))
Distinct variable groups:   𝑓,𝑖,𝑗,𝑛,𝑝,𝑠,𝑡   𝜑,𝑗,𝑛   𝑗,𝑁,𝑛   𝜑,𝑖,𝑝,𝑠,𝑡   𝐵,𝑓,𝑖,𝑗,𝑛,𝑠,𝑡   𝑓,𝐾,𝑖,𝑗,𝑛,𝑝,𝑠,𝑡   𝑓,𝑁,𝑖,𝑝,𝑠,𝑡   𝐶,𝑖,𝑛,𝑝,𝑡
Allowed substitution hints:   𝜑(𝑓)   𝐵(𝑝)   𝐶(𝑓,𝑗,𝑠)

Proof of Theorem poimirlem27
Dummy variables 𝑚 𝑞 𝑢 𝑤 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fzfi 13692 . . . . . 6 (0...𝐾) ∈ Fin
2 fzfi 13692 . . . . . 6 (1...𝑁) ∈ Fin
3 mapfi 9115 . . . . . 6 (((0...𝐾) ∈ Fin ∧ (1...𝑁) ∈ Fin) → ((0...𝐾) ↑m (1...𝑁)) ∈ Fin)
41, 2, 3mp2an 689 . . . . 5 ((0...𝐾) ↑m (1...𝑁)) ∈ Fin
5 fzfi 13692 . . . . 5 (0...(𝑁 − 1)) ∈ Fin
6 mapfi 9115 . . . . 5 ((((0...𝐾) ↑m (1...𝑁)) ∈ Fin ∧ (0...(𝑁 − 1)) ∈ Fin) → (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))) ∈ Fin)
74, 5, 6mp2an 689 . . . 4 (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))) ∈ Fin
87a1i 11 . . 3 (𝜑 → (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))) ∈ Fin)
9 2z 12352 . . . 4 2 ∈ ℤ
109a1i 11 . . 3 (𝜑 → 2 ∈ ℤ)
11 fzofi 13694 . . . . . . . 8 (0..^𝐾) ∈ Fin
12 mapfi 9115 . . . . . . . 8 (((0..^𝐾) ∈ Fin ∧ (1...𝑁) ∈ Fin) → ((0..^𝐾) ↑m (1...𝑁)) ∈ Fin)
1311, 2, 12mp2an 689 . . . . . . 7 ((0..^𝐾) ↑m (1...𝑁)) ∈ Fin
14 mapfi 9115 . . . . . . . . 9 (((1...𝑁) ∈ Fin ∧ (1...𝑁) ∈ Fin) → ((1...𝑁) ↑m (1...𝑁)) ∈ Fin)
152, 2, 14mp2an 689 . . . . . . . 8 ((1...𝑁) ↑m (1...𝑁)) ∈ Fin
16 f1of 6716 . . . . . . . . . 10 (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) → 𝑓:(1...𝑁)⟶(1...𝑁))
1716ss2abi 4000 . . . . . . . . 9 {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ⊆ {𝑓𝑓:(1...𝑁)⟶(1...𝑁)}
18 ovex 7308 . . . . . . . . . 10 (1...𝑁) ∈ V
1918, 18mapval 8627 . . . . . . . . 9 ((1...𝑁) ↑m (1...𝑁)) = {𝑓𝑓:(1...𝑁)⟶(1...𝑁)}
2017, 19sseqtrri 3958 . . . . . . . 8 {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ⊆ ((1...𝑁) ↑m (1...𝑁))
21 ssfi 8956 . . . . . . . 8 ((((1...𝑁) ↑m (1...𝑁)) ∈ Fin ∧ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ⊆ ((1...𝑁) ↑m (1...𝑁))) → {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ∈ Fin)
2215, 20, 21mp2an 689 . . . . . . 7 {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ∈ Fin
23 xpfi 9085 . . . . . . 7 ((((0..^𝐾) ↑m (1...𝑁)) ∈ Fin ∧ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ∈ Fin) → (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∈ Fin)
2413, 22, 23mp2an 689 . . . . . 6 (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∈ Fin
25 fzfi 13692 . . . . . 6 (0...𝑁) ∈ Fin
26 xpfi 9085 . . . . . 6 (((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∈ Fin ∧ (0...𝑁) ∈ Fin) → ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∈ Fin)
2724, 25, 26mp2an 689 . . . . 5 ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∈ Fin
28 rabfi 9044 . . . . 5 (((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∈ Fin → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} ∈ Fin)
2927, 28ax-mp 5 . . . 4 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} ∈ Fin
30 hashcl 14071 . . . . 5 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} ∈ Fin → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}) ∈ ℕ0)
3130nn0zd 12424 . . . 4 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} ∈ Fin → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}) ∈ ℤ)
3229, 31mp1i 13 . . 3 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}) ∈ ℤ)
33 dfrex2 3170 . . . . 5 (∃𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ↔ ¬ ∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))
34 nfv 1917 . . . . . 6 𝑡(𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))))
35 nfcv 2907 . . . . . . 7 𝑡2
36 nfcv 2907 . . . . . . 7 𝑡
37 nfcv 2907 . . . . . . . 8 𝑡
38 nfrab1 3317 . . . . . . . 8 𝑡{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}
3937, 38nffv 6784 . . . . . . 7 𝑡(♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})
4035, 36, 39nfbr 5121 . . . . . 6 𝑡2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})
41 neq0 4279 . . . . . . . . . . . 12 (¬ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} = ∅ ↔ ∃𝑠 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})
42 iddvds 15979 . . . . . . . . . . . . . . . . 17 (2 ∈ ℤ → 2 ∥ 2)
439, 42ax-mp 5 . . . . . . . . . . . . . . . 16 2 ∥ 2
44 vex 3436 . . . . . . . . . . . . . . . . . . 19 𝑠 ∈ V
45 hashsng 14084 . . . . . . . . . . . . . . . . . . 19 (𝑠 ∈ V → (♯‘{𝑠}) = 1)
4644, 45ax-mp 5 . . . . . . . . . . . . . . . . . 18 (♯‘{𝑠}) = 1
4746oveq2i 7286 . . . . . . . . . . . . . . . . 17 (1 + (♯‘{𝑠})) = (1 + 1)
48 df-2 12036 . . . . . . . . . . . . . . . . 17 2 = (1 + 1)
4947, 48eqtr4i 2769 . . . . . . . . . . . . . . . 16 (1 + (♯‘{𝑠})) = 2
5043, 49breqtrri 5101 . . . . . . . . . . . . . . 15 2 ∥ (1 + (♯‘{𝑠}))
51 rabfi 9044 . . . . . . . . . . . . . . . . . . . 20 (((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∈ Fin → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∈ Fin)
52 diffi 8962 . . . . . . . . . . . . . . . . . . . 20 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∈ Fin → ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∈ Fin)
5327, 51, 52mp2b 10 . . . . . . . . . . . . . . . . . . 19 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∈ Fin
54 snfi 8834 . . . . . . . . . . . . . . . . . . 19 {𝑠} ∈ Fin
55 disjdifr 4406 . . . . . . . . . . . . . . . . . . 19 (({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∩ {𝑠}) = ∅
56 hashun 14097 . . . . . . . . . . . . . . . . . . 19 ((({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∈ Fin ∧ {𝑠} ∈ Fin ∧ (({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∩ {𝑠}) = ∅) → (♯‘(({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∪ {𝑠})) = ((♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) + (♯‘{𝑠})))
5753, 54, 55, 56mp3an 1460 . . . . . . . . . . . . . . . . . 18 (♯‘(({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∪ {𝑠})) = ((♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) + (♯‘{𝑠}))
58 difsnid 4743 . . . . . . . . . . . . . . . . . . 19 (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → (({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∪ {𝑠}) = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})
5958fveq2d 6778 . . . . . . . . . . . . . . . . . 18 (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → (♯‘(({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∪ {𝑠})) = (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}))
6057, 59eqtr3id 2792 . . . . . . . . . . . . . . . . 17 (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → ((♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) + (♯‘{𝑠})) = (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}))
6160adantl 482 . . . . . . . . . . . . . . . 16 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → ((♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) + (♯‘{𝑠})) = (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}))
62 poimir.0 . . . . . . . . . . . . . . . . . . . 20 (𝜑𝑁 ∈ ℕ)
6362ad3antrrr 727 . . . . . . . . . . . . . . . . . . 19 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → 𝑁 ∈ ℕ)
64 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑡 = 𝑢 → (2nd𝑡) = (2nd𝑢))
6564breq2d 5086 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑢 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑢)))
6665ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑢 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)))
6766csbeq1d 3836 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑢if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))
68 2fveq3 6779 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑢 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑢)))
69 2fveq3 6779 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑡 = 𝑢 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑢)))
7069imaeq1d 5968 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑡 = 𝑢 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑢)) “ (1...𝑗)))
7170xpeq1d 5618 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑡 = 𝑢 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}))
7269imaeq1d 5968 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑡 = 𝑢 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)))
7372xpeq1d 5618 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑡 = 𝑢 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))
7471, 73uneq12d 4098 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑢 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0})))
7568, 74oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑢 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))))
7675csbeq2dv 3839 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑢if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))))
7767, 76eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑢if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))))
7877mpteq2dv 5176 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑢 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0})))))
79 breq1 5077 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑦 = 𝑤 → (𝑦 < (2nd𝑢) ↔ 𝑤 < (2nd𝑢)))
80 id 22 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑦 = 𝑤𝑦 = 𝑤)
81 oveq1 7282 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑦 = 𝑤 → (𝑦 + 1) = (𝑤 + 1))
8279, 80, 81ifbieq12d 4487 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = 𝑤 → if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) = if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)))
8382csbeq1d 3836 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = 𝑤if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))))
84 oveq2 7283 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑗 = 𝑖 → (1...𝑗) = (1...𝑖))
8584imaeq2d 5969 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑗 = 𝑖 → ((2nd ‘(1st𝑢)) “ (1...𝑗)) = ((2nd ‘(1st𝑢)) “ (1...𝑖)))
8685xpeq1d 5618 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑗 = 𝑖 → (((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}))
87 oveq1 7282 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑗 = 𝑖 → (𝑗 + 1) = (𝑖 + 1))
8887oveq1d 7290 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑗 = 𝑖 → ((𝑗 + 1)...𝑁) = ((𝑖 + 1)...𝑁))
8988imaeq2d 5969 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑗 = 𝑖 → ((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)))
9089xpeq1d 5618 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑗 = 𝑖 → (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0}))
9186, 90uneq12d 4098 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑗 = 𝑖 → ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0})))
9291oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑗 = 𝑖 → ((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0}))))
9392cbvcsbv 3844 . . . . . . . . . . . . . . . . . . . . . . . 24 if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑖((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0})))
9483, 93eqtrdi 2794 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = 𝑤if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑖((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0}))))
9594cbvmptv 5187 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑢), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑤 ∈ (0...(𝑁 − 1)) ↦ if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑖((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0}))))
9678, 95eqtrdi 2794 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑢 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑤 ∈ (0...(𝑁 − 1)) ↦ if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑖((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0})))))
9796eqeq2d 2749 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑢 → (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ 𝑥 = (𝑤 ∈ (0...(𝑁 − 1)) ↦ if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑖((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0}))))))
9897cbvrabv 3426 . . . . . . . . . . . . . . . . . . 19 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} = {𝑢 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑤 ∈ (0...(𝑁 − 1)) ↦ if(𝑤 < (2nd𝑢), 𝑤, (𝑤 + 1)) / 𝑖((1st ‘(1st𝑢)) ∘f + ((((2nd ‘(1st𝑢)) “ (1...𝑖)) × {1}) ∪ (((2nd ‘(1st𝑢)) “ ((𝑖 + 1)...𝑁)) × {0}))))}
99 elmapi 8637 . . . . . . . . . . . . . . . . . . . 20 (𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))) → 𝑥:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
10099ad3antlr 728 . . . . . . . . . . . . . . . . . . 19 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → 𝑥:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
101 simpr 485 . . . . . . . . . . . . . . . . . . 19 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})
102 simpl 483 . . . . . . . . . . . . . . . . . . . . . 22 ((∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾) → ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0)
103102ralimi 3087 . . . . . . . . . . . . . . . . . . . . 21 (∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0)
104103ad2antlr 724 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0)
105 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑛 = 𝑚 → (𝑝𝑛) = (𝑝𝑚))
106105neeq1d 3003 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑛 = 𝑚 → ((𝑝𝑛) ≠ 0 ↔ (𝑝𝑚) ≠ 0))
107106rexbidv 3226 . . . . . . . . . . . . . . . . . . . . . 22 (𝑛 = 𝑚 → (∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ ∃𝑝 ∈ ran 𝑥(𝑝𝑚) ≠ 0))
108 fveq1 6773 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑝 = 𝑞 → (𝑝𝑚) = (𝑞𝑚))
109108neeq1d 3003 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑝 = 𝑞 → ((𝑝𝑚) ≠ 0 ↔ (𝑞𝑚) ≠ 0))
110109cbvrexvw 3384 . . . . . . . . . . . . . . . . . . . . . 22 (∃𝑝 ∈ ran 𝑥(𝑝𝑚) ≠ 0 ↔ ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 0)
111107, 110bitrdi 287 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 = 𝑚 → (∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 0))
112111rspccva 3560 . . . . . . . . . . . . . . . . . . . 20 ((∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ 𝑚 ∈ (1...𝑁)) → ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 0)
113104, 112sylan 580 . . . . . . . . . . . . . . . . . . 19 (((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) ∧ 𝑚 ∈ (1...𝑁)) → ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 0)
114 simpr 485 . . . . . . . . . . . . . . . . . . . . . 22 ((∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾) → ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)
115114ralimi 3087 . . . . . . . . . . . . . . . . . . . . 21 (∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)
116115ad2antlr 724 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)
117105neeq1d 3003 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑛 = 𝑚 → ((𝑝𝑛) ≠ 𝐾 ↔ (𝑝𝑚) ≠ 𝐾))
118117rexbidv 3226 . . . . . . . . . . . . . . . . . . . . . 22 (𝑛 = 𝑚 → (∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾 ↔ ∃𝑝 ∈ ran 𝑥(𝑝𝑚) ≠ 𝐾))
119108neeq1d 3003 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑝 = 𝑞 → ((𝑝𝑚) ≠ 𝐾 ↔ (𝑞𝑚) ≠ 𝐾))
120119cbvrexvw 3384 . . . . . . . . . . . . . . . . . . . . . 22 (∃𝑝 ∈ ran 𝑥(𝑝𝑚) ≠ 𝐾 ↔ ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 𝐾)
121118, 120bitrdi 287 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 = 𝑚 → (∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾 ↔ ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 𝐾))
122121rspccva 3560 . . . . . . . . . . . . . . . . . . . 20 ((∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾𝑚 ∈ (1...𝑁)) → ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 𝐾)
123116, 122sylan 580 . . . . . . . . . . . . . . . . . . 19 (((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) ∧ 𝑚 ∈ (1...𝑁)) → ∃𝑞 ∈ ran 𝑥(𝑞𝑚) ≠ 𝐾)
12463, 98, 100, 101, 113, 123poimirlem22 35799 . . . . . . . . . . . . . . . . . 18 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → ∃!𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}𝑧𝑠)
125 eldifsn 4720 . . . . . . . . . . . . . . . . . . . 20 (𝑧 ∈ ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ↔ (𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∧ 𝑧𝑠))
126125eubii 2585 . . . . . . . . . . . . . . . . . . 19 (∃!𝑧 𝑧 ∈ ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ↔ ∃!𝑧(𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∧ 𝑧𝑠))
12753elexi 3451 . . . . . . . . . . . . . . . . . . . 20 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∈ V
128 euhash1 14135 . . . . . . . . . . . . . . . . . . . 20 (({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}) ∈ V → ((♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) = 1 ↔ ∃!𝑧 𝑧 ∈ ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})))
129127, 128ax-mp 5 . . . . . . . . . . . . . . . . . . 19 ((♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) = 1 ↔ ∃!𝑧 𝑧 ∈ ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠}))
130 df-reu 3072 . . . . . . . . . . . . . . . . . . 19 (∃!𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}𝑧𝑠 ↔ ∃!𝑧(𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∧ 𝑧𝑠))
131126, 129, 1303bitr4ri 304 . . . . . . . . . . . . . . . . . 18 (∃!𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}𝑧𝑠 ↔ (♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) = 1)
132124, 131sylib 217 . . . . . . . . . . . . . . . . 17 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → (♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) = 1)
133132oveq1d 7290 . . . . . . . . . . . . . . . 16 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → ((♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ∖ {𝑠})) + (♯‘{𝑠})) = (1 + (♯‘{𝑠})))
13461, 133eqtr3d 2780 . . . . . . . . . . . . . . 15 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) = (1 + (♯‘{𝑠})))
13550, 134breqtrrid 5112 . . . . . . . . . . . . . 14 ((((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) ∧ 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}))
136135ex 413 . . . . . . . . . . . . 13 (((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})))
137136exlimdv 1936 . . . . . . . . . . . 12 (((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → (∃𝑠 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})))
13841, 137syl5bi 241 . . . . . . . . . . 11 (((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → (¬ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} = ∅ → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})))
139 dvds0 15981 . . . . . . . . . . . . . 14 (2 ∈ ℤ → 2 ∥ 0)
1409, 139ax-mp 5 . . . . . . . . . . . . 13 2 ∥ 0
141 hash0 14082 . . . . . . . . . . . . 13 (♯‘∅) = 0
142140, 141breqtrri 5101 . . . . . . . . . . . 12 2 ∥ (♯‘∅)
143 fveq2 6774 . . . . . . . . . . . 12 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} = ∅ → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) = (♯‘∅))
144142, 143breqtrrid 5112 . . . . . . . . . . 11 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} = ∅ → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}))
145138, 144pm2.61d2 181 . . . . . . . . . 10 (((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}))
146145ex 413 . . . . . . . . 9 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})))
147146adantld 491 . . . . . . . 8 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})))
148 iba 528 . . . . . . . . . . 11 (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))))
149148rabbidv 3414 . . . . . . . . . 10 (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})
150149fveq2d 6778 . . . . . . . . 9 (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) = (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}))
151150breq2d 5086 . . . . . . . 8 (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → (2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}) ↔ 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})))
152147, 151mpbidi 240 . . . . . . 7 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})))
153152a1d 25 . . . . . 6 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}))))
15434, 40, 153rexlimd 3250 . . . . 5 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (∃𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})))
15533, 154syl5bir 242 . . . 4 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (¬ ∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})))
156 simpr 485 . . . . . . . . 9 ((𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))) → ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))
157156con3i 154 . . . . . . . 8 (¬ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → ¬ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))))
158157ralimi 3087 . . . . . . 7 (∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → ∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))))
159 rabeq0 4318 . . . . . . 7 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} = ∅ ↔ ∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))))
160158, 159sylibr 233 . . . . . 6 (∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} = ∅)
161160fveq2d 6778 . . . . 5 (∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}) = (♯‘∅))
162142, 161breqtrrid 5112 . . . 4 (∀𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ¬ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}))
163155, 162pm2.61d2 181 . . 3 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → 2 ∥ (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}))
1648, 10, 32, 163fsumdvds 16017 . 2 (𝜑 → 2 ∥ Σ𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}))
165 rabfi 9044 . . . . 5 (((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∈ Fin → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∈ Fin)
16627, 165ax-mp 5 . . . 4 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∈ Fin
167 simp1 1135 . . . . . . 7 ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁) → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶)
168 sneq 4571 . . . . . . . . . . . . 13 ((2nd𝑡) = 𝑁 → {(2nd𝑡)} = {𝑁})
169168difeq2d 4057 . . . . . . . . . . . 12 ((2nd𝑡) = 𝑁 → ((0...𝑁) ∖ {(2nd𝑡)}) = ((0...𝑁) ∖ {𝑁}))
170 difun2 4414 . . . . . . . . . . . . 13 (((0...(𝑁 − 1)) ∪ {𝑁}) ∖ {𝑁}) = ((0...(𝑁 − 1)) ∖ {𝑁})
17162nnnn0d 12293 . . . . . . . . . . . . . . . . . 18 (𝜑𝑁 ∈ ℕ0)
172 nn0uz 12620 . . . . . . . . . . . . . . . . . 18 0 = (ℤ‘0)
173171, 172eleqtrdi 2849 . . . . . . . . . . . . . . . . 17 (𝜑𝑁 ∈ (ℤ‘0))
174 fzm1 13336 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ (ℤ‘0) → (𝑛 ∈ (0...𝑁) ↔ (𝑛 ∈ (0...(𝑁 − 1)) ∨ 𝑛 = 𝑁)))
175173, 174syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (𝑛 ∈ (0...𝑁) ↔ (𝑛 ∈ (0...(𝑁 − 1)) ∨ 𝑛 = 𝑁)))
176 elun 4083 . . . . . . . . . . . . . . . . 17 (𝑛 ∈ ((0...(𝑁 − 1)) ∪ {𝑁}) ↔ (𝑛 ∈ (0...(𝑁 − 1)) ∨ 𝑛 ∈ {𝑁}))
177 velsn 4577 . . . . . . . . . . . . . . . . . 18 (𝑛 ∈ {𝑁} ↔ 𝑛 = 𝑁)
178177orbi2i 910 . . . . . . . . . . . . . . . . 17 ((𝑛 ∈ (0...(𝑁 − 1)) ∨ 𝑛 ∈ {𝑁}) ↔ (𝑛 ∈ (0...(𝑁 − 1)) ∨ 𝑛 = 𝑁))
179176, 178bitri 274 . . . . . . . . . . . . . . . 16 (𝑛 ∈ ((0...(𝑁 − 1)) ∪ {𝑁}) ↔ (𝑛 ∈ (0...(𝑁 − 1)) ∨ 𝑛 = 𝑁))
180175, 179bitr4di 289 . . . . . . . . . . . . . . 15 (𝜑 → (𝑛 ∈ (0...𝑁) ↔ 𝑛 ∈ ((0...(𝑁 − 1)) ∪ {𝑁})))
181180eqrdv 2736 . . . . . . . . . . . . . 14 (𝜑 → (0...𝑁) = ((0...(𝑁 − 1)) ∪ {𝑁}))
182181difeq1d 4056 . . . . . . . . . . . . 13 (𝜑 → ((0...𝑁) ∖ {𝑁}) = (((0...(𝑁 − 1)) ∪ {𝑁}) ∖ {𝑁}))
18362nnzd 12425 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℤ)
184 uzid 12597 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℤ → 𝑁 ∈ (ℤ𝑁))
185 uznfz 13339 . . . . . . . . . . . . . . 15 (𝑁 ∈ (ℤ𝑁) → ¬ 𝑁 ∈ (0...(𝑁 − 1)))
186183, 184, 1853syl 18 . . . . . . . . . . . . . 14 (𝜑 → ¬ 𝑁 ∈ (0...(𝑁 − 1)))
187 disjsn 4647 . . . . . . . . . . . . . . 15 (((0...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ¬ 𝑁 ∈ (0...(𝑁 − 1)))
188 disj3 4387 . . . . . . . . . . . . . . 15 (((0...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ (0...(𝑁 − 1)) = ((0...(𝑁 − 1)) ∖ {𝑁}))
189187, 188bitr3i 276 . . . . . . . . . . . . . 14 𝑁 ∈ (0...(𝑁 − 1)) ↔ (0...(𝑁 − 1)) = ((0...(𝑁 − 1)) ∖ {𝑁}))
190186, 189sylib 217 . . . . . . . . . . . . 13 (𝜑 → (0...(𝑁 − 1)) = ((0...(𝑁 − 1)) ∖ {𝑁}))
191170, 182, 1903eqtr4a 2804 . . . . . . . . . . . 12 (𝜑 → ((0...𝑁) ∖ {𝑁}) = (0...(𝑁 − 1)))
192169, 191sylan9eqr 2800 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑡) = 𝑁) → ((0...𝑁) ∖ {(2nd𝑡)}) = (0...(𝑁 − 1)))
193192rexeqdv 3349 . . . . . . . . . 10 ((𝜑 ∧ (2nd𝑡) = 𝑁) → (∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶))
194193biimprd 247 . . . . . . . . 9 ((𝜑 ∧ (2nd𝑡) = 𝑁) → (∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 → ∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶))
195194ralimdv 3109 . . . . . . . 8 ((𝜑 ∧ (2nd𝑡) = 𝑁) → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶))
196195expimpd 454 . . . . . . 7 (𝜑 → (((2nd𝑡) = 𝑁 ∧ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶) → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶))
197167, 196sylan2i 606 . . . . . 6 (𝜑 → (((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶))
198197adantr 481 . . . . 5 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶))
199198ss2rabdv 4009 . . . 4 (𝜑 → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ⊆ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶})
200 hashssdif 14127 . . . 4 (({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∈ Fin ∧ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ⊆ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) → (♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∖ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})) = ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) − (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})))
201166, 199, 200sylancr 587 . . 3 (𝜑 → (♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∖ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})) = ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) − (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})))
20262adantr 481 . . . . . . . . . 10 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → 𝑁 ∈ ℕ)
203 poimirlem28.1 . . . . . . . . . 10 (𝑝 = ((1st𝑠) ∘f + ((((2nd𝑠) “ (1...𝑗)) × {1}) ∪ (((2nd𝑠) “ ((𝑗 + 1)...𝑁)) × {0}))) → 𝐵 = 𝐶)
204 poimirlem28.2 . . . . . . . . . . 11 ((𝜑𝑝:(1...𝑁)⟶(0...𝐾)) → 𝐵 ∈ (0...𝑁))
205204adantlr 712 . . . . . . . . . 10 (((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) ∧ 𝑝:(1...𝑁)⟶(0...𝐾)) → 𝐵 ∈ (0...𝑁))
206 xp1st 7863 . . . . . . . . . . . 12 (𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
207 xp1st 7863 . . . . . . . . . . . 12 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑡)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
208 elmapi 8637 . . . . . . . . . . . 12 ((1st ‘(1st𝑡)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st𝑡)):(1...𝑁)⟶(0..^𝐾))
209206, 207, 2083syl 18 . . . . . . . . . . 11 (𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st ‘(1st𝑡)):(1...𝑁)⟶(0..^𝐾))
210209adantl 482 . . . . . . . . . 10 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (1st ‘(1st𝑡)):(1...𝑁)⟶(0..^𝐾))
211 xp2nd 7864 . . . . . . . . . . . . 13 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st𝑡)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
212 fvex 6787 . . . . . . . . . . . . . 14 (2nd ‘(1st𝑡)) ∈ V
213 f1oeq1 6704 . . . . . . . . . . . . . 14 (𝑓 = (2nd ‘(1st𝑡)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑡)):(1...𝑁)–1-1-onto→(1...𝑁)))
214212, 213elab 3609 . . . . . . . . . . . . 13 ((2nd ‘(1st𝑡)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑡)):(1...𝑁)–1-1-onto→(1...𝑁))
215211, 214sylib 217 . . . . . . . . . . . 12 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st𝑡)):(1...𝑁)–1-1-onto→(1...𝑁))
216206, 215syl 17 . . . . . . . . . . 11 (𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd ‘(1st𝑡)):(1...𝑁)–1-1-onto→(1...𝑁))
217216adantl 482 . . . . . . . . . 10 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (2nd ‘(1st𝑡)):(1...𝑁)–1-1-onto→(1...𝑁))
218 xp2nd 7864 . . . . . . . . . . 11 (𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑡) ∈ (0...𝑁))
219218adantl 482 . . . . . . . . . 10 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (2nd𝑡) ∈ (0...𝑁))
220202, 203, 205, 210, 217, 219poimirlem24 35801 . . . . . . . . 9 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩ / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
221206adantl 482 . . . . . . . . . 10 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
222 1st2nd2 7870 . . . . . . . . . . . . . . 15 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st𝑡) = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩)
223222csbeq1d 3836 . . . . . . . . . . . . . 14 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st𝑡) / 𝑠𝐶 = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩ / 𝑠𝐶)
224223eqeq2d 2749 . . . . . . . . . . . . 13 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (𝑖 = (1st𝑡) / 𝑠𝐶𝑖 = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩ / 𝑠𝐶))
225224rexbidv 3226 . . . . . . . . . . . 12 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩ / 𝑠𝐶))
226225ralbidv 3112 . . . . . . . . . . 11 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩ / 𝑠𝐶))
227226anbi1d 630 . . . . . . . . . 10 ((1st𝑡) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩ / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
228221, 227syl 17 . . . . . . . . 9 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = ⟨(1st ‘(1st𝑡)), (2nd ‘(1st𝑡))⟩ / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
229220, 228bitr4d 281 . . . . . . . 8 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
23099frnd 6608 . . . . . . . . . . . . . 14 (𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))) → ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁)))
231230anim2i 617 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))))
232 dfss3 3909 . . . . . . . . . . . . . 14 ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ↔ ∀𝑛 ∈ (0...(𝑁 − 1))𝑛 ∈ ran (𝑝 ∈ ran 𝑥𝐵))
233 vex 3436 . . . . . . . . . . . . . . . 16 𝑛 ∈ V
234 eqid 2738 . . . . . . . . . . . . . . . . 17 (𝑝 ∈ ran 𝑥𝐵) = (𝑝 ∈ ran 𝑥𝐵)
235234elrnmpt 5865 . . . . . . . . . . . . . . . 16 (𝑛 ∈ V → (𝑛 ∈ ran (𝑝 ∈ ran 𝑥𝐵) ↔ ∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵))
236233, 235ax-mp 5 . . . . . . . . . . . . . . 15 (𝑛 ∈ ran (𝑝 ∈ ran 𝑥𝐵) ↔ ∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵)
237236ralbii 3092 . . . . . . . . . . . . . 14 (∀𝑛 ∈ (0...(𝑁 − 1))𝑛 ∈ ran (𝑝 ∈ ran 𝑥𝐵) ↔ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵)
238232, 237sylbb 218 . . . . . . . . . . . . 13 ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) → ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵)
239 1eluzge0 12632 . . . . . . . . . . . . . . . . 17 1 ∈ (ℤ‘0)
240 fzss1 13295 . . . . . . . . . . . . . . . . 17 (1 ∈ (ℤ‘0) → (1...(𝑁 − 1)) ⊆ (0...(𝑁 − 1)))
241 ssralv 3987 . . . . . . . . . . . . . . . . 17 ((1...(𝑁 − 1)) ⊆ (0...(𝑁 − 1)) → (∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 → ∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵))
242239, 240, 241mp2b 10 . . . . . . . . . . . . . . . 16 (∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 → ∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵)
24362nncnd 11989 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑𝑁 ∈ ℂ)
244 npcan1 11400 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁)
245243, 244syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ((𝑁 − 1) + 1) = 𝑁)
246 peano2zm 12363 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑁 ∈ ℤ → (𝑁 − 1) ∈ ℤ)
247183, 246syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝑁 − 1) ∈ ℤ)
248 uzid 12597 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑁 − 1) ∈ ℤ → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
249 peano2uz 12641 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
250247, 248, 2493syl 18 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
251245, 250eqeltrrd 2840 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑𝑁 ∈ (ℤ‘(𝑁 − 1)))
252 fzss2 13296 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ (ℤ‘(𝑁 − 1)) → (1...(𝑁 − 1)) ⊆ (1...𝑁))
253251, 252syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁))
254253sselda 3921 . . . . . . . . . . . . . . . . . . . 20 ((𝜑𝑛 ∈ (1...(𝑁 − 1))) → 𝑛 ∈ (1...𝑁))
255254adantlr 712 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...(𝑁 − 1))) → 𝑛 ∈ (1...𝑁))
256 simplr 766 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) → ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁)))
257 ssel2 3916 . . . . . . . . . . . . . . . . . . . . . . 23 ((ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁)) ∧ 𝑝 ∈ ran 𝑥) → 𝑝 ∈ ((0...𝐾) ↑m (1...𝑁)))
258 elmapi 8637 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑝 ∈ ((0...𝐾) ↑m (1...𝑁)) → 𝑝:(1...𝑁)⟶(0...𝐾))
259257, 258syl 17 . . . . . . . . . . . . . . . . . . . . . 22 ((ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁)) ∧ 𝑝 ∈ ran 𝑥) → 𝑝:(1...𝑁)⟶(0...𝐾))
260256, 259sylan 580 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) ∧ 𝑝 ∈ ran 𝑥) → 𝑝:(1...𝑁)⟶(0...𝐾))
261 poimirlem28.3 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 0)) → 𝐵 < 𝑛)
262 elfzelz 13256 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑛 ∈ (1...𝑁) → 𝑛 ∈ ℤ)
263262zred 12426 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑛 ∈ (1...𝑁) → 𝑛 ∈ ℝ)
264263ltnrd 11109 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑛 ∈ (1...𝑁) → ¬ 𝑛 < 𝑛)
265 breq1 5077 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑛 = 𝐵 → (𝑛 < 𝑛𝐵 < 𝑛))
266265notbid 318 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑛 = 𝐵 → (¬ 𝑛 < 𝑛 ↔ ¬ 𝐵 < 𝑛))
267264, 266syl5ibcom 244 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑛 ∈ (1...𝑁) → (𝑛 = 𝐵 → ¬ 𝐵 < 𝑛))
268267necon2ad 2958 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑛 ∈ (1...𝑁) → (𝐵 < 𝑛𝑛𝐵))
2692683ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 0) → (𝐵 < 𝑛𝑛𝐵))
270269adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 0)) → (𝐵 < 𝑛𝑛𝐵))
271261, 270mpd 15 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 0)) → 𝑛𝐵)
2722713exp2 1353 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝑛 ∈ (1...𝑁) → (𝑝:(1...𝑁)⟶(0...𝐾) → ((𝑝𝑛) = 0 → 𝑛𝐵))))
273272imp31 418 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑𝑛 ∈ (1...𝑁)) ∧ 𝑝:(1...𝑁)⟶(0...𝐾)) → ((𝑝𝑛) = 0 → 𝑛𝐵))
274273necon2d 2966 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑛 ∈ (1...𝑁)) ∧ 𝑝:(1...𝑁)⟶(0...𝐾)) → (𝑛 = 𝐵 → (𝑝𝑛) ≠ 0))
275274adantllr 716 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) ∧ 𝑝:(1...𝑁)⟶(0...𝐾)) → (𝑛 = 𝐵 → (𝑝𝑛) ≠ 0))
276260, 275syldan 591 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) ∧ 𝑝 ∈ ran 𝑥) → (𝑛 = 𝐵 → (𝑝𝑛) ≠ 0))
277276reximdva 3203 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) → (∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 → ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0))
278255, 277syldan 591 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...(𝑁 − 1))) → (∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 → ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0))
279278ralimdva 3108 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) → (∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 → ∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0))
280279imp 407 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → ∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0)
281242, 280sylan2 593 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → ∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0)
282281biantrurd 533 . . . . . . . . . . . . . 14 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → (∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0 ↔ (∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)))
283 nnuz 12621 . . . . . . . . . . . . . . . . . . . . . 22 ℕ = (ℤ‘1)
28462, 283eleqtrdi 2849 . . . . . . . . . . . . . . . . . . . . 21 (𝜑𝑁 ∈ (ℤ‘1))
285 fzm1 13336 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ (ℤ‘1) → (𝑛 ∈ (1...𝑁) ↔ (𝑛 ∈ (1...(𝑁 − 1)) ∨ 𝑛 = 𝑁)))
286284, 285syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑛 ∈ (1...𝑁) ↔ (𝑛 ∈ (1...(𝑁 − 1)) ∨ 𝑛 = 𝑁)))
287 elun 4083 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 ∈ ((1...(𝑁 − 1)) ∪ {𝑁}) ↔ (𝑛 ∈ (1...(𝑁 − 1)) ∨ 𝑛 ∈ {𝑁}))
288177orbi2i 910 . . . . . . . . . . . . . . . . . . . . 21 ((𝑛 ∈ (1...(𝑁 − 1)) ∨ 𝑛 ∈ {𝑁}) ↔ (𝑛 ∈ (1...(𝑁 − 1)) ∨ 𝑛 = 𝑁))
289287, 288bitri 274 . . . . . . . . . . . . . . . . . . . 20 (𝑛 ∈ ((1...(𝑁 − 1)) ∪ {𝑁}) ↔ (𝑛 ∈ (1...(𝑁 − 1)) ∨ 𝑛 = 𝑁))
290286, 289bitr4di 289 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑛 ∈ (1...𝑁) ↔ 𝑛 ∈ ((1...(𝑁 − 1)) ∪ {𝑁})))
291290eqrdv 2736 . . . . . . . . . . . . . . . . . 18 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ {𝑁}))
292291raleqdv 3348 . . . . . . . . . . . . . . . . 17 (𝜑 → (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ ∀𝑛 ∈ ((1...(𝑁 − 1)) ∪ {𝑁})∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0))
293 ralunb 4125 . . . . . . . . . . . . . . . . 17 (∀𝑛 ∈ ((1...(𝑁 − 1)) ∪ {𝑁})∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ (∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∀𝑛 ∈ {𝑁}∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0))
294292, 293bitrdi 287 . . . . . . . . . . . . . . . 16 (𝜑 → (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ (∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∀𝑛 ∈ {𝑁}∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0)))
295 fveq2 6774 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 = 𝑁 → (𝑝𝑛) = (𝑝𝑁))
296295neeq1d 3003 . . . . . . . . . . . . . . . . . . . 20 (𝑛 = 𝑁 → ((𝑝𝑛) ≠ 0 ↔ (𝑝𝑁) ≠ 0))
297296rexbidv 3226 . . . . . . . . . . . . . . . . . . 19 (𝑛 = 𝑁 → (∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0))
298297ralsng 4609 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ → (∀𝑛 ∈ {𝑁}∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0))
29962, 298syl 17 . . . . . . . . . . . . . . . . 17 (𝜑 → (∀𝑛 ∈ {𝑁}∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0))
300299anbi2d 629 . . . . . . . . . . . . . . . 16 (𝜑 → ((∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∀𝑛 ∈ {𝑁}∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0) ↔ (∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)))
301294, 300bitrd 278 . . . . . . . . . . . . . . 15 (𝜑 → (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ (∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)))
302301ad2antrr 723 . . . . . . . . . . . . . 14 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ (∀𝑛 ∈ (1...(𝑁 − 1))∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)))
303 0z 12330 . . . . . . . . . . . . . . . . . . . . . . 23 0 ∈ ℤ
304 1z 12350 . . . . . . . . . . . . . . . . . . . . . . 23 1 ∈ ℤ
305 fzshftral 13344 . . . . . . . . . . . . . . . . . . . . . . 23 ((0 ∈ ℤ ∧ (𝑁 − 1) ∈ ℤ ∧ 1 ∈ ℤ) → (∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑚 ∈ ((0 + 1)...((𝑁 − 1) + 1))[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵))
306303, 304, 305mp3an13 1451 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑁 − 1) ∈ ℤ → (∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑚 ∈ ((0 + 1)...((𝑁 − 1) + 1))[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵))
307183, 246, 3063syl 18 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑚 ∈ ((0 + 1)...((𝑁 − 1) + 1))[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵))
308 0p1e1 12095 . . . . . . . . . . . . . . . . . . . . . . . 24 (0 + 1) = 1
309308a1i 11 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (0 + 1) = 1)
310309, 245oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ((0 + 1)...((𝑁 − 1) + 1)) = (1...𝑁))
311310raleqdv 3348 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (∀𝑚 ∈ ((0 + 1)...((𝑁 − 1) + 1))[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑚 ∈ (1...𝑁)[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵))
312307, 311bitrd 278 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑚 ∈ (1...𝑁)[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵))
313 ovex 7308 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑚 − 1) ∈ V
314 eqeq1 2742 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑛 = (𝑚 − 1) → (𝑛 = 𝐵 ↔ (𝑚 − 1) = 𝐵))
315314rexbidv 3226 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑛 = (𝑚 − 1) → (∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∃𝑝 ∈ ran 𝑥(𝑚 − 1) = 𝐵))
316313, 315sbcie 3759 . . . . . . . . . . . . . . . . . . . . . 22 ([(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∃𝑝 ∈ ran 𝑥(𝑚 − 1) = 𝐵)
317316ralbii 3092 . . . . . . . . . . . . . . . . . . . . 21 (∀𝑚 ∈ (1...𝑁)[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑚 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑚 − 1) = 𝐵)
318 oveq1 7282 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑚 = 𝑛 → (𝑚 − 1) = (𝑛 − 1))
319318eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑚 = 𝑛 → ((𝑚 − 1) = 𝐵 ↔ (𝑛 − 1) = 𝐵))
320319rexbidv 3226 . . . . . . . . . . . . . . . . . . . . . 22 (𝑚 = 𝑛 → (∃𝑝 ∈ ran 𝑥(𝑚 − 1) = 𝐵 ↔ ∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵))
321320cbvralvw 3383 . . . . . . . . . . . . . . . . . . . . 21 (∀𝑚 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑚 − 1) = 𝐵 ↔ ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵)
322317, 321bitri 274 . . . . . . . . . . . . . . . . . . . 20 (∀𝑚 ∈ (1...𝑁)[(𝑚 − 1) / 𝑛]𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵)
323312, 322bitrdi 287 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵 ↔ ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵))
324323biimpa 477 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵)
325324adantlr 712 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵)
326 poimirlem28.4 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 𝐾)) → 𝐵 ≠ (𝑛 − 1))
327326necomd 2999 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑝:(1...𝑁)⟶(0...𝐾) ∧ (𝑝𝑛) = 𝐾)) → (𝑛 − 1) ≠ 𝐵)
3283273exp2 1353 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝑛 ∈ (1...𝑁) → (𝑝:(1...𝑁)⟶(0...𝐾) → ((𝑝𝑛) = 𝐾 → (𝑛 − 1) ≠ 𝐵))))
329328imp31 418 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑𝑛 ∈ (1...𝑁)) ∧ 𝑝:(1...𝑁)⟶(0...𝐾)) → ((𝑝𝑛) = 𝐾 → (𝑛 − 1) ≠ 𝐵))
330329necon2d 2966 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑛 ∈ (1...𝑁)) ∧ 𝑝:(1...𝑁)⟶(0...𝐾)) → ((𝑛 − 1) = 𝐵 → (𝑝𝑛) ≠ 𝐾))
331330adantllr 716 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) ∧ 𝑝:(1...𝑁)⟶(0...𝐾)) → ((𝑛 − 1) = 𝐵 → (𝑝𝑛) ≠ 𝐾))
332260, 331syldan 591 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) ∧ 𝑝 ∈ ran 𝑥) → ((𝑛 − 1) = 𝐵 → (𝑝𝑛) ≠ 𝐾))
333332reximdva 3203 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ 𝑛 ∈ (1...𝑁)) → (∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵 → ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))
334333ralimdva 3108 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) → (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵 → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))
335334imp 407 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑛 − 1) = 𝐵) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)
336325, 335syldan 591 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)
337336biantrud 532 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))
338 r19.26 3095 . . . . . . . . . . . . . . 15 (∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾) ↔ (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))
339337, 338bitr4di 289 . . . . . . . . . . . . . 14 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → (∀𝑛 ∈ (1...𝑁)∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ↔ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))
340282, 302, 3393bitr2d 307 . . . . . . . . . . . . 13 (((𝜑 ∧ ran 𝑥 ⊆ ((0...𝐾) ↑m (1...𝑁))) ∧ ∀𝑛 ∈ (0...(𝑁 − 1))∃𝑝 ∈ ran 𝑥 𝑛 = 𝐵) → (∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0 ↔ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))
341231, 238, 340syl2an 596 . . . . . . . . . . . 12 (((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) ∧ (0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵)) → (∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0 ↔ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))
342341pm5.32da 579 . . . . . . . . . . 11 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → (((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0) ↔ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))))
343342anbi2d 629 . . . . . . . . . 10 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → ((𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)) ↔ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))))
344343rexbidva 3225 . . . . . . . . 9 (𝜑 → (∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)) ↔ ∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))))
345344adantr 481 . . . . . . . 8 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑁) ≠ 0)) ↔ ∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))))
346191rexeqdv 3349 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (∃𝑗 ∈ ((0...𝑁) ∖ {𝑁})𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶))
347346biimpd 228 . . . . . . . . . . . . . . . . . 18 (𝜑 → (∃𝑗 ∈ ((0...𝑁) ∖ {𝑁})𝑖 = (1st𝑡) / 𝑠𝐶 → ∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶))
348347ralimdv 3109 . . . . . . . . . . . . . . . . 17 (𝜑 → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {𝑁})𝑖 = (1st𝑡) / 𝑠𝐶 → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶))
349169rexeqdv 3349 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑡) = 𝑁 → (∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∃𝑗 ∈ ((0...𝑁) ∖ {𝑁})𝑖 = (1st𝑡) / 𝑠𝐶))
350349ralbidv 3112 . . . . . . . . . . . . . . . . . 18 ((2nd𝑡) = 𝑁 → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {𝑁})𝑖 = (1st𝑡) / 𝑠𝐶))
351350imbi1d 342 . . . . . . . . . . . . . . . . 17 ((2nd𝑡) = 𝑁 → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {𝑁})𝑖 = (1st𝑡) / 𝑠𝐶 → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶)))
352348, 351syl5ibrcom 246 . . . . . . . . . . . . . . . 16 (𝜑 → ((2nd𝑡) = 𝑁 → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶)))
353352com23 86 . . . . . . . . . . . . . . 15 (𝜑 → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 → ((2nd𝑡) = 𝑁 → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶)))
354353imp 407 . . . . . . . . . . . . . 14 ((𝜑 ∧ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶) → ((2nd𝑡) = 𝑁 → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶))
355354adantrd 492 . . . . . . . . . . . . 13 ((𝜑 ∧ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶) → (((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) → ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶))
356355pm4.71rd 563 . . . . . . . . . . . 12 ((𝜑 ∧ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶) → (((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
357 an12 642 . . . . . . . . . . . . 13 ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))) ↔ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))))
358 3anass 1094 . . . . . . . . . . . . . 14 ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))
359358anbi2i 623 . . . . . . . . . . . . 13 (((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) ↔ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))))
360357, 359bitr4i 277 . . . . . . . . . . . 12 ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))) ↔ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))
361356, 360bitrdi 287 . . . . . . . . . . 11 ((𝜑 ∧ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶) → (((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) ↔ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))))
362361notbid 318 . . . . . . . . . 10 ((𝜑 ∧ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶) → (¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) ↔ ¬ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))))
363362pm5.32da 579 . . . . . . . . 9 (𝜑 → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
364363adantr 481 . . . . . . . 8 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
365229, 345, 3643bitr3d 309 . . . . . . 7 ((𝜑𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))))
366365rabbidva 3413 . . . . . 6 (𝜑 → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))})
367 iunrab 4982 . . . . . 6 𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))){𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∃𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}
368 difrab 4242 . . . . . 6 ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∖ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ¬ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)))}
369366, 367, 3683eqtr4g 2803 . . . . 5 (𝜑 𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))){𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} = ({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∖ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}))
370369fveq2d 6778 . . . 4 (𝜑 → (♯‘ 𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))){𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}) = (♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∖ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})))
37127, 28mp1i 13 . . . . 5 ((𝜑𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))) → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} ∈ Fin)
372 simpl 483 . . . . . . . . . . . 12 ((𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))) → 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))))
373372a1i 11 . . . . . . . . . . 11 (𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → ((𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾))) → 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
374373ss2rabi 4010 . . . . . . . . . 10 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} ⊆ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
375374sseli 3917 . . . . . . . . 9 (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} → 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))})
376 fveq2 6774 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑠 → (2nd𝑡) = (2nd𝑠))
377376breq2d 5086 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑠 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑠)))
378377ifbid 4482 . . . . . . . . . . . . . . . 16 (𝑡 = 𝑠 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)))
379378csbeq1d 3836 . . . . . . . . . . . . . . 15 (𝑡 = 𝑠if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))
380 2fveq3 6779 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑠 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑠)))
381 2fveq3 6779 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑠 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑠)))
382381imaeq1d 5968 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑠 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑠)) “ (1...𝑗)))
383382xpeq1d 5618 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑠 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}))
384381imaeq1d 5968 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑠 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)))
385384xpeq1d 5618 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑠 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0}))
386383, 385uneq12d 4098 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑠 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))
387380, 386oveq12d 7293 . . . . . . . . . . . . . . . 16 (𝑡 = 𝑠 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0}))))
388387csbeq2dv 3839 . . . . . . . . . . . . . . 15 (𝑡 = 𝑠if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0}))))
389379, 388eqtrd 2778 . . . . . . . . . . . . . 14 (𝑡 = 𝑠if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0}))))
390389mpteq2dv 5176 . . . . . . . . . . . . 13 (𝑡 = 𝑠 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))))
391390eqeq2d 2749 . . . . . . . . . . . 12 (𝑡 = 𝑠 → (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
392 eqcom 2745 . . . . . . . . . . . 12 (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥)
393391, 392bitrdi 287 . . . . . . . . . . 11 (𝑡 = 𝑠 → (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥))
394393elrab 3624 . . . . . . . . . 10 (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} ↔ (𝑠 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥))
395394simprbi 497 . . . . . . . . 9 (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥)
396375, 395syl 17 . . . . . . . 8 (𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥)
397396rgen 3074 . . . . . . 7 𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥
398397rgenw 3076 . . . . . 6 𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))∀𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥
399 invdisj 5058 . . . . . 6 (∀𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))∀𝑠 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))} (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑠), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑠)) ∘f + ((((2nd ‘(1st𝑠)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑠)) “ ((𝑗 + 1)...𝑁)) × {0})))) = 𝑥Disj 𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))){𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})
400398, 399mp1i 13 . . . . 5 (𝜑Disj 𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))){𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))})
4018, 371, 400hashiun 15534 . . . 4 (𝜑 → (♯‘ 𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1))){𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}) = Σ𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}))
402370, 401eqtr3d 2780 . . 3 (𝜑 → (♯‘({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶} ∖ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})) = Σ𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}))
403 fo1st 7851 . . . . . . . . . . . . 13 1st :V–onto→V
404 fofun 6689 . . . . . . . . . . . . 13 (1st :V–onto→V → Fun 1st )
405403, 404ax-mp 5 . . . . . . . . . . . 12 Fun 1st
406 ssv 3945 . . . . . . . . . . . . 13 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ⊆ V
407 fof 6688 . . . . . . . . . . . . . . 15 (1st :V–onto→V → 1st :V⟶V)
408403, 407ax-mp 5 . . . . . . . . . . . . . 14 1st :V⟶V
409408fdmi 6612 . . . . . . . . . . . . 13 dom 1st = V
410406, 409sseqtrri 3958 . . . . . . . . . . . 12 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ⊆ dom 1st
411 fores 6698 . . . . . . . . . . . 12 ((Fun 1st ∧ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ⊆ dom 1st ) → (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→(1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}))
412405, 410, 411mp2an 689 . . . . . . . . . . 11 (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→(1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})
413 fveqeq2 6783 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑥 → ((2nd𝑡) = 𝑁 ↔ (2nd𝑥) = 𝑁))
414 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑥 → (1st𝑡) = (1st𝑥))
415414csbeq1d 3836 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑥(1st𝑡) / 𝑠𝐶 = (1st𝑥) / 𝑠𝐶)
416415eqeq2d 2749 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑥 → (𝑖 = (1st𝑡) / 𝑠𝐶𝑖 = (1st𝑥) / 𝑠𝐶))
417416rexbidv 3226 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑥 → (∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶))
418417ralbidv 3112 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑥 → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ↔ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶))
419 2fveq3 6779 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑥 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑥)))
420419fveq1d 6776 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑥 → ((1st ‘(1st𝑡))‘𝑁) = ((1st ‘(1st𝑥))‘𝑁))
421420eqeq1d 2740 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑥 → (((1st ‘(1st𝑡))‘𝑁) = 0 ↔ ((1st ‘(1st𝑥))‘𝑁) = 0))
422 2fveq3 6779 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑥 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑥)))
423422fveq1d 6776 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑥 → ((2nd ‘(1st𝑡))‘𝑁) = ((2nd ‘(1st𝑥))‘𝑁))
424423eqeq1d 2740 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑥 → (((2nd ‘(1st𝑡))‘𝑁) = 𝑁 ↔ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁))
425418, 421, 4243anbi123d 1435 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑥 → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)))
426413, 425anbi12d 631 . . . . . . . . . . . . . . . 16 (𝑡 = 𝑥 → (((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) ↔ ((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁))))
427426rexrab 3633 . . . . . . . . . . . . . . 15 (∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑠 ↔ ∃𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))(((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠))
428 xp1st 7863 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑥) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
429428anim1i 615 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) → ((1st𝑥) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)))
430 eleq1 2826 . . . . . . . . . . . . . . . . . . . . 21 ((1st𝑥) = 𝑠 → ((1st𝑥) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ↔ 𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})))
431 csbeq1a 3846 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑠 = (1st𝑥) → 𝐶 = (1st𝑥) / 𝑠𝐶)
432431eqcoms 2746 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((1st𝑥) = 𝑠𝐶 = (1st𝑥) / 𝑠𝐶)
433432eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((1st𝑥) = 𝑠(1st𝑥) / 𝑠𝐶 = 𝐶)
434433eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . 24 ((1st𝑥) = 𝑠 → (𝑖 = (1st𝑥) / 𝑠𝐶𝑖 = 𝐶))
435434rexbidv 3226 . . . . . . . . . . . . . . . . . . . . . . 23 ((1st𝑥) = 𝑠 → (∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ↔ ∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶))
436435ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . 22 ((1st𝑥) = 𝑠 → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ↔ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶))
437 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . 24 ((1st𝑥) = 𝑠 → (1st ‘(1st𝑥)) = (1st𝑠))
438437fveq1d 6776 . . . . . . . . . . . . . . . . . . . . . . 23 ((1st𝑥) = 𝑠 → ((1st ‘(1st𝑥))‘𝑁) = ((1st𝑠)‘𝑁))
439438eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . 22 ((1st𝑥) = 𝑠 → (((1st ‘(1st𝑥))‘𝑁) = 0 ↔ ((1st𝑠)‘𝑁) = 0))
440 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . 24 ((1st𝑥) = 𝑠 → (2nd ‘(1st𝑥)) = (2nd𝑠))
441440fveq1d 6776 . . . . . . . . . . . . . . . . . . . . . . 23 ((1st𝑥) = 𝑠 → ((2nd ‘(1st𝑥))‘𝑁) = ((2nd𝑠)‘𝑁))
442441eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . 22 ((1st𝑥) = 𝑠 → (((2nd ‘(1st𝑥))‘𝑁) = 𝑁 ↔ ((2nd𝑠)‘𝑁) = 𝑁))
443436, 439, 4423anbi123d 1435 . . . . . . . . . . . . . . . . . . . . 21 ((1st𝑥) = 𝑠 → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)))
444430, 443anbi12d 631 . . . . . . . . . . . . . . . . . . . 20 ((1st𝑥) = 𝑠 → (((1st𝑥) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ↔ (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))))
445429, 444syl5ibcom 244 . . . . . . . . . . . . . . . . . . 19 ((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) → ((1st𝑥) = 𝑠 → (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))))
446445adantrl 713 . . . . . . . . . . . . . . . . . 18 ((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ ((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁))) → ((1st𝑥) = 𝑠 → (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))))
447446expimpd 454 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → ((((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠) → (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))))
448447rexlimiv 3209 . . . . . . . . . . . . . . . 16 (∃𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))(((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠) → (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)))
449 nn0fz0 13354 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0𝑁 ∈ (0...𝑁))
450171, 449sylib 217 . . . . . . . . . . . . . . . . . . . 20 (𝜑𝑁 ∈ (0...𝑁))
451 opelxpi 5626 . . . . . . . . . . . . . . . . . . . 20 ((𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ 𝑁 ∈ (0...𝑁)) → ⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
452450, 451sylan2 593 . . . . . . . . . . . . . . . . . . 19 ((𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ 𝜑) → ⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
453452ancoms 459 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})) → ⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
454 opelxp2 5631 . . . . . . . . . . . . . . . . . . . . 21 (⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → 𝑁 ∈ (0...𝑁))
455 op2ndg 7844 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (2nd ‘⟨𝑠, 𝑁⟩) = 𝑁)
456455biantrurd 533 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁) ↔ ((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁))))
457 op1stg 7843 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (1st ‘⟨𝑠, 𝑁⟩) = 𝑠)
458 csbeq1a 3846 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑠 = (1st ‘⟨𝑠, 𝑁⟩) → 𝐶 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶)
459458eqcoms 2746 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((1st ‘⟨𝑠, 𝑁⟩) = 𝑠𝐶 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶)
460459eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((1st ‘⟨𝑠, 𝑁⟩) = 𝑠(1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 = 𝐶)
461457, 460syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 = 𝐶)
462461eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶𝑖 = 𝐶))
463462rexbidv 3226 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ↔ ∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶))
464463ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ↔ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶))
465457fveq2d 6778 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (1st ‘(1st ‘⟨𝑠, 𝑁⟩)) = (1st𝑠))
466465fveq1d 6776 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = ((1st𝑠)‘𝑁))
467466eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ↔ ((1st𝑠)‘𝑁) = 0))
468457fveq2d 6778 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (2nd ‘(1st ‘⟨𝑠, 𝑁⟩)) = (2nd𝑠))
469468fveq1d 6776 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = ((2nd𝑠)‘𝑁))
470469eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁 ↔ ((2nd𝑠)‘𝑁) = 𝑁))
471464, 467, 4703anbi123d 1435 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)))
472457biantrud 532 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → (((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)) ↔ (((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)) ∧ (1st ‘⟨𝑠, 𝑁⟩) = 𝑠)))
473456, 471, 4723bitr3d 309 . . . . . . . . . . . . . . . . . . . . 21 ((𝑠 ∈ V ∧ 𝑁 ∈ (0...𝑁)) → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁) ↔ (((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)) ∧ (1st ‘⟨𝑠, 𝑁⟩) = 𝑠)))
47444, 454, 473sylancr 587 . . . . . . . . . . . . . . . . . . . 20 (⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁) ↔ (((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)) ∧ (1st ‘⟨𝑠, 𝑁⟩) = 𝑠)))
475474biimpa 477 . . . . . . . . . . . . . . . . . . 19 ((⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)) → (((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)) ∧ (1st ‘⟨𝑠, 𝑁⟩) = 𝑠))
476 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . . 22 (𝑥 = ⟨𝑠, 𝑁⟩ → ((2nd𝑥) = 𝑁 ↔ (2nd ‘⟨𝑠, 𝑁⟩) = 𝑁))
477 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑥 = ⟨𝑠, 𝑁⟩ → (1st𝑥) = (1st ‘⟨𝑠, 𝑁⟩))
478477csbeq1d 3836 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑥 = ⟨𝑠, 𝑁⟩ → (1st𝑥) / 𝑠𝐶 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶)
479478eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = ⟨𝑠, 𝑁⟩ → (𝑖 = (1st𝑥) / 𝑠𝐶𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶))
480479rexbidv 3226 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = ⟨𝑠, 𝑁⟩ → (∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ↔ ∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶))
481480ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑥 = ⟨𝑠, 𝑁⟩ → (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ↔ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶))
482 2fveq3 6779 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = ⟨𝑠, 𝑁⟩ → (1st ‘(1st𝑥)) = (1st ‘(1st ‘⟨𝑠, 𝑁⟩)))
483482fveq1d 6776 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = ⟨𝑠, 𝑁⟩ → ((1st ‘(1st𝑥))‘𝑁) = ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁))
484483eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑥 = ⟨𝑠, 𝑁⟩ → (((1st ‘(1st𝑥))‘𝑁) = 0 ↔ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0))
485 2fveq3 6779 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = ⟨𝑠, 𝑁⟩ → (2nd ‘(1st𝑥)) = (2nd ‘(1st ‘⟨𝑠, 𝑁⟩)))
486485fveq1d 6776 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = ⟨𝑠, 𝑁⟩ → ((2nd ‘(1st𝑥))‘𝑁) = ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁))
487486eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑥 = ⟨𝑠, 𝑁⟩ → (((2nd ‘(1st𝑥))‘𝑁) = 𝑁 ↔ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁))
488481, 484, 4873anbi123d 1435 . . . . . . . . . . . . . . . . . . . . . 22 (𝑥 = ⟨𝑠, 𝑁⟩ → ((∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁) ↔ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)))
489476, 488anbi12d 631 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = ⟨𝑠, 𝑁⟩ → (((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ↔ ((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁))))
490 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = ⟨𝑠, 𝑁⟩ → ((1st𝑥) = 𝑠 ↔ (1st ‘⟨𝑠, 𝑁⟩) = 𝑠))
491489, 490anbi12d 631 . . . . . . . . . . . . . . . . . . . 20 (𝑥 = ⟨𝑠, 𝑁⟩ → ((((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠) ↔ (((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)) ∧ (1st ‘⟨𝑠, 𝑁⟩) = 𝑠)))
492491rspcev 3561 . . . . . . . . . . . . . . . . . . 19 ((⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (((2nd ‘⟨𝑠, 𝑁⟩) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st ‘⟨𝑠, 𝑁⟩) / 𝑠𝐶 ∧ ((1st ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 0 ∧ ((2nd ‘(1st ‘⟨𝑠, 𝑁⟩))‘𝑁) = 𝑁)) ∧ (1st ‘⟨𝑠, 𝑁⟩) = 𝑠)) → ∃𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))(((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠))
493475, 492syldan 591 . . . . . . . . . . . . . . . . . 18 ((⟨𝑠, 𝑁⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)) → ∃𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))(((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠))
494453, 493sylan 580 . . . . . . . . . . . . . . . . 17 (((𝜑𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)) → ∃𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))(((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠))
495494expl 458 . . . . . . . . . . . . . . . 16 (𝜑 → ((𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)) → ∃𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))(((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠)))
496448, 495impbid2 225 . . . . . . . . . . . . . . 15 (𝜑 → (∃𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))(((2nd𝑥) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑥) / 𝑠𝐶 ∧ ((1st ‘(1st𝑥))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑥))‘𝑁) = 𝑁)) ∧ (1st𝑥) = 𝑠) ↔ (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))))
497427, 496syl5bb 283 . . . . . . . . . . . . . 14 (𝜑 → (∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑠 ↔ (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))))
498497abbidv 2807 . . . . . . . . . . . . 13 (𝜑 → {𝑠 ∣ ∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑠} = {𝑠 ∣ (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))})
499 dfimafn 6832 . . . . . . . . . . . . . . 15 ((Fun 1st ∧ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ⊆ dom 1st ) → (1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = {𝑦 ∣ ∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑦})
500405, 410, 499mp2an 689 . . . . . . . . . . . . . 14 (1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = {𝑦 ∣ ∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑦}
501 nfv 1917 . . . . . . . . . . . . . . . . . 18 𝑠(2nd𝑡) = 𝑁
502 nfcv 2907 . . . . . . . . . . . . . . . . . . . 20 𝑠(0...(𝑁 − 1))
503 nfcsb1v 3857 . . . . . . . . . . . . . . . . . . . . . 22 𝑠(1st𝑡) / 𝑠𝐶
504503nfeq2 2924 . . . . . . . . . . . . . . . . . . . . 21 𝑠 𝑖 = (1st𝑡) / 𝑠𝐶
505502, 504nfrex 3242 . . . . . . . . . . . . . . . . . . . 20 𝑠𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶
506502, 505nfralw 3151 . . . . . . . . . . . . . . . . . . 19 𝑠𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶
507 nfv 1917 . . . . . . . . . . . . . . . . . . 19 𝑠((1st ‘(1st𝑡))‘𝑁) = 0
508 nfv 1917 . . . . . . . . . . . . . . . . . . 19 𝑠((2nd ‘(1st𝑡))‘𝑁) = 𝑁
509506, 507, 508nf3an 1904 . . . . . . . . . . . . . . . . . 18 𝑠(∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)
510501, 509nfan 1902 . . . . . . . . . . . . . . . . 17 𝑠((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))
511 nfcv 2907 . . . . . . . . . . . . . . . . 17 𝑠((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))
512510, 511nfrabw 3318 . . . . . . . . . . . . . . . 16 𝑠{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}
513 nfv 1917 . . . . . . . . . . . . . . . 16 𝑠(1st𝑥) = 𝑦
514512, 513nfrex 3242 . . . . . . . . . . . . . . 15 𝑠𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑦
515 nfv 1917 . . . . . . . . . . . . . . 15 𝑦𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑠
516 eqeq2 2750 . . . . . . . . . . . . . . . 16 (𝑦 = 𝑠 → ((1st𝑥) = 𝑦 ↔ (1st𝑥) = 𝑠))
517516rexbidv 3226 . . . . . . . . . . . . . . 15 (𝑦 = 𝑠 → (∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑦 ↔ ∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑠))
518514, 515, 517cbvabw 2812 . . . . . . . . . . . . . 14 {𝑦 ∣ ∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑦} = {𝑠 ∣ ∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑠}
519500, 518eqtri 2766 . . . . . . . . . . . . 13 (1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = {𝑠 ∣ ∃𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (1st𝑥) = 𝑠}
520 df-rab 3073 . . . . . . . . . . . . 13 {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} = {𝑠 ∣ (𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁))}
521498, 519, 5203eqtr4g 2803 . . . . . . . . . . . 12 (𝜑 → (1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
522 foeq3 6686 . . . . . . . . . . . 12 ((1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} → ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→(1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) ↔ (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)}))
523521, 522syl 17 . . . . . . . . . . 11 (𝜑 → ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→(1st “ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) ↔ (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)}))
524412, 523mpbii 232 . . . . . . . . . 10 (𝜑 → (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
525 fof 6688 . . . . . . . . . 10 ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} → (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}⟶{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
526524, 525syl 17 . . . . . . . . 9 (𝜑 → (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}⟶{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
527 fvres 6793 . . . . . . . . . . . 12 (𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} → ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑥) = (1st𝑥))
528 fvres 6793 . . . . . . . . . . . 12 (𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} → ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑦) = (1st𝑦))
529527, 528eqeqan12d 2752 . . . . . . . . . . 11 ((𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ∧ 𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) → (((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑥) = ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑦) ↔ (1st𝑥) = (1st𝑦)))
530 simpl 483 . . . . . . . . . . . . . . . 16 (((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) → (2nd𝑡) = 𝑁)
531530a1i 11 . . . . . . . . . . . . . . 15 (𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁)) → (2nd𝑡) = 𝑁))
532531ss2rabi 4010 . . . . . . . . . . . . . 14 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ⊆ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (2nd𝑡) = 𝑁}
533532sseli 3917 . . . . . . . . . . . . 13 (𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} → 𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (2nd𝑡) = 𝑁})
534413elrab 3624 . . . . . . . . . . . . 13 (𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (2nd𝑡) = 𝑁} ↔ (𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (2nd𝑥) = 𝑁))
535533, 534sylib 217 . . . . . . . . . . . 12 (𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} → (𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (2nd𝑥) = 𝑁))
536532sseli 3917 . . . . . . . . . . . . 13 (𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} → 𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (2nd𝑡) = 𝑁})
537 fveqeq2 6783 . . . . . . . . . . . . . 14 (𝑡 = 𝑦 → ((2nd𝑡) = 𝑁 ↔ (2nd𝑦) = 𝑁))
538537elrab 3624 . . . . . . . . . . . . 13 (𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (2nd𝑡) = 𝑁} ↔ (𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (2nd𝑦) = 𝑁))
539536, 538sylib 217 . . . . . . . . . . . 12 (𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} → (𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (2nd𝑦) = 𝑁))
540 eqtr3 2764 . . . . . . . . . . . . . 14 (((2nd𝑥) = 𝑁 ∧ (2nd𝑦) = 𝑁) → (2nd𝑥) = (2nd𝑦))
541 xpopth 7872 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑥) = (1st𝑦) ∧ (2nd𝑥) = (2nd𝑦)) ↔ 𝑥 = 𝑦))
542541biimpd 228 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑥) = (1st𝑦) ∧ (2nd𝑥) = (2nd𝑦)) → 𝑥 = 𝑦))
543542ancomsd 466 . . . . . . . . . . . . . . 15 ((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((2nd𝑥) = (2nd𝑦) ∧ (1st𝑥) = (1st𝑦)) → 𝑥 = 𝑦))
544543expdimp 453 . . . . . . . . . . . . . 14 (((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) ∧ (2nd𝑥) = (2nd𝑦)) → ((1st𝑥) = (1st𝑦) → 𝑥 = 𝑦))
545540, 544sylan2 593 . . . . . . . . . . . . 13 (((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) ∧ ((2nd𝑥) = 𝑁 ∧ (2nd𝑦) = 𝑁)) → ((1st𝑥) = (1st𝑦) → 𝑥 = 𝑦))
546545an4s 657 . . . . . . . . . . . 12 (((𝑥 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (2nd𝑥) = 𝑁) ∧ (𝑦 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ (2nd𝑦) = 𝑁)) → ((1st𝑥) = (1st𝑦) → 𝑥 = 𝑦))
547535, 539, 546syl2an 596 . . . . . . . . . . 11 ((𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ∧ 𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) → ((1st𝑥) = (1st𝑦) → 𝑥 = 𝑦))
548529, 547sylbid 239 . . . . . . . . . 10 ((𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ∧ 𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) → (((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑥) = ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑦) → 𝑥 = 𝑦))
549548rgen2 3120 . . . . . . . . 9 𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}∀𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑥) = ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑦) → 𝑥 = 𝑦)
550526, 549jctir 521 . . . . . . . 8 (𝜑 → ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}⟶{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ∧ ∀𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}∀𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑥) = ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑦) → 𝑥 = 𝑦)))
551 dff13 7128 . . . . . . . 8 ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–1-1→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ↔ ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}⟶{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ∧ ∀𝑥 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}∀𝑦 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} (((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑥) = ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})‘𝑦) → 𝑥 = 𝑦)))
552550, 551sylibr 233 . . . . . . 7 (𝜑 → (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–1-1→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
553 df-f1o 6440 . . . . . . 7 ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–1-1-onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ↔ ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–1-1→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ∧ (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)}))
554552, 524, 553sylanbrc 583 . . . . . 6 (𝜑 → (1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–1-1-onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
555 rabfi 9044 . . . . . . . . 9 (((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∈ Fin → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ∈ Fin)
55627, 555ax-mp 5 . . . . . . . 8 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ∈ Fin
557556elexi 3451 . . . . . . 7 {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ∈ V
558557f1oen 8761 . . . . . 6 ((1st ↾ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}):{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}–1-1-onto→{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ≈ {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
559554, 558syl 17 . . . . 5 (𝜑 → {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ≈ {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
560 rabfi 9044 . . . . . . 7 ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∈ Fin → {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ∈ Fin)
56124, 560ax-mp 5 . . . . . 6 {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ∈ Fin
562 hashen 14061 . . . . . 6 (({𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ∈ Fin ∧ {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)} ∈ Fin) → ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = (♯‘{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)}) ↔ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ≈ {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)}))
563556, 561, 562mp2an 689 . . . . 5 ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = (♯‘{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)}) ↔ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))} ≈ {𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})
564559, 563sylibr 233 . . . 4 (𝜑 → (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))}) = (♯‘{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)}))
565564oveq2d 7291 . . 3 (𝜑 → ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) − (♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ((2nd𝑡) = 𝑁 ∧ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = (1st𝑡) / 𝑠𝐶 ∧ ((1st ‘(1st𝑡))‘𝑁) = 0 ∧ ((2nd ‘(1st𝑡))‘𝑁) = 𝑁))})) = ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) − (♯‘{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})))
566201, 402, 5653eqtr3d 2786 . 2 (𝜑 → Σ𝑥 ∈ (((0...𝐾) ↑m (1...𝑁)) ↑m (0...(𝑁 − 1)))(♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ (𝑥 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ∧ ((0...(𝑁 − 1)) ⊆ ran (𝑝 ∈ ran 𝑥𝐵) ∧ ∀𝑛 ∈ (1...𝑁)(∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 0 ∧ ∃𝑝 ∈ ran 𝑥(𝑝𝑛) ≠ 𝐾)))}) = ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) − (♯‘{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})))
567164, 566breqtrd 5100 1 (𝜑 → 2 ∥ ((♯‘{𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ ∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ ((0...𝑁) ∖ {(2nd𝑡)})𝑖 = (1st𝑡) / 𝑠𝐶}) − (♯‘{𝑠 ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∣ (∀𝑖 ∈ (0...(𝑁 − 1))∃𝑗 ∈ (0...(𝑁 − 1))𝑖 = 𝐶 ∧ ((1st𝑠)‘𝑁) = 0 ∧ ((2nd𝑠)‘𝑁) = 𝑁)})))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  w3a 1086   = wceq 1539  wex 1782  wcel 2106  ∃!weu 2568  {cab 2715  wne 2943  wral 3064  wrex 3065  ∃!wreu 3066  {crab 3068  Vcvv 3432  [wsbc 3716  csb 3832  cdif 3884  cun 3885  cin 3886  wss 3887  c0 4256  ifcif 4459  {csn 4561  cop 4567   ciun 4924  Disj wdisj 5039   class class class wbr 5074  cmpt 5157   × cxp 5587  dom cdm 5589  ran crn 5590  cres 5591  cima 5592  Fun wfun 6427  wf 6429  1-1wf1 6430  ontowfo 6431  1-1-ontowf1o 6432  cfv 6433  (class class class)co 7275  f cof 7531  1st c1st 7829  2nd c2nd 7830  m cmap 8615  cen 8730  Fincfn 8733  cc 10869  0cc0 10871  1c1 10872   + caddc 10874   < clt 11009  cmin 11205  cn 11973  2c2 12028  0cn0 12233  cz 12319  cuz 12582  ...cfz 13239  ..^cfzo 13382  chash 14044  Σcsu 15397  cdvds 15963
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-inf2 9399  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-tp 4566  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-disj 5040  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-se 5545  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-isom 6442  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-of 7533  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-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-oi 9269  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-rp 12731  df-fz 13240  df-fzo 13383  df-seq 13722  df-exp 13783  df-fac 13988  df-bc 14017  df-hash 14045  df-cj 14810  df-re 14811  df-im 14812  df-sqrt 14946  df-abs 14947  df-clim 15197  df-sum 15398  df-dvds 15964
This theorem is referenced by:  poimirlem28  35805
  Copyright terms: Public domain W3C validator