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

Theorem hashf1lem2 14640
Description: Lemma for hashf1 14641. (Contributed by Mario Carneiro, 17-Apr-2015.)
Hypotheses
Ref Expression
hashf1lem2.1 (𝜑 → 𝐴 ∈ Fin)
hashf1lem2.2 (𝜑 → 𝐵 ∈ Fin)
hashf1lem2.3 (𝜑 → ¬ 𝑧 ∈ 𝐴)
hashf1lem2.4 (𝜑 → ((♯‘𝐴) + 1) ≤ (♯‘𝐵))
Assertion
Ref Expression
hashf1lem2 (𝜑 → (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})))
Distinct variable groups:   𝑧,𝑓   𝐴,𝑓   𝐵,𝑓   𝜑,𝑓
Allowed substitution hints:   𝜑(𝑧)   𝐴(𝑧)   𝐵(𝑧)

Proof of Theorem hashf1lem2
Dummy variables 𝑎 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ssid 3935 . 2 {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}
2 hashf1lem2.2 . . . . 5 (𝜑 → 𝐵 ∈ Fin)
3 hashf1lem2.1 . . . . 5 (𝜑 → 𝐴 ∈ Fin)
4 mapfi 9373 . . . . 5 ((𝐵 ∈ Fin ∧ 𝐴 ∈ Fin) → (𝐵 ↑m 𝐴) ∈ Fin)
52, 3, 4syl2anc 596 . . . 4 (𝜑 → (𝐵 ↑m 𝐴) ∈ Fin)
6 f1f 6806 . . . . . 6 (𝑓:𝐴⟶1-1𝐵 → 𝑓:𝐴⟶𝐵)
72, 3elmapd 8896 . . . . . 6 (𝜑 → (𝑓 ∈ (𝐵 ↑m 𝐴) ↔ 𝑓:𝐴⟶𝐵))
86, 7imbitrrid 249 . . . . 5 (𝜑 → (𝑓:𝐴⟶1-1𝐵 → 𝑓 ∈ (𝐵 ↑m 𝐴)))
98abssdv 3995 . . . 4 (𝜑 → {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ (𝐵 ↑m 𝐴))
105, 9ssfid 9296 . . 3 (𝜑 → {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ∈ Fin)
11 sseq1 3938 . . . . . 6 (𝑥 = ∅ → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ ∅ ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
12 eleq2 2853 . . . . . . . . . . . . 13 (𝑥 = ∅ → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ ∅))
13 noel 4286 . . . . . . . . . . . . . 14 ¬ (𝑓 ↾ 𝐴) ∈ ∅
1413pm2.21i 120 . . . . . . . . . . . . 13 ((𝑓 ↾ 𝐴) ∈ ∅ → 𝑓 ∈ ∅)
1512, 14biimtrdi 256 . . . . . . . . . . . 12 (𝑥 = ∅ → ((𝑓 ↾ 𝐴) ∈ 𝑥 → 𝑓 ∈ ∅))
1615adantrd 497 . . . . . . . . . . 11 (𝑥 = ∅ → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) → 𝑓 ∈ ∅))
1716abssdv 3995 . . . . . . . . . 10 (𝑥 = ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ ∅)
18 ss0 4355 . . . . . . . . . 10 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = ∅)
1917, 18syl 18 . . . . . . . . 9 (𝑥 = ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = ∅)
2019fveq2d 6918 . . . . . . . 8 (𝑥 = ∅ → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘∅))
21 hash0 14550 . . . . . . . 8 (♯‘∅) = 0
2220, 21eqtrdi 2814 . . . . . . 7 (𝑥 = ∅ → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = 0)
23 fveq2 6914 . . . . . . . . 9 (𝑥 = ∅ → (♯‘𝑥) = (♯‘∅))
2423, 21eqtrdi 2814 . . . . . . . 8 (𝑥 = ∅ → (♯‘𝑥) = 0)
2524oveq2d 7465 . . . . . . 7 (𝑥 = ∅ → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · 0))
2622, 25eqeq12d 2779 . . . . . 6 (𝑥 = ∅ → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) ↔ 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0)))
2711, 26imbi12d 347 . . . . 5 (𝑥 = ∅ → ((𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥))) ↔ (∅ ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0))))
2827imbi2d 343 . . . 4 (𝑥 = ∅ → ((𝜑 → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)))) ↔ (𝜑 → (∅ ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0)))))
29 sseq1 3938 . . . . . 6 (𝑥 = 𝑦 → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ 𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
30 eleq2 2853 . . . . . . . . . 10 (𝑥 = 𝑦 → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ 𝑦))
3130anbi1d 643 . . . . . . . . 9 (𝑥 = 𝑦 → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
3231abbidv 2829 . . . . . . . 8 (𝑥 = 𝑦 → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})
3332fveq2d 6918 . . . . . . 7 (𝑥 = 𝑦 → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
34 fveq2 6914 . . . . . . . 8 (𝑥 = 𝑦 → (♯‘𝑥) = (♯‘𝑦))
3534oveq2d 7465 . . . . . . 7 (𝑥 = 𝑦 → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)))
3633, 35eqeq12d 2779 . . . . . 6 (𝑥 = 𝑦 → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) ↔ (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦))))
3729, 36imbi12d 347 . . . . 5 (𝑥 = 𝑦 → ((𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥))) ↔ (𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)))))
3837imbi2d 343 . . . 4 (𝑥 = 𝑦 → ((𝜑 → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)))) ↔ (𝜑 → (𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦))))))
39 sseq1 3938 . . . . . 6 (𝑥 = (𝑦 ∪ {𝑎}) → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
40 eleq2 2853 . . . . . . . . . 10 (𝑥 = (𝑦 ∪ {𝑎}) → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎})))
4140anbi1d 643 . . . . . . . . 9 (𝑥 = (𝑦 ∪ {𝑎}) → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
4241abbidv 2829 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑎}) → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})
4342fveq2d 6918 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑎}) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
44 fveq2 6914 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑎}) → (♯‘𝑥) = (♯‘(𝑦 ∪ {𝑎})))
4544oveq2d 7465 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑎}) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))))
4643, 45eqeq12d 2779 . . . . . 6 (𝑥 = (𝑦 ∪ {𝑎}) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) ↔ (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎})))))
4739, 46imbi12d 347 . . . . 5 (𝑥 = (𝑦 ∪ {𝑎}) → ((𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥))) ↔ ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))))))
4847imbi2d 343 . . . 4 (𝑥 = (𝑦 ∪ {𝑎}) → ((𝜑 → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)))) ↔ (𝜑 → ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎})))))))
49 sseq1 3938 . . . . . 6 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
50 f1eq1 6801 . . . . . . . . . . 11 (𝑓 = 𝑦 → (𝑓:𝐴⟶1-1𝐵 ↔ 𝑦:𝐴⟶1-1𝐵))
5150cbvabv 2834 . . . . . . . . . 10 {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵}
5251eqeq2i 2776 . . . . . . . . 9 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ 𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵})
53 ssun1 4179 . . . . . . . . . . . . . . 15 𝐴 ⊆ (𝐴 ∪ {𝑧})
54 f1ssres 6815 . . . . . . . . . . . . . . 15 ((𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 ∧ 𝐴 ⊆ (𝐴 ∪ {𝑧})) → (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵)
5553, 54mpan2 704 . . . . . . . . . . . . . 14 (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 → (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵)
56 vex 3458 . . . . . . . . . . . . . . . 16 𝑓 ∈ V
5756resex 6034 . . . . . . . . . . . . . . 15 (𝑓 ↾ 𝐴) ∈ V
58 f1eq1 6801 . . . . . . . . . . . . . . 15 (𝑦 = (𝑓 ↾ 𝐴) → (𝑦:𝐴⟶1-1𝐵 ↔ (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵))
5957, 58elab 3636 . . . . . . . . . . . . . 14 ((𝑓 ↾ 𝐴) ∈ {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} ↔ (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵)
6055, 59sylibr 237 . . . . . . . . . . . . 13 (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 → (𝑓 ↾ 𝐴) ∈ {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵})
61 eleq2 2853 . . . . . . . . . . . . 13 (𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵}))
6260, 61imbitrrid 249 . . . . . . . . . . . 12 (𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} → (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 → (𝑓 ↾ 𝐴) ∈ 𝑥))
6362pm4.71rd 572 . . . . . . . . . . 11 (𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} → (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 ↔ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
6463bicomd 226 . . . . . . . . . 10 (𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))
6564abbidv 2829 . . . . . . . . 9 (𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵})
6652, 65sylbi 220 . . . . . . . 8 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵})
6766fveq2d 6918 . . . . . . 7 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}))
68 fveq2 6914 . . . . . . . 8 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘𝑥) = (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
6968oveq2d 7465 . . . . . . 7 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})))
7067, 69eqeq12d 2779 . . . . . 6 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) ↔ (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))))
7149, 70imbi12d 347 . . . . 5 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → ((𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥))) ↔ ({𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})))))
7271imbi2d 343 . . . 4 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → ((𝜑 → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)))) ↔ (𝜑 → ({𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))))))
73 hashcl 14539 . . . . . . . . . 10 (𝐵 ∈ Fin → (♯‘𝐵) ∈ ℕ0)
742, 73syl 18 . . . . . . . . 9 (𝜑 → (♯‘𝐵) ∈ ℕ0)
7574nn0cnd 12707 . . . . . . . 8 (𝜑 → (♯‘𝐵) ∈ ℂ)
76 hashcl 14539 . . . . . . . . . 10 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
773, 76syl 18 . . . . . . . . 9 (𝜑 → (♯‘𝐴) ∈ ℕ0)
7877nn0cnd 12707 . . . . . . . 8 (𝜑 → (♯‘𝐴) ∈ ℂ)
7975, 78subcld 11706 . . . . . . 7 (𝜑 → ((♯‘𝐵) − (♯‘𝐴)) ∈ ℂ)
8079mul01d 11546 . . . . . 6 (𝜑 → (((♯‘𝐵) − (♯‘𝐴)) · 0) = 0)
8180eqcomd 2769 . . . . 5 (𝜑 → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0))
8281a1d 26 . . . 4 (𝜑 → (∅ ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0)))
83 ssun1 4179 . . . . . . . . 9 𝑦 ⊆ (𝑦 ∪ {𝑎})
84 sstr 3921 . . . . . . . . 9 ((𝑦 ⊆ (𝑦 ∪ {𝑎}) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → 𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
8583, 84mpan 703 . . . . . . . 8 ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → 𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
8685imim1i 64 . . . . . . 7 ((𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦))) → ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦))))
87 oveq1 7456 . . . . . . . . . 10 ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
88 elun 4155 . . . . . . . . . . . . . . . . . . 19 ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) ∈ {𝑎}))
8957elsn 4599 . . . . . . . . . . . . . . . . . . . 20 ((𝑓 ↾ 𝐴) ∈ {𝑎} ↔ (𝑓 ↾ 𝐴) = 𝑎)
9089orbi2i 926 . . . . . . . . . . . . . . . . . . 19 (((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) ∈ {𝑎}) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎))
9188, 90bitri 278 . . . . . . . . . . . . . . . . . 18 ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎))
9291anbi1i 636 . . . . . . . . . . . . . . . . 17 (((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))
93 andir 1026 . . . . . . . . . . . . . . . . 17 ((((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
9492, 93bitri 278 . . . . . . . . . . . . . . . 16 (((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
9594abbii 2830 . . . . . . . . . . . . . . 15 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))}
96 unab 4256 . . . . . . . . . . . . . . 15 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))}
9795, 96eqtr4i 2789 . . . . . . . . . . . . . 14 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})
9897fveq2i 6917 . . . . . . . . . . . . 13 (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
99 snfi 9107 . . . . . . . . . . . . . . . . . . 19 {𝑧} ∈ Fin
100 unfi 9222 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ Fin ∧ {𝑧} ∈ Fin) → (𝐴 ∪ {𝑧}) ∈ Fin)
1013, 99, 100sylancl 598 . . . . . . . . . . . . . . . . . 18 (𝜑 → (𝐴 ∪ {𝑧}) ∈ Fin)
102 mapvalg 8892 . . . . . . . . . . . . . . . . . 18 ((𝐵 ∈ Fin ∧ (𝐴 ∪ {𝑧}) ∈ Fin) → (𝐵 ↑m (𝐴 ∪ {𝑧})) = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵})
1032, 101, 102syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ↑m (𝐴 ∪ {𝑧})) = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵})
104 mapfi 9373 . . . . . . . . . . . . . . . . . 18 ((𝐵 ∈ Fin ∧ (𝐴 ∪ {𝑧}) ∈ Fin) → (𝐵 ↑m (𝐴 ∪ {𝑧})) ∈ Fin)
1052, 101, 104syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ↑m (𝐴 ∪ {𝑧})) ∈ Fin)
106103, 105eqeltrrd 2865 . . . . . . . . . . . . . . . 16 (𝜑 → {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵} ∈ Fin)
107 f1f 6806 . . . . . . . . . . . . . . . . . 18 (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 → 𝑓:(𝐴 ∪ {𝑧})⟶𝐵)
108107adantl 487 . . . . . . . . . . . . . . . . 17 (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) → 𝑓:(𝐴 ∪ {𝑧})⟶𝐵)
109108ss2abi 3994 . . . . . . . . . . . . . . . 16 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}
110 ssfi 9224 . . . . . . . . . . . . . . . 16 (({𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵} ∈ Fin ∧ {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}) → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin)
111106, 109, 110sylancl 598 . . . . . . . . . . . . . . 15 (𝜑 → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin)
112111adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin)
113107adantl 487 . . . . . . . . . . . . . . . . 17 (((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) → 𝑓:(𝐴 ∪ {𝑧})⟶𝐵)
114113ss2abi 3994 . . . . . . . . . . . . . . . 16 {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}
115 ssfi 9224 . . . . . . . . . . . . . . . 16 (({𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵} ∈ Fin ∧ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}) → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin)
116106, 114, 115sylancl 598 . . . . . . . . . . . . . . 15 (𝜑 → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin)
117116adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin)
118 inab 4257 . . . . . . . . . . . . . . 15 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))}
119 simprlr 792 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ¬ 𝑎 ∈ 𝑦)
120 abn0 4337 . . . . . . . . . . . . . . . . . 18 ({𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))} ≠ ∅ ↔ ∃𝑓(((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
121 simprl 783 . . . . . . . . . . . . . . . . . . . 20 ((((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → (𝑓 ↾ 𝐴) = 𝑎)
122 simpll 779 . . . . . . . . . . . . . . . . . . . 20 ((((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → (𝑓 ↾ 𝐴) ∈ 𝑦)
123121, 122eqeltrrd 2865 . . . . . . . . . . . . . . . . . . 19 ((((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝑎 ∈ 𝑦)
124123exlimiv 1965 . . . . . . . . . . . . . . . . . 18 (∃𝑓(((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝑎 ∈ 𝑦)
125120, 124sylbi 220 . . . . . . . . . . . . . . . . 17 ({𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))} ≠ ∅ → 𝑎 ∈ 𝑦)
126125necon1bi 2987 . . . . . . . . . . . . . . . 16 (¬ 𝑎 ∈ 𝑦 → {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))} = ∅)
127119, 126syl 18 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))} = ∅)
128118, 127eqtrid 2810 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ∅)
129 hashun 14565 . . . . . . . . . . . . . 14 (({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin ∧ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin ∧ ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ∅) → (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})))
130112, 117, 128, 129syl3anc 1399 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})))
13198, 130eqtrid 2810 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})))
132 simpr 490 . . . . . . . . . . . . . . . . 17 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
133132unssbd 4195 . . . . . . . . . . . . . . . 16 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → {𝑎} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
134 vex 3458 . . . . . . . . . . . . . . . . 17 𝑎 ∈ V
135134snss 4745 . . . . . . . . . . . . . . . 16 (𝑎 ∈ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ {𝑎} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
136133, 135sylibr 237 . . . . . . . . . . . . . . 15 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → 𝑎 ∈ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
137 f1eq1 6801 . . . . . . . . . . . . . . . 16 (𝑓 = 𝑎 → (𝑓:𝐴⟶1-1𝐵 ↔ 𝑎:𝐴⟶1-1𝐵))
138134, 137elab 3636 . . . . . . . . . . . . . . 15 (𝑎 ∈ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ 𝑎:𝐴⟶1-1𝐵)
139136, 138sylib 221 . . . . . . . . . . . . . 14 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → 𝑎:𝐴⟶1-1𝐵)
14078adantr 486 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘𝐴) ∈ ℂ)
141116adantr 486 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin)
142 hashcl 14539 . . . . . . . . . . . . . . . . . 18 ({𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) ∈ ℕ0)
143141, 142syl 18 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) ∈ ℕ0)
144143nn0cnd 12707 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) ∈ ℂ)
145140, 144pncan2d 11708 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) − (♯‘𝐴)) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
146 f1f1orn 6864 . . . . . . . . . . . . . . . . . . . . 21 (𝑎:𝐴⟶1-1𝐵 → 𝑎:𝐴⟶1-1ontoran 𝑎)
147146adantl 487 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → 𝑎:𝐴⟶1-1ontoran 𝑎)
148 f1oen3g 9029 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 ∈ V ∧ 𝑎:𝐴⟶1-1ontoran 𝑎) → 𝐴 ≈ ran 𝑎)
149134, 147, 148sylancr 599 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → 𝐴 ≈ ran 𝑎)
150 hasheni 14531 . . . . . . . . . . . . . . . . . . 19 (𝐴 ≈ ran 𝑎 → (♯‘𝐴) = (♯‘ran 𝑎))
151149, 150syl 18 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘𝐴) = (♯‘ran 𝑎))
1523adantr 486 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → 𝐴 ∈ Fin)
1532adantr 486 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → 𝐵 ∈ Fin)
154 hashf1lem2.3 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → ¬ 𝑧 ∈ 𝐴)
155154adantr 486 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ¬ 𝑧 ∈ 𝐴)
156 hashf1lem2.4 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → ((♯‘𝐴) + 1) ≤ (♯‘𝐵))
157156adantr 486 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ((♯‘𝐴) + 1) ≤ (♯‘𝐵))
158 simpr 490 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → 𝑎:𝐴⟶1-1𝐵)
159152, 153, 155, 157, 158hashf1lem1 14639 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ≈ (𝐵 ∖ ran 𝑎))
160 hasheni 14531 . . . . . . . . . . . . . . . . . . 19 ({𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ≈ (𝐵 ∖ ran 𝑎) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘(𝐵 ∖ ran 𝑎)))
161159, 160syl 18 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘(𝐵 ∖ ran 𝑎)))
162151, 161oveq12d 7467 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
163 f1f 6806 . . . . . . . . . . . . . . . . . . . . 21 (𝑎:𝐴⟶1-1𝐵 → 𝑎:𝐴⟶𝐵)
164163frnd 6746 . . . . . . . . . . . . . . . . . . . 20 (𝑎:𝐴⟶1-1𝐵 → ran 𝑎 ⊆ 𝐵)
165164adantl 487 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ran 𝑎 ⊆ 𝐵)
166153, 165ssfid 9296 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ran 𝑎 ∈ Fin)
167 diffi 9226 . . . . . . . . . . . . . . . . . . 19 (𝐵 ∈ Fin → (𝐵 ∖ ran 𝑎) ∈ Fin)
168153, 167syl 18 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (𝐵 ∖ ran 𝑎) ∈ Fin)
169 disjdif 4429 . . . . . . . . . . . . . . . . . . 19 (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅
170169a1i 11 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅)
171 hashun 14565 . . . . . . . . . . . . . . . . . 18 ((ran 𝑎 ∈ Fin ∧ (𝐵 ∖ ran 𝑎) ∈ Fin ∧ (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
172166, 168, 170, 171syl3anc 1399 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
173 undif 4441 . . . . . . . . . . . . . . . . . . 19 (ran 𝑎 ⊆ 𝐵 ↔ (ran 𝑎 ∪ (𝐵 ∖ ran 𝑎)) = 𝐵)
174165, 173sylib 221 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (ran 𝑎 ∪ (𝐵 ∖ ran 𝑎)) = 𝐵)
175174fveq2d 6918 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = (♯‘𝐵))
176162, 172, 1753eqtr2d 2804 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = (♯‘𝐵))
177176oveq1d 7464 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) − (♯‘𝐴)) = ((♯‘𝐵) − (♯‘𝐴)))
178145, 177eqtr3d 2800 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘𝐵) − (♯‘𝐴)))
179139, 178sylan2 605 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘𝐵) − (♯‘𝐴)))
180179oveq2d 7465 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))))
181131, 180eqtrd 2798 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))))
182 hashunsng 14575 . . . . . . . . . . . . . . 15 (𝑎 ∈ V → ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1)))
183182elv 3459 . . . . . . . . . . . . . 14 ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1))
184183ad2antrl 741 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1))
185184oveq2d 7465 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))) = (((♯‘𝐵) − (♯‘𝐴)) · ((♯‘𝑦) + 1)))
18679adantr 486 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((♯‘𝐵) − (♯‘𝐴)) ∈ ℂ)
187 simprll 791 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → 𝑦 ∈ Fin)
188 hashcl 14539 . . . . . . . . . . . . . . 15 (𝑦 ∈ Fin → (♯‘𝑦) ∈ ℕ0)
189187, 188syl 18 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘𝑦) ∈ ℕ0)
190189nn0cnd 12707 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘𝑦) ∈ ℂ)
191 1cnd 11339 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → 1 ∈ ℂ)
192186, 190, 191adddid 11370 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · ((♯‘𝑦) + 1)) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + (((♯‘𝐵) − (♯‘𝐴)) · 1)))
193186mulridd 11363 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · 1) = ((♯‘𝐵) − (♯‘𝐴)))
194193oveq2d 7465 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + (((♯‘𝐵) − (♯‘𝐴)) · 1)) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
195185, 192, 1943eqtrd 2802 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
196181, 195eqeq12d 2779 . . . . . . . . . 10 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))) ↔ ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴)))))
19787, 196imbitrrid 249 . . . . . . . . 9 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎})))))
198197expr 462 . . . . . . . 8 ((𝜑 ∧ (𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦)) → ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))))))
199198a2d 30 . . . . . . 7 ((𝜑 ∧ (𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦)) → (((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦))) → ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))))))
20086, 199syl5 35 . . . . . 6 ((𝜑 ∧ (𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦)) → ((𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦))) → ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))))))
201200expcom 419 . . . . 5 ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → (𝜑 → ((𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦))) → ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎})))))))
202201a2d 30 . . . 4 ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → ((𝜑 → (𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)))) → (𝜑 → ((𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎})))))))
20328, 38, 48, 72, 82, 202findcard2s 9217 . . 3 ({𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ∈ Fin → (𝜑 → ({𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})))))
20410, 203mpcom 39 . 2 (𝜑 → ({𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))))
2051, 204mpi 21 1 (𝜑 → (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∨ wo 861   = wceq 1570  ∃wex 1812   ∈ wcel 2147  {cab 2741   ≠ wne 2959  Vcvv 3454   ⊆ wss 3900   ∖ cdif 4048   ∩ cin 4092   ∪ cun 4152  ∅c0 4281  {csn 4588   class class class wbr 5106  ran crn 5657   ↾ cres 5658  ⟶wf 6560  ⟶1-1wf1 6561  ⟶1-1ontowf1o 6563  ‘cfv 6564  (class class class)co 7449   ↑m cmap 8883   ≈ cen 9006  Fincfn 9009  ℂcc 11235  0cc0 11237  1c1 11238   + caddc 11240   · cmul 11242   ≤ cle 11381   − cmin 11578  ℕ0cn0 12644  ♯chash 14513
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5236  ax-sep 5253  ax-nul 5264  ax-pow 5332  ax-pr 5396  ax-un 7781  ax-cnex 11293  ax-resscn 11294  ax-1cn 11295  ax-icn 11296  ax-addcl 11297  ax-addrcl 11298  ax-mulcl 11299  ax-mulrcl 11300  ax-mulcom 11301  ax-addass 11302  ax-mulass 11303  ax-distr 11304  ax-i2m1 11305  ax-1ne0 11306  ax-1rid 11307  ax-rnegex 11308  ax-rrecex 11309  ax-cnre 11310  ax-pre-lttri 11311  ax-pre-lttrn 11312  ax-pre-ltadd 11313  ax-pre-mulgt0 11314
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-int 4911  df-iun 4956  df-br 5107  df-opab 5172  df-mpt 5191  df-tr 5217  df-id 5551  df-eprel 5556  df-po 5564  df-so 5565  df-fr 5609  df-we 5611  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-rn 5667  df-res 5668  df-ima 5669  df-pred 6328  df-ord 6389  df-on 6390  df-lim 6391  df-suc 6392  df-iota 6518  df-fun 6566  df-fn 6567  df-f 6568  df-f1 6569  df-fo 6570  df-f1o 6571  df-fv 6572  df-riota 7406  df-ov 7452  df-oprab 7453  df-mpo 7454  df-om 7910  df-1st 8033  df-2nd 8034  df-frecs 8335  df-wrecs 8366  df-recs 8415  df-rdg 8454  df-1o 8512  df-oadd 8516  df-er 8753  df-map 8885  df-pm 8886  df-en 9010  df-dom 9011  df-sdom 9012  df-fin 9013  df-dju 10017  df-card 10055  df-pnf 11382  df-mnf 11383  df-xr 11384  df-ltxr 11385  df-le 11386  df-sub 11580  df-neg 11581  df-nn 12374  df-n0 12645  df-z 12732  df-uz 13004  df-fz 13678  df-hash 14514
This theorem is used by:  hashf1  14641
  Copyright terms: Public domain W3C validator