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

Theorem hashf1lem1 14662
Description: Lemma for hashf1 14664. (Contributed by Mario Carneiro, 17-Apr-2015.) (Proof shortened by AV, 14-Aug-2024.)
Hypotheses
Ref Expression
hashf1lem2.1 (𝜑 → 𝐴 ∈ Fin)
hashf1lem2.2 (𝜑 → 𝐵 ∈ Fin)
hashf1lem2.3 (𝜑 → ¬ 𝑧 ∈ 𝐴)
hashf1lem2.4 (𝜑 → ((♯‘𝐴) + 1) ≤ (♯‘𝐵))
hashf1lem1.5 (𝜑 → 𝐹:𝐴⟶1-1𝐵)
Assertion
Ref Expression
hashf1lem1 (𝜑 → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ≈ (𝐵 ∖ ran 𝐹))
Distinct variable groups:   𝑧,𝑓   𝐴,𝑓   𝐵,𝑓   𝜑,𝑓   𝑓,𝐹
Allowed substitution hints:   𝜑(𝑧)   𝐴(𝑧)   𝐵(𝑧)   𝐹(𝑧)

Proof of Theorem hashf1lem1
Dummy variables 𝑔 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 hashf1lem2.2 . . . 4 (𝜑 → 𝐵 ∈ Fin)
2 f1setex 8936 . . . 4 (𝐵 ∈ Fin → {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵} ∈ V)
31, 2syl 18 . . 3 (𝜑 → {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵} ∈ V)
4 abanssr 4267 . . . 4 {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵}
54a1i 11 . . 3 (𝜑 → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ⊆ {𝑓 ∣ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵})
63, 5ssexd 5301 . 2 (𝜑 → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∈ V)
71difexd 5308 . 2 (𝜑 → (𝐵 ∖ ran 𝐹) ∈ V)
8 vex 3465 . . . 4 𝑔 ∈ V
9 reseq1 5988 . . . . . 6 (𝑓 = 𝑔 → (𝑓 ↾ 𝐴) = (𝑔 ↾ 𝐴))
109eqeq1d 2776 . . . . 5 (𝑓 = 𝑔 → ((𝑓 ↾ 𝐴) = 𝐹 ↔ (𝑔 ↾ 𝐴) = 𝐹))
11 f1eq1 6821 . . . . 5 (𝑓 = 𝑔 → (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 ↔ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵))
1210, 11anbi12d 644 . . . 4 (𝑓 = 𝑔 → (((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)))
138, 12elab 3643 . . 3 (𝑔 ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ↔ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵))
14 f1f 6826 . . . . . . 7 (𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵 → 𝑔:(𝐴 ∪ {𝑧})⟶𝐵)
1514ad2antll 742 . . . . . 6 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝑔:(𝐴 ∪ {𝑧})⟶𝐵)
16 ssun2 4187 . . . . . . 7 {𝑧} ⊆ (𝐴 ∪ {𝑧})
17 vex 3465 . . . . . . . 8 𝑧 ∈ V
1817snss 4755 . . . . . . 7 (𝑧 ∈ (𝐴 ∪ {𝑧}) ↔ {𝑧} ⊆ (𝐴 ∪ {𝑧}))
1916, 18mpbir 234 . . . . . 6 𝑧 ∈ (𝐴 ∪ {𝑧})
20 ffvelcdm 7131 . . . . . 6 ((𝑔:(𝐴 ∪ {𝑧})⟶𝐵 ∧ 𝑧 ∈ (𝐴 ∪ {𝑧})) → (𝑔‘𝑧) ∈ 𝐵)
2115, 19, 20sylancl 598 . . . . 5 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → (𝑔‘𝑧) ∈ 𝐵)
22 hashf1lem2.3 . . . . . . 7 (𝜑 → ¬ 𝑧 ∈ 𝐴)
2322adantr 486 . . . . . 6 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → ¬ 𝑧 ∈ 𝐴)
24 df-ima 5679 . . . . . . . . 9 (𝑔 “ 𝐴) = ran (𝑔 ↾ 𝐴)
25 simprl 783 . . . . . . . . . 10 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → (𝑔 ↾ 𝐴) = 𝐹)
2625rneqd 5940 . . . . . . . . 9 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → ran (𝑔 ↾ 𝐴) = ran 𝐹)
2724, 26eqtrid 2821 . . . . . . . 8 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → (𝑔 “ 𝐴) = ran 𝐹)
2827eleq2d 2861 . . . . . . 7 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → ((𝑔‘𝑧) ∈ (𝑔 “ 𝐴) ↔ (𝑔‘𝑧) ∈ ran 𝐹))
29 simprr 785 . . . . . . . 8 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)
3019a1i 11 . . . . . . . 8 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝑧 ∈ (𝐴 ∪ {𝑧}))
31 ssun1 4186 . . . . . . . . 9 𝐴 ⊆ (𝐴 ∪ {𝑧})
3231a1i 11 . . . . . . . 8 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → 𝐴 ⊆ (𝐴 ∪ {𝑧}))
33 f1elima 7316 . . . . . . . 8 ((𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵 ∧ 𝑧 ∈ (𝐴 ∪ {𝑧}) ∧ 𝐴 ⊆ (𝐴 ∪ {𝑧})) → ((𝑔‘𝑧) ∈ (𝑔 “ 𝐴) ↔ 𝑧 ∈ 𝐴))
3429, 30, 32, 33syl3anc 1401 . . . . . . 7 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → ((𝑔‘𝑧) ∈ (𝑔 “ 𝐴) ↔ 𝑧 ∈ 𝐴))
3528, 34bitr3d 284 . . . . . 6 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → ((𝑔‘𝑧) ∈ ran 𝐹 ↔ 𝑧 ∈ 𝐴))
3623, 35mtbird 328 . . . . 5 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → ¬ (𝑔‘𝑧) ∈ ran 𝐹)
3721, 36eldifd 4060 . . . 4 ((𝜑 ∧ ((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)) → (𝑔‘𝑧) ∈ (𝐵 ∖ ran 𝐹))
3837ex 418 . . 3 (𝜑 → (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) → (𝑔‘𝑧) ∈ (𝐵 ∖ ran 𝐹)))
3913, 38biimtrid 245 . 2 (𝜑 → (𝑔 ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} → (𝑔‘𝑧) ∈ (𝐵 ∖ ran 𝐹)))
40 hashf1lem1.5 . . . . . . 7 (𝜑 → 𝐹:𝐴⟶1-1𝐵)
41 f1f 6826 . . . . . . 7 (𝐹:𝐴⟶1-1𝐵 → 𝐹:𝐴⟶𝐵)
4240, 41syl 18 . . . . . 6 (𝜑 → 𝐹:𝐴⟶𝐵)
4342adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → 𝐹:𝐴⟶𝐵)
44 vex 3465 . . . . . . . 8 𝑥 ∈ V
4517, 44f1osn 6915 . . . . . . 7 {⟨𝑧, 𝑥⟩}:{𝑧}⟶1-1onto{𝑥}
46 f1of 6872 . . . . . . 7 ({⟨𝑧, 𝑥⟩}:{𝑧}⟶1-1onto{𝑥} → {⟨𝑧, 𝑥⟩}:{𝑧}⟶{𝑥})
4745, 46ax-mp 5 . . . . . 6 {⟨𝑧, 𝑥⟩}:{𝑧}⟶{𝑥}
48 eldifi 4077 . . . . . . . 8 (𝑥 ∈ (𝐵 ∖ ran 𝐹) → 𝑥 ∈ 𝐵)
4948adantl 487 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → 𝑥 ∈ 𝐵)
5049snssd 4757 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → {𝑥} ⊆ 𝐵)
51 fss 6774 . . . . . 6 (({⟨𝑧, 𝑥⟩}:{𝑧}⟶{𝑥} ∧ {𝑥} ⊆ 𝐵) → {⟨𝑧, 𝑥⟩}:{𝑧}⟶𝐵)
5247, 50, 51sylancr 599 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → {⟨𝑧, 𝑥⟩}:{𝑧}⟶𝐵)
53 res0 5998 . . . . . . 7 (𝐹 ↾ ∅) = ∅
54 res0 5998 . . . . . . 7 ({⟨𝑧, 𝑥⟩} ↾ ∅) = ∅
5553, 54eqtr4i 2800 . . . . . 6 (𝐹 ↾ ∅) = ({⟨𝑧, 𝑥⟩} ↾ ∅)
56 disjsn 4680 . . . . . . . . 9 ((𝐴 ∩ {𝑧}) = ∅ ↔ ¬ 𝑧 ∈ 𝐴)
5722, 56sylibr 237 . . . . . . . 8 (𝜑 → (𝐴 ∩ {𝑧}) = ∅)
5857adantr 486 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐴 ∩ {𝑧}) = ∅)
5958reseq2d 5994 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐹 ↾ (𝐴 ∩ {𝑧})) = (𝐹 ↾ ∅))
6058reseq2d 5994 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → ({⟨𝑧, 𝑥⟩} ↾ (𝐴 ∩ {𝑧})) = ({⟨𝑧, 𝑥⟩} ↾ ∅))
6155, 59, 603eqtr4a 2835 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐹 ↾ (𝐴 ∩ {𝑧})) = ({⟨𝑧, 𝑥⟩} ↾ (𝐴 ∩ {𝑧})))
62 fresaunres1 6803 . . . . 5 ((𝐹:𝐴⟶𝐵 ∧ {⟨𝑧, 𝑥⟩}:{𝑧}⟶𝐵 ∧ (𝐹 ↾ (𝐴 ∩ {𝑧})) = ({⟨𝑧, 𝑥⟩} ↾ (𝐴 ∩ {𝑧}))) → ((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↾ 𝐴) = 𝐹)
6343, 52, 61, 62syl3anc 1401 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → ((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↾ 𝐴) = 𝐹)
64 f1f1orn 6884 . . . . . . . . 9 (𝐹:𝐴⟶1-1𝐵 → 𝐹:𝐴⟶1-1ontoran 𝐹)
6540, 64syl 18 . . . . . . . 8 (𝜑 → 𝐹:𝐴⟶1-1ontoran 𝐹)
6665adantr 486 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → 𝐹:𝐴⟶1-1ontoran 𝐹)
6745a1i 11 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → {⟨𝑧, 𝑥⟩}:{𝑧}⟶1-1onto{𝑥})
68 eldifn 4078 . . . . . . . . 9 (𝑥 ∈ (𝐵 ∖ ran 𝐹) → ¬ 𝑥 ∈ ran 𝐹)
6968adantl 487 . . . . . . . 8 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → ¬ 𝑥 ∈ ran 𝐹)
70 disjsn 4680 . . . . . . . 8 ((ran 𝐹 ∩ {𝑥}) = ∅ ↔ ¬ 𝑥 ∈ ran 𝐹)
7169, 70sylibr 237 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (ran 𝐹 ∩ {𝑥}) = ∅)
72 f1oun 6892 . . . . . . 7 (((𝐹:𝐴⟶1-1ontoran 𝐹 ∧ {⟨𝑧, 𝑥⟩}:{𝑧}⟶1-1onto{𝑥}) ∧ ((𝐴 ∩ {𝑧}) = ∅ ∧ (ran 𝐹 ∩ {𝑥}) = ∅)) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1onto(ran 𝐹 ∪ {𝑥}))
7366, 67, 58, 71, 72syl22anc 852 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1onto(ran 𝐹 ∪ {𝑥}))
74 f1of1 6871 . . . . . 6 ((𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1onto(ran 𝐹 ∪ {𝑥}) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1(ran 𝐹 ∪ {𝑥}))
7573, 74syl 18 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1(ran 𝐹 ∪ {𝑥}))
7643frnd 6766 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → ran 𝐹 ⊆ 𝐵)
7776, 50unssd 4200 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (ran 𝐹 ∪ {𝑥}) ⊆ 𝐵)
78 f1ss 6833 . . . . 5 (((𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1(ran 𝐹 ∪ {𝑥}) ∧ (ran 𝐹 ∪ {𝑥}) ⊆ 𝐵) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1𝐵)
7975, 77, 78syl2anc 596 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1𝐵)
80 hashf1lem2.1 . . . . . . . 8 (𝜑 → 𝐴 ∈ Fin)
8142, 80fexd 7282 . . . . . . 7 (𝜑 → 𝐹 ∈ V)
8281adantr 486 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → 𝐹 ∈ V)
83 snex 5412 . . . . . 6 {⟨𝑧, 𝑥⟩} ∈ V
84 unexg 7811 . . . . . 6 ((𝐹 ∈ V ∧ {⟨𝑧, 𝑥⟩} ∈ V) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ∈ V)
8582, 83, 84sylancl 598 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ∈ V)
86 reseq1 5988 . . . . . . . 8 (𝑓 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) → (𝑓 ↾ 𝐴) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↾ 𝐴))
8786eqeq1d 2776 . . . . . . 7 (𝑓 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) → ((𝑓 ↾ 𝐴) = 𝐹 ↔ ((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↾ 𝐴) = 𝐹))
88 f1eq1 6821 . . . . . . 7 (𝑓 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) → (𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵 ↔ (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1𝐵))
8987, 88anbi12d 644 . . . . . 6 (𝑓 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) → (((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵) ↔ (((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↾ 𝐴) = 𝐹 ∧ (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1𝐵)))
9089elabg 3640 . . . . 5 ((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ∈ V → ((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ↔ (((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↾ 𝐴) = 𝐹 ∧ (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1𝐵)))
9185, 90syl 18 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → ((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ↔ (((𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↾ 𝐴) = 𝐹 ∧ (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1𝐵)))
9263, 79, 91mpbir2and 726 . . 3 ((𝜑 ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)})
9392ex 418 . 2 (𝜑 → (𝑥 ∈ (𝐵 ∖ ran 𝐹) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)}))
9413anbi1i 636 . . 3 ((𝑔 ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) ↔ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)))
95 simprlr 792 . . . . . . 7 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵)
96 f1fn 6827 . . . . . . 7 (𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵 → 𝑔 Fn (𝐴 ∪ {𝑧}))
9795, 96syl 18 . . . . . 6 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → 𝑔 Fn (𝐴 ∪ {𝑧}))
9873adantrl 729 . . . . . . 7 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1onto(ran 𝐹 ∪ {𝑥}))
99 f1ofn 6873 . . . . . . 7 ((𝐹 ∪ {⟨𝑧, 𝑥⟩}):(𝐴 ∪ {𝑧})⟶1-1onto(ran 𝐹 ∪ {𝑥}) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}) Fn (𝐴 ∪ {𝑧}))
10098, 99syl 18 . . . . . 6 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (𝐹 ∪ {⟨𝑧, 𝑥⟩}) Fn (𝐴 ∪ {𝑧}))
101 eqfnfv 7078 . . . . . 6 ((𝑔 Fn (𝐴 ∪ {𝑧}) ∧ (𝐹 ∪ {⟨𝑧, 𝑥⟩}) Fn (𝐴 ∪ {𝑧})) → (𝑔 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↔ ∀𝑦 ∈ (𝐴 ∪ {𝑧})(𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦)))
10297, 100, 101syl2anc 596 . . . . 5 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (𝑔 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↔ ∀𝑦 ∈ (𝐴 ∪ {𝑧})(𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦)))
103 fvres 6953 . . . . . . . . . . 11 (𝑦 ∈ 𝐴 → ((𝑔 ↾ 𝐴)‘𝑦) = (𝑔‘𝑦))
104103eqcomd 2780 . . . . . . . . . 10 (𝑦 ∈ 𝐴 → (𝑔‘𝑦) = ((𝑔 ↾ 𝐴)‘𝑦))
105 simprll 791 . . . . . . . . . . 11 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (𝑔 ↾ 𝐴) = 𝐹)
106105fveq1d 6936 . . . . . . . . . 10 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → ((𝑔 ↾ 𝐴)‘𝑦) = (𝐹‘𝑦))
107104, 106sylan9eqr 2831 . . . . . . . . 9 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → (𝑔‘𝑦) = (𝐹‘𝑦))
10840ad2antrr 739 . . . . . . . . . . 11 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → 𝐹:𝐴⟶1-1𝐵)
109 f1fn 6827 . . . . . . . . . . 11 (𝐹:𝐴⟶1-1𝐵 → 𝐹 Fn 𝐴)
110108, 109syl 18 . . . . . . . . . 10 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → 𝐹 Fn 𝐴)
11117, 44fnsn 6641 . . . . . . . . . . 11 {⟨𝑧, 𝑥⟩} Fn {𝑧}
112111a1i 11 . . . . . . . . . 10 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → {⟨𝑧, 𝑥⟩} Fn {𝑧})
11357ad2antrr 739 . . . . . . . . . 10 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → (𝐴 ∩ {𝑧}) = ∅)
114 simpr 490 . . . . . . . . . 10 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → 𝑦 ∈ 𝐴)
115110, 112, 113, 114fvun1d 7027 . . . . . . . . 9 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) = (𝐹‘𝑦))
116107, 115eqtr4d 2812 . . . . . . . 8 (((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) ∧ 𝑦 ∈ 𝐴) → (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦))
117116ralrimiva 3169 . . . . . . 7 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → ∀𝑦 ∈ 𝐴 (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦))
118117biantrurd 542 . . . . . 6 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (∀𝑦 ∈ {𝑧} (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ↔ (∀𝑦 ∈ 𝐴 (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ∧ ∀𝑦 ∈ {𝑧} (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦))))
119 ralunb 4205 . . . . . 6 (∀𝑦 ∈ (𝐴 ∪ {𝑧})(𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ↔ (∀𝑦 ∈ 𝐴 (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ∧ ∀𝑦 ∈ {𝑧} (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦)))
120118, 119bitr4di 292 . . . . 5 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (∀𝑦 ∈ {𝑧} (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ↔ ∀𝑦 ∈ (𝐴 ∪ {𝑧})(𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦)))
12142fdmd 6768 . . . . . . . . . . 11 (𝜑 → dom 𝐹 = 𝐴)
122121eleq2d 2861 . . . . . . . . . 10 (𝜑 → (𝑧 ∈ dom 𝐹 ↔ 𝑧 ∈ 𝐴))
12322, 122mtbird 328 . . . . . . . . 9 (𝜑 → ¬ 𝑧 ∈ dom 𝐹)
124123adantr 486 . . . . . . . 8 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → ¬ 𝑧 ∈ dom 𝐹)
125 fsnunfv 7241 . . . . . . . 8 ((𝑧 ∈ V ∧ 𝑥 ∈ V ∧ ¬ 𝑧 ∈ dom 𝐹) → ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑧) = 𝑥)
12617, 44, 124, 125mp3an12i 1497 . . . . . . 7 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑧) = 𝑥)
127126eqeq2d 2785 . . . . . 6 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → ((𝑔‘𝑧) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑧) ↔ (𝑔‘𝑧) = 𝑥))
128 fveq2 6934 . . . . . . . 8 (𝑦 = 𝑧 → (𝑔‘𝑦) = (𝑔‘𝑧))
129 fveq2 6934 . . . . . . . 8 (𝑦 = 𝑧 → ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑧))
130128, 129eqeq12d 2790 . . . . . . 7 (𝑦 = 𝑧 → ((𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ↔ (𝑔‘𝑧) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑧)))
13117, 130ralsn 4650 . . . . . 6 (∀𝑦 ∈ {𝑧} (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ↔ (𝑔‘𝑧) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑧))
132 eqcom 2781 . . . . . 6 (𝑥 = (𝑔‘𝑧) ↔ (𝑔‘𝑧) = 𝑥)
133127, 131, 1323bitr4g 317 . . . . 5 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (∀𝑦 ∈ {𝑧} (𝑔‘𝑦) = ((𝐹 ∪ {⟨𝑧, 𝑥⟩})‘𝑦) ↔ 𝑥 = (𝑔‘𝑧)))
134102, 120, 1333bitr2d 310 . . . 4 ((𝜑 ∧ (((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹))) → (𝑔 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↔ 𝑥 = (𝑔‘𝑧)))
135134ex 418 . . 3 (𝜑 → ((((𝑔 ↾ 𝐴) = 𝐹 ∧ 𝑔:(𝐴 ∪ {𝑧})⟶1-1𝐵) ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝑔 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↔ 𝑥 = (𝑔‘𝑧))))
13694, 135biimtrid 245 . 2 (𝜑 → ((𝑔 ∈ {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ∧ 𝑥 ∈ (𝐵 ∖ ran 𝐹)) → (𝑔 = (𝐹 ∪ {⟨𝑧, 𝑥⟩}) ↔ 𝑥 = (𝑔‘𝑧))))
1376, 7, 39, 93, 136en3d 9073 1 (𝜑 → {𝑓 ∣ ((𝑓 ↾ 𝐴) = 𝐹 ∧ 𝑓:(𝐴 ∪ {𝑧})⟶1-1𝐵)} ≈ (𝐵 ∖ ran 𝐹))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2156  {cab 2752  ∀wral 3091  Vcvv 3461   ⊆ wss 3907   ∖ cdif 4055   ∩ cin 4099   ∪ cun 4159  ∅c0 4288  {csn 4595  ⟨cop 4848   class class class wbr 5116  dom cdm 5666  ran crn 5667   ↾ cres 5668   “ cima 5669   Fn wfn 6574  ⟶wf 6575  ⟶1-1wf1 6576  ⟶1-1ontowf1o 6578  ‘cfv 6579  (class class class)co 7470   ≈ cen 9027  Fincfn 9030  1c1 11259   + caddc 11261   ≤ cle 11402  ♯chash 14536
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-ov 7473  df-oprab 7474  df-mpo 7475  df-1st 8054  df-2nd 8055  df-map 8906  df-en 9031
This theorem is used by:  hashf1lem2  14663
  Copyright terms: Public domain W3C validator