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

Theorem nb3grprlem1 26502
Description: Lemma 1 for nb3grpr 26504. (Contributed by Alexander van der Vekens, 15-Oct-2017.) (Revised by AV, 28-Oct-2020.)
Hypotheses
Ref Expression
nb3grpr.v 𝑉 = (Vtx‘𝐺)
nb3grpr.e 𝐸 = (Edg‘𝐺)
nb3grpr.g (𝜑𝐺 ∈ USGraph)
nb3grpr.t (𝜑𝑉 = {𝐴, 𝐵, 𝐶})
nb3grpr.s (𝜑 → (𝐴𝑋𝐵𝑌𝐶𝑍))
Assertion
Ref Expression
nb3grprlem1 (𝜑 → ((𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶} ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)))

Proof of Theorem nb3grprlem1
Dummy variable 𝑣 is distinct from all other variables.
StepHypRef Expression
1 nb3grpr.s . . . . . . 7 (𝜑 → (𝐴𝑋𝐵𝑌𝐶𝑍))
2 prid1g 4440 . . . . . . . 8 (𝐵𝑌𝐵 ∈ {𝐵, 𝐶})
323ad2ant2 1129 . . . . . . 7 ((𝐴𝑋𝐵𝑌𝐶𝑍) → 𝐵 ∈ {𝐵, 𝐶})
41, 3syl 17 . . . . . 6 (𝜑𝐵 ∈ {𝐵, 𝐶})
54adantr 472 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐵 ∈ {𝐵, 𝐶})
6 eleq2 2829 . . . . . . 7 ({𝐵, 𝐶} = (𝐺 NeighbVtx 𝐴) → (𝐵 ∈ {𝐵, 𝐶} ↔ 𝐵 ∈ (𝐺 NeighbVtx 𝐴)))
76eqcoms 2769 . . . . . 6 ((𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶} → (𝐵 ∈ {𝐵, 𝐶} ↔ 𝐵 ∈ (𝐺 NeighbVtx 𝐴)))
87adantl 473 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐵 ∈ {𝐵, 𝐶} ↔ 𝐵 ∈ (𝐺 NeighbVtx 𝐴)))
95, 8mpbid 222 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐵 ∈ (𝐺 NeighbVtx 𝐴))
10 nb3grpr.g . . . . . 6 (𝜑𝐺 ∈ USGraph)
11 nb3grpr.e . . . . . . . 8 𝐸 = (Edg‘𝐺)
1211nbusgreledg 26470 . . . . . . 7 (𝐺 ∈ USGraph → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐵, 𝐴} ∈ 𝐸))
13 prcom 4412 . . . . . . . . 9 {𝐵, 𝐴} = {𝐴, 𝐵}
1413a1i 11 . . . . . . . 8 (𝐺 ∈ USGraph → {𝐵, 𝐴} = {𝐴, 𝐵})
1514eleq1d 2825 . . . . . . 7 (𝐺 ∈ USGraph → ({𝐵, 𝐴} ∈ 𝐸 ↔ {𝐴, 𝐵} ∈ 𝐸))
1612, 15bitrd 268 . . . . . 6 (𝐺 ∈ USGraph → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐵} ∈ 𝐸))
1710, 16syl 17 . . . . 5 (𝜑 → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐵} ∈ 𝐸))
1817adantr 472 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐵} ∈ 𝐸))
199, 18mpbid 222 . . 3 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → {𝐴, 𝐵} ∈ 𝐸)
20 prid2g 4441 . . . . . . . 8 (𝐶𝑍𝐶 ∈ {𝐵, 𝐶})
21203ad2ant3 1130 . . . . . . 7 ((𝐴𝑋𝐵𝑌𝐶𝑍) → 𝐶 ∈ {𝐵, 𝐶})
221, 21syl 17 . . . . . 6 (𝜑𝐶 ∈ {𝐵, 𝐶})
2322adantr 472 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐶 ∈ {𝐵, 𝐶})
24 eleq2 2829 . . . . . . 7 ({𝐵, 𝐶} = (𝐺 NeighbVtx 𝐴) → (𝐶 ∈ {𝐵, 𝐶} ↔ 𝐶 ∈ (𝐺 NeighbVtx 𝐴)))
2524eqcoms 2769 . . . . . 6 ((𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶} → (𝐶 ∈ {𝐵, 𝐶} ↔ 𝐶 ∈ (𝐺 NeighbVtx 𝐴)))
2625adantl 473 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐶 ∈ {𝐵, 𝐶} ↔ 𝐶 ∈ (𝐺 NeighbVtx 𝐴)))
2723, 26mpbid 222 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐶 ∈ (𝐺 NeighbVtx 𝐴))
2811nbusgreledg 26470 . . . . . . 7 (𝐺 ∈ USGraph → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐶, 𝐴} ∈ 𝐸))
29 prcom 4412 . . . . . . . . 9 {𝐶, 𝐴} = {𝐴, 𝐶}
3029a1i 11 . . . . . . . 8 (𝐺 ∈ USGraph → {𝐶, 𝐴} = {𝐴, 𝐶})
3130eleq1d 2825 . . . . . . 7 (𝐺 ∈ USGraph → ({𝐶, 𝐴} ∈ 𝐸 ↔ {𝐴, 𝐶} ∈ 𝐸))
3228, 31bitrd 268 . . . . . 6 (𝐺 ∈ USGraph → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐶} ∈ 𝐸))
3310, 32syl 17 . . . . 5 (𝜑 → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐶} ∈ 𝐸))
3433adantr 472 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐶} ∈ 𝐸))
3527, 34mpbid 222 . . 3 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → {𝐴, 𝐶} ∈ 𝐸)
3619, 35jca 555 . 2 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))
37 nb3grpr.v . . . . . 6 𝑉 = (Vtx‘𝐺)
3837, 11nbusgr 26466 . . . . 5 (𝐺 ∈ USGraph → (𝐺 NeighbVtx 𝐴) = {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸})
3910, 38syl 17 . . . 4 (𝜑 → (𝐺 NeighbVtx 𝐴) = {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸})
4039adantr 472 . . 3 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝐺 NeighbVtx 𝐴) = {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸})
41 nb3grpr.t . . . . . . . . . 10 (𝜑𝑉 = {𝐴, 𝐵, 𝐶})
42 eleq2 2829 . . . . . . . . . 10 (𝑉 = {𝐴, 𝐵, 𝐶} → (𝑣𝑉𝑣 ∈ {𝐴, 𝐵, 𝐶}))
4341, 42syl 17 . . . . . . . . 9 (𝜑 → (𝑣𝑉𝑣 ∈ {𝐴, 𝐵, 𝐶}))
4443adantr 472 . . . . . . . 8 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉𝑣 ∈ {𝐴, 𝐵, 𝐶}))
45 vex 3344 . . . . . . . . . . 11 𝑣 ∈ V
4645eltp 4375 . . . . . . . . . 10 (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ (𝑣 = 𝐴𝑣 = 𝐵𝑣 = 𝐶))
4711usgredgne 26319 . . . . . . . . . . . . . . . 16 ((𝐺 ∈ USGraph ∧ {𝐴, 𝑣} ∈ 𝐸) → 𝐴𝑣)
48 df-ne 2934 . . . . . . . . . . . . . . . . 17 (𝐴𝑣 ↔ ¬ 𝐴 = 𝑣)
49 pm2.24 121 . . . . . . . . . . . . . . . . . . 19 (𝐴 = 𝑣 → (¬ 𝐴 = 𝑣 → (𝑣 = 𝐵𝑣 = 𝐶)))
5049eqcoms 2769 . . . . . . . . . . . . . . . . . 18 (𝑣 = 𝐴 → (¬ 𝐴 = 𝑣 → (𝑣 = 𝐵𝑣 = 𝐶)))
5150com12 32 . . . . . . . . . . . . . . . . 17 𝐴 = 𝑣 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶)))
5248, 51sylbi 207 . . . . . . . . . . . . . . . 16 (𝐴𝑣 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶)))
5347, 52syl 17 . . . . . . . . . . . . . . 15 ((𝐺 ∈ USGraph ∧ {𝐴, 𝑣} ∈ 𝐸) → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶)))
5453ex 449 . . . . . . . . . . . . . 14 (𝐺 ∈ USGraph → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶))))
5510, 54syl 17 . . . . . . . . . . . . 13 (𝜑 → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶))))
5655adantr 472 . . . . . . . . . . . 12 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶))))
5756com3r 87 . . . . . . . . . . 11 (𝑣 = 𝐴 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
58 orc 399 . . . . . . . . . . . 12 (𝑣 = 𝐵 → (𝑣 = 𝐵𝑣 = 𝐶))
59582a1d 26 . . . . . . . . . . 11 (𝑣 = 𝐵 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
60 olc 398 . . . . . . . . . . . 12 (𝑣 = 𝐶 → (𝑣 = 𝐵𝑣 = 𝐶))
61602a1d 26 . . . . . . . . . . 11 (𝑣 = 𝐶 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6257, 59, 613jaoi 1540 . . . . . . . . . 10 ((𝑣 = 𝐴𝑣 = 𝐵𝑣 = 𝐶) → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6346, 62sylbi 207 . . . . . . . . 9 (𝑣 ∈ {𝐴, 𝐵, 𝐶} → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6463com12 32 . . . . . . . 8 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 ∈ {𝐴, 𝐵, 𝐶} → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6544, 64sylbid 230 . . . . . . 7 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6665impd 446 . . . . . 6 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ((𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸) → (𝑣 = 𝐵𝑣 = 𝐶)))
67 eqid 2761 . . . . . . . . . . . . . . . . . 18 𝐵 = 𝐵
68673mix2i 1419 . . . . . . . . . . . . . . . . 17 (𝐵 = 𝐴𝐵 = 𝐵𝐵 = 𝐶)
691simp2d 1138 . . . . . . . . . . . . . . . . . 18 (𝜑𝐵𝑌)
70 eltpg 4372 . . . . . . . . . . . . . . . . . 18 (𝐵𝑌 → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐵𝐵 = 𝐶)))
7169, 70syl 17 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐵𝐵 = 𝐶)))
7268, 71mpbiri 248 . . . . . . . . . . . . . . . 16 (𝜑𝐵 ∈ {𝐴, 𝐵, 𝐶})
7372adantr 472 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐵) → 𝐵 ∈ {𝐴, 𝐵, 𝐶})
74 eleq1 2828 . . . . . . . . . . . . . . . . 17 (𝑣 = 𝐵 → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝐵 ∈ {𝐴, 𝐵, 𝐶}))
7574bicomd 213 . . . . . . . . . . . . . . . 16 (𝑣 = 𝐵 → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
7675adantl 473 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐵) → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
7773, 76mpbid 222 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐵) → 𝑣 ∈ {𝐴, 𝐵, 𝐶})
7842bicomd 213 . . . . . . . . . . . . . . . 16 (𝑉 = {𝐴, 𝐵, 𝐶} → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
7941, 78syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
8079adantr 472 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐵) → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
8177, 80mpbid 222 . . . . . . . . . . . . 13 ((𝜑𝑣 = 𝐵) → 𝑣𝑉)
8281ex 449 . . . . . . . . . . . 12 (𝜑 → (𝑣 = 𝐵𝑣𝑉))
8382adantr 472 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐵𝑣𝑉))
8483impcom 445 . . . . . . . . . 10 ((𝑣 = 𝐵 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → 𝑣𝑉)
85 preq2 4414 . . . . . . . . . . . . . . 15 (𝐵 = 𝑣 → {𝐴, 𝐵} = {𝐴, 𝑣})
8685eleq1d 2825 . . . . . . . . . . . . . 14 (𝐵 = 𝑣 → ({𝐴, 𝐵} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
8786eqcoms 2769 . . . . . . . . . . . . 13 (𝑣 = 𝐵 → ({𝐴, 𝐵} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
8887biimpcd 239 . . . . . . . . . . . 12 ({𝐴, 𝐵} ∈ 𝐸 → (𝑣 = 𝐵 → {𝐴, 𝑣} ∈ 𝐸))
8988ad2antrl 766 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐵 → {𝐴, 𝑣} ∈ 𝐸))
9089impcom 445 . . . . . . . . . 10 ((𝑣 = 𝐵 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → {𝐴, 𝑣} ∈ 𝐸)
9184, 90jca 555 . . . . . . . . 9 ((𝑣 = 𝐵 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸))
9291ex 449 . . . . . . . 8 (𝑣 = 𝐵 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
93 tpid3g 4450 . . . . . . . . . . . . . . . . . 18 (𝐶𝑍𝐶 ∈ {𝐴, 𝐵, 𝐶})
94933ad2ant3 1130 . . . . . . . . . . . . . . . . 17 ((𝐴𝑋𝐵𝑌𝐶𝑍) → 𝐶 ∈ {𝐴, 𝐵, 𝐶})
951, 94syl 17 . . . . . . . . . . . . . . . 16 (𝜑𝐶 ∈ {𝐴, 𝐵, 𝐶})
9695adantr 472 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐶) → 𝐶 ∈ {𝐴, 𝐵, 𝐶})
97 eleq1 2828 . . . . . . . . . . . . . . . . 17 (𝑣 = 𝐶 → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝐶 ∈ {𝐴, 𝐵, 𝐶}))
9897bicomd 213 . . . . . . . . . . . . . . . 16 (𝑣 = 𝐶 → (𝐶 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
9998adantl 473 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐶) → (𝐶 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
10096, 99mpbid 222 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐶) → 𝑣 ∈ {𝐴, 𝐵, 𝐶})
10179adantr 472 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐶) → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
102100, 101mpbid 222 . . . . . . . . . . . . 13 ((𝜑𝑣 = 𝐶) → 𝑣𝑉)
103102ex 449 . . . . . . . . . . . 12 (𝜑 → (𝑣 = 𝐶𝑣𝑉))
104103adantr 472 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐶𝑣𝑉))
105104impcom 445 . . . . . . . . . 10 ((𝑣 = 𝐶 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → 𝑣𝑉)
106 preq2 4414 . . . . . . . . . . . . . . 15 (𝐶 = 𝑣 → {𝐴, 𝐶} = {𝐴, 𝑣})
107106eleq1d 2825 . . . . . . . . . . . . . 14 (𝐶 = 𝑣 → ({𝐴, 𝐶} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
108107eqcoms 2769 . . . . . . . . . . . . 13 (𝑣 = 𝐶 → ({𝐴, 𝐶} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
109108biimpcd 239 . . . . . . . . . . . 12 ({𝐴, 𝐶} ∈ 𝐸 → (𝑣 = 𝐶 → {𝐴, 𝑣} ∈ 𝐸))
110109ad2antll 767 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐶 → {𝐴, 𝑣} ∈ 𝐸))
111110impcom 445 . . . . . . . . . 10 ((𝑣 = 𝐶 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → {𝐴, 𝑣} ∈ 𝐸)
112105, 111jca 555 . . . . . . . . 9 ((𝑣 = 𝐶 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸))
113112ex 449 . . . . . . . 8 (𝑣 = 𝐶 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
11492, 113jaoi 393 . . . . . . 7 ((𝑣 = 𝐵𝑣 = 𝐶) → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
115114com12 32 . . . . . 6 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ((𝑣 = 𝐵𝑣 = 𝐶) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
11666, 115impbid 202 . . . . 5 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ((𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸) ↔ (𝑣 = 𝐵𝑣 = 𝐶)))
117116abbidv 2880 . . . 4 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → {𝑣 ∣ (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)} = {𝑣 ∣ (𝑣 = 𝐵𝑣 = 𝐶)})
118 df-rab 3060 . . . 4 {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸} = {𝑣 ∣ (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)}
119 dfpr2 4340 . . . 4 {𝐵, 𝐶} = {𝑣 ∣ (𝑣 = 𝐵𝑣 = 𝐶)}
120117, 118, 1193eqtr4g 2820 . . 3 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸} = {𝐵, 𝐶})
12140, 120eqtrd 2795 . 2 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶})
12236, 121impbida 913 1 (𝜑 → ((𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶} ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 382  wa 383  w3o 1071  w3a 1072   = wceq 1632  wcel 2140  {cab 2747  wne 2933  {crab 3055  {cpr 4324  {ctp 4326  cfv 6050  (class class class)co 6815  Vtxcvtx 26095  Edgcedg 26160  USGraphcusgr 26265   NeighbVtx cnbgr 26445
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1989  ax-6 2055  ax-7 2091  ax-8 2142  ax-9 2149  ax-10 2169  ax-11 2184  ax-12 2197  ax-13 2392  ax-ext 2741  ax-rep 4924  ax-sep 4934  ax-nul 4942  ax-pow 4993  ax-pr 5056  ax-un 7116  ax-cnex 10205  ax-resscn 10206  ax-1cn 10207  ax-icn 10208  ax-addcl 10209  ax-addrcl 10210  ax-mulcl 10211  ax-mulrcl 10212  ax-mulcom 10213  ax-addass 10214  ax-mulass 10215  ax-distr 10216  ax-i2m1 10217  ax-1ne0 10218  ax-1rid 10219  ax-rnegex 10220  ax-rrecex 10221  ax-cnre 10222  ax-pre-lttri 10223  ax-pre-lttrn 10224  ax-pre-ltadd 10225  ax-pre-mulgt0 10226
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-fal 1638  df-ex 1854  df-nf 1859  df-sb 2048  df-eu 2612  df-mo 2613  df-clab 2748  df-cleq 2754  df-clel 2757  df-nfc 2892  df-ne 2934  df-nel 3037  df-ral 3056  df-rex 3057  df-reu 3058  df-rmo 3059  df-rab 3060  df-v 3343  df-sbc 3578  df-csb 3676  df-dif 3719  df-un 3721  df-in 3723  df-ss 3730  df-pss 3732  df-nul 4060  df-if 4232  df-pw 4305  df-sn 4323  df-pr 4325  df-tp 4327  df-op 4329  df-uni 4590  df-int 4629  df-iun 4675  df-br 4806  df-opab 4866  df-mpt 4883  df-tr 4906  df-id 5175  df-eprel 5180  df-po 5188  df-so 5189  df-fr 5226  df-we 5228  df-xp 5273  df-rel 5274  df-cnv 5275  df-co 5276  df-dm 5277  df-rn 5278  df-res 5279  df-ima 5280  df-pred 5842  df-ord 5888  df-on 5889  df-lim 5890  df-suc 5891  df-iota 6013  df-fun 6052  df-fn 6053  df-f 6054  df-f1 6055  df-fo 6056  df-f1o 6057  df-fv 6058  df-riota 6776  df-ov 6818  df-oprab 6819  df-mpt2 6820  df-om 7233  df-1st 7335  df-2nd 7336  df-wrecs 7578  df-recs 7639  df-rdg 7677  df-1o 7731  df-2o 7732  df-oadd 7735  df-er 7914  df-en 8125  df-dom 8126  df-sdom 8127  df-fin 8128  df-card 8976  df-cda 9203  df-pnf 10289  df-mnf 10290  df-xr 10291  df-ltxr 10292  df-le 10293  df-sub 10481  df-neg 10482  df-nn 11234  df-2 11292  df-n0 11506  df-xnn0 11577  df-z 11591  df-uz 11901  df-fz 12541  df-hash 13333  df-edg 26161  df-upgr 26198  df-umgr 26199  df-usgr 26267  df-nbgr 26446
This theorem is referenced by:  nb3grpr  26504  nb3grpr2  26505  nb3gr2nb  26506
  Copyright terms: Public domain W3C validator