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

Theorem frcond3 27344
Description: The friendship condition, expressed by neighborhoods: in a friendship graph, the neighborhood of a vertex and the neighborhood of a second, different vertex have exactly one vertex in common. (Contributed by Alexander van der Vekens, 19-Dec-2017.) (Revised by AV, 30-Dec-2021.)
Hypotheses
Ref Expression
frcond1.v 𝑉 = (Vtx‘𝐺)
frcond1.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
frcond3 (𝐺 ∈ FriendGraph → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃𝑥𝑉 ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥}))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐶   𝑥,𝐸   𝑥,𝐺   𝑥,𝑉

Proof of Theorem frcond3
Dummy variable 𝑏 is distinct from all other variables.
StepHypRef Expression
1 frcond1.v . . . . 5 𝑉 = (Vtx‘𝐺)
2 frcond1.e . . . . 5 𝐸 = (Edg‘𝐺)
31, 2frcond1 27341 . . . 4 (𝐺 ∈ FriendGraph → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸))
43imp 444 . . 3 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) → ∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
5 ssrab2 3793 . . . . . . . . . 10 {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} ⊆ 𝑉
6 sseq1 3732 . . . . . . . . . 10 ({𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥} → ({𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} ⊆ 𝑉 ↔ {𝑥} ⊆ 𝑉))
75, 6mpbii 223 . . . . . . . . 9 ({𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥} → {𝑥} ⊆ 𝑉)
8 vex 3307 . . . . . . . . . 10 𝑥 ∈ V
98snss 4423 . . . . . . . . 9 (𝑥𝑉 ↔ {𝑥} ⊆ 𝑉)
107, 9sylibr 224 . . . . . . . 8 ({𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥} → 𝑥𝑉)
1110adantl 473 . . . . . . 7 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥}) → 𝑥𝑉)
12 frgrusgr 27335 . . . . . . . . . . . 12 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph)
131, 2nbusgr 26365 . . . . . . . . . . . . 13 (𝐺 ∈ USGraph → (𝐺 NeighbVtx 𝐴) = {𝑏𝑉 ∣ {𝐴, 𝑏} ∈ 𝐸})
141, 2nbusgr 26365 . . . . . . . . . . . . 13 (𝐺 ∈ USGraph → (𝐺 NeighbVtx 𝐶) = {𝑏𝑉 ∣ {𝐶, 𝑏} ∈ 𝐸})
1513, 14ineq12d 3923 . . . . . . . . . . . 12 (𝐺 ∈ USGraph → ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = ({𝑏𝑉 ∣ {𝐴, 𝑏} ∈ 𝐸} ∩ {𝑏𝑉 ∣ {𝐶, 𝑏} ∈ 𝐸}))
1612, 15syl 17 . . . . . . . . . . 11 (𝐺 ∈ FriendGraph → ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = ({𝑏𝑉 ∣ {𝐴, 𝑏} ∈ 𝐸} ∩ {𝑏𝑉 ∣ {𝐶, 𝑏} ∈ 𝐸}))
1716adantr 472 . . . . . . . . . 10 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) → ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = ({𝑏𝑉 ∣ {𝐴, 𝑏} ∈ 𝐸} ∩ {𝑏𝑉 ∣ {𝐶, 𝑏} ∈ 𝐸}))
1817adantr 472 . . . . . . . . 9 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥}) → ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = ({𝑏𝑉 ∣ {𝐴, 𝑏} ∈ 𝐸} ∩ {𝑏𝑉 ∣ {𝐶, 𝑏} ∈ 𝐸}))
19 inrab 4007 . . . . . . . . 9 ({𝑏𝑉 ∣ {𝐴, 𝑏} ∈ 𝐸} ∩ {𝑏𝑉 ∣ {𝐶, 𝑏} ∈ 𝐸}) = {𝑏𝑉 ∣ ({𝐴, 𝑏} ∈ 𝐸 ∧ {𝐶, 𝑏} ∈ 𝐸)}
2018, 19syl6eq 2774 . . . . . . . 8 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥}) → ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑏𝑉 ∣ ({𝐴, 𝑏} ∈ 𝐸 ∧ {𝐶, 𝑏} ∈ 𝐸)})
21 prcom 4374 . . . . . . . . . . . . . 14 {𝐶, 𝑏} = {𝑏, 𝐶}
2221eleq1i 2794 . . . . . . . . . . . . 13 ({𝐶, 𝑏} ∈ 𝐸 ↔ {𝑏, 𝐶} ∈ 𝐸)
2322anbi2i 732 . . . . . . . . . . . 12 (({𝐴, 𝑏} ∈ 𝐸 ∧ {𝐶, 𝑏} ∈ 𝐸) ↔ ({𝐴, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝐶} ∈ 𝐸))
24 prex 5014 . . . . . . . . . . . . 13 {𝐴, 𝑏} ∈ V
25 prex 5014 . . . . . . . . . . . . 13 {𝑏, 𝐶} ∈ V
2624, 25prss 4459 . . . . . . . . . . . 12 (({𝐴, 𝑏} ∈ 𝐸 ∧ {𝑏, 𝐶} ∈ 𝐸) ↔ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2723, 26bitri 264 . . . . . . . . . . 11 (({𝐴, 𝑏} ∈ 𝐸 ∧ {𝐶, 𝑏} ∈ 𝐸) ↔ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸)
2827a1i 11 . . . . . . . . . 10 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ 𝑏𝑉) → (({𝐴, 𝑏} ∈ 𝐸 ∧ {𝐶, 𝑏} ∈ 𝐸) ↔ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸))
2928rabbidva 3292 . . . . . . . . 9 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) → {𝑏𝑉 ∣ ({𝐴, 𝑏} ∈ 𝐸 ∧ {𝐶, 𝑏} ∈ 𝐸)} = {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸})
3029adantr 472 . . . . . . . 8 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥}) → {𝑏𝑉 ∣ ({𝐴, 𝑏} ∈ 𝐸 ∧ {𝐶, 𝑏} ∈ 𝐸)} = {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸})
31 simpr 479 . . . . . . . 8 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥}) → {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥})
3220, 30, 313eqtrd 2762 . . . . . . 7 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥}) → ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥})
3311, 32jca 555 . . . . . 6 (((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) ∧ {𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥}) → (𝑥𝑉 ∧ ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥}))
3433ex 449 . . . . 5 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) → ({𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥} → (𝑥𝑉 ∧ ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥})))
3534eximdv 1959 . . . 4 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) → (∃𝑥{𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥} → ∃𝑥(𝑥𝑉 ∧ ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥})))
36 reusn 4369 . . . 4 (∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸 ↔ ∃𝑥{𝑏𝑉 ∣ {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸} = {𝑥})
37 df-rex 3020 . . . 4 (∃𝑥𝑉 ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥} ↔ ∃𝑥(𝑥𝑉 ∧ ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥}))
3835, 36, 373imtr4g 285 . . 3 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) → (∃!𝑏𝑉 {{𝐴, 𝑏}, {𝑏, 𝐶}} ⊆ 𝐸 → ∃𝑥𝑉 ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥}))
394, 38mpd 15 . 2 ((𝐺 ∈ FriendGraph ∧ (𝐴𝑉𝐶𝑉𝐴𝐶)) → ∃𝑥𝑉 ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥})
4039ex 449 1 (𝐺 ∈ FriendGraph → ((𝐴𝑉𝐶𝑉𝐴𝐶) → ∃𝑥𝑉 ((𝐺 NeighbVtx 𝐴) ∩ (𝐺 NeighbVtx 𝐶)) = {𝑥}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383  w3a 1072   = wceq 1596  wex 1817  wcel 2103  wne 2896  wrex 3015  ∃!wreu 3016  {crab 3018  cin 3679  wss 3680  {csn 4285  {cpr 4287  cfv 6001  (class class class)co 6765  Vtxcvtx 25994  Edgcedg 26059  USGraphcusgr 26164   NeighbVtx cnbgr 26344   FriendGraph cfrgr 27331
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1835  ax-4 1850  ax-5 1952  ax-6 2018  ax-7 2054  ax-8 2105  ax-9 2112  ax-10 2132  ax-11 2147  ax-12 2160  ax-13 2355  ax-ext 2704  ax-rep 4879  ax-sep 4889  ax-nul 4897  ax-pow 4948  ax-pr 5011  ax-un 7066  ax-cnex 10105  ax-resscn 10106  ax-1cn 10107  ax-icn 10108  ax-addcl 10109  ax-addrcl 10110  ax-mulcl 10111  ax-mulrcl 10112  ax-mulcom 10113  ax-addass 10114  ax-mulass 10115  ax-distr 10116  ax-i2m1 10117  ax-1ne0 10118  ax-1rid 10119  ax-rnegex 10120  ax-rrecex 10121  ax-cnre 10122  ax-pre-lttri 10123  ax-pre-lttrn 10124  ax-pre-ltadd 10125  ax-pre-mulgt0 10126
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1599  df-fal 1602  df-ex 1818  df-nf 1823  df-sb 2011  df-eu 2575  df-mo 2576  df-clab 2711  df-cleq 2717  df-clel 2720  df-nfc 2855  df-ne 2897  df-nel 3000  df-ral 3019  df-rex 3020  df-reu 3021  df-rmo 3022  df-rab 3023  df-v 3306  df-sbc 3542  df-csb 3640  df-dif 3683  df-un 3685  df-in 3687  df-ss 3694  df-pss 3696  df-nul 4024  df-if 4195  df-pw 4268  df-sn 4286  df-pr 4288  df-tp 4290  df-op 4292  df-uni 4545  df-int 4584  df-iun 4630  df-br 4761  df-opab 4821  df-mpt 4838  df-tr 4861  df-id 5128  df-eprel 5133  df-po 5139  df-so 5140  df-fr 5177  df-we 5179  df-xp 5224  df-rel 5225  df-cnv 5226  df-co 5227  df-dm 5228  df-rn 5229  df-res 5230  df-ima 5231  df-pred 5793  df-ord 5839  df-on 5840  df-lim 5841  df-suc 5842  df-iota 5964  df-fun 6003  df-fn 6004  df-f 6005  df-f1 6006  df-fo 6007  df-f1o 6008  df-fv 6009  df-riota 6726  df-ov 6768  df-oprab 6769  df-mpt2 6770  df-om 7183  df-1st 7285  df-2nd 7286  df-wrecs 7527  df-recs 7588  df-rdg 7626  df-1o 7680  df-2o 7681  df-oadd 7684  df-er 7862  df-en 8073  df-dom 8074  df-sdom 8075  df-fin 8076  df-card 8878  df-cda 9103  df-pnf 10189  df-mnf 10190  df-xr 10191  df-ltxr 10192  df-le 10193  df-sub 10381  df-neg 10382  df-nn 11134  df-2 11192  df-n0 11406  df-xnn0 11477  df-z 11491  df-uz 11801  df-fz 12441  df-hash 13233  df-edg 26060  df-upgr 26097  df-umgr 26098  df-usgr 26166  df-nbgr 26345  df-frgr 27332
This theorem is referenced by:  frcond4  27345  frgrncvvdeqlem3  27376
  Copyright terms: Public domain W3C validator