Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  paireqne Structured version   Visualization version   GIF version

Theorem paireqne 44544
Description: Two sets are not equal iff there is exactly one proper pair whose elements are either one of these sets. (Contributed by AV, 27-Jan-2023.)
Hypotheses
Ref Expression
paireqne.a (𝜑𝐴𝑉)
paireqne.b (𝜑𝐵𝑉)
paireqne.p 𝑃 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}
Assertion
Ref Expression
paireqne (𝜑 → (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ 𝐴𝐵))
Distinct variable groups:   𝐴,𝑝,𝑥   𝐵,𝑝,𝑥   𝑃,𝑝,𝑥   𝑥,𝑉   𝜑,𝑝,𝑥
Allowed substitution hint:   𝑉(𝑝)

Proof of Theorem paireqne
Dummy variables 𝑎 𝑏 𝑞 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 raleq 3311 . . . 4 (𝑝 = 𝑞 → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵)))
21reu8 3637 . . 3 (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)))
3 paireqne.p . . . . . . . 8 𝑃 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}
43eleq2i 2825 . . . . . . 7 (𝑝𝑃𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
5 elss2prb 13951 . . . . . . 7 (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}))
64, 5bitri 278 . . . . . 6 (𝑝𝑃 ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}))
7 raleq 3311 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝑎, 𝑏} (𝑥 = 𝐴𝑥 = 𝐵)))
8 vex 3404 . . . . . . . . . . . . 13 𝑎 ∈ V
9 vex 3404 . . . . . . . . . . . . 13 𝑏 ∈ V
10 eqeq1 2743 . . . . . . . . . . . . . 14 (𝑥 = 𝑎 → (𝑥 = 𝐴𝑎 = 𝐴))
11 eqeq1 2743 . . . . . . . . . . . . . 14 (𝑥 = 𝑎 → (𝑥 = 𝐵𝑎 = 𝐵))
1210, 11orbi12d 918 . . . . . . . . . . . . 13 (𝑥 = 𝑎 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝑎 = 𝐴𝑎 = 𝐵)))
13 eqeq1 2743 . . . . . . . . . . . . . 14 (𝑥 = 𝑏 → (𝑥 = 𝐴𝑏 = 𝐴))
14 eqeq1 2743 . . . . . . . . . . . . . 14 (𝑥 = 𝑏 → (𝑥 = 𝐵𝑏 = 𝐵))
1513, 14orbi12d 918 . . . . . . . . . . . . 13 (𝑥 = 𝑏 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝑏 = 𝐴𝑏 = 𝐵)))
168, 9, 12, 15ralpr 4601 . . . . . . . . . . . 12 (∀𝑥 ∈ {𝑎, 𝑏} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)))
177, 16bitrdi 290 . . . . . . . . . . 11 (𝑝 = {𝑎, 𝑏} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))))
18 eqeq1 2743 . . . . . . . . . . . . 13 (𝑝 = {𝑎, 𝑏} → (𝑝 = 𝑞 ↔ {𝑎, 𝑏} = 𝑞))
1918imbi2d 344 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → ((∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞) ↔ (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)))
2019ralbidv 3110 . . . . . . . . . . 11 (𝑝 = {𝑎, 𝑏} → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞) ↔ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)))
2117, 20anbi12d 634 . . . . . . . . . 10 (𝑝 = {𝑎, 𝑏} → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) ↔ (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞))))
2221ad2antll 729 . . . . . . . . 9 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) ↔ (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞))))
23 paireqne.a . . . . . . . . . . . . . . . . . 18 (𝜑𝐴𝑉)
24 paireqne.b . . . . . . . . . . . . . . . . . 18 (𝜑𝐵𝑉)
2523, 24jca 515 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐴𝑉𝐵𝑉))
26 prelpwi 5316 . . . . . . . . . . . . . . . . 17 ((𝐴𝑉𝐵𝑉) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
2725, 26syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → {𝐴, 𝐵} ∈ 𝒫 𝑉)
2827ad3antrrr 730 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
29 hashprg 13860 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎𝑉𝑏𝑉) → (𝑎𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2))
3029adantl 485 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (𝑎𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2))
3130biimpd 232 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (𝑎𝑏 → (♯‘{𝑎, 𝑏}) = 2))
3231com12 32 . . . . . . . . . . . . . . . . . . 19 (𝑎𝑏 → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (♯‘{𝑎, 𝑏}) = 2))
3332adantr 484 . . . . . . . . . . . . . . . . . 18 ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (♯‘{𝑎, 𝑏}) = 2))
3433impcom 411 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (♯‘{𝑎, 𝑏}) = 2)
3534adantr 484 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (♯‘{𝑎, 𝑏}) = 2)
36 eqtr3 2761 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐴𝑎 = 𝐴) → 𝑏 = 𝑎)
37 eqneqall 2946 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑎 = 𝑏 → (𝑎𝑏 → (𝑝 = {𝑎, 𝑏} → {𝐴, 𝐵} = {𝑎, 𝑏})))
3837impd 414 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑎 = 𝑏 → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → {𝐴, 𝐵} = {𝑎, 𝑏}))
3938a1d 25 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑎 = 𝑏 → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4039impd 414 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑎 = 𝑏 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4140equcoms 2032 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑏 = 𝑎 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4236, 41syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐴𝑎 = 𝐴) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4342ex 416 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐴 → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
44 preq12 4636 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})
4544eqcomd 2745 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝐴, 𝐵} = {𝑎, 𝑏})
4645a1d 25 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4746expcom 417 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐵 → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4843, 47jaoi 856 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4948com12 32 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
50 prcom 4633 . . . . . . . . . . . . . . . . . . . . . . . . . 26 {𝑎, 𝑏} = {𝑏, 𝑎}
51 preq12 4636 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝑏, 𝑎} = {𝐴, 𝐵})
5250, 51syl5eq 2786 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})
5352eqcomd 2745 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = {𝑎, 𝑏})
5453a1d 25 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐴𝑎 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
5554ex 416 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐴 → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
56 eqtr3 2761 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐵𝑎 = 𝐵) → 𝑏 = 𝑎)
5756, 41syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐵𝑎 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
5857ex 416 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐵 → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
5955, 58jaoi 856 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6059com12 32 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6149, 60jaoi 856 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6261imp 410 . . . . . . . . . . . . . . . . . 18 (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
6362impcom 411 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} = {𝑎, 𝑏})
6463fveqeq2d 6694 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((♯‘{𝐴, 𝐵}) = 2 ↔ (♯‘{𝑎, 𝑏}) = 2))
6535, 64mpbird 260 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (♯‘{𝐴, 𝐵}) = 2)
6628, 65jca 515 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
673eleq2i 2825 . . . . . . . . . . . . . . 15 ({𝐴, 𝐵} ∈ 𝑃 ↔ {𝐴, 𝐵} ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
68 fveqeq2 6695 . . . . . . . . . . . . . . . 16 (𝑥 = {𝐴, 𝐵} → ((♯‘𝑥) = 2 ↔ (♯‘{𝐴, 𝐵}) = 2))
6968elrab 3593 . . . . . . . . . . . . . . 15 ({𝐴, 𝐵} ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
7067, 69bitri 278 . . . . . . . . . . . . . 14 ({𝐴, 𝐵} ∈ 𝑃 ↔ ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
7166, 70sylibr 237 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} ∈ 𝑃)
72 raleq 3311 . . . . . . . . . . . . . . 15 (𝑞 = {𝐴, 𝐵} → (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵)))
73 eqeq2 2751 . . . . . . . . . . . . . . 15 (𝑞 = {𝐴, 𝐵} → ({𝑎, 𝑏} = 𝑞 ↔ {𝑎, 𝑏} = {𝐴, 𝐵}))
7472, 73imbi12d 348 . . . . . . . . . . . . . 14 (𝑞 = {𝐴, 𝐵} → ((∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
7574rspcv 3524 . . . . . . . . . . . . 13 ({𝐴, 𝐵} ∈ 𝑃 → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
7671, 75syl 17 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
77 eqeq1 2743 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐴 → (𝑥 = 𝐴𝐴 = 𝐴))
78 eqeq1 2743 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐴 → (𝑥 = 𝐵𝐴 = 𝐵))
7977, 78orbi12d 918 . . . . . . . . . . . . . . . . 17 (𝑥 = 𝐴 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝐴 = 𝐴𝐴 = 𝐵)))
80 eqeq1 2743 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐵 → (𝑥 = 𝐴𝐵 = 𝐴))
81 eqeq1 2743 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐵 → (𝑥 = 𝐵𝐵 = 𝐵))
8280, 81orbi12d 918 . . . . . . . . . . . . . . . . 17 (𝑥 = 𝐵 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝐵 = 𝐴𝐵 = 𝐵)))
8379, 82ralprg 4595 . . . . . . . . . . . . . . . 16 ((𝐴𝑉𝐵𝑉) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵))))
8425, 83syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵))))
8584imbi1d 345 . . . . . . . . . . . . . 14 (𝜑 → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵})))
8685ad3antrrr 730 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵})))
87 eqid 2739 . . . . . . . . . . . . . . . 16 𝐴 = 𝐴
8887orci 864 . . . . . . . . . . . . . . 15 (𝐴 = 𝐴𝐴 = 𝐵)
89 eqid 2739 . . . . . . . . . . . . . . . 16 𝐵 = 𝐵
9089olci 865 . . . . . . . . . . . . . . 15 (𝐵 = 𝐴𝐵 = 𝐵)
91 pm5.5 365 . . . . . . . . . . . . . . 15 (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ {𝑎, 𝑏} = {𝐴, 𝐵}))
9288, 90, 91mp2an 692 . . . . . . . . . . . . . 14 ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ {𝑎, 𝑏} = {𝐴, 𝐵})
938, 9pm3.2i 474 . . . . . . . . . . . . . . . . . . 19 (𝑎 ∈ V ∧ 𝑏 ∈ V)
94 preq12bg 4749 . . . . . . . . . . . . . . . . . . 19 (((𝑎 ∈ V ∧ 𝑏 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9593, 25, 94sylancr 590 . . . . . . . . . . . . . . . . . 18 (𝜑 → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9695adantr 484 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9796adantr 484 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
98 eqeq12 2753 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝑏𝐴 = 𝐵))
9998necon3bid 2979 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎𝑏𝐴𝐵))
10099biimpd 232 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎𝑏𝐴𝐵))
101 eqeq12 2753 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎 = 𝑏𝐵 = 𝐴))
102101necon3bid 2979 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐵𝐴))
103102biimpd 232 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐵𝐴))
104 necom 2988 . . . . . . . . . . . . . . . . . . . 20 (𝐴𝐵𝐵𝐴)
105103, 104syl6ibr 255 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐴𝐵))
106100, 105jaoi 856 . . . . . . . . . . . . . . . . . 18 (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → (𝑎𝑏𝐴𝐵))
107106com12 32 . . . . . . . . . . . . . . . . 17 (𝑎𝑏 → (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → 𝐴𝐵))
108107ad2antrl 728 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → 𝐴𝐵))
10997, 108sylbid 243 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ({𝑎, 𝑏} = {𝐴, 𝐵} → 𝐴𝐵))
110109adantr 484 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ({𝑎, 𝑏} = {𝐴, 𝐵} → 𝐴𝐵))
11192, 110syl5bi 245 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) → 𝐴𝐵))
11286, 111sylbid 243 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) → 𝐴𝐵))
11376, 112syld 47 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → 𝐴𝐵))
114113ex 416 . . . . . . . . . 10 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → 𝐴𝐵)))
115114impd 414 . . . . . . . . 9 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)) → 𝐴𝐵))
11622, 115sylbid 243 . . . . . . . 8 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
117116ex 416 . . . . . . 7 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
118117rexlimdvva 3205 . . . . . 6 (𝜑 → (∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
1196, 118syl5bi 245 . . . . 5 (𝜑 → (𝑝𝑃 → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
120119imp 410 . . . 4 ((𝜑𝑝𝑃) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
121120rexlimdva 3195 . . 3 (𝜑 → (∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
1222, 121syl5bi 245 . 2 (𝜑 → (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) → 𝐴𝐵))
12327adantr 484 . . . . . . 7 ((𝜑𝐴𝐵) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
124 hashprg 13860 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑉) → (𝐴𝐵 ↔ (♯‘{𝐴, 𝐵}) = 2))
12525, 124syl 17 . . . . . . . . 9 (𝜑 → (𝐴𝐵 ↔ (♯‘{𝐴, 𝐵}) = 2))
126125biimpd 232 . . . . . . . 8 (𝜑 → (𝐴𝐵 → (♯‘{𝐴, 𝐵}) = 2))
127126imp 410 . . . . . . 7 ((𝜑𝐴𝐵) → (♯‘{𝐴, 𝐵}) = 2)
128123, 127jca 515 . . . . . 6 ((𝜑𝐴𝐵) → ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
129128, 70sylibr 237 . . . . 5 ((𝜑𝐴𝐵) → {𝐴, 𝐵} ∈ 𝑃)
130 raleq 3311 . . . . . . 7 (𝑝 = {𝐴, 𝐵} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵)))
131 eqeq1 2743 . . . . . . . . 9 (𝑝 = {𝐴, 𝐵} → (𝑝 = 𝑦 ↔ {𝐴, 𝐵} = 𝑦))
132131imbi2d 344 . . . . . . . 8 (𝑝 = {𝐴, 𝐵} → ((∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦) ↔ (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
133132ralbidv 3110 . . . . . . 7 (𝑝 = {𝐴, 𝐵} → (∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦) ↔ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
134130, 133anbi12d 634 . . . . . 6 (𝑝 = {𝐴, 𝐵} → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))))
135134adantl 485 . . . . 5 (((𝜑𝐴𝐵) ∧ 𝑝 = {𝐴, 𝐵}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))))
136 vex 3404 . . . . . . . . . . 11 𝑥 ∈ V
137136elpr 4549 . . . . . . . . . 10 (𝑥 ∈ {𝐴, 𝐵} ↔ (𝑥 = 𝐴𝑥 = 𝐵))
138137a1i 11 . . . . . . . . 9 ((𝜑𝐴𝐵) → (𝑥 ∈ {𝐴, 𝐵} ↔ (𝑥 = 𝐴𝑥 = 𝐵)))
139138biimpd 232 . . . . . . . 8 ((𝜑𝐴𝐵) → (𝑥 ∈ {𝐴, 𝐵} → (𝑥 = 𝐴𝑥 = 𝐵)))
140139imp 410 . . . . . . 7 (((𝜑𝐴𝐵) ∧ 𝑥 ∈ {𝐴, 𝐵}) → (𝑥 = 𝐴𝑥 = 𝐵))
141140ralrimiva 3097 . . . . . 6 ((𝜑𝐴𝐵) → ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵))
1423eleq2i 2825 . . . . . . . . . 10 (𝑦𝑃𝑦 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
143 elss2prb 13951 . . . . . . . . . 10 (𝑦 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}))
144142, 143bitri 278 . . . . . . . . 9 (𝑦𝑃 ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}))
145 prid1g 4661 . . . . . . . . . . . . . . . 16 (𝑎𝑉𝑎 ∈ {𝑎, 𝑏})
146145ad2antrl 728 . . . . . . . . . . . . . . 15 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → 𝑎 ∈ {𝑎, 𝑏})
147146adantr 484 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑎 ∈ {𝑎, 𝑏})
148 eleq2 2822 . . . . . . . . . . . . . . 15 (𝑦 = {𝑎, 𝑏} → (𝑎𝑦𝑎 ∈ {𝑎, 𝑏}))
149148ad2antll 729 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑎𝑦𝑎 ∈ {𝑎, 𝑏}))
150147, 149mpbird 260 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑎𝑦)
15112rspcv 3524 . . . . . . . . . . . . 13 (𝑎𝑦 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑎 = 𝐴𝑎 = 𝐵)))
152150, 151syl 17 . . . . . . . . . . . 12 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑎 = 𝐴𝑎 = 𝐵)))
153 prid2g 4662 . . . . . . . . . . . . . . . . 17 (𝑏𝑉𝑏 ∈ {𝑎, 𝑏})
154153ad2antll 729 . . . . . . . . . . . . . . . 16 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → 𝑏 ∈ {𝑎, 𝑏})
155154adantr 484 . . . . . . . . . . . . . . 15 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑏 ∈ {𝑎, 𝑏})
156 eleq2 2822 . . . . . . . . . . . . . . . 16 (𝑦 = {𝑎, 𝑏} → (𝑏𝑦𝑏 ∈ {𝑎, 𝑏}))
157156ad2antll 729 . . . . . . . . . . . . . . 15 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑏𝑦𝑏 ∈ {𝑎, 𝑏}))
158155, 157mpbird 260 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑏𝑦)
15915rspcv 3524 . . . . . . . . . . . . . 14 (𝑏𝑦 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑏 = 𝐴𝑏 = 𝐵)))
160158, 159syl 17 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑏 = 𝐴𝑏 = 𝐵)))
161 simplrr 778 . . . . . . . . . . . . . . 15 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → 𝑦 = {𝑎, 𝑏})
162 eqtr3 2761 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐴𝑏 = 𝐴) → 𝑎 = 𝑏)
163 eqneqall 2946 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑎 = 𝑏 → (𝑎𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
164163com12 32 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑎𝑏 → (𝑎 = 𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
165164ad2antrl 728 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑎 = 𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
166165com12 32 . . . . . . . . . . . . . . . . . . . . . 22 (𝑎 = 𝑏 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
167162, 166syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐴) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
168167ex 416 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
16952a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
170169expcom 417 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
171168, 170jaoi 856 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
172171com12 32 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝐴 → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
17344a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
174173ex 416 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
175 eqtr3 2761 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐵𝑏 = 𝐵) → 𝑎 = 𝑏)
176175, 166syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐵𝑏 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
177176ex 416 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
178174, 177jaoi 856 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
179178com12 32 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝐵 → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
180172, 179jaoi 856 . . . . . . . . . . . . . . . . 17 ((𝑏 = 𝐴𝑏 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
181180imp 410 . . . . . . . . . . . . . . . 16 (((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵)) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
182181impcom 411 . . . . . . . . . . . . . . 15 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → {𝑎, 𝑏} = {𝐴, 𝐵})
183161, 182eqtr2d 2775 . . . . . . . . . . . . . 14 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → {𝐴, 𝐵} = 𝑦)
184183exp32 424 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → ((𝑏 = 𝐴𝑏 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
185160, 184syld 47 . . . . . . . . . . . 12 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
186152, 185mpdd 43 . . . . . . . . . . 11 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
187186ex 416 . . . . . . . . . 10 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑦 = {𝑎, 𝑏}) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
188187rexlimdvva 3205 . . . . . . . . 9 ((𝜑𝐴𝐵) → (∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
189144, 188syl5bi 245 . . . . . . . 8 ((𝜑𝐴𝐵) → (𝑦𝑃 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
190189imp 410 . . . . . . 7 (((𝜑𝐴𝐵) ∧ 𝑦𝑃) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
191190ralrimiva 3097 . . . . . 6 ((𝜑𝐴𝐵) → ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
192141, 191jca 515 . . . . 5 ((𝜑𝐴𝐵) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
193129, 135, 192rspcedvd 3532 . . . 4 ((𝜑𝐴𝐵) → ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)))
194 raleq 3311 . . . . 5 (𝑝 = 𝑦 → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵)))
195194reu8 3637 . . . 4 (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)))
196193, 195sylibr 237 . . 3 ((𝜑𝐴𝐵) → ∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵))
197196ex 416 . 2 (𝜑 → (𝐴𝐵 → ∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵)))
198122, 197impbid 215 1 (𝜑 → (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ 𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 846   = wceq 1542  wcel 2114  wne 2935  wral 3054  wrex 3055  ∃!wreu 3056  {crab 3058  Vcvv 3400  𝒫 cpw 4498  {cpr 4528  cfv 6349  2c2 11783  chash 13794
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2020  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2162  ax-12 2179  ax-ext 2711  ax-sep 5177  ax-nul 5184  ax-pow 5242  ax-pr 5306  ax-un 7491  ax-cnex 10683  ax-resscn 10684  ax-1cn 10685  ax-icn 10686  ax-addcl 10687  ax-addrcl 10688  ax-mulcl 10689  ax-mulrcl 10690  ax-mulcom 10691  ax-addass 10692  ax-mulass 10693  ax-distr 10694  ax-i2m1 10695  ax-1ne0 10696  ax-1rid 10697  ax-rnegex 10698  ax-rrecex 10699  ax-cnre 10700  ax-pre-lttri 10701  ax-pre-lttrn 10702  ax-pre-ltadd 10703  ax-pre-mulgt0 10704
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2075  df-mo 2541  df-eu 2571  df-clab 2718  df-cleq 2731  df-clel 2812  df-nfc 2882  df-ne 2936  df-nel 3040  df-ral 3059  df-rex 3060  df-reu 3061  df-rab 3063  df-v 3402  df-sbc 3686  df-csb 3801  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-pss 3872  df-nul 4222  df-if 4425  df-pw 4500  df-sn 4527  df-pr 4529  df-tp 4531  df-op 4533  df-uni 4807  df-int 4847  df-iun 4893  df-br 5041  df-opab 5103  df-mpt 5121  df-tr 5147  df-id 5439  df-eprel 5444  df-po 5452  df-so 5453  df-fr 5493  df-we 5495  df-xp 5541  df-rel 5542  df-cnv 5543  df-co 5544  df-dm 5545  df-rn 5546  df-res 5547  df-ima 5548  df-pred 6139  df-ord 6185  df-on 6186  df-lim 6187  df-suc 6188  df-iota 6307  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-riota 7139  df-ov 7185  df-oprab 7186  df-mpo 7187  df-om 7612  df-1st 7726  df-2nd 7727  df-wrecs 7988  df-recs 8049  df-rdg 8087  df-1o 8143  df-2o 8144  df-oadd 8147  df-er 8332  df-en 8568  df-dom 8569  df-sdom 8570  df-fin 8571  df-dju 9415  df-card 9453  df-pnf 10767  df-mnf 10768  df-xr 10769  df-ltxr 10770  df-le 10771  df-sub 10962  df-neg 10963  df-nn 11729  df-2 11791  df-n0 11989  df-z 12075  df-uz 12337  df-fz 12994  df-hash 13795
This theorem is referenced by:  requad2  44656
  Copyright terms: Public domain W3C validator