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 44963
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 3342 . . . 4 (𝑝 = 𝑞 → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵)))
21reu8 3668 . . 3 (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)))
3 paireqne.p . . . . . . . 8 𝑃 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}
43eleq2i 2830 . . . . . . 7 (𝑝𝑃𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
5 elss2prb 14201 . . . . . . 7 (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}))
64, 5bitri 274 . . . . . 6 (𝑝𝑃 ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}))
7 raleq 3342 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝑎, 𝑏} (𝑥 = 𝐴𝑥 = 𝐵)))
8 vex 3436 . . . . . . . . . . . . 13 𝑎 ∈ V
9 vex 3436 . . . . . . . . . . . . 13 𝑏 ∈ V
10 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑎 → (𝑥 = 𝐴𝑎 = 𝐴))
11 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑎 → (𝑥 = 𝐵𝑎 = 𝐵))
1210, 11orbi12d 916 . . . . . . . . . . . . 13 (𝑥 = 𝑎 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝑎 = 𝐴𝑎 = 𝐵)))
13 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑏 → (𝑥 = 𝐴𝑏 = 𝐴))
14 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑏 → (𝑥 = 𝐵𝑏 = 𝐵))
1513, 14orbi12d 916 . . . . . . . . . . . . 13 (𝑥 = 𝑏 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝑏 = 𝐴𝑏 = 𝐵)))
168, 9, 12, 15ralpr 4636 . . . . . . . . . . . 12 (∀𝑥 ∈ {𝑎, 𝑏} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)))
177, 16bitrdi 287 . . . . . . . . . . 11 (𝑝 = {𝑎, 𝑏} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))))
18 eqeq1 2742 . . . . . . . . . . . . 13 (𝑝 = {𝑎, 𝑏} → (𝑝 = 𝑞 ↔ {𝑎, 𝑏} = 𝑞))
1918imbi2d 341 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → ((∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞) ↔ (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)))
2019ralbidv 3112 . . . . . . . . . . 11 (𝑝 = {𝑎, 𝑏} → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞) ↔ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)))
2117, 20anbi12d 631 . . . . . . . . . 10 (𝑝 = {𝑎, 𝑏} → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) ↔ (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞))))
2221ad2antll 726 . . . . . . . . 9 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) ↔ (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞))))
23 paireqne.a . . . . . . . . . . . . . . . . . 18 (𝜑𝐴𝑉)
24 paireqne.b . . . . . . . . . . . . . . . . . 18 (𝜑𝐵𝑉)
2523, 24jca 512 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐴𝑉𝐵𝑉))
26 prelpwi 5363 . . . . . . . . . . . . . . . . 17 ((𝐴𝑉𝐵𝑉) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
2725, 26syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → {𝐴, 𝐵} ∈ 𝒫 𝑉)
2827ad3antrrr 727 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
29 hashprg 14110 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎𝑉𝑏𝑉) → (𝑎𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2))
3029adantl 482 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (𝑎𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2))
3130biimpd 228 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (𝑎𝑏 → (♯‘{𝑎, 𝑏}) = 2))
3231com12 32 . . . . . . . . . . . . . . . . . . 19 (𝑎𝑏 → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (♯‘{𝑎, 𝑏}) = 2))
3332adantr 481 . . . . . . . . . . . . . . . . . 18 ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (♯‘{𝑎, 𝑏}) = 2))
3433impcom 408 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (♯‘{𝑎, 𝑏}) = 2)
3534adantr 481 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (♯‘{𝑎, 𝑏}) = 2)
36 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐴𝑎 = 𝐴) → 𝑏 = 𝑎)
37 eqneqall 2954 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑎 = 𝑏 → (𝑎𝑏 → (𝑝 = {𝑎, 𝑏} → {𝐴, 𝐵} = {𝑎, 𝑏})))
3837impd 411 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑎 = 𝑏 → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → {𝐴, 𝐵} = {𝑎, 𝑏}))
3938a1d 25 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑎 = 𝑏 → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4039impd 411 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑎 = 𝑏 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4140equcoms 2023 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑏 = 𝑎 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4236, 41syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐴𝑎 = 𝐴) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4342ex 413 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐴 → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
44 preq12 4671 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})
4544eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝐴, 𝐵} = {𝑎, 𝑏})
4645a1d 25 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4746expcom 414 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐵 → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4843, 47jaoi 854 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4948com12 32 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
50 prcom 4668 . . . . . . . . . . . . . . . . . . . . . . . . . 26 {𝑎, 𝑏} = {𝑏, 𝑎}
51 preq12 4671 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝑏, 𝑎} = {𝐴, 𝐵})
5250, 51eqtrid 2790 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})
5352eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = {𝑎, 𝑏})
5453a1d 25 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐴𝑎 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
5554ex 413 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐴 → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
56 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐵𝑎 = 𝐵) → 𝑏 = 𝑎)
5756, 41syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐵𝑎 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
5857ex 413 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐵 → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
5955, 58jaoi 854 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6059com12 32 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6149, 60jaoi 854 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6261imp 407 . . . . . . . . . . . . . . . . . 18 (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
6362impcom 408 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} = {𝑎, 𝑏})
6463fveqeq2d 6782 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((♯‘{𝐴, 𝐵}) = 2 ↔ (♯‘{𝑎, 𝑏}) = 2))
6535, 64mpbird 256 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (♯‘{𝐴, 𝐵}) = 2)
6628, 65jca 512 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
673eleq2i 2830 . . . . . . . . . . . . . . 15 ({𝐴, 𝐵} ∈ 𝑃 ↔ {𝐴, 𝐵} ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
68 fveqeq2 6783 . . . . . . . . . . . . . . . 16 (𝑥 = {𝐴, 𝐵} → ((♯‘𝑥) = 2 ↔ (♯‘{𝐴, 𝐵}) = 2))
6968elrab 3624 . . . . . . . . . . . . . . 15 ({𝐴, 𝐵} ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
7067, 69bitri 274 . . . . . . . . . . . . . 14 ({𝐴, 𝐵} ∈ 𝑃 ↔ ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
7166, 70sylibr 233 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} ∈ 𝑃)
72 raleq 3342 . . . . . . . . . . . . . . 15 (𝑞 = {𝐴, 𝐵} → (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵)))
73 eqeq2 2750 . . . . . . . . . . . . . . 15 (𝑞 = {𝐴, 𝐵} → ({𝑎, 𝑏} = 𝑞 ↔ {𝑎, 𝑏} = {𝐴, 𝐵}))
7472, 73imbi12d 345 . . . . . . . . . . . . . 14 (𝑞 = {𝐴, 𝐵} → ((∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
7574rspcv 3557 . . . . . . . . . . . . 13 ({𝐴, 𝐵} ∈ 𝑃 → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
7671, 75syl 17 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
77 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐴 → (𝑥 = 𝐴𝐴 = 𝐴))
78 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐴 → (𝑥 = 𝐵𝐴 = 𝐵))
7977, 78orbi12d 916 . . . . . . . . . . . . . . . . 17 (𝑥 = 𝐴 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝐴 = 𝐴𝐴 = 𝐵)))
80 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐵 → (𝑥 = 𝐴𝐵 = 𝐴))
81 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐵 → (𝑥 = 𝐵𝐵 = 𝐵))
8280, 81orbi12d 916 . . . . . . . . . . . . . . . . 17 (𝑥 = 𝐵 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝐵 = 𝐴𝐵 = 𝐵)))
8379, 82ralprg 4630 . . . . . . . . . . . . . . . 16 ((𝐴𝑉𝐵𝑉) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵))))
8425, 83syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵))))
8584imbi1d 342 . . . . . . . . . . . . . 14 (𝜑 → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵})))
8685ad3antrrr 727 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵})))
87 eqid 2738 . . . . . . . . . . . . . . . 16 𝐴 = 𝐴
8887orci 862 . . . . . . . . . . . . . . 15 (𝐴 = 𝐴𝐴 = 𝐵)
89 eqid 2738 . . . . . . . . . . . . . . . 16 𝐵 = 𝐵
9089olci 863 . . . . . . . . . . . . . . 15 (𝐵 = 𝐴𝐵 = 𝐵)
91 pm5.5 362 . . . . . . . . . . . . . . 15 (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ {𝑎, 𝑏} = {𝐴, 𝐵}))
9288, 90, 91mp2an 689 . . . . . . . . . . . . . 14 ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ {𝑎, 𝑏} = {𝐴, 𝐵})
938, 9pm3.2i 471 . . . . . . . . . . . . . . . . . . 19 (𝑎 ∈ V ∧ 𝑏 ∈ V)
94 preq12bg 4784 . . . . . . . . . . . . . . . . . . 19 (((𝑎 ∈ V ∧ 𝑏 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9593, 25, 94sylancr 587 . . . . . . . . . . . . . . . . . 18 (𝜑 → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9695adantr 481 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9796adantr 481 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
98 eqeq12 2755 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝑏𝐴 = 𝐵))
9998necon3bid 2988 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎𝑏𝐴𝐵))
10099biimpd 228 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎𝑏𝐴𝐵))
101 eqeq12 2755 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎 = 𝑏𝐵 = 𝐴))
102101necon3bid 2988 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐵𝐴))
103102biimpd 228 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐵𝐴))
104 necom 2997 . . . . . . . . . . . . . . . . . . . 20 (𝐴𝐵𝐵𝐴)
105103, 104syl6ibr 251 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐴𝐵))
106100, 105jaoi 854 . . . . . . . . . . . . . . . . . 18 (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → (𝑎𝑏𝐴𝐵))
107106com12 32 . . . . . . . . . . . . . . . . 17 (𝑎𝑏 → (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → 𝐴𝐵))
108107ad2antrl 725 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → 𝐴𝐵))
10997, 108sylbid 239 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ({𝑎, 𝑏} = {𝐴, 𝐵} → 𝐴𝐵))
110109adantr 481 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ({𝑎, 𝑏} = {𝐴, 𝐵} → 𝐴𝐵))
11192, 110syl5bi 241 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) → 𝐴𝐵))
11286, 111sylbid 239 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) → 𝐴𝐵))
11376, 112syld 47 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → 𝐴𝐵))
114113ex 413 . . . . . . . . . 10 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → 𝐴𝐵)))
115114impd 411 . . . . . . . . 9 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)) → 𝐴𝐵))
11622, 115sylbid 239 . . . . . . . 8 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
117116ex 413 . . . . . . 7 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
118117rexlimdvva 3223 . . . . . 6 (𝜑 → (∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
1196, 118syl5bi 241 . . . . 5 (𝜑 → (𝑝𝑃 → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
120119imp 407 . . . 4 ((𝜑𝑝𝑃) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
121120rexlimdva 3213 . . 3 (𝜑 → (∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
1222, 121syl5bi 241 . 2 (𝜑 → (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) → 𝐴𝐵))
12327adantr 481 . . . . . . 7 ((𝜑𝐴𝐵) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
124 hashprg 14110 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑉) → (𝐴𝐵 ↔ (♯‘{𝐴, 𝐵}) = 2))
12525, 124syl 17 . . . . . . . . 9 (𝜑 → (𝐴𝐵 ↔ (♯‘{𝐴, 𝐵}) = 2))
126125biimpd 228 . . . . . . . 8 (𝜑 → (𝐴𝐵 → (♯‘{𝐴, 𝐵}) = 2))
127126imp 407 . . . . . . 7 ((𝜑𝐴𝐵) → (♯‘{𝐴, 𝐵}) = 2)
128123, 127jca 512 . . . . . 6 ((𝜑𝐴𝐵) → ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
129128, 70sylibr 233 . . . . 5 ((𝜑𝐴𝐵) → {𝐴, 𝐵} ∈ 𝑃)
130 raleq 3342 . . . . . . 7 (𝑝 = {𝐴, 𝐵} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵)))
131 eqeq1 2742 . . . . . . . . 9 (𝑝 = {𝐴, 𝐵} → (𝑝 = 𝑦 ↔ {𝐴, 𝐵} = 𝑦))
132131imbi2d 341 . . . . . . . 8 (𝑝 = {𝐴, 𝐵} → ((∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦) ↔ (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
133132ralbidv 3112 . . . . . . 7 (𝑝 = {𝐴, 𝐵} → (∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦) ↔ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
134130, 133anbi12d 631 . . . . . 6 (𝑝 = {𝐴, 𝐵} → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))))
135134adantl 482 . . . . 5 (((𝜑𝐴𝐵) ∧ 𝑝 = {𝐴, 𝐵}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))))
136 vex 3436 . . . . . . . . . . 11 𝑥 ∈ V
137136elpr 4584 . . . . . . . . . 10 (𝑥 ∈ {𝐴, 𝐵} ↔ (𝑥 = 𝐴𝑥 = 𝐵))
138137a1i 11 . . . . . . . . 9 ((𝜑𝐴𝐵) → (𝑥 ∈ {𝐴, 𝐵} ↔ (𝑥 = 𝐴𝑥 = 𝐵)))
139138biimpd 228 . . . . . . . 8 ((𝜑𝐴𝐵) → (𝑥 ∈ {𝐴, 𝐵} → (𝑥 = 𝐴𝑥 = 𝐵)))
140139imp 407 . . . . . . 7 (((𝜑𝐴𝐵) ∧ 𝑥 ∈ {𝐴, 𝐵}) → (𝑥 = 𝐴𝑥 = 𝐵))
141140ralrimiva 3103 . . . . . 6 ((𝜑𝐴𝐵) → ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵))
1423eleq2i 2830 . . . . . . . . . 10 (𝑦𝑃𝑦 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
143 elss2prb 14201 . . . . . . . . . 10 (𝑦 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}))
144142, 143bitri 274 . . . . . . . . 9 (𝑦𝑃 ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}))
145 prid1g 4696 . . . . . . . . . . . . . . . 16 (𝑎𝑉𝑎 ∈ {𝑎, 𝑏})
146145ad2antrl 725 . . . . . . . . . . . . . . 15 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → 𝑎 ∈ {𝑎, 𝑏})
147146adantr 481 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑎 ∈ {𝑎, 𝑏})
148 eleq2 2827 . . . . . . . . . . . . . . 15 (𝑦 = {𝑎, 𝑏} → (𝑎𝑦𝑎 ∈ {𝑎, 𝑏}))
149148ad2antll 726 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑎𝑦𝑎 ∈ {𝑎, 𝑏}))
150147, 149mpbird 256 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑎𝑦)
15112rspcv 3557 . . . . . . . . . . . . 13 (𝑎𝑦 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑎 = 𝐴𝑎 = 𝐵)))
152150, 151syl 17 . . . . . . . . . . . 12 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑎 = 𝐴𝑎 = 𝐵)))
153 prid2g 4697 . . . . . . . . . . . . . . . . 17 (𝑏𝑉𝑏 ∈ {𝑎, 𝑏})
154153ad2antll 726 . . . . . . . . . . . . . . . 16 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → 𝑏 ∈ {𝑎, 𝑏})
155154adantr 481 . . . . . . . . . . . . . . 15 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑏 ∈ {𝑎, 𝑏})
156 eleq2 2827 . . . . . . . . . . . . . . . 16 (𝑦 = {𝑎, 𝑏} → (𝑏𝑦𝑏 ∈ {𝑎, 𝑏}))
157156ad2antll 726 . . . . . . . . . . . . . . 15 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑏𝑦𝑏 ∈ {𝑎, 𝑏}))
158155, 157mpbird 256 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑏𝑦)
15915rspcv 3557 . . . . . . . . . . . . . 14 (𝑏𝑦 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑏 = 𝐴𝑏 = 𝐵)))
160158, 159syl 17 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑏 = 𝐴𝑏 = 𝐵)))
161 simplrr 775 . . . . . . . . . . . . . . 15 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → 𝑦 = {𝑎, 𝑏})
162 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐴𝑏 = 𝐴) → 𝑎 = 𝑏)
163 eqneqall 2954 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑎 = 𝑏 → (𝑎𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
164163com12 32 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑎𝑏 → (𝑎 = 𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
165164ad2antrl 725 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑎 = 𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
166165com12 32 . . . . . . . . . . . . . . . . . . . . . 22 (𝑎 = 𝑏 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
167162, 166syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐴) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
168167ex 413 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
16952a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
170169expcom 414 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
171168, 170jaoi 854 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
172171com12 32 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝐴 → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
17344a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
174173ex 413 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
175 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐵𝑏 = 𝐵) → 𝑎 = 𝑏)
176175, 166syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐵𝑏 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
177176ex 413 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
178174, 177jaoi 854 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
179178com12 32 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝐵 → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
180172, 179jaoi 854 . . . . . . . . . . . . . . . . 17 ((𝑏 = 𝐴𝑏 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
181180imp 407 . . . . . . . . . . . . . . . 16 (((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵)) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
182181impcom 408 . . . . . . . . . . . . . . 15 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → {𝑎, 𝑏} = {𝐴, 𝐵})
183161, 182eqtr2d 2779 . . . . . . . . . . . . . 14 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → {𝐴, 𝐵} = 𝑦)
184183exp32 421 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → ((𝑏 = 𝐴𝑏 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
185160, 184syld 47 . . . . . . . . . . . 12 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
186152, 185mpdd 43 . . . . . . . . . . 11 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
187186ex 413 . . . . . . . . . 10 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑦 = {𝑎, 𝑏}) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
188187rexlimdvva 3223 . . . . . . . . 9 ((𝜑𝐴𝐵) → (∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
189144, 188syl5bi 241 . . . . . . . 8 ((𝜑𝐴𝐵) → (𝑦𝑃 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
190189imp 407 . . . . . . 7 (((𝜑𝐴𝐵) ∧ 𝑦𝑃) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
191190ralrimiva 3103 . . . . . 6 ((𝜑𝐴𝐵) → ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
192141, 191jca 512 . . . . 5 ((𝜑𝐴𝐵) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
193129, 135, 192rspcedvd 3563 . . . 4 ((𝜑𝐴𝐵) → ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)))
194 raleq 3342 . . . . 5 (𝑝 = 𝑦 → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵)))
195194reu8 3668 . . . 4 (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)))
196193, 195sylibr 233 . . 3 ((𝜑𝐴𝐵) → ∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵))
197196ex 413 . 2 (𝜑 → (𝐴𝐵 → ∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵)))
198122, 197impbid 211 1 (𝜑 → (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ 𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wo 844   = wceq 1539  wcel 2106  wne 2943  wral 3064  wrex 3065  ∃!wreu 3066  {crab 3068  Vcvv 3432  𝒫 cpw 4533  {cpr 4563  cfv 6433  2c2 12028  chash 14044
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-2o 8298  df-oadd 8301  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-dju 9659  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-2 12036  df-n0 12234  df-z 12320  df-uz 12583  df-fz 13240  df-hash 14045
This theorem is referenced by:  requad2  45075
  Copyright terms: Public domain W3C validator