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

Theorem hashf1lem2 14655
Description: Lemma for hashf1 14656. (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 3937 . 2 {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}
2 hashf1lem2.2 . . . . 5 (𝜑 → 𝐵 ∈ Fin)
3 hashf1lem2.1 . . . . 5 (𝜑 → 𝐴 ∈ Fin)
4 mapfi 9386 . . . . 5 ((𝐵 ∈ Fin ∧ 𝐴 ∈ Fin) → (𝐵 ↑m 𝐴) ∈ Fin)
52, 3, 4syl2anc 596 . . . 4 (𝜑 → (𝐵 ↑m 𝐴) ∈ Fin)
6 f1f 6818 . . . . . 6 (𝑓:𝐴⟶1-1𝐵 → 𝑓:𝐴⟶𝐵)
72, 3elmapd 8909 . . . . . 6 (𝜑 → (𝑓 ∈ (𝐵 ↑m 𝐴) ↔ 𝑓:𝐴⟶𝐵))
86, 7imbitrrid 249 . . . . 5 (𝜑 → (𝑓:𝐴⟶1-1𝐵 → 𝑓 ∈ (𝐵 ↑m 𝐴)))
98abssdv 3997 . . . 4 (𝜑 → {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ (𝐵 ↑m 𝐴))
105, 9ssfid 9309 . . 3 (𝜑 → {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ∈ Fin)
11 sseq1 3940 . . . . . 6 (𝑥 = ∅ → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ ∅ ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
12 eleq2 2859 . . . . . . . . . . . . 13 (𝑥 = ∅ → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ ∅))
13 noel 4288 . . . . . . . . . . . . . 14 ¬ (𝑓 ↾ 𝐴) ∈ ∅
1413pm2.21i 120 . . . . . . . . . . . . 13 ((𝑓 ↾ 𝐴) ∈ ∅ → 𝑓 ∈ ∅)
1512, 14biimtrdi 256 . . . . . . . . . . . 12 (𝑥 = ∅ → ((𝑓 ↾ 𝐴) ∈ 𝑥 → 𝑓 ∈ ∅))
1615adantrd 497 . . . . . . . . . . 11 (𝑥 = ∅ → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) → 𝑓 ∈ ∅))
1716abssdv 3997 . . . . . . . . . 10 (𝑥 = ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ ∅)
18 ss0 4357 . . . . . . . . . 10 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = ∅)
1917, 18syl 18 . . . . . . . . 9 (𝑥 = ∅ → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = ∅)
2019fveq2d 6930 . . . . . . . 8 (𝑥 = ∅ → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘∅))
21 hash0 14565 . . . . . . . 8 (♯‘∅) = 0
2220, 21eqtrdi 2820 . . . . . . 7 (𝑥 = ∅ → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = 0)
23 fveq2 6926 . . . . . . . . 9 (𝑥 = ∅ → (♯‘𝑥) = (♯‘∅))
2423, 21eqtrdi 2820 . . . . . . . 8 (𝑥 = ∅ → (♯‘𝑥) = 0)
2524oveq2d 7478 . . . . . . 7 (𝑥 = ∅ → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · 0))
2622, 25eqeq12d 2785 . . . . . 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 3940 . . . . . 6 (𝑥 = 𝑦 → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ 𝑦 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
30 eleq2 2859 . . . . . . . . . 10 (𝑥 = 𝑦 → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ 𝑦))
3130anbi1d 643 . . . . . . . . 9 (𝑥 = 𝑦 → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
3231abbidv 2835 . . . . . . . 8 (𝑥 = 𝑦 → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})
3332fveq2d 6930 . . . . . . 7 (𝑥 = 𝑦 → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
34 fveq2 6926 . . . . . . . 8 (𝑥 = 𝑦 → (♯‘𝑥) = (♯‘𝑦))
3534oveq2d 7478 . . . . . . 7 (𝑥 = 𝑦 → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)))
3633, 35eqeq12d 2785 . . . . . 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 3940 . . . . . 6 (𝑥 = (𝑦 ∪ {𝑎}) → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
40 eleq2 2859 . . . . . . . . . 10 (𝑥 = (𝑦 ∪ {𝑎}) → ((𝑓 ↾ 𝐴) ∈ 𝑥 ↔ (𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎})))
4140anbi1d 643 . . . . . . . . 9 (𝑥 = (𝑦 ∪ {𝑎}) → (((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
4241abbidv 2835 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑎}) → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})
4342fveq2d 6930 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑎}) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
44 fveq2 6926 . . . . . . . 8 (𝑥 = (𝑦 ∪ {𝑎}) → (♯‘𝑥) = (♯‘(𝑦 ∪ {𝑎})))
4544oveq2d 7478 . . . . . . 7 (𝑥 = (𝑦 ∪ {𝑎}) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))))
4643, 45eqeq12d 2785 . . . . . 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 3940 . . . . . 6 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (𝑥 ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
50 f1eq1 6813 . . . . . . . . . . 11 (𝑓 = 𝑦 → (𝑓:𝐴⟶1-1𝐵 ↔ 𝑦:𝐴⟶1-1𝐵))
5150cbvabv 2840 . . . . . . . . . 10 {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵}
5251eqeq2i 2782 . . . . . . . . 9 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ 𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵})
53 ssun1 4181 . . . . . . . . . . . . . . 15 𝐴 ⊆ (𝐴 ∪ {𝑧})
54 f1ssres 6827 . . . . . . . . . . . . . . 15 ((𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 ∧ 𝐴 ⊆ (𝐴 ∪ {𝑧})) → (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵)
5553, 54mpan2 704 . . . . . . . . . . . . . 14 (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 → (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵)
56 vex 3460 . . . . . . . . . . . . . . . 16 𝑓 ∈ V
5756resex 6039 . . . . . . . . . . . . . . 15 (𝑓 ↾ 𝐴) ∈ V
58 f1eq1 6813 . . . . . . . . . . . . . . 15 (𝑦 = (𝑓 ↾ 𝐴) → (𝑦:𝐴⟶1-1𝐵 ↔ (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵))
5957, 58elab 3638 . . . . . . . . . . . . . 14 ((𝑓 ↾ 𝐴) ∈ {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} ↔ (𝑓 ↾ 𝐴):𝐴⟶1-1𝐵)
6055, 59sylibr 237 . . . . . . . . . . . . 13 (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 → (𝑓 ↾ 𝐴) ∈ {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵})
61 eleq2 2859 . . . . . . . . . . . . 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 2835 . . . . . . . . 9 (𝑥 = {𝑦 ∣ 𝑦:𝐴⟶1-1𝐵} → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵})
6652, 65sylbi 220 . . . . . . . 8 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵})
6766fveq2d 6930 . . . . . . 7 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑥 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘{𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}))
68 fveq2 6926 . . . . . . . 8 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (♯‘𝑥) = (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}))
6968oveq2d 7478 . . . . . . 7 (𝑥 = {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑥)) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘{𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})))
7067, 69eqeq12d 2785 . . . . . 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 14554 . . . . . . . . . 10 (𝐵 ∈ Fin → (♯‘𝐵) ∈ ℕ0)
742, 73syl 18 . . . . . . . . 9 (𝜑 → (♯‘𝐵) ∈ ℕ0)
7574nn0cnd 12720 . . . . . . . 8 (𝜑 → (♯‘𝐵) ∈ ℂ)
76 hashcl 14554 . . . . . . . . . 10 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
773, 76syl 18 . . . . . . . . 9 (𝜑 → (♯‘𝐴) ∈ ℕ0)
7877nn0cnd 12720 . . . . . . . 8 (𝜑 → (♯‘𝐴) ∈ ℂ)
7975, 78subcld 11719 . . . . . . 7 (𝜑 → ((♯‘𝐵) − (♯‘𝐴)) ∈ ℂ)
8079mul01d 11559 . . . . . 6 (𝜑 → (((♯‘𝐵) − (♯‘𝐴)) · 0) = 0)
8180eqcomd 2775 . . . . 5 (𝜑 → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0))
8281a1d 26 . . . 4 (𝜑 → (∅ ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} → 0 = (((♯‘𝐵) − (♯‘𝐴)) · 0)))
83 ssun1 4181 . . . . . . . . 9 𝑦 ⊆ (𝑦 ∪ {𝑎})
84 sstr 3923 . . . . . . . . 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 7469 . . . . . . . . . 10 ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
88 elun 4157 . . . . . . . . . . . . . . . . . . 19 ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) ∈ {𝑎}))
8957elsn 4601 . . . . . . . . . . . . . . . . . . . 20 ((𝑓 ↾ 𝐴) ∈ {𝑎} ↔ (𝑓 ↾ 𝐴) = 𝑎)
9089orbi2i 926 . . . . . . . . . . . . . . . . . . 19 (((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) ∈ {𝑎}) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎))
9188, 90bitri 278 . . . . . . . . . . . . . . . . . 18 ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ↔ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎))
9291anbi1i 636 . . . . . . . . . . . . . . . . 17 (((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))
93 andir 1027 . . . . . . . . . . . . . . . . 17 ((((𝑓 ↾ 𝐴) ∈ 𝑦 ∨ (𝑓 ↾ 𝐴) = 𝑎) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
9492, 93bitri 278 . . . . . . . . . . . . . . . 16 (((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
9594abbii 2836 . . . . . . . . . . . . . . 15 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))}
96 unab 4258 . . . . . . . . . . . . . . 15 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∨ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))}
9795, 96eqtr4i 2795 . . . . . . . . . . . . . 14 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} = ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})
9897fveq2i 6929 . . . . . . . . . . . . 13 (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
99 snfi 9120 . . . . . . . . . . . . . . . . . . 19 {𝑧} ∈ Fin
100 unfi 9235 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ Fin ∧ {𝑧} ∈ Fin) → (𝐴 ∪ {𝑧}) ∈ Fin)
1013, 99, 100sylancl 598 . . . . . . . . . . . . . . . . . 18 (𝜑 → (𝐴 ∪ {𝑧}) ∈ Fin)
102 mapvalg 8905 . . . . . . . . . . . . . . . . . 18 ((𝐵 ∈ Fin ∧ (𝐴 ∪ {𝑧}) ∈ Fin) → (𝐵 ↑m (𝐴 ∪ {𝑧})) = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵})
1032, 101, 102syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ↑m (𝐴 ∪ {𝑧})) = {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵})
104 mapfi 9386 . . . . . . . . . . . . . . . . . 18 ((𝐵 ∈ Fin ∧ (𝐴 ∪ {𝑧}) ∈ Fin) → (𝐵 ↑m (𝐴 ∪ {𝑧})) ∈ Fin)
1052, 101, 104syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ↑m (𝐴 ∪ {𝑧})) ∈ Fin)
106103, 105eqeltrrd 2871 . . . . . . . . . . . . . . . 16 (𝜑 → {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵} ∈ Fin)
107 f1f 6818 . . . . . . . . . . . . . . . . . 18 (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 → 𝑓:(𝐴 ∪ {𝑧})⟶𝐵)
108107adantl 487 . . . . . . . . . . . . . . . . 17 (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) → 𝑓:(𝐴 ∪ {𝑧})⟶𝐵)
109108ss2abi 3996 . . . . . . . . . . . . . . . 16 {𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}
110 ssfi 9237 . . . . . . . . . . . . . . . 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 3996 . . . . . . . . . . . . . . . 16 {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶𝐵}
115 ssfi 9237 . . . . . . . . . . . . . . . 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 4259 . . . . . . . . . . . . . . 15 ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))}
119 simprlr 792 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ¬ 𝑎 ∈ 𝑦)
120 abn0 4339 . . . . . . . . . . . . . . . . . 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 2871 . . . . . . . . . . . . . . . . . . 19 ((((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝑎 ∈ 𝑦)
124123exlimiv 1967 . . . . . . . . . . . . . . . . . 18 (∃𝑓(((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝑎 ∈ 𝑦)
125120, 124sylbi 220 . . . . . . . . . . . . . . . . 17 ({𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))} ≠ ∅ → 𝑎 ∈ 𝑦)
126125necon1bi 2993 . . . . . . . . . . . . . . . 16 (¬ 𝑎 ∈ 𝑦 → {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))} = ∅)
127119, 126syl 18 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → {𝑓 ∣ (((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵))} = ∅)
128118, 127eqtrid 2816 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ∅)
129 hashun 14580 . . . . . . . . . . . . . 14 (({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin ∧ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin ∧ ({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∩ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ∅) → (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})))
130112, 117, 128, 129syl3anc 1401 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘({𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∪ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})))
13198, 130eqtrid 2816 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})))
132 simpr 490 . . . . . . . . . . . . . . . . 17 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
133132unssbd 4197 . . . . . . . . . . . . . . . 16 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → {𝑎} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
134 vex 3460 . . . . . . . . . . . . . . . . 17 𝑎 ∈ V
135134snss 4750 . . . . . . . . . . . . . . . 16 (𝑎 ∈ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵} ↔ {𝑎} ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
136133, 135sylibr 237 . . . . . . . . . . . . . . 15 (((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵}) → 𝑎 ∈ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})
137 f1eq1 6813 . . . . . . . . . . . . . . . 16 (𝑓 = 𝑎 → (𝑓:𝐴⟶1-1𝐵 ↔ 𝑎:𝐴⟶1-1𝐵))
138134, 137elab 3638 . . . . . . . . . . . . . . 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 14554 . . . . . . . . . . . . . . . . . 18 ({𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ Fin → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) ∈ ℕ0)
143141, 142syl 18 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) ∈ ℕ0)
144143nn0cnd 12720 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) ∈ ℂ)
145140, 144pncan2d 11721 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) − (♯‘𝐴)) = (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
146 f1f1orn 6876 . . . . . . . . . . . . . . . . . . . . 21 (𝑎:𝐴⟶1-1𝐵 → 𝑎:𝐴⟶1-1ontoran 𝑎)
147146adantl 487 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → 𝑎:𝐴⟶1-1ontoran 𝑎)
148 f1oen3g 9042 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 ∈ V ∧ 𝑎:𝐴⟶1-1ontoran 𝑎) → 𝐴 ≈ ran 𝑎)
149134, 147, 148sylancr 599 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → 𝐴 ≈ ran 𝑎)
150 hasheni 14546 . . . . . . . . . . . . . . . . . . 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 14654 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ≈ (𝐵 ∖ ran 𝑎))
160 hasheni 14546 . . . . . . . . . . . . . . . . . . 19 ({𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ≈ (𝐵 ∖ ran 𝑎) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘(𝐵 ∖ ran 𝑎)))
161159, 160syl 18 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = (♯‘(𝐵 ∖ ran 𝑎)))
162151, 161oveq12d 7480 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
163 f1f 6818 . . . . . . . . . . . . . . . . . . . . 21 (𝑎:𝐴⟶1-1𝐵 → 𝑎:𝐴⟶𝐵)
164163frnd 6758 . . . . . . . . . . . . . . . . . . . 20 (𝑎:𝐴⟶1-1𝐵 → ran 𝑎 ⊆ 𝐵)
165164adantl 487 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ran 𝑎 ⊆ 𝐵)
166153, 165ssfid 9309 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ran 𝑎 ∈ Fin)
167 diffi 9239 . . . . . . . . . . . . . . . . . . 19 (𝐵 ∈ Fin → (𝐵 ∖ ran 𝑎) ∈ Fin)
168153, 167syl 18 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (𝐵 ∖ ran 𝑎) ∈ Fin)
169 disjdif 4431 . . . . . . . . . . . . . . . . . . 19 (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅
170169a1i 11 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅)
171 hashun 14580 . . . . . . . . . . . . . . . . . 18 ((ran 𝑎 ∈ Fin ∧ (𝐵 ∖ ran 𝑎) ∈ Fin ∧ (ran 𝑎 ∩ (𝐵 ∖ ran 𝑎)) = ∅) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
172166, 168, 170, 171syl3anc 1401 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = ((♯‘ran 𝑎) + (♯‘(𝐵 ∖ ran 𝑎))))
173 undif 4443 . . . . . . . . . . . . . . . . . . 19 (ran 𝑎 ⊆ 𝐵 ↔ (ran 𝑎 ∪ (𝐵 ∖ ran 𝑎)) = 𝐵)
174165, 173sylib 221 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (ran 𝑎 ∪ (𝐵 ∖ ran 𝑎)) = 𝐵)
175174fveq2d 6930 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘(ran 𝑎 ∪ (𝐵 ∖ ran 𝑎))) = (♯‘𝐵))
176162, 172, 1753eqtr2d 2810 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → ((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = (♯‘𝐵))
177176oveq1d 7477 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (((♯‘𝐴) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) − (♯‘𝐴)) = ((♯‘𝐵) − (♯‘𝐴)))
178145, 177eqtr3d 2806 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑎:𝐴⟶1-1𝐵) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘𝐵) − (♯‘𝐴)))
179139, 178sylan2 605 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘𝐵) − (♯‘𝐴)))
180179oveq2d 7478 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝑎 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))))
181131, 180eqtrd 2804 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ (𝑦 ∪ {𝑎}) ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) = ((♯‘{𝑓 ∣ ((𝑓 ↾ 𝐴) ∈ 𝑦 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}) + ((♯‘𝐵) − (♯‘𝐴))))
182 hashunsng 14590 . . . . . . . . . . . . . . 15 (𝑎 ∈ V → ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1)))
183182elv 3461 . . . . . . . . . . . . . 14 ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1))
184183ad2antrl 741 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘(𝑦 ∪ {𝑎})) = ((♯‘𝑦) + 1))
185184oveq2d 7478 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))) = (((♯‘𝐵) − (♯‘𝐴)) · ((♯‘𝑦) + 1)))
18679adantr 486 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((♯‘𝐵) − (♯‘𝐴)) ∈ ℂ)
187 simprll 791 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → 𝑦 ∈ Fin)
188 hashcl 14554 . . . . . . . . . . . . . . 15 (𝑦 ∈ Fin → (♯‘𝑦) ∈ ℕ0)
189187, 188syl 18 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘𝑦) ∈ ℕ0)
190189nn0cnd 12720 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (♯‘𝑦) ∈ ℂ)
191 1cnd 11352 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → 1 ∈ ℂ)
192186, 190, 191adddid 11383 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · ((♯‘𝑦) + 1)) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + (((♯‘𝐵) − (♯‘𝐴)) · 1)))
193186mulridd 11376 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · 1) = ((♯‘𝐵) − (♯‘𝐴)))
194193oveq2d 7478 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + (((♯‘𝐵) − (♯‘𝐴)) · 1)) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
195185, 192, 1943eqtrd 2808 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑦 ∈ Fin ∧ ¬ 𝑎 ∈ 𝑦) ∧ (𝑦 ∪ {𝑎}) ⊆ {𝑓 ∣ 𝑓:𝐴⟶1-1𝐵})) → (((♯‘𝐵) − (♯‘𝐴)) · (♯‘(𝑦 ∪ {𝑎}))) = ((((♯‘𝐵) − (♯‘𝐴)) · (♯‘𝑦)) + ((♯‘𝐵) − (♯‘𝐴))))
196181, 195eqeq12d 2785 . . . . . . . . . 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 9230 . . 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 1572  ∃wex 1814   ∈ wcel 2151  {cab 2747   ≠ wne 2965  Vcvv 3456   ⊆ wss 3902   ∖ cdif 4050   ∩ cin 4094   ∪ cun 4154  ∅c0 4283  {csn 4590   class class class wbr 5111  ran crn 5662   ↾ cres 5663  ⟶wf 6569  ⟶1-1wf1 6570  ⟶1-1ontowf1o 6572  ‘cfv 6573  (class class class)co 7462   ↑m cmap 8896   ≈ cen 9019  Fincfn 9022  ℂcc 11248  0cc0 11250  1c1 11251   + caddc 11253   · cmul 11255   ≤ cle 11394   − cmin 11591  ℕ0cn0 12657  ♯chash 14528
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7794  ax-cnex 11306  ax-resscn 11307  ax-1cn 11308  ax-icn 11309  ax-addcl 11310  ax-addrcl 11311  ax-mulcl 11312  ax-mulrcl 11313  ax-mulcom 11314  ax-addass 11315  ax-mulass 11316  ax-distr 11317  ax-i2m1 11318  ax-1ne0 11319  ax-1rid 11320  ax-rnegex 11321  ax-rrecex 11322  ax-cnre 11323  ax-pre-lttri 11324  ax-pre-lttrn 11325  ax-pre-ltadd 11326  ax-pre-mulgt0 11327
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-int 4916  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6337  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-riota 7418  df-ov 7465  df-oprab 7466  df-mpo 7467  df-om 7923  df-1st 8046  df-2nd 8047  df-frecs 8348  df-wrecs 8379  df-recs 8428  df-rdg 8467  df-1o 8525  df-oadd 8529  df-er 8766  df-map 8898  df-pm 8899  df-en 9023  df-dom 9024  df-sdom 9025  df-fin 9026  df-dju 10030  df-card 10068  df-pnf 11395  df-mnf 11396  df-xr 11397  df-ltxr 11398  df-le 11399  df-sub 11593  df-neg 11594  df-nn 12387  df-n0 12658  df-z 12745  df-uz 13017  df-fz 13691  df-hash 14529
This theorem is used by:  hashf1  14656
  Copyright terms: Public domain W3C validator