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 44851
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 3333 . . . 4 (𝑝 = 𝑞 → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵)))
21reu8 3663 . . 3 (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)))
3 paireqne.p . . . . . . . 8 𝑃 = {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2}
43eleq2i 2830 . . . . . . 7 (𝑝𝑃𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
5 elss2prb 14129 . . . . . . 7 (𝑝 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}))
64, 5bitri 274 . . . . . 6 (𝑝𝑃 ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}))
7 raleq 3333 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝑎, 𝑏} (𝑥 = 𝐴𝑥 = 𝐵)))
8 vex 3426 . . . . . . . . . . . . 13 𝑎 ∈ V
9 vex 3426 . . . . . . . . . . . . 13 𝑏 ∈ V
10 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑎 → (𝑥 = 𝐴𝑎 = 𝐴))
11 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑎 → (𝑥 = 𝐵𝑎 = 𝐵))
1210, 11orbi12d 915 . . . . . . . . . . . . 13 (𝑥 = 𝑎 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝑎 = 𝐴𝑎 = 𝐵)))
13 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑏 → (𝑥 = 𝐴𝑏 = 𝐴))
14 eqeq1 2742 . . . . . . . . . . . . . 14 (𝑥 = 𝑏 → (𝑥 = 𝐵𝑏 = 𝐵))
1513, 14orbi12d 915 . . . . . . . . . . . . 13 (𝑥 = 𝑏 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝑏 = 𝐴𝑏 = 𝐵)))
168, 9, 12, 15ralpr 4633 . . . . . . . . . . . 12 (∀𝑥 ∈ {𝑎, 𝑏} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)))
177, 16bitrdi 286 . . . . . . . . . . 11 (𝑝 = {𝑎, 𝑏} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))))
18 eqeq1 2742 . . . . . . . . . . . . 13 (𝑝 = {𝑎, 𝑏} → (𝑝 = 𝑞 ↔ {𝑎, 𝑏} = 𝑞))
1918imbi2d 340 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → ((∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞) ↔ (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)))
2019ralbidv 3120 . . . . . . . . . . 11 (𝑝 = {𝑎, 𝑏} → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞) ↔ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)))
2117, 20anbi12d 630 . . . . . . . . . 10 (𝑝 = {𝑎, 𝑏} → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) ↔ (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞))))
2221ad2antll 725 . . . . . . . . 9 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) ↔ (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞))))
23 paireqne.a . . . . . . . . . . . . . . . . . 18 (𝜑𝐴𝑉)
24 paireqne.b . . . . . . . . . . . . . . . . . 18 (𝜑𝐵𝑉)
2523, 24jca 511 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐴𝑉𝐵𝑉))
26 prelpwi 5357 . . . . . . . . . . . . . . . . 17 ((𝐴𝑉𝐵𝑉) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
2725, 26syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → {𝐴, 𝐵} ∈ 𝒫 𝑉)
2827ad3antrrr 726 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
29 hashprg 14038 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎𝑉𝑏𝑉) → (𝑎𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2))
3029adantl 481 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (𝑎𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2))
3130biimpd 228 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (𝑎𝑏 → (♯‘{𝑎, 𝑏}) = 2))
3231com12 32 . . . . . . . . . . . . . . . . . . 19 (𝑎𝑏 → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (♯‘{𝑎, 𝑏}) = 2))
3332adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → (♯‘{𝑎, 𝑏}) = 2))
3433impcom 407 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (♯‘{𝑎, 𝑏}) = 2)
3534adantr 480 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (♯‘{𝑎, 𝑏}) = 2)
36 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐴𝑎 = 𝐴) → 𝑏 = 𝑎)
37 eqneqall 2953 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑎 = 𝑏 → (𝑎𝑏 → (𝑝 = {𝑎, 𝑏} → {𝐴, 𝐵} = {𝑎, 𝑏})))
3837impd 410 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑎 = 𝑏 → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → {𝐴, 𝐵} = {𝑎, 𝑏}))
3938a1d 25 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑎 = 𝑏 → ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4039impd 410 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑎 = 𝑏 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4140equcoms 2024 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑏 = 𝑎 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4236, 41syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐴𝑎 = 𝐴) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4342ex 412 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐴 → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
44 preq12 4668 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})
4544eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝐴, 𝐵} = {𝑎, 𝑏})
4645a1d 25 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
4746expcom 413 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐵 → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4843, 47jaoi 853 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝐴 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
4948com12 32 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
50 prcom 4665 . . . . . . . . . . . . . . . . . . . . . . . . . 26 {𝑎, 𝑏} = {𝑏, 𝑎}
51 preq12 4668 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝑏, 𝑎} = {𝐴, 𝐵})
5250, 51syl5eq 2791 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})
5352eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = {𝑎, 𝑏})
5453a1d 25 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐴𝑎 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
5554ex 412 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐴 → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
56 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏 = 𝐵𝑎 = 𝐵) → 𝑏 = 𝑎)
5756, 41syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 = 𝐵𝑎 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
5857ex 412 . . . . . . . . . . . . . . . . . . . . . 22 (𝑏 = 𝐵 → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
5955, 58jaoi 853 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝐵 → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6059com12 32 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6149, 60jaoi 853 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → ((𝑏 = 𝐴𝑏 = 𝐵) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏})))
6261imp 406 . . . . . . . . . . . . . . . . . 18 (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) → (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → {𝐴, 𝐵} = {𝑎, 𝑏}))
6362impcom 407 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} = {𝑎, 𝑏})
6463fveqeq2d 6764 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((♯‘{𝐴, 𝐵}) = 2 ↔ (♯‘{𝑎, 𝑏}) = 2))
6535, 64mpbird 256 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (♯‘{𝐴, 𝐵}) = 2)
6628, 65jca 511 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
673eleq2i 2830 . . . . . . . . . . . . . . 15 ({𝐴, 𝐵} ∈ 𝑃 ↔ {𝐴, 𝐵} ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
68 fveqeq2 6765 . . . . . . . . . . . . . . . 16 (𝑥 = {𝐴, 𝐵} → ((♯‘𝑥) = 2 ↔ (♯‘{𝐴, 𝐵}) = 2))
6968elrab 3617 . . . . . . . . . . . . . . 15 ({𝐴, 𝐵} ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
7067, 69bitri 274 . . . . . . . . . . . . . 14 ({𝐴, 𝐵} ∈ 𝑃 ↔ ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
7166, 70sylibr 233 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → {𝐴, 𝐵} ∈ 𝑃)
72 raleq 3333 . . . . . . . . . . . . . . 15 (𝑞 = {𝐴, 𝐵} → (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵)))
73 eqeq2 2750 . . . . . . . . . . . . . . 15 (𝑞 = {𝐴, 𝐵} → ({𝑎, 𝑏} = 𝑞 ↔ {𝑎, 𝑏} = {𝐴, 𝐵}))
7472, 73imbi12d 344 . . . . . . . . . . . . . 14 (𝑞 = {𝐴, 𝐵} → ((∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
7574rspcv 3547 . . . . . . . . . . . . 13 ({𝐴, 𝐵} ∈ 𝑃 → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
7671, 75syl 17 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})))
77 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐴 → (𝑥 = 𝐴𝐴 = 𝐴))
78 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐴 → (𝑥 = 𝐵𝐴 = 𝐵))
7977, 78orbi12d 915 . . . . . . . . . . . . . . . . 17 (𝑥 = 𝐴 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝐴 = 𝐴𝐴 = 𝐵)))
80 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐵 → (𝑥 = 𝐴𝐵 = 𝐴))
81 eqeq1 2742 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝐵 → (𝑥 = 𝐵𝐵 = 𝐵))
8280, 81orbi12d 915 . . . . . . . . . . . . . . . . 17 (𝑥 = 𝐵 → ((𝑥 = 𝐴𝑥 = 𝐵) ↔ (𝐵 = 𝐴𝐵 = 𝐵)))
8379, 82ralprg 4627 . . . . . . . . . . . . . . . 16 ((𝐴𝑉𝐵𝑉) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵))))
8425, 83syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ↔ ((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵))))
8584imbi1d 341 . . . . . . . . . . . . . 14 (𝜑 → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵})))
8685ad3antrrr 726 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵})))
87 eqid 2738 . . . . . . . . . . . . . . . 16 𝐴 = 𝐴
8887orci 861 . . . . . . . . . . . . . . 15 (𝐴 = 𝐴𝐴 = 𝐵)
89 eqid 2738 . . . . . . . . . . . . . . . 16 𝐵 = 𝐵
9089olci 862 . . . . . . . . . . . . . . 15 (𝐵 = 𝐴𝐵 = 𝐵)
91 pm5.5 361 . . . . . . . . . . . . . . 15 (((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ {𝑎, 𝑏} = {𝐴, 𝐵}))
9288, 90, 91mp2an 688 . . . . . . . . . . . . . 14 ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) ↔ {𝑎, 𝑏} = {𝐴, 𝐵})
938, 9pm3.2i 470 . . . . . . . . . . . . . . . . . . 19 (𝑎 ∈ V ∧ 𝑏 ∈ V)
94 preq12bg 4781 . . . . . . . . . . . . . . . . . . 19 (((𝑎 ∈ V ∧ 𝑏 ∈ V) ∧ (𝐴𝑉𝐵𝑉)) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9593, 25, 94sylancr 586 . . . . . . . . . . . . . . . . . 18 (𝜑 → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9695adantr 480 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
9796adantr 480 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ({𝑎, 𝑏} = {𝐴, 𝐵} ↔ ((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴))))
98 eqeq12 2755 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎 = 𝑏𝐴 = 𝐵))
9998necon3bid 2987 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎𝑏𝐴𝐵))
10099biimpd 228 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑏 = 𝐵) → (𝑎𝑏𝐴𝐵))
101 eqeq12 2755 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎 = 𝑏𝐵 = 𝐴))
102101necon3bid 2987 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐵𝐴))
103102biimpd 228 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐵𝐴))
104 necom 2996 . . . . . . . . . . . . . . . . . . . 20 (𝐴𝐵𝐵𝐴)
105103, 104syl6ibr 251 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐵𝑏 = 𝐴) → (𝑎𝑏𝐴𝐵))
106100, 105jaoi 853 . . . . . . . . . . . . . . . . . 18 (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → (𝑎𝑏𝐴𝐵))
107106com12 32 . . . . . . . . . . . . . . . . 17 (𝑎𝑏 → (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → 𝐴𝐵))
108107ad2antrl 724 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (((𝑎 = 𝐴𝑏 = 𝐵) ∨ (𝑎 = 𝐵𝑏 = 𝐴)) → 𝐴𝐵))
10997, 108sylbid 239 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ({𝑎, 𝑏} = {𝐴, 𝐵} → 𝐴𝐵))
110109adantr 480 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ({𝑎, 𝑏} = {𝐴, 𝐵} → 𝐴𝐵))
11192, 110syl5bi 241 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((((𝐴 = 𝐴𝐴 = 𝐵) ∧ (𝐵 = 𝐴𝐵 = 𝐵)) → {𝑎, 𝑏} = {𝐴, 𝐵}) → 𝐴𝐵))
11286, 111sylbid 239 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → ((∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵}) → 𝐴𝐵))
11376, 112syld 47 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) ∧ ((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵))) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → 𝐴𝐵))
114113ex 412 . . . . . . . . . 10 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → (((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) → (∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞) → 𝐴𝐵)))
115114impd 410 . . . . . . . . 9 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((((𝑎 = 𝐴𝑎 = 𝐵) ∧ (𝑏 = 𝐴𝑏 = 𝐵)) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → {𝑎, 𝑏} = 𝑞)) → 𝐴𝐵))
11622, 115sylbid 239 . . . . . . . 8 (((𝜑 ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑝 = {𝑎, 𝑏})) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
117116ex 412 . . . . . . 7 ((𝜑 ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
118117rexlimdvva 3222 . . . . . 6 (𝜑 → (∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑝 = {𝑎, 𝑏}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
1196, 118syl5bi 241 . . . . 5 (𝜑 → (𝑝𝑃 → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵)))
120119imp 406 . . . 4 ((𝜑𝑝𝑃) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
121120rexlimdva 3212 . . 3 (𝜑 → (∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑞𝑃 (∀𝑥𝑞 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑞)) → 𝐴𝐵))
1222, 121syl5bi 241 . 2 (𝜑 → (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) → 𝐴𝐵))
12327adantr 480 . . . . . . 7 ((𝜑𝐴𝐵) → {𝐴, 𝐵} ∈ 𝒫 𝑉)
124 hashprg 14038 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑉) → (𝐴𝐵 ↔ (♯‘{𝐴, 𝐵}) = 2))
12525, 124syl 17 . . . . . . . . 9 (𝜑 → (𝐴𝐵 ↔ (♯‘{𝐴, 𝐵}) = 2))
126125biimpd 228 . . . . . . . 8 (𝜑 → (𝐴𝐵 → (♯‘{𝐴, 𝐵}) = 2))
127126imp 406 . . . . . . 7 ((𝜑𝐴𝐵) → (♯‘{𝐴, 𝐵}) = 2)
128123, 127jca 511 . . . . . 6 ((𝜑𝐴𝐵) → ({𝐴, 𝐵} ∈ 𝒫 𝑉 ∧ (♯‘{𝐴, 𝐵}) = 2))
129128, 70sylibr 233 . . . . 5 ((𝜑𝐴𝐵) → {𝐴, 𝐵} ∈ 𝑃)
130 raleq 3333 . . . . . . 7 (𝑝 = {𝐴, 𝐵} → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵)))
131 eqeq1 2742 . . . . . . . . 9 (𝑝 = {𝐴, 𝐵} → (𝑝 = 𝑦 ↔ {𝐴, 𝐵} = 𝑦))
132131imbi2d 340 . . . . . . . 8 (𝑝 = {𝐴, 𝐵} → ((∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦) ↔ (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
133132ralbidv 3120 . . . . . . 7 (𝑝 = {𝐴, 𝐵} → (∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦) ↔ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
134130, 133anbi12d 630 . . . . . 6 (𝑝 = {𝐴, 𝐵} → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))))
135134adantl 481 . . . . 5 (((𝜑𝐴𝐵) ∧ 𝑝 = {𝐴, 𝐵}) → ((∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)) ↔ (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))))
136 vex 3426 . . . . . . . . . . 11 𝑥 ∈ V
137136elpr 4581 . . . . . . . . . 10 (𝑥 ∈ {𝐴, 𝐵} ↔ (𝑥 = 𝐴𝑥 = 𝐵))
138137a1i 11 . . . . . . . . 9 ((𝜑𝐴𝐵) → (𝑥 ∈ {𝐴, 𝐵} ↔ (𝑥 = 𝐴𝑥 = 𝐵)))
139138biimpd 228 . . . . . . . 8 ((𝜑𝐴𝐵) → (𝑥 ∈ {𝐴, 𝐵} → (𝑥 = 𝐴𝑥 = 𝐵)))
140139imp 406 . . . . . . 7 (((𝜑𝐴𝐵) ∧ 𝑥 ∈ {𝐴, 𝐵}) → (𝑥 = 𝐴𝑥 = 𝐵))
141140ralrimiva 3107 . . . . . 6 ((𝜑𝐴𝐵) → ∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵))
1423eleq2i 2830 . . . . . . . . . 10 (𝑦𝑃𝑦 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2})
143 elss2prb 14129 . . . . . . . . . 10 (𝑦 ∈ {𝑥 ∈ 𝒫 𝑉 ∣ (♯‘𝑥) = 2} ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}))
144142, 143bitri 274 . . . . . . . . 9 (𝑦𝑃 ↔ ∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}))
145 prid1g 4693 . . . . . . . . . . . . . . . 16 (𝑎𝑉𝑎 ∈ {𝑎, 𝑏})
146145ad2antrl 724 . . . . . . . . . . . . . . 15 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → 𝑎 ∈ {𝑎, 𝑏})
147146adantr 480 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑎 ∈ {𝑎, 𝑏})
148 eleq2 2827 . . . . . . . . . . . . . . 15 (𝑦 = {𝑎, 𝑏} → (𝑎𝑦𝑎 ∈ {𝑎, 𝑏}))
149148ad2antll 725 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑎𝑦𝑎 ∈ {𝑎, 𝑏}))
150147, 149mpbird 256 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑎𝑦)
15112rspcv 3547 . . . . . . . . . . . . 13 (𝑎𝑦 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑎 = 𝐴𝑎 = 𝐵)))
152150, 151syl 17 . . . . . . . . . . . 12 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑎 = 𝐴𝑎 = 𝐵)))
153 prid2g 4694 . . . . . . . . . . . . . . . . 17 (𝑏𝑉𝑏 ∈ {𝑎, 𝑏})
154153ad2antll 725 . . . . . . . . . . . . . . . 16 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → 𝑏 ∈ {𝑎, 𝑏})
155154adantr 480 . . . . . . . . . . . . . . 15 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑏 ∈ {𝑎, 𝑏})
156 eleq2 2827 . . . . . . . . . . . . . . . 16 (𝑦 = {𝑎, 𝑏} → (𝑏𝑦𝑏 ∈ {𝑎, 𝑏}))
157156ad2antll 725 . . . . . . . . . . . . . . 15 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑏𝑦𝑏 ∈ {𝑎, 𝑏}))
158155, 157mpbird 256 . . . . . . . . . . . . . 14 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → 𝑏𝑦)
15915rspcv 3547 . . . . . . . . . . . . . 14 (𝑏𝑦 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑏 = 𝐴𝑏 = 𝐵)))
160158, 159syl 17 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → (𝑏 = 𝐴𝑏 = 𝐵)))
161 simplrr 774 . . . . . . . . . . . . . . 15 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → 𝑦 = {𝑎, 𝑏})
162 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐴𝑏 = 𝐴) → 𝑎 = 𝑏)
163 eqneqall 2953 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑎 = 𝑏 → (𝑎𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
164163com12 32 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑎𝑏 → (𝑎 = 𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
165164ad2antrl 724 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (𝑎 = 𝑏 → {𝑎, 𝑏} = {𝐴, 𝐵}))
166165com12 32 . . . . . . . . . . . . . . . . . . . . . 22 (𝑎 = 𝑏 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
167162, 166syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐴) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
168167ex 412 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
16952a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((𝑏 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
170169expcom 413 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
171168, 170jaoi 853 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → (𝑏 = 𝐴 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
172171com12 32 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝐴 → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
17344a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐴𝑏 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
174173ex 412 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐴 → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
175 eqtr3 2764 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 = 𝐵𝑏 = 𝐵) → 𝑎 = 𝑏)
176175, 166syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 = 𝐵𝑏 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
177176ex 412 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝐵 → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
178174, 177jaoi 853 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = 𝐴𝑎 = 𝐵) → (𝑏 = 𝐵 → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
179178com12 32 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝐵 → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
180172, 179jaoi 853 . . . . . . . . . . . . . . . . 17 ((𝑏 = 𝐴𝑏 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵})))
181180imp 406 . . . . . . . . . . . . . . . 16 (((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵)) → ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → {𝑎, 𝑏} = {𝐴, 𝐵}))
182181impcom 407 . . . . . . . . . . . . . . 15 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → {𝑎, 𝑏} = {𝐴, 𝐵})
183161, 182eqtr2d 2779 . . . . . . . . . . . . . 14 (((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) ∧ ((𝑏 = 𝐴𝑏 = 𝐵) ∧ (𝑎 = 𝐴𝑎 = 𝐵))) → {𝐴, 𝐵} = 𝑦)
184183exp32 420 . . . . . . . . . . . . 13 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → ((𝑏 = 𝐴𝑏 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
185160, 184syld 47 . . . . . . . . . . . 12 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → ((𝑎 = 𝐴𝑎 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
186152, 185mpdd 43 . . . . . . . . . . 11 ((((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) ∧ (𝑎𝑏𝑦 = {𝑎, 𝑏})) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
187186ex 412 . . . . . . . . . 10 (((𝜑𝐴𝐵) ∧ (𝑎𝑉𝑏𝑉)) → ((𝑎𝑏𝑦 = {𝑎, 𝑏}) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
188187rexlimdvva 3222 . . . . . . . . 9 ((𝜑𝐴𝐵) → (∃𝑎𝑉𝑏𝑉 (𝑎𝑏𝑦 = {𝑎, 𝑏}) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
189144, 188syl5bi 241 . . . . . . . 8 ((𝜑𝐴𝐵) → (𝑦𝑃 → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
190189imp 406 . . . . . . 7 (((𝜑𝐴𝐵) ∧ 𝑦𝑃) → (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
191190ralrimiva 3107 . . . . . 6 ((𝜑𝐴𝐵) → ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦))
192141, 191jca 511 . . . . 5 ((𝜑𝐴𝐵) → (∀𝑥 ∈ {𝐴, 𝐵} (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → {𝐴, 𝐵} = 𝑦)))
193129, 135, 192rspcedvd 3555 . . . 4 ((𝜑𝐴𝐵) → ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)))
194 raleq 3333 . . . . 5 (𝑝 = 𝑦 → (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵)))
195194reu8 3663 . . . 4 (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ ∃𝑝𝑃 (∀𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ∧ ∀𝑦𝑃 (∀𝑥𝑦 (𝑥 = 𝐴𝑥 = 𝐵) → 𝑝 = 𝑦)))
196193, 195sylibr 233 . . 3 ((𝜑𝐴𝐵) → ∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵))
197196ex 412 . 2 (𝜑 → (𝐴𝐵 → ∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵)))
198122, 197impbid 211 1 (𝜑 → (∃!𝑝𝑃𝑥𝑝 (𝑥 = 𝐴𝑥 = 𝐵) ↔ 𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  wne 2942  wral 3063  wrex 3064  ∃!wreu 3065  {crab 3067  Vcvv 3422  𝒫 cpw 4530  {cpr 4560  cfv 6418  2c2 11958  chash 13972
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-n0 12164  df-z 12250  df-uz 12512  df-fz 13169  df-hash 13973
This theorem is referenced by:  requad2  44963
  Copyright terms: Public domain W3C validator