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

Theorem sticksstones19 40049
Description: Extend sticks and stones to finite sets, bijective builder. (Contributed by metakunt, 23-Oct-2024.)
Hypotheses
Ref Expression
sticksstones19.1 (𝜑𝑁 ∈ ℕ0)
sticksstones19.2 (𝜑𝐾 ∈ ℕ0)
sticksstones19.3 𝐴 = {𝑔 ∣ (𝑔:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = 𝑁)}
sticksstones19.4 𝐵 = { ∣ (:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑖) = 𝑁)}
sticksstones19.5 (𝜑𝑍:(1...𝐾)–1-1-onto𝑆)
sticksstones19.6 𝐹 = (𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))
sticksstones19.7 𝐺 = (𝑏𝐵 ↦ (𝑦 ∈ (1...𝐾) ↦ (𝑏‘(𝑍𝑦))))
Assertion
Ref Expression
sticksstones19 (𝜑𝐹:𝐴1-1-onto𝐵)
Distinct variable groups:   𝐴,𝑎,𝑖,𝑥,𝑦   𝐴,𝑏,𝑖,𝑥,𝑦   𝐵,𝑎,𝑖,𝑥,𝑦   𝐵,𝑏   𝐹,𝑏,𝑦   𝐺,𝑎,𝑥   𝐾,𝑎,𝑔,𝑖,𝑦   𝐾,𝑏,𝑔   𝑥,𝐾   𝑔,𝑁   ,𝑁   𝑆,𝑎,,𝑖,𝑥   𝑆,𝑏,   𝑦,𝑆   𝑍,𝑎,𝑔,𝑖,𝑦   𝑍,𝑏,,𝑥   𝜑,𝑎,𝑖,𝑥,𝑦   𝜑,𝑏
Allowed substitution hints:   𝜑(𝑔,)   𝐴(𝑔,)   𝐵(𝑔,)   𝑆(𝑔)   𝐹(𝑥,𝑔,,𝑖,𝑎)   𝐺(𝑦,𝑔,,𝑖,𝑏)   𝐾()   𝑁(𝑥,𝑦,𝑖,𝑎,𝑏)

Proof of Theorem sticksstones19
Dummy variables 𝑐 𝑑 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 sticksstones19.1 . . 3 (𝜑𝑁 ∈ ℕ0)
2 sticksstones19.2 . . 3 (𝜑𝐾 ∈ ℕ0)
3 sticksstones19.3 . . 3 𝐴 = {𝑔 ∣ (𝑔:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = 𝑁)}
4 sticksstones19.4 . . 3 𝐵 = { ∣ (:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑖) = 𝑁)}
5 sticksstones19.5 . . 3 (𝜑𝑍:(1...𝐾)–1-1-onto𝑆)
6 sticksstones19.6 . . 3 𝐹 = (𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))
71, 2, 3, 4, 5, 6sticksstones18 40048 . 2 (𝜑𝐹:𝐴𝐵)
8 sticksstones19.7 . . 3 𝐺 = (𝑏𝐵 ↦ (𝑦 ∈ (1...𝐾) ↦ (𝑏‘(𝑍𝑦))))
91, 2, 3, 4, 5, 8sticksstones17 40047 . 2 (𝜑𝐺:𝐵𝐴)
108a1i 11 . . . . 5 ((𝜑𝑐𝐴) → 𝐺 = (𝑏𝐵 ↦ (𝑦 ∈ (1...𝐾) ↦ (𝑏‘(𝑍𝑦)))))
11 simplr 765 . . . . . . 7 ((((𝜑𝑐𝐴) ∧ 𝑏 = (𝐹𝑐)) ∧ 𝑦 ∈ (1...𝐾)) → 𝑏 = (𝐹𝑐))
1211fveq1d 6758 . . . . . 6 ((((𝜑𝑐𝐴) ∧ 𝑏 = (𝐹𝑐)) ∧ 𝑦 ∈ (1...𝐾)) → (𝑏‘(𝑍𝑦)) = ((𝐹𝑐)‘(𝑍𝑦)))
1312mpteq2dva 5170 . . . . 5 (((𝜑𝑐𝐴) ∧ 𝑏 = (𝐹𝑐)) → (𝑦 ∈ (1...𝐾) ↦ (𝑏‘(𝑍𝑦))) = (𝑦 ∈ (1...𝐾) ↦ ((𝐹𝑐)‘(𝑍𝑦))))
147ffvelrnda 6943 . . . . 5 ((𝜑𝑐𝐴) → (𝐹𝑐) ∈ 𝐵)
15 fzfid 13621 . . . . . 6 ((𝜑𝑐𝐴) → (1...𝐾) ∈ Fin)
1615mptexd 7082 . . . . 5 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ ((𝐹𝑐)‘(𝑍𝑦))) ∈ V)
1710, 13, 14, 16fvmptd 6864 . . . 4 ((𝜑𝑐𝐴) → (𝐺‘(𝐹𝑐)) = (𝑦 ∈ (1...𝐾) ↦ ((𝐹𝑐)‘(𝑍𝑦))))
186a1i 11 . . . . . . . . 9 ((𝜑𝑐𝐴𝑦 ∈ (1...𝐾)) → 𝐹 = (𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥)))))
1918fveq1d 6758 . . . . . . . 8 ((𝜑𝑐𝐴𝑦 ∈ (1...𝐾)) → (𝐹𝑐) = ((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐))
2019fveq1d 6758 . . . . . . 7 ((𝜑𝑐𝐴𝑦 ∈ (1...𝐾)) → ((𝐹𝑐)‘(𝑍𝑦)) = (((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐)‘(𝑍𝑦)))
21203expa 1116 . . . . . 6 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → ((𝐹𝑐)‘(𝑍𝑦)) = (((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐)‘(𝑍𝑦)))
2221mpteq2dva 5170 . . . . 5 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ ((𝐹𝑐)‘(𝑍𝑦))) = (𝑦 ∈ (1...𝐾) ↦ (((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐)‘(𝑍𝑦))))
23 eqidd 2739 . . . . . . . . 9 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥)))) = (𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥)))))
24 simplr 765 . . . . . . . . . . 11 (((((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) ∧ 𝑎 = 𝑐) ∧ 𝑥𝑆) → 𝑎 = 𝑐)
2524fveq1d 6758 . . . . . . . . . 10 (((((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) ∧ 𝑎 = 𝑐) ∧ 𝑥𝑆) → (𝑎‘(𝑍𝑥)) = (𝑐‘(𝑍𝑥)))
2625mpteq2dva 5170 . . . . . . . . 9 ((((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) ∧ 𝑎 = 𝑐) → (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))) = (𝑥𝑆 ↦ (𝑐‘(𝑍𝑥))))
27 simplr 765 . . . . . . . . 9 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → 𝑐𝐴)
28 fzfid 13621 . . . . . . . . . . . . 13 (𝜑 → (1...𝐾) ∈ Fin)
29 f1oenfi 8926 . . . . . . . . . . . . . . 15 (((1...𝐾) ∈ Fin ∧ 𝑍:(1...𝐾)–1-1-onto𝑆) → (1...𝐾) ≈ 𝑆)
3028, 5, 29syl2anc 583 . . . . . . . . . . . . . 14 (𝜑 → (1...𝐾) ≈ 𝑆)
3130ensymd 8746 . . . . . . . . . . . . 13 (𝜑𝑆 ≈ (1...𝐾))
32 enfii 8932 . . . . . . . . . . . . 13 (((1...𝐾) ∈ Fin ∧ 𝑆 ≈ (1...𝐾)) → 𝑆 ∈ Fin)
3328, 31, 32syl2anc 583 . . . . . . . . . . . 12 (𝜑𝑆 ∈ Fin)
3433adantr 480 . . . . . . . . . . 11 ((𝜑𝑐𝐴) → 𝑆 ∈ Fin)
3534adantr 480 . . . . . . . . . 10 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → 𝑆 ∈ Fin)
3635mptexd 7082 . . . . . . . . 9 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (𝑥𝑆 ↦ (𝑐‘(𝑍𝑥))) ∈ V)
3723, 26, 27, 36fvmptd 6864 . . . . . . . 8 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → ((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐) = (𝑥𝑆 ↦ (𝑐‘(𝑍𝑥))))
3837fveq1d 6758 . . . . . . 7 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐)‘(𝑍𝑦)) = ((𝑥𝑆 ↦ (𝑐‘(𝑍𝑥)))‘(𝑍𝑦)))
3938mpteq2dva 5170 . . . . . 6 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ (((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐)‘(𝑍𝑦))) = (𝑦 ∈ (1...𝐾) ↦ ((𝑥𝑆 ↦ (𝑐‘(𝑍𝑥)))‘(𝑍𝑦))))
40 eqidd 2739 . . . . . . . . 9 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (𝑥𝑆 ↦ (𝑐‘(𝑍𝑥))) = (𝑥𝑆 ↦ (𝑐‘(𝑍𝑥))))
41 simpr 484 . . . . . . . . . . 11 ((((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) ∧ 𝑥 = (𝑍𝑦)) → 𝑥 = (𝑍𝑦))
4241fveq2d 6760 . . . . . . . . . 10 ((((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) ∧ 𝑥 = (𝑍𝑦)) → (𝑍𝑥) = (𝑍‘(𝑍𝑦)))
4342fveq2d 6760 . . . . . . . . 9 ((((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) ∧ 𝑥 = (𝑍𝑦)) → (𝑐‘(𝑍𝑥)) = (𝑐‘(𝑍‘(𝑍𝑦))))
44 f1of 6700 . . . . . . . . . . . 12 (𝑍:(1...𝐾)–1-1-onto𝑆𝑍:(1...𝐾)⟶𝑆)
455, 44syl 17 . . . . . . . . . . 11 (𝜑𝑍:(1...𝐾)⟶𝑆)
4645adantr 480 . . . . . . . . . 10 ((𝜑𝑐𝐴) → 𝑍:(1...𝐾)⟶𝑆)
4746ffvelrnda 6943 . . . . . . . . 9 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (𝑍𝑦) ∈ 𝑆)
48 fvexd 6771 . . . . . . . . 9 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (𝑐‘(𝑍‘(𝑍𝑦))) ∈ V)
4940, 43, 47, 48fvmptd 6864 . . . . . . . 8 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → ((𝑥𝑆 ↦ (𝑐‘(𝑍𝑥)))‘(𝑍𝑦)) = (𝑐‘(𝑍‘(𝑍𝑦))))
5049mpteq2dva 5170 . . . . . . 7 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ ((𝑥𝑆 ↦ (𝑐‘(𝑍𝑥)))‘(𝑍𝑦))) = (𝑦 ∈ (1...𝐾) ↦ (𝑐‘(𝑍‘(𝑍𝑦)))))
515ad2antrr 722 . . . . . . . . . . 11 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → 𝑍:(1...𝐾)–1-1-onto𝑆)
52 simpr 484 . . . . . . . . . . 11 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → 𝑦 ∈ (1...𝐾))
53 f1ocnvfv1 7129 . . . . . . . . . . 11 ((𝑍:(1...𝐾)–1-1-onto𝑆𝑦 ∈ (1...𝐾)) → (𝑍‘(𝑍𝑦)) = 𝑦)
5451, 52, 53syl2anc 583 . . . . . . . . . 10 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (𝑍‘(𝑍𝑦)) = 𝑦)
5554fveq2d 6760 . . . . . . . . 9 (((𝜑𝑐𝐴) ∧ 𝑦 ∈ (1...𝐾)) → (𝑐‘(𝑍‘(𝑍𝑦))) = (𝑐𝑦))
5655mpteq2dva 5170 . . . . . . . 8 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ (𝑐‘(𝑍‘(𝑍𝑦)))) = (𝑦 ∈ (1...𝐾) ↦ (𝑐𝑦)))
57 simpr 484 . . . . . . . . . . . . . 14 ((𝜑𝑐𝐴) → 𝑐𝐴)
583a1i 11 . . . . . . . . . . . . . 14 ((𝜑𝑐𝐴) → 𝐴 = {𝑔 ∣ (𝑔:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = 𝑁)})
5957, 58eleqtrd 2841 . . . . . . . . . . . . 13 ((𝜑𝑐𝐴) → 𝑐 ∈ {𝑔 ∣ (𝑔:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = 𝑁)})
60 vex 3426 . . . . . . . . . . . . . 14 𝑐 ∈ V
61 feq1 6565 . . . . . . . . . . . . . . 15 (𝑔 = 𝑐 → (𝑔:(1...𝐾)⟶ℕ0𝑐:(1...𝐾)⟶ℕ0))
62 simpl 482 . . . . . . . . . . . . . . . . . 18 ((𝑔 = 𝑐𝑖 ∈ (1...𝐾)) → 𝑔 = 𝑐)
6362fveq1d 6758 . . . . . . . . . . . . . . . . 17 ((𝑔 = 𝑐𝑖 ∈ (1...𝐾)) → (𝑔𝑖) = (𝑐𝑖))
6463sumeq2dv 15343 . . . . . . . . . . . . . . . 16 (𝑔 = 𝑐 → Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = Σ𝑖 ∈ (1...𝐾)(𝑐𝑖))
6564eqeq1d 2740 . . . . . . . . . . . . . . 15 (𝑔 = 𝑐 → (Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = 𝑁 ↔ Σ𝑖 ∈ (1...𝐾)(𝑐𝑖) = 𝑁))
6661, 65anbi12d 630 . . . . . . . . . . . . . 14 (𝑔 = 𝑐 → ((𝑔:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = 𝑁) ↔ (𝑐:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑐𝑖) = 𝑁)))
6760, 66elab 3602 . . . . . . . . . . . . 13 (𝑐 ∈ {𝑔 ∣ (𝑔:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑔𝑖) = 𝑁)} ↔ (𝑐:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑐𝑖) = 𝑁))
6859, 67sylib 217 . . . . . . . . . . . 12 ((𝜑𝑐𝐴) → (𝑐:(1...𝐾)⟶ℕ0 ∧ Σ𝑖 ∈ (1...𝐾)(𝑐𝑖) = 𝑁))
6968simpld 494 . . . . . . . . . . 11 ((𝜑𝑐𝐴) → 𝑐:(1...𝐾)⟶ℕ0)
70 ffn 6584 . . . . . . . . . . 11 (𝑐:(1...𝐾)⟶ℕ0𝑐 Fn (1...𝐾))
7169, 70syl 17 . . . . . . . . . 10 ((𝜑𝑐𝐴) → 𝑐 Fn (1...𝐾))
72 dffn5 6810 . . . . . . . . . 10 (𝑐 Fn (1...𝐾) ↔ 𝑐 = (𝑦 ∈ (1...𝐾) ↦ (𝑐𝑦)))
7371, 72sylib 217 . . . . . . . . 9 ((𝜑𝑐𝐴) → 𝑐 = (𝑦 ∈ (1...𝐾) ↦ (𝑐𝑦)))
7473eqcomd 2744 . . . . . . . 8 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ (𝑐𝑦)) = 𝑐)
7556, 74eqtrd 2778 . . . . . . 7 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ (𝑐‘(𝑍‘(𝑍𝑦)))) = 𝑐)
7650, 75eqtrd 2778 . . . . . 6 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ ((𝑥𝑆 ↦ (𝑐‘(𝑍𝑥)))‘(𝑍𝑦))) = 𝑐)
7739, 76eqtrd 2778 . . . . 5 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ (((𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))))‘𝑐)‘(𝑍𝑦))) = 𝑐)
7822, 77eqtrd 2778 . . . 4 ((𝜑𝑐𝐴) → (𝑦 ∈ (1...𝐾) ↦ ((𝐹𝑐)‘(𝑍𝑦))) = 𝑐)
7917, 78eqtrd 2778 . . 3 ((𝜑𝑐𝐴) → (𝐺‘(𝐹𝑐)) = 𝑐)
8079ralrimiva 3107 . 2 (𝜑 → ∀𝑐𝐴 (𝐺‘(𝐹𝑐)) = 𝑐)
816a1i 11 . . . . 5 ((𝜑𝑑𝐵) → 𝐹 = (𝑎𝐴 ↦ (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥)))))
82 simplr 765 . . . . . . 7 ((((𝜑𝑑𝐵) ∧ 𝑎 = (𝐺𝑑)) ∧ 𝑥𝑆) → 𝑎 = (𝐺𝑑))
8382fveq1d 6758 . . . . . 6 ((((𝜑𝑑𝐵) ∧ 𝑎 = (𝐺𝑑)) ∧ 𝑥𝑆) → (𝑎‘(𝑍𝑥)) = ((𝐺𝑑)‘(𝑍𝑥)))
8483mpteq2dva 5170 . . . . 5 (((𝜑𝑑𝐵) ∧ 𝑎 = (𝐺𝑑)) → (𝑥𝑆 ↦ (𝑎‘(𝑍𝑥))) = (𝑥𝑆 ↦ ((𝐺𝑑)‘(𝑍𝑥))))
859ffvelrnda 6943 . . . . 5 ((𝜑𝑑𝐵) → (𝐺𝑑) ∈ 𝐴)
8633adantr 480 . . . . . 6 ((𝜑𝑑𝐵) → 𝑆 ∈ Fin)
8786mptexd 7082 . . . . 5 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ ((𝐺𝑑)‘(𝑍𝑥))) ∈ V)
8881, 84, 85, 87fvmptd 6864 . . . 4 ((𝜑𝑑𝐵) → (𝐹‘(𝐺𝑑)) = (𝑥𝑆 ↦ ((𝐺𝑑)‘(𝑍𝑥))))
898a1i 11 . . . . . . . 8 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → 𝐺 = (𝑏𝐵 ↦ (𝑦 ∈ (1...𝐾) ↦ (𝑏‘(𝑍𝑦)))))
90 simplr 765 . . . . . . . . . 10 (((((𝜑𝑑𝐵) ∧ 𝑥𝑆) ∧ 𝑏 = 𝑑) ∧ 𝑦 ∈ (1...𝐾)) → 𝑏 = 𝑑)
9190fveq1d 6758 . . . . . . . . 9 (((((𝜑𝑑𝐵) ∧ 𝑥𝑆) ∧ 𝑏 = 𝑑) ∧ 𝑦 ∈ (1...𝐾)) → (𝑏‘(𝑍𝑦)) = (𝑑‘(𝑍𝑦)))
9291mpteq2dva 5170 . . . . . . . 8 ((((𝜑𝑑𝐵) ∧ 𝑥𝑆) ∧ 𝑏 = 𝑑) → (𝑦 ∈ (1...𝐾) ↦ (𝑏‘(𝑍𝑦))) = (𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦))))
93 simplr 765 . . . . . . . 8 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → 𝑑𝐵)
94 fzfid 13621 . . . . . . . . 9 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (1...𝐾) ∈ Fin)
9594mptexd 7082 . . . . . . . 8 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦))) ∈ V)
9689, 92, 93, 95fvmptd 6864 . . . . . . 7 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (𝐺𝑑) = (𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦))))
9796fveq1d 6758 . . . . . 6 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → ((𝐺𝑑)‘(𝑍𝑥)) = ((𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦)))‘(𝑍𝑥)))
9897mpteq2dva 5170 . . . . 5 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ ((𝐺𝑑)‘(𝑍𝑥))) = (𝑥𝑆 ↦ ((𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦)))‘(𝑍𝑥))))
99 eqidd 2739 . . . . . . . 8 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦))) = (𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦))))
100 simpr 484 . . . . . . . . . 10 ((((𝜑𝑑𝐵) ∧ 𝑥𝑆) ∧ 𝑦 = (𝑍𝑥)) → 𝑦 = (𝑍𝑥))
101100fveq2d 6760 . . . . . . . . 9 ((((𝜑𝑑𝐵) ∧ 𝑥𝑆) ∧ 𝑦 = (𝑍𝑥)) → (𝑍𝑦) = (𝑍‘(𝑍𝑥)))
102101fveq2d 6760 . . . . . . . 8 ((((𝜑𝑑𝐵) ∧ 𝑥𝑆) ∧ 𝑦 = (𝑍𝑥)) → (𝑑‘(𝑍𝑦)) = (𝑑‘(𝑍‘(𝑍𝑥))))
103 f1ocnv 6712 . . . . . . . . . . . 12 (𝑍:(1...𝐾)–1-1-onto𝑆𝑍:𝑆1-1-onto→(1...𝐾))
1045, 103syl 17 . . . . . . . . . . 11 (𝜑𝑍:𝑆1-1-onto→(1...𝐾))
105 f1of 6700 . . . . . . . . . . 11 (𝑍:𝑆1-1-onto→(1...𝐾) → 𝑍:𝑆⟶(1...𝐾))
106104, 105syl 17 . . . . . . . . . 10 (𝜑𝑍:𝑆⟶(1...𝐾))
107106adantr 480 . . . . . . . . 9 ((𝜑𝑑𝐵) → 𝑍:𝑆⟶(1...𝐾))
108107ffvelrnda 6943 . . . . . . . 8 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (𝑍𝑥) ∈ (1...𝐾))
109 fvexd 6771 . . . . . . . 8 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (𝑑‘(𝑍‘(𝑍𝑥))) ∈ V)
11099, 102, 108, 109fvmptd 6864 . . . . . . 7 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → ((𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦)))‘(𝑍𝑥)) = (𝑑‘(𝑍‘(𝑍𝑥))))
111110mpteq2dva 5170 . . . . . 6 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ ((𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦)))‘(𝑍𝑥))) = (𝑥𝑆 ↦ (𝑑‘(𝑍‘(𝑍𝑥)))))
1125ad2antrr 722 . . . . . . . . . 10 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → 𝑍:(1...𝐾)–1-1-onto𝑆)
113 simpr 484 . . . . . . . . . 10 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → 𝑥𝑆)
114 f1ocnvfv2 7130 . . . . . . . . . 10 ((𝑍:(1...𝐾)–1-1-onto𝑆𝑥𝑆) → (𝑍‘(𝑍𝑥)) = 𝑥)
115112, 113, 114syl2anc 583 . . . . . . . . 9 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (𝑍‘(𝑍𝑥)) = 𝑥)
116115fveq2d 6760 . . . . . . . 8 (((𝜑𝑑𝐵) ∧ 𝑥𝑆) → (𝑑‘(𝑍‘(𝑍𝑥))) = (𝑑𝑥))
117116mpteq2dva 5170 . . . . . . 7 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ (𝑑‘(𝑍‘(𝑍𝑥)))) = (𝑥𝑆 ↦ (𝑑𝑥)))
118 simpr 484 . . . . . . . . . . . . 13 ((𝜑𝑑𝐵) → 𝑑𝐵)
1194a1i 11 . . . . . . . . . . . . 13 ((𝜑𝑑𝐵) → 𝐵 = { ∣ (:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑖) = 𝑁)})
120118, 119eleqtrd 2841 . . . . . . . . . . . 12 ((𝜑𝑑𝐵) → 𝑑 ∈ { ∣ (:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑖) = 𝑁)})
121 vex 3426 . . . . . . . . . . . . 13 𝑑 ∈ V
122 feq1 6565 . . . . . . . . . . . . . 14 ( = 𝑑 → (:𝑆⟶ℕ0𝑑:𝑆⟶ℕ0))
123 simpl 482 . . . . . . . . . . . . . . . . 17 (( = 𝑑𝑖𝑆) → = 𝑑)
124123fveq1d 6758 . . . . . . . . . . . . . . . 16 (( = 𝑑𝑖𝑆) → (𝑖) = (𝑑𝑖))
125124sumeq2dv 15343 . . . . . . . . . . . . . . 15 ( = 𝑑 → Σ𝑖𝑆 (𝑖) = Σ𝑖𝑆 (𝑑𝑖))
126125eqeq1d 2740 . . . . . . . . . . . . . 14 ( = 𝑑 → (Σ𝑖𝑆 (𝑖) = 𝑁 ↔ Σ𝑖𝑆 (𝑑𝑖) = 𝑁))
127122, 126anbi12d 630 . . . . . . . . . . . . 13 ( = 𝑑 → ((:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑖) = 𝑁) ↔ (𝑑:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑑𝑖) = 𝑁)))
128121, 127elab 3602 . . . . . . . . . . . 12 (𝑑 ∈ { ∣ (:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑖) = 𝑁)} ↔ (𝑑:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑑𝑖) = 𝑁))
129120, 128sylib 217 . . . . . . . . . . 11 ((𝜑𝑑𝐵) → (𝑑:𝑆⟶ℕ0 ∧ Σ𝑖𝑆 (𝑑𝑖) = 𝑁))
130129simpld 494 . . . . . . . . . 10 ((𝜑𝑑𝐵) → 𝑑:𝑆⟶ℕ0)
131 ffn 6584 . . . . . . . . . 10 (𝑑:𝑆⟶ℕ0𝑑 Fn 𝑆)
132130, 131syl 17 . . . . . . . . 9 ((𝜑𝑑𝐵) → 𝑑 Fn 𝑆)
133 dffn5 6810 . . . . . . . . 9 (𝑑 Fn 𝑆𝑑 = (𝑥𝑆 ↦ (𝑑𝑥)))
134132, 133sylib 217 . . . . . . . 8 ((𝜑𝑑𝐵) → 𝑑 = (𝑥𝑆 ↦ (𝑑𝑥)))
135134eqcomd 2744 . . . . . . 7 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ (𝑑𝑥)) = 𝑑)
136117, 135eqtrd 2778 . . . . . 6 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ (𝑑‘(𝑍‘(𝑍𝑥)))) = 𝑑)
137111, 136eqtrd 2778 . . . . 5 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ ((𝑦 ∈ (1...𝐾) ↦ (𝑑‘(𝑍𝑦)))‘(𝑍𝑥))) = 𝑑)
13898, 137eqtrd 2778 . . . 4 ((𝜑𝑑𝐵) → (𝑥𝑆 ↦ ((𝐺𝑑)‘(𝑍𝑥))) = 𝑑)
13988, 138eqtrd 2778 . . 3 ((𝜑𝑑𝐵) → (𝐹‘(𝐺𝑑)) = 𝑑)
140139ralrimiva 3107 . 2 (𝜑 → ∀𝑑𝐵 (𝐹‘(𝐺𝑑)) = 𝑑)
1417, 9, 80, 1402fvidf1od 7150 1 (𝜑𝐹:𝐴1-1-onto𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  {cab 2715  Vcvv 3422   class class class wbr 5070  cmpt 5153  ccnv 5579   Fn wfn 6413  wf 6414  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  cen 8688  Fincfn 8691  1c1 10803  0cn0 12163  ...cfz 13168  Σcsu 15325
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-inf2 9329  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-oi 9199  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-fzo 13312  df-seq 13650  df-exp 13711  df-hash 13973  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-clim 15125  df-sum 15326
This theorem is referenced by:  sticksstones20  40050
  Copyright terms: Public domain W3C validator