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

Theorem frgrncvvdeqlem3 30961
Description: Lemma 3 for frgrncvvdeq 30969. The unique neighbor of a vertex (expressed by a restricted iota) is the intersection of the corresponding neighborhoods. (Contributed by Alexander van der Vekens, 18-Dec-2017.) (Revised by AV, 10-May-2021.) (Proof shortened by AV, 12-Feb-2022.)
Hypotheses
Ref Expression
frgrncvvdeq.v1 𝑉 = (Vtx‘𝐺)
frgrncvvdeq.e 𝐸 = (Edg‘𝐺)
frgrncvvdeq.nx 𝐷 = (𝐺 NeighbVtx 𝑋)
frgrncvvdeq.ny 𝑁 = (𝐺 NeighbVtx 𝑌)
frgrncvvdeq.x (𝜑 → 𝑋 ∈ 𝑉)
frgrncvvdeq.y (𝜑 → 𝑌 ∈ 𝑉)
frgrncvvdeq.ne (𝜑 → 𝑋 ≠ 𝑌)
frgrncvvdeq.xy (𝜑 → 𝑌 ∉ 𝐷)
frgrncvvdeq.f (𝜑 → 𝐺 ∈ FriendGraph )
frgrncvvdeq.a 𝐴 = (𝑥 ∈ 𝐷 ↦ (℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸))
Assertion
Ref Expression
frgrncvvdeqlem3 ((𝜑 ∧ 𝑥 ∈ 𝐷) → {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)} = ((𝐺 NeighbVtx 𝑥) ∩ 𝑁))
Distinct variable groups:   𝑦,𝐸   𝑦,𝐺   𝑦,𝑉   𝑦,𝑌   𝑥,𝑦   𝑦,𝑁
Allowed substitution hints:   𝜑(𝑥, 𝑦)   𝐴(𝑥, 𝑦)   𝐷(𝑥, 𝑦)   𝐸(𝑥)   𝐺(𝑥)   𝑁(𝑥)   𝑉(𝑥)   𝑋(𝑥, 𝑦)   𝑌(𝑥)

Proof of Theorem frgrncvvdeqlem3
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 frgrncvvdeq.ny . . 3 𝑁 = (𝐺 NeighbVtx 𝑌)
21ineq2i 4116 . 2 ((𝐺 NeighbVtx 𝑥) ∩ 𝑁) = ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌))
3 frgrncvvdeq.f . . . . 5 (𝜑 → 𝐺 ∈ FriendGraph )
43adantr 486 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐷) → 𝐺 ∈ FriendGraph )
5 frgrncvvdeq.nx . . . . . . . 8 𝐷 = (𝐺 NeighbVtx 𝑋)
65eleq2i 2859 . . . . . . 7 (𝑥 ∈ 𝐷 ↔ 𝑥 ∈ (𝐺 NeighbVtx 𝑋))
7 frgrncvvdeq.v1 . . . . . . . . 9 𝑉 = (Vtx‘𝐺)
87nbgrisvtx 29981 . . . . . . . 8 (𝑥 ∈ (𝐺 NeighbVtx 𝑋) → 𝑥 ∈ 𝑉)
98a1i 11 . . . . . . 7 (𝜑 → (𝑥 ∈ (𝐺 NeighbVtx 𝑋) → 𝑥 ∈ 𝑉))
106, 9biimtrid 245 . . . . . 6 (𝜑 → (𝑥 ∈ 𝐷 → 𝑥 ∈ 𝑉))
1110imp 412 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐷) → 𝑥 ∈ 𝑉)
12 frgrncvvdeq.y . . . . . 6 (𝜑 → 𝑌 ∈ 𝑉)
1312adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐷) → 𝑌 ∈ 𝑉)
14 frgrncvvdeq.xy . . . . . . 7 (𝜑 → 𝑌 ∉ 𝐷)
15 elnelne2 3080 . . . . . . 7 ((𝑥 ∈ 𝐷 ∧ 𝑌 ∉ 𝐷) → 𝑥 ≠ 𝑌)
1614, 15sylan2 605 . . . . . 6 ((𝑥 ∈ 𝐷 ∧ 𝜑) → 𝑥 ≠ 𝑌)
1716ancoms 464 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐷) → 𝑥 ≠ 𝑌)
1811, 13, 173jca 1147 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐷) → (𝑥 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉 ∧ 𝑥 ≠ 𝑌))
19 frgrncvvdeq.e . . . . 5 𝐸 = (Edg‘𝐺)
207, 19frcond3 30929 . . . 4 (𝐺 ∈ FriendGraph → ((𝑥 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉 ∧ 𝑥 ≠ 𝑌) → ∃𝑛 ∈ 𝑉 ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛}))
214, 18, 20sylc 66 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐷) → ∃𝑛 ∈ 𝑉 ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛})
22 vex 3457 . . . . . . . . . 10 𝑛 ∈ V
23 elinsn 4671 . . . . . . . . . 10 ((𝑛 ∈ V ∧ ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛}) → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)))
2422, 23mpan 703 . . . . . . . . 9 (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)))
25 frgrusgr 30921 . . . . . . . . . . . . . . 15 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph)
2619nbusgreledg 29993 . . . . . . . . . . . . . . . . 17 (𝐺 ∈ USGraph → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ↔ {𝑛, 𝑥} ∈ 𝐸))
27 prcom 4694 . . . . . . . . . . . . . . . . . 18 {𝑛, 𝑥} = {𝑥, 𝑛}
2827eleq1i 2858 . . . . . . . . . . . . . . . . 17 ({𝑛, 𝑥} ∈ 𝐸 ↔ {𝑥, 𝑛} ∈ 𝐸)
2926, 28bitrdi 290 . . . . . . . . . . . . . . . 16 (𝐺 ∈ USGraph → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ↔ {𝑥, 𝑛} ∈ 𝐸))
3029biimpd 232 . . . . . . . . . . . . . . 15 (𝐺 ∈ USGraph → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → {𝑥, 𝑛} ∈ 𝐸))
313, 25, 303syl 19 . . . . . . . . . . . . . 14 (𝜑 → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → {𝑥, 𝑛} ∈ 𝐸))
3231adantr 486 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑥 ∈ 𝐷) → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → {𝑥, 𝑛} ∈ 𝐸))
3332com12 33 . . . . . . . . . . . 12 (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → ((𝜑 ∧ 𝑥 ∈ 𝐷) → {𝑥, 𝑛} ∈ 𝐸))
3433adantr 486 . . . . . . . . . . 11 ((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) → ((𝜑 ∧ 𝑥 ∈ 𝐷) → {𝑥, 𝑛} ∈ 𝐸))
3534imp 412 . . . . . . . . . 10 (((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → {𝑥, 𝑛} ∈ 𝐸)
361eqcomi 2775 . . . . . . . . . . . . 13 (𝐺 NeighbVtx 𝑌) = 𝑁
3736eleq2i 2859 . . . . . . . . . . . 12 (𝑛 ∈ (𝐺 NeighbVtx 𝑌) ↔ 𝑛 ∈ 𝑁)
3837bilani 510 . . . . . . . . . . 11 ((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) → 𝑛 ∈ 𝑁)
39 frgrncvvdeq.x . . . . . . . . . . . 12 (𝜑 → 𝑋 ∈ 𝑉)
40 frgrncvvdeq.ne . . . . . . . . . . . 12 (𝜑 → 𝑋 ≠ 𝑌)
41 frgrncvvdeq.a . . . . . . . . . . . 12 𝐴 = (𝑥 ∈ 𝐷 ↦ (℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸))
427, 19, 5, 1, 39, 12, 40, 14, 3, 41frgrncvvdeqlem2 30960 . . . . . . . . . . 11 ((𝜑 ∧ 𝑥 ∈ 𝐷) → ∃!𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)
43 preq2 4696 . . . . . . . . . . . . 13 (𝑦 = 𝑛 → {𝑥, 𝑦} = {𝑥, 𝑛})
4443eleq1d 2852 . . . . . . . . . . . 12 (𝑦 = 𝑛 → ({𝑥, 𝑦} ∈ 𝐸 ↔ {𝑥, 𝑛} ∈ 𝐸))
4544riota2 7432 . . . . . . . . . . 11 ((𝑛 ∈ 𝑁 ∧ ∃!𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸) → ({𝑥, 𝑛} ∈ 𝐸 ↔ (℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛))
4638, 42, 45syl2an 608 . . . . . . . . . 10 (((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → ({𝑥, 𝑛} ∈ 𝐸 ↔ (℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛))
4735, 46mpbid 235 . . . . . . . . 9 (((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → (℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛)
4824, 47sylan 592 . . . . . . . 8 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → (℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛)
4948eqcomd 2772 . . . . . . 7 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → 𝑛 = (℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸))
5049sneqd 4595 . . . . . 6 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → {𝑛} = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)})
51 eqeq1 2770 . . . . . . 7 (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)} ↔ {𝑛} = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5251adantr 486 . . . . . 6 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)} ↔ {𝑛} = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5350, 52mpbird 260 . . . . 5 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑 ∧ 𝑥 ∈ 𝐷)) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)})
5453ex 418 . . . 4 (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → ((𝜑 ∧ 𝑥 ∈ 𝐷) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5554rexlimivw 3166 . . 3 (∃𝑛 ∈ 𝑉 ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → ((𝜑 ∧ 𝑥 ∈ 𝐷) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5621, 55mpcom 39 . 2 ((𝜑 ∧ 𝑥 ∈ 𝐷) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)})
572, 56eqtr2id 2814 1 ((𝜑 ∧ 𝑥 ∈ 𝐷) → {(℩𝑦 ∈ 𝑁 {𝑥, 𝑦} ∈ 𝐸)} = ((𝐺 NeighbVtx 𝑥) ∩ 𝑁))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1104   = wceq 1572   ∈ wcel 2150   ≠ wne 2962   ∉ wnel 3068  ∃wrex 3093  ∃!wreu 3366  Vcvv 3453   ∩ cin 4091  {csn 4587  {cpr 4589   ↦ cmpt 5191  ‘cfv 6565  ℩crio 7406  (class class class)co 7450  Vtxcvtx 29633  Edgcedg 29684  USGraphcusgr 29789   NeighbVtx cnbgr 29972   FriendGraph cfrgr 30918
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314  ax-pre-mulgt0 11315
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-rmo 3368  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-int 4912  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6329  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-1st 8034  df-2nd 8035  df-frecs 8336  df-wrecs 8367  df-recs 8416  df-rdg 8455  df-1o 8513  df-2o 8514  df-oadd 8517  df-er 8754  df-en 9011  df-dom 9012  df-sdom 9013  df-fin 9014  df-dju 10018  df-card 10056  df-pnf 11383  df-mnf 11384  df-xr 11385  df-ltxr 11386  df-le 11387  df-sub 11581  df-neg 11582  df-nn 12375  df-2 12444  df-n0 12646  df-xnn0 12719  df-z 12733  df-uz 13005  df-fz 13679  df-hash 14515  df-edg 29685  df-upgr 29719  df-umgr 29720  df-usgr 29791  df-nbgr 29973  df-frgr 30919
This theorem is used by:  frgrncvvdeqlem5  30963
  Copyright terms: Public domain W3C validator