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

Theorem hashf1lem2 14594
Description: Lemma for hashf1 14595. (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 3953 . 2 {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}
2 hashf1lem2.2 . . . . 5 (𝜑 → 𝐵 ∈ Fin)
3 hashf1lem2.1 . . . . 5 (𝜑 → 𝐴 ∈ Fin)
4 mapfi 9330 . . . . 5 ((𝐵 ∈ Fin ∧ 𝐴 ∈ Fin) → (𝐵 ↑m 𝐴) ∈ Fin)
52, 3, 4syl2anc 596 . . . 4 (𝜑 → (𝐵 ↑m 𝐴) ∈ Fin)
6 f1f 6776 . . . . . 6 (𝑓:𝐴–1-1→𝐵 → 𝑓:𝐴⟶𝐵)
72, 3elmapd 8853 . . . . . 6 (𝜑 → (𝑓 ∈ (𝐵 ↑m 𝐴) ↔ 𝑓:𝐴⟶𝐵))
86, 7imbitrrid 249 . . . . 5 (𝜑 → (𝑓:𝐴–1-1→𝐵 → 𝑓 ∈ (𝐵 ↑m 𝐴)))
98abssdv 4015 . . . 4 (𝜑 → {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ⊆ (𝐵 ↑m 𝐴))
105, 9ssfid 9253 . . 3 (𝜑 → {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ∈ Fin)
11 sseq1 3956 . . . . . 6 (𝑥 = ∅ → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ↔ ∅ ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}))
12 eleq2 2850 . . . . . . . . . . . . 13 (𝑥 = ∅ → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ ∅))
13 noel 4284 . . . . . . . . . . . . . 14 ¬ (𝑓 ↾ 𝐴) ∈ ∅
1413pm2.21i 120 . . . . . . . . . . . . 13 ((𝑓 ↾ 𝐴) ∈ ∅ → 𝑓 ∈ ∅)
1512, 14biimtrdi 256 . . . . . . . . . . . 12 (𝑥 = ∅ → ((𝑓 ↾ 𝐴) ∈ 𝑥 → 𝑓 ∈ ∅))
1615adantrd 497 . . . . . . . . . . 11 (𝑥 = ∅ → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) → 𝑓 ∈ ∅))
1716abssdv 4015 . . . . . . . . . 10 (𝑥 = ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ⊆ ∅)
18 ss0 4352 . . . . . . . . . 10 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ⊆ ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = ∅)
1917, 18syl 18 . . . . . . . . 9 (𝑥 = ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = ∅)
2019fveq2d 6887 . . . . . . . 8 (𝑥 = ∅ → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (♯‘∅))
21 hash0 14504 . . . . . . . 8 (♯‘∅) = 0
2220, 21eqtrdi 2812 . . . . . . 7 (𝑥 = ∅ → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = 0)
23 fveq2 6883 . . . . . . . . 9 (𝑥 = ∅ → (♯‘𝑥) = (♯‘∅))
2423, 21eqtrdi 2812 . . . . . . . 8 (𝑥 = ∅ → (♯‘𝑥) = 0)
2524oveq2d 7434 . . . . . . 7 (𝑥 = ∅ → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · 0))
2622, 25eqeq12d 2777 . . . . . 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 3956 . . . . . 6 (𝑥 = 𝑦 → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ↔ 𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}))
30 eleq2 2850 . . . . . . . . . 10 (𝑥 = 𝑦 → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ 𝑦))
3130anbi1d 643 . . . . . . . . 9 (𝑥 = 𝑦 → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)))
3231abbidv 2827 . . . . . . . 8 (𝑥 = 𝑦 → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})
3332fveq2d 6887 . . . . . . 7 (𝑥 = 𝑦 → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}))
34 fveq2 6883 . . . . . . . 8 (𝑥 = 𝑦 → (♯‘𝑥) = (♯‘𝑦))
3534oveq2d 7434 . . . . . . 7 (𝑥 = 𝑦 → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)))
3633, 35eqeq12d 2777 . . . . . 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 3956 . . . . . 6 (𝑥 = (𝑦 ∪ {𝑎}) → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ↔ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}))
40 eleq2 2850 . . . . . . . . . 10 (𝑥 = (𝑦 ∪ {𝑎}) → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎})))
4140anbi1d 643 . . . . . . . . 9 (𝑥 = (𝑦 ∪ {𝑎}) → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ↔ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)))
4241abbidv 2827 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑎}) → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})
4342fveq2d 6887 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑎}) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}))
44 fveq2 6883 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑎}) → (♯‘𝑥) = (♯‘(𝑦 ∪ {𝑎})))
4544oveq2d 7434 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑎}) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))))
4643, 45eqeq12d 2777 . . . . . 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 3956 . . . . . 6 (𝑥 = {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ↔ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}))
50 f1eq1 6771 . . . . . . . . . . 11 (𝑓 = 𝑦 → (𝑓:𝐴–1-1→𝐵 ↔ 𝑦:𝐴–1-1→𝐵))
5150cbvabv 2831 . . . . . . . . . 10 {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} = {𝑦 ∣ 𝑦:𝐴–1-1→𝐵}
5251eqeq2i 2774 . . . . . . . . 9 (𝑥 = {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ↔ 𝑥 = {𝑦 ∣ 𝑦:𝐴–1-1→𝐵})
53 ssun1 4124 . . . . . . . . . . . . . . 15 𝐴 ⊆ (𝐴 ∪ {𝑧})
54 f1ssres 6785 . . . . . . . . . . . . . . 15 ((𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵 ∧ 𝐴 ⊆ (𝐴 ∪ {𝑧})) → (𝑓 ↾ 𝐴):𝐴–1-1→𝐵)
5553, 54mpan2 704 . . . . . . . . . . . . . 14 (𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵 → (𝑓 ↾ 𝐴):𝐴–1-1→𝐵)
56 vex 3455 . . . . . . . . . . . . . . . 16 𝑓 ∈ V
5756resex 6018 . . . . . . . . . . . . . . 15 (𝑓 ↾ 𝐴) ∈ V
58 f1eq1 6771 . . . . . . . . . . . . . . 15 (𝑦 = (𝑓 ↾ 𝐴) → (𝑦:𝐴–1-1→𝐵 ↔ (𝑓 ↾ 𝐴):𝐴–1-1→𝐵))
5957, 58elab 3633 . . . . . . . . . . . . . 14 ((𝑓 ↾ 𝐴) ∈ {𝑦 ∣ 𝑦:𝐴–1-1→𝐵} ↔ (𝑓 ↾ 𝐴):𝐴–1-1→𝐵)
6055, 59sylibr 237 . . . . . . . . . . . . 13 (𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵 → (𝑓 ↾ 𝐴) ∈ {𝑦 ∣ 𝑦:𝐴–1-1→𝐵})
61 eleq2 2850 . . . . . . . . . . . . 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 2827 . . . . . . . . 9 (𝑥 = {𝑦 ∣ 𝑦:𝐴–1-1→𝐵} → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵})
6652, 65sylbi 220 . . . . . . . 8 (𝑥 = {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵})
6766fveq2d 6887 . . . . . . 7 (𝑥 = {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵}))
68 fveq2 6883 . . . . . . . 8 (𝑥 = {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} → (♯‘𝑥) = (♯‘{𝑓 ∣ 𝑓:𝐴–1-1→𝐵}))
6968oveq2d 7434 . . . . . . 7 (𝑥 = {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴–1-1→𝐵})))
7067, 69eqeq12d 2777 . . . . . 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 14493 . . . . . . . . . 10 (𝐵 ∈ Fin → (♯‘𝐵) ∈ ℕ0)
742, 73syl 18 . . . . . . . . 9 (𝜑 → (♯‘𝐵) ∈ ℕ0)
7574nn0cnd 12662 . . . . . . . 8 (𝜑 → (♯‘𝐵) ∈ ℂ)
76 hashcl 14493 . . . . . . . . . 10 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
773, 76syl 18 . . . . . . . . 9 (𝜑 → (♯‘𝐴) ∈ ℕ0)
7877nn0cnd 12662 . . . . . . . 8 (𝜑 → (♯‘𝐴) ∈ ℂ)
7975, 78subcld 11662 . . . . . . 7 (𝜑 → ((♯‘𝐵) − (♯‘𝐴)) ∈ ℂ)
8079mul01d 11502 . . . . . 6 (𝜑 → (((♯‘𝐵) − (♯‘𝐴)) · 0) = 0)
8180eqcomd 2767 . . . . 5 (𝜑 → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0))
8281a1d 26 . . . 4 (𝜑 → (∅ ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0)))
83 ssun1 4124 . . . . . . . . 9 𝑦 ⊆ (𝑦 ∪ {𝑎})
84 sstr 3939 . . . . . . . . 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 7425 . . . . . . . . . 10 ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
88 elun 4100 . . . . . . . . . . . . . . . . . . 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 2828 . . . . . . . . . . . . . . 15 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵))}
96 unab 4254 . . . . . . . . . . . . . . 15 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵))}
9795, 96eqtr4i 2787 . . . . . . . . . . . . . 14 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} = ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})
9897fveq2i 6886 . . . . . . . . . . . . 13 (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}))
99 snfi 9064 . . . . . . . . . . . . . . . . . . 19 {𝑧} ∈ Fin
100 unfi 9179 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ Fin ∧ {𝑧} ∈ Fin) → (𝐴 ∪ {𝑧}) ∈ Fin)
1013, 99, 100sylancl 598 . . . . . . . . . . . . . . . . . 18 (𝜑 → (𝐴 ∪ {𝑧}) ∈ Fin)
102 mapvalg 8849 . . . . . . . . . . . . . . . . . 18 ((𝐵 ∈ Fin ∧ (𝐴 ∪ {𝑧}) ∈ Fin) → (𝐵 ↑m (𝐴 ∪ {𝑧})) = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵})
1032, 101, 102syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ↑m (𝐴 ∪ {𝑧})) = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵})
104 mapfi 9330 . . . . . . . . . . . . . . . . . 18 ((𝐵 ∈ Fin ∧ (𝐴 ∪ {𝑧}) ∈ Fin) → (𝐵 ↑m (𝐴 ∪ {𝑧})) ∈ Fin)
1052, 101, 104syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ↑m (𝐴 ∪ {𝑧})) ∈ Fin)
106103, 105eqeltrrd 2862 . . . . . . . . . . . . . . . 16 (𝜑 → {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵} ∈ Fin)
107 f1f 6776 . . . . . . . . . . . . . . . . . 18 (𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵 → 𝑓:(𝐴 ∪ {𝑧})⟶𝐵)
108107adantl 487 . . . . . . . . . . . . . . . . 17 (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) → 𝑓:(𝐴 ∪ {𝑧})⟶𝐵)
109108ss2abi 4014 . . . . . . . . . . . . . . . 16 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}
110 ssfi 9181 . . . . . . . . . . . . . . . 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 4014 . . . . . . . . . . . . . . . 16 {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}
115 ssfi 9181 . . . . . . . . . . . . . . . 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 4255 . . . . . . . . . . . . . . 15 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵))}
119 simprlr 792 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → ¬ 𝑎 ∈ 𝑦)
120 abn0 4334 . . . . . . . . . . . . . . . . . 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 2862 . . . . . . . . . . . . . . . . . . 19 ((((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)) → 𝑎 ∈ 𝑦)
124123exlimiv 1963 . . . . . . . . . . . . . . . . . 18 (∃𝑓(((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)) → 𝑎 ∈ 𝑦)
125120, 124sylbi 220 . . . . . . . . . . . . . . . . 17 ({𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵))} ≠ ∅ → 𝑎 ∈ 𝑦)
126125necon1bi 2984 . . . . . . . . . . . . . . . 16 (¬ 𝑎 ∈ 𝑦 → {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵))} = ∅)
127119, 126syl 18 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵))} = ∅)
128118, 127eqtrid 2808 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = ∅)
129 hashun 14519 . . . . . . . . . . . . . 14 (({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∈ Fin ∧ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∈ Fin ∧ ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = ∅) → (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})))
130112, 117, 128, 129syl3anc 1398 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})))
13198, 130eqtrid 2808 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})))
132 simpr 490 . . . . . . . . . . . . . . . . 17 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}) → (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})
133132unssbd 4140 . . . . . . . . . . . . . . . 16 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}) → {𝑎} ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})
134 vex 3455 . . . . . . . . . . . . . . . . 17 𝑎 ∈ V
135134snss 4745 . . . . . . . . . . . . . . . 16 (𝑎 ∈ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵} ↔ {𝑎} ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})
136133, 135sylibr 237 . . . . . . . . . . . . . . 15 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵}) → 𝑎 ∈ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})
137 f1eq1 6771 . . . . . . . . . . . . . . . 16 (𝑓 = 𝑎 → (𝑓:𝐴–1-1→𝐵 ↔ 𝑎:𝐴–1-1→𝐵))
138134, 137elab 3633 . . . . . . . . . . . . . . 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 14493 . . . . . . . . . . . . . . . . . 18 ({𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ∈ Fin → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) ∈ ℕ0)
143141, 142syl 18 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) ∈ ℕ0)
144143nn0cnd 12662 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) ∈ ℂ)
145140, 144pncan2d 11664 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})) − (♯‘𝐴)) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}))
146 f1f1orn 6834 . . . . . . . . . . . . . . . . . . . . 21 (𝑎:𝐴–1-1→𝐵 → 𝑎:𝐴–1-1-onto→ran 𝑎)
147146adantl 487 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → 𝑎:𝐴–1-1-onto→ran 𝑎)
148 f1oen3g 8986 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 ∈ V ∧ 𝑎:𝐴–1-1-onto→ran 𝑎) → 𝐴 ≈ ran 𝑎)
149134, 147, 148sylancr 599 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → 𝐴 ≈ ran 𝑎)
150 hasheni 14485 . . . . . . . . . . . . . . . . . . 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 14593 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ≈ (𝐵 ∖ ran 𝑎))
160 hasheni 14485 . . . . . . . . . . . . . . . . . . 19 ({𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)} ≈ (𝐵 ∖ ran 𝑎) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (♯‘(𝐵 ∖ ran 𝑎)))
161159, 160syl 18 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = (♯‘(𝐵 ∖ ran 𝑎)))
162151, 161oveq12d 7436 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → ((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
163 f1f 6776 . . . . . . . . . . . . . . . . . . . . 21 (𝑎:𝐴–1-1→𝐵 → 𝑎:𝐴⟶𝐵)
164163frnd 6716 . . . . . . . . . . . . . . . . . . . 20 (𝑎:𝐴–1-1→𝐵 → ran 𝑎 ⊆ 𝐵)
165164adantl 487 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → ran 𝑎 ⊆ 𝐵)
166153, 165ssfid 9253 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → ran 𝑎 ∈ Fin)
167 diffi 9183 . . . . . . . . . . . . . . . . . . 19 (𝐵 ∈ Fin → (𝐵 ∖ ran 𝑎) ∈ Fin)
168153, 167syl 18 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (𝐵 ∖ ran 𝑎) ∈ Fin)
169 disjdif 4426 . . . . . . . . . . . . . . . . . . 19 (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅
170169a1i 11 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅)
171 hashun 14519 . . . . . . . . . . . . . . . . . 18 ((ran 𝑎 ∈ Fin ∧ (𝐵 ∖ ran 𝑎) ∈ Fin ∧ (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
172166, 168, 170, 171syl3anc 1398 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
173 undif 4438 . . . . . . . . . . . . . . . . . . 19 (ran 𝑎 ⊆ 𝐵 ↔ (ran 𝑎 ∪ (𝐵 ∖ ran 𝑎)) = 𝐵)
174165, 173sylib 221 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (ran 𝑎 ∪ (𝐵 ∖ ran 𝑎)) = 𝐵)
175174fveq2d 6887 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = (♯‘𝐵))
176162, 172, 1753eqtr2d 2802 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → ((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})) = (♯‘𝐵))
177176oveq1d 7433 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})) − (♯‘𝐴)) = ((♯‘𝐵) − (♯‘𝐴)))
178145, 177eqtr3d 2798 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑎:𝐴–1-1→𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = ((♯‘𝐵) − (♯‘𝐴)))
179139, 178sylan2 605 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = ((♯‘𝐵) − (♯‘𝐴)))
180179oveq2d 7434 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))))
181131, 180eqtrd 2796 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})–1-1→𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))))
182 hashunsng 14529 . . . . . . . . . . . . . . 15 (𝑎 ∈ V → ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1)))
183182elv 3456 . . . . . . . . . . . . . 14 ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1))
184183ad2antrl 741 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1))
185184oveq2d 7434 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))) = (((♯‘𝐵) − (♯‘𝐴)) · ((♯‘𝑦) + 1)))
18679adantr 486 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → ((♯‘𝐵) − (♯‘𝐴)) ∈ ℂ)
187 simprll 791 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → 𝑦 ∈ Fin)
188 hashcl 14493 . . . . . . . . . . . . . . 15 (𝑦 ∈ Fin → (♯‘𝑦) ∈ ℕ0)
189187, 188syl 18 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (♯‘𝑦) ∈ ℕ0)
190189nn0cnd 12662 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (♯‘𝑦) ∈ ℂ)
191 1cnd 11295 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → 1 ∈ ℂ)
192186, 190, 191adddid 11326 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · ((♯‘𝑦) + 1)) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + (((♯‘𝐵) − (♯‘𝐴)) · 1)))
193186mulridd 11319 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · 1) = ((♯‘𝐵) − (♯‘𝐴)))
194193oveq2d 7434 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + (((♯‘𝐵) − (♯‘𝐴)) · 1)) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
195185, 192, 1943eqtrd 2800 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴–1-1→𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
196181, 195eqeq12d 2777 . . . . . . . . . 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 9174 . . 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 2145  {cab 2739   ≠ wne 2956  Vcvv 3451   ∖ cdif 3896   ∪ cun 3897   ∩ cin 3898   ⊆ wss 3899  ∅c0 4279  {csn 4584   class class class wbr 5103  ran crn 5652   ↾ cres 5653  ⟶wf 6533  –1-1→wf1 6534  –1-1-onto→wf1o 6536  ‘cfv 6537  (class class class)co 7418   ↑m cmap 8840   ≈ cen 8963  Fincfn 8966  ℂcc 11191  0cc0 11193  1c1 11194   + caddc 11196   · cmul 11198   ≤ cle 11337   − cmin 11534  ℕ0cn0 12599  ♯chash 14467
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7749  ax-cnex 11249  ax-resscn 11250  ax-1cn 11251  ax-icn 11252  ax-addcl 11253  ax-addrcl 11254  ax-mulcl 11255  ax-mulrcl 11256  ax-mulcom 11257  ax-addass 11258  ax-mulass 11259  ax-distr 11260  ax-i2m1 11261  ax-1ne0 11262  ax-1rid 11263  ax-rnegex 11264  ax-rrecex 11265  ax-cnre 11266  ax-pre-lttri 11267  ax-pre-lttrn 11268  ax-pre-ltadd 11269  ax-pre-mulgt0 11270
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-int 4908  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6303  df-ord 6364  df-on 6365  df-lim 6366  df-suc 6367  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-riota 7375  df-ov 7421  df-oprab 7422  df-mpo 7423  df-om 7876  df-1st 7999  df-2nd 8000  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-rdg 8411  df-1o 8469  df-oadd 8473  df-er 8710  df-map 8842  df-pm 8843  df-en 8967  df-dom 8968  df-sdom 8969  df-fin 8970  df-dju 9975  df-card 10013  df-pnf 11338  df-mnf 11339  df-xr 11340  df-ltxr 11341  df-le 11342  df-sub 11536  df-neg 11537  df-nn 12329  df-n0 12600  df-z 12687  df-uz 12959  df-fz 13633  df-hash 14468
This theorem is used by:  hashf1  14595
  Copyright terms: Public domain W3C validator