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

Theorem nb3grprlem1 26169
Description: Lemma 1 for nb3grpr 26171. (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 4265 . . . . . . . 8 (𝐵𝑌𝐵 ∈ {𝐵, 𝐶})
323ad2ant2 1081 . . . . . . 7 ((𝐴𝑋𝐵𝑌𝐶𝑍) → 𝐵 ∈ {𝐵, 𝐶})
41, 3syl 17 . . . . . 6 (𝜑𝐵 ∈ {𝐵, 𝐶})
54adantr 481 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐵 ∈ {𝐵, 𝐶})
6 eleq2 2687 . . . . . . 7 ({𝐵, 𝐶} = (𝐺 NeighbVtx 𝐴) → (𝐵 ∈ {𝐵, 𝐶} ↔ 𝐵 ∈ (𝐺 NeighbVtx 𝐴)))
76eqcoms 2629 . . . . . 6 ((𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶} → (𝐵 ∈ {𝐵, 𝐶} ↔ 𝐵 ∈ (𝐺 NeighbVtx 𝐴)))
87adantl 482 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐵 ∈ {𝐵, 𝐶} ↔ 𝐵 ∈ (𝐺 NeighbVtx 𝐴)))
95, 8mpbid 222 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐵 ∈ (𝐺 NeighbVtx 𝐴))
10 nb3grpr.g . . . . . 6 (𝜑𝐺 ∈ USGraph )
11 nb3grpr.e . . . . . . . 8 𝐸 = (Edg‘𝐺)
1211nbusgreledg 26136 . . . . . . 7 (𝐺 ∈ USGraph → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐵, 𝐴} ∈ 𝐸))
13 prcom 4237 . . . . . . . . 9 {𝐵, 𝐴} = {𝐴, 𝐵}
1413a1i 11 . . . . . . . 8 (𝐺 ∈ USGraph → {𝐵, 𝐴} = {𝐴, 𝐵})
1514eleq1d 2683 . . . . . . 7 (𝐺 ∈ USGraph → ({𝐵, 𝐴} ∈ 𝐸 ↔ {𝐴, 𝐵} ∈ 𝐸))
1612, 15bitrd 268 . . . . . 6 (𝐺 ∈ USGraph → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐵} ∈ 𝐸))
1710, 16syl 17 . . . . 5 (𝜑 → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐵} ∈ 𝐸))
1817adantr 481 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐵 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐵} ∈ 𝐸))
199, 18mpbid 222 . . 3 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → {𝐴, 𝐵} ∈ 𝐸)
20 prid2g 4266 . . . . . . . 8 (𝐶𝑍𝐶 ∈ {𝐵, 𝐶})
21203ad2ant3 1082 . . . . . . 7 ((𝐴𝑋𝐵𝑌𝐶𝑍) → 𝐶 ∈ {𝐵, 𝐶})
221, 21syl 17 . . . . . 6 (𝜑𝐶 ∈ {𝐵, 𝐶})
2322adantr 481 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐶 ∈ {𝐵, 𝐶})
24 eleq2 2687 . . . . . . 7 ({𝐵, 𝐶} = (𝐺 NeighbVtx 𝐴) → (𝐶 ∈ {𝐵, 𝐶} ↔ 𝐶 ∈ (𝐺 NeighbVtx 𝐴)))
2524eqcoms 2629 . . . . . 6 ((𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶} → (𝐶 ∈ {𝐵, 𝐶} ↔ 𝐶 ∈ (𝐺 NeighbVtx 𝐴)))
2625adantl 482 . . . . 5 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐶 ∈ {𝐵, 𝐶} ↔ 𝐶 ∈ (𝐺 NeighbVtx 𝐴)))
2723, 26mpbid 222 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → 𝐶 ∈ (𝐺 NeighbVtx 𝐴))
2811nbusgreledg 26136 . . . . . . 7 (𝐺 ∈ USGraph → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐶, 𝐴} ∈ 𝐸))
29 prcom 4237 . . . . . . . . 9 {𝐶, 𝐴} = {𝐴, 𝐶}
3029a1i 11 . . . . . . . 8 (𝐺 ∈ USGraph → {𝐶, 𝐴} = {𝐴, 𝐶})
3130eleq1d 2683 . . . . . . 7 (𝐺 ∈ USGraph → ({𝐶, 𝐴} ∈ 𝐸 ↔ {𝐴, 𝐶} ∈ 𝐸))
3228, 31bitrd 268 . . . . . 6 (𝐺 ∈ USGraph → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐶} ∈ 𝐸))
3310, 32syl 17 . . . . 5 (𝜑 → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐶} ∈ 𝐸))
3433adantr 481 . . . 4 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → (𝐶 ∈ (𝐺 NeighbVtx 𝐴) ↔ {𝐴, 𝐶} ∈ 𝐸))
3527, 34mpbid 222 . . 3 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → {𝐴, 𝐶} ∈ 𝐸)
3619, 35jca 554 . 2 ((𝜑 ∧ (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶}) → ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))
37 nb3grpr.v . . . . . 6 𝑉 = (Vtx‘𝐺)
3837, 11nbusgr 26132 . . . . 5 (𝐺 ∈ USGraph → (𝐺 NeighbVtx 𝐴) = {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸})
3910, 38syl 17 . . . 4 (𝜑 → (𝐺 NeighbVtx 𝐴) = {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸})
4039adantr 481 . . 3 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝐺 NeighbVtx 𝐴) = {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸})
41 nb3grpr.t . . . . . . . . . 10 (𝜑𝑉 = {𝐴, 𝐵, 𝐶})
42 eleq2 2687 . . . . . . . . . 10 (𝑉 = {𝐴, 𝐵, 𝐶} → (𝑣𝑉𝑣 ∈ {𝐴, 𝐵, 𝐶}))
4341, 42syl 17 . . . . . . . . 9 (𝜑 → (𝑣𝑉𝑣 ∈ {𝐴, 𝐵, 𝐶}))
4443adantr 481 . . . . . . . 8 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉𝑣 ∈ {𝐴, 𝐵, 𝐶}))
45 vex 3189 . . . . . . . . . . 11 𝑣 ∈ V
4645eltp 4201 . . . . . . . . . 10 (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ (𝑣 = 𝐴𝑣 = 𝐵𝑣 = 𝐶))
4711usgredgne 25991 . . . . . . . . . . . . . . . 16 ((𝐺 ∈ USGraph ∧ {𝐴, 𝑣} ∈ 𝐸) → 𝐴𝑣)
48 df-ne 2791 . . . . . . . . . . . . . . . . 17 (𝐴𝑣 ↔ ¬ 𝐴 = 𝑣)
49 pm2.24 121 . . . . . . . . . . . . . . . . . . 19 (𝐴 = 𝑣 → (¬ 𝐴 = 𝑣 → (𝑣 = 𝐵𝑣 = 𝐶)))
5049eqcoms 2629 . . . . . . . . . . . . . . . . . 18 (𝑣 = 𝐴 → (¬ 𝐴 = 𝑣 → (𝑣 = 𝐵𝑣 = 𝐶)))
5150com12 32 . . . . . . . . . . . . . . . . 17 𝐴 = 𝑣 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶)))
5248, 51sylbi 207 . . . . . . . . . . . . . . . 16 (𝐴𝑣 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶)))
5347, 52syl 17 . . . . . . . . . . . . . . 15 ((𝐺 ∈ USGraph ∧ {𝐴, 𝑣} ∈ 𝐸) → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶)))
5453ex 450 . . . . . . . . . . . . . 14 (𝐺 ∈ USGraph → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶))))
5510, 54syl 17 . . . . . . . . . . . . 13 (𝜑 → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶))))
5655adantr 481 . . . . . . . . . . . 12 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐴 → (𝑣 = 𝐵𝑣 = 𝐶))))
5756com3r 87 . . . . . . . . . . 11 (𝑣 = 𝐴 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
58 orc 400 . . . . . . . . . . . 12 (𝑣 = 𝐵 → (𝑣 = 𝐵𝑣 = 𝐶))
59582a1d 26 . . . . . . . . . . 11 (𝑣 = 𝐵 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
60 olc 399 . . . . . . . . . . . 12 (𝑣 = 𝐶 → (𝑣 = 𝐵𝑣 = 𝐶))
61602a1d 26 . . . . . . . . . . 11 (𝑣 = 𝐶 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6257, 59, 613jaoi 1388 . . . . . . . . . 10 ((𝑣 = 𝐴𝑣 = 𝐵𝑣 = 𝐶) → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6346, 62sylbi 207 . . . . . . . . 9 (𝑣 ∈ {𝐴, 𝐵, 𝐶} → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6463com12 32 . . . . . . . 8 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 ∈ {𝐴, 𝐵, 𝐶} → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6544, 64sylbid 230 . . . . . . 7 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 → ({𝐴, 𝑣} ∈ 𝐸 → (𝑣 = 𝐵𝑣 = 𝐶))))
6665impd 447 . . . . . 6 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ((𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸) → (𝑣 = 𝐵𝑣 = 𝐶)))
67 eqid 2621 . . . . . . . . . . . . . . . . . 18 𝐵 = 𝐵
68673mix2i 1232 . . . . . . . . . . . . . . . . 17 (𝐵 = 𝐴𝐵 = 𝐵𝐵 = 𝐶)
691simp2d 1072 . . . . . . . . . . . . . . . . . 18 (𝜑𝐵𝑌)
70 eltpg 4198 . . . . . . . . . . . . . . . . . 18 (𝐵𝑌 → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐵𝐵 = 𝐶)))
7169, 70syl 17 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐵𝐵 = 𝐶)))
7268, 71mpbiri 248 . . . . . . . . . . . . . . . 16 (𝜑𝐵 ∈ {𝐴, 𝐵, 𝐶})
7372adantr 481 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐵) → 𝐵 ∈ {𝐴, 𝐵, 𝐶})
74 eleq1 2686 . . . . . . . . . . . . . . . . 17 (𝑣 = 𝐵 → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝐵 ∈ {𝐴, 𝐵, 𝐶}))
7574bicomd 213 . . . . . . . . . . . . . . . 16 (𝑣 = 𝐵 → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
7675adantl 482 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐵) → (𝐵 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
7773, 76mpbid 222 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐵) → 𝑣 ∈ {𝐴, 𝐵, 𝐶})
7842bicomd 213 . . . . . . . . . . . . . . . 16 (𝑉 = {𝐴, 𝐵, 𝐶} → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
7941, 78syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
8079adantr 481 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐵) → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
8177, 80mpbid 222 . . . . . . . . . . . . 13 ((𝜑𝑣 = 𝐵) → 𝑣𝑉)
8281ex 450 . . . . . . . . . . . 12 (𝜑 → (𝑣 = 𝐵𝑣𝑉))
8382adantr 481 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐵𝑣𝑉))
8483impcom 446 . . . . . . . . . 10 ((𝑣 = 𝐵 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → 𝑣𝑉)
85 preq2 4239 . . . . . . . . . . . . . . 15 (𝐵 = 𝑣 → {𝐴, 𝐵} = {𝐴, 𝑣})
8685eleq1d 2683 . . . . . . . . . . . . . 14 (𝐵 = 𝑣 → ({𝐴, 𝐵} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
8786eqcoms 2629 . . . . . . . . . . . . 13 (𝑣 = 𝐵 → ({𝐴, 𝐵} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
8887biimpcd 239 . . . . . . . . . . . 12 ({𝐴, 𝐵} ∈ 𝐸 → (𝑣 = 𝐵 → {𝐴, 𝑣} ∈ 𝐸))
8988ad2antrl 763 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐵 → {𝐴, 𝑣} ∈ 𝐸))
9089impcom 446 . . . . . . . . . 10 ((𝑣 = 𝐵 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → {𝐴, 𝑣} ∈ 𝐸)
9184, 90jca 554 . . . . . . . . 9 ((𝑣 = 𝐵 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸))
9291ex 450 . . . . . . . 8 (𝑣 = 𝐵 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
93 tpid3g 4275 . . . . . . . . . . . . . . . . . 18 (𝐶𝑍𝐶 ∈ {𝐴, 𝐵, 𝐶})
94933ad2ant3 1082 . . . . . . . . . . . . . . . . 17 ((𝐴𝑋𝐵𝑌𝐶𝑍) → 𝐶 ∈ {𝐴, 𝐵, 𝐶})
951, 94syl 17 . . . . . . . . . . . . . . . 16 (𝜑𝐶 ∈ {𝐴, 𝐵, 𝐶})
9695adantr 481 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐶) → 𝐶 ∈ {𝐴, 𝐵, 𝐶})
97 eleq1 2686 . . . . . . . . . . . . . . . . 17 (𝑣 = 𝐶 → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝐶 ∈ {𝐴, 𝐵, 𝐶}))
9897bicomd 213 . . . . . . . . . . . . . . . 16 (𝑣 = 𝐶 → (𝐶 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
9998adantl 482 . . . . . . . . . . . . . . 15 ((𝜑𝑣 = 𝐶) → (𝐶 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣 ∈ {𝐴, 𝐵, 𝐶}))
10096, 99mpbid 222 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐶) → 𝑣 ∈ {𝐴, 𝐵, 𝐶})
10179adantr 481 . . . . . . . . . . . . . 14 ((𝜑𝑣 = 𝐶) → (𝑣 ∈ {𝐴, 𝐵, 𝐶} ↔ 𝑣𝑉))
102100, 101mpbid 222 . . . . . . . . . . . . 13 ((𝜑𝑣 = 𝐶) → 𝑣𝑉)
103102ex 450 . . . . . . . . . . . 12 (𝜑 → (𝑣 = 𝐶𝑣𝑉))
104103adantr 481 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐶𝑣𝑉))
105104impcom 446 . . . . . . . . . 10 ((𝑣 = 𝐶 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → 𝑣𝑉)
106 preq2 4239 . . . . . . . . . . . . . . 15 (𝐶 = 𝑣 → {𝐴, 𝐶} = {𝐴, 𝑣})
107106eleq1d 2683 . . . . . . . . . . . . . 14 (𝐶 = 𝑣 → ({𝐴, 𝐶} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
108107eqcoms 2629 . . . . . . . . . . . . 13 (𝑣 = 𝐶 → ({𝐴, 𝐶} ∈ 𝐸 ↔ {𝐴, 𝑣} ∈ 𝐸))
109108biimpcd 239 . . . . . . . . . . . 12 ({𝐴, 𝐶} ∈ 𝐸 → (𝑣 = 𝐶 → {𝐴, 𝑣} ∈ 𝐸))
110109ad2antll 764 . . . . . . . . . . 11 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣 = 𝐶 → {𝐴, 𝑣} ∈ 𝐸))
111110impcom 446 . . . . . . . . . 10 ((𝑣 = 𝐶 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → {𝐴, 𝑣} ∈ 𝐸)
112105, 111jca 554 . . . . . . . . 9 ((𝑣 = 𝐶 ∧ (𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸))) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸))
113112ex 450 . . . . . . . 8 (𝑣 = 𝐶 → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
11492, 113jaoi 394 . . . . . . 7 ((𝑣 = 𝐵𝑣 = 𝐶) → ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
115114com12 32 . . . . . 6 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ((𝑣 = 𝐵𝑣 = 𝐶) → (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)))
11666, 115impbid 202 . . . . 5 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → ((𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸) ↔ (𝑣 = 𝐵𝑣 = 𝐶)))
117116abbidv 2738 . . . 4 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → {𝑣 ∣ (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)} = {𝑣 ∣ (𝑣 = 𝐵𝑣 = 𝐶)})
118 df-rab 2916 . . . 4 {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸} = {𝑣 ∣ (𝑣𝑉 ∧ {𝐴, 𝑣} ∈ 𝐸)}
119 dfpr2 4166 . . . 4 {𝐵, 𝐶} = {𝑣 ∣ (𝑣 = 𝐵𝑣 = 𝐶)}
120117, 118, 1193eqtr4g 2680 . . 3 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → {𝑣𝑉 ∣ {𝐴, 𝑣} ∈ 𝐸} = {𝐵, 𝐶})
12140, 120eqtrd 2655 . 2 ((𝜑 ∧ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)) → (𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶})
12236, 121impbida 876 1 (𝜑 → ((𝐺 NeighbVtx 𝐴) = {𝐵, 𝐶} ↔ ({𝐴, 𝐵} ∈ 𝐸 ∧ {𝐴, 𝐶} ∈ 𝐸)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384  w3o 1035  w3a 1036   = wceq 1480  wcel 1987  {cab 2607  wne 2790  {crab 2911  {cpr 4150  {ctp 4152  cfv 5847  (class class class)co 6604  Vtxcvtx 25774  Edgcedg 25839   USGraph cusgr 25937   NeighbVtx cnbgr 26111
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4731  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902  ax-cnex 9936  ax-resscn 9937  ax-1cn 9938  ax-icn 9939  ax-addcl 9940  ax-addrcl 9941  ax-mulcl 9942  ax-mulrcl 9943  ax-mulcom 9944  ax-addass 9945  ax-mulass 9946  ax-distr 9947  ax-i2m1 9948  ax-1ne0 9949  ax-1rid 9950  ax-rnegex 9951  ax-rrecex 9952  ax-cnre 9953  ax-pre-lttri 9954  ax-pre-lttrn 9955  ax-pre-ltadd 9956  ax-pre-mulgt0 9957
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-fal 1486  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-pss 3571  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-tp 4153  df-op 4155  df-uni 4403  df-int 4441  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-tr 4713  df-eprel 4985  df-id 4989  df-po 4995  df-so 4996  df-fr 5033  df-we 5035  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-pred 5639  df-ord 5685  df-on 5686  df-lim 5687  df-suc 5688  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-riota 6565  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-om 7013  df-1st 7113  df-2nd 7114  df-wrecs 7352  df-recs 7413  df-rdg 7451  df-1o 7505  df-2o 7506  df-oadd 7509  df-er 7687  df-en 7900  df-dom 7901  df-sdom 7902  df-fin 7903  df-card 8709  df-cda 8934  df-pnf 10020  df-mnf 10021  df-xr 10022  df-ltxr 10023  df-le 10024  df-sub 10212  df-neg 10213  df-nn 10965  df-2 11023  df-n0 11237  df-xnn0 11308  df-z 11322  df-uz 11632  df-fz 12269  df-hash 13058  df-edg 25840  df-upgr 25873  df-umgr 25874  df-usgr 25939  df-nbgr 26115
This theorem is referenced by:  nb3grpr  26171  nb3grpr2  26172  nb3gr2nb  26173
  Copyright terms: Public domain W3C validator