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

Theorem upgrres1 29951
Description: A pseudograph obtained by removing one vertex and all edges incident with this vertex is a pseudograph. Remark: This graph is not a subgraph of the original graph in the sense of df-subgr 29906 since the domains of the edge functions may not be compatible. (Contributed by AV, 8-Nov-2020.)
Hypotheses
Ref Expression
upgrres1.v 𝑉 = (Vtx‘𝐺)
upgrres1.e 𝐸 = (Edg‘𝐺)
upgrres1.f 𝐹 = {𝑒 ∈ 𝐸 ∣ 𝑁 ∉ 𝑒}
upgrres1.s 𝑆 = ⟨(𝑉 ∖ {𝑁}), ( I ↾ 𝐹)⟩
Assertion
Ref Expression
upgrres1 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → 𝑆 ∈ UPGraph)
Distinct variable groups:   𝑒,𝐸   𝑒,𝐺   𝑒,𝑁   𝑒,𝑉
Allowed substitution hints:   𝑆(𝑒)   𝐹(𝑒)

Proof of Theorem upgrres1
Dummy variables 𝑝 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 f1oi 6894 . . . . 5 ( I ↾ 𝐹):𝐹⟶1-1onto𝐹
2 f1of 6854 . . . . 5 (( I ↾ 𝐹):𝐹⟶1-1onto𝐹 → ( I ↾ 𝐹):𝐹⟶𝐹)
31, 2mp1i 14 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → ( I ↾ 𝐹):𝐹⟶𝐹)
43ffdmd 6770 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → ( I ↾ 𝐹):dom ( I ↾ 𝐹)⟶𝐹)
5 upgrres1.f . . . . 5 𝐹 = {𝑒 ∈ 𝐸 ∣ 𝑁 ∉ 𝑒}
6 simpr 490 . . . . . . . . . . 11 (((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) → 𝑒 ∈ 𝐸)
76adantr 486 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) ∧ 𝑁 ∉ 𝑒) → 𝑒 ∈ 𝐸)
8 upgrres1.e . . . . . . . . . . . . 13 𝐸 = (Edg‘𝐺)
98eleq2i 2856 . . . . . . . . . . . 12 (𝑒 ∈ 𝐸 ↔ 𝑒 ∈ (Edg‘𝐺))
10 edgupgr 29769 . . . . . . . . . . . . 13 ((𝐺 ∈ UPGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → (𝑒 ∈ 𝒫 (Vtx‘𝐺) ∧ 𝑒 ≠ ∅ ∧ (♯‘𝑒) ≤ 2))
11 elpwi 4567 . . . . . . . . . . . . . . 15 (𝑒 ∈ 𝒫 (Vtx‘𝐺) → 𝑒 ⊆ (Vtx‘𝐺))
12 upgrres1.v . . . . . . . . . . . . . . 15 𝑉 = (Vtx‘𝐺)
1311, 12sseqtrrdi 3954 . . . . . . . . . . . . . 14 (𝑒 ∈ 𝒫 (Vtx‘𝐺) → 𝑒 ⊆ 𝑉)
14133ad2ant1 1151 . . . . . . . . . . . . 13 ((𝑒 ∈ 𝒫 (Vtx‘𝐺) ∧ 𝑒 ≠ ∅ ∧ (♯‘𝑒) ≤ 2) → 𝑒 ⊆ 𝑉)
1510, 14syl 18 . . . . . . . . . . . 12 ((𝐺 ∈ UPGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → 𝑒 ⊆ 𝑉)
169, 15sylan2b 606 . . . . . . . . . . 11 ((𝐺 ∈ UPGraph ∧ 𝑒 ∈ 𝐸) → 𝑒 ⊆ 𝑉)
1716ad4ant13 764 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) ∧ 𝑁 ∉ 𝑒) → 𝑒 ⊆ 𝑉)
18 simpr 490 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) ∧ 𝑁 ∉ 𝑒) → 𝑁 ∉ 𝑒)
19 elpwdifsn 4754 . . . . . . . . . 10 ((𝑒 ∈ 𝐸 ∧ 𝑒 ⊆ 𝑉 ∧ 𝑁 ∉ 𝑒) → 𝑒 ∈ 𝒫 (𝑉 ∖ {𝑁}))
207, 17, 18, 19syl3anc 1399 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) ∧ 𝑁 ∉ 𝑒) → 𝑒 ∈ 𝒫 (𝑉 ∖ {𝑁}))
21 simpl 488 . . . . . . . . . . . 12 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → 𝐺 ∈ UPGraph)
229biimpi 219 . . . . . . . . . . . 12 (𝑒 ∈ 𝐸 → 𝑒 ∈ (Edg‘𝐺))
2310simp2d 1161 . . . . . . . . . . . 12 ((𝐺 ∈ UPGraph ∧ 𝑒 ∈ (Edg‘𝐺)) → 𝑒 ≠ ∅)
2421, 22, 23syl2an 608 . . . . . . . . . . 11 (((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) → 𝑒 ≠ ∅)
2524adantr 486 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) ∧ 𝑁 ∉ 𝑒) → 𝑒 ≠ ∅)
26 nelsn 4628 . . . . . . . . . 10 (𝑒 ≠ ∅ → ¬ 𝑒 ∈ {∅})
2725, 26syl 18 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) ∧ 𝑁 ∉ 𝑒) → ¬ 𝑒 ∈ {∅})
2820, 27eldifd 4053 . . . . . . . 8 ((((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) ∧ 𝑁 ∉ 𝑒) → 𝑒 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}))
2928ex 418 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑒 ∈ 𝐸) → (𝑁 ∉ 𝑒 → 𝑒 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅})))
3029ralrimiva 3158 . . . . . 6 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → ∀𝑒 ∈ 𝐸 (𝑁 ∉ 𝑒 → 𝑒 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅})))
31 rabss 3998 . . . . . 6 ({𝑒 ∈ 𝐸 ∣ 𝑁 ∉ 𝑒} ⊆ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ↔ ∀𝑒 ∈ 𝐸 (𝑁 ∉ 𝑒 → 𝑒 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅})))
3230, 31sylibr 237 . . . . 5 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → {𝑒 ∈ 𝐸 ∣ 𝑁 ∉ 𝑒} ⊆ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}))
335, 32eqsstrid 3951 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → 𝐹 ⊆ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}))
34 elrabi 3644 . . . . . . 7 (𝑝 ∈ {𝑒 ∈ 𝐸 ∣ 𝑁 ∉ 𝑒} → 𝑝 ∈ 𝐸)
35 edgval 29684 . . . . . . . . . . . 12 (Edg‘𝐺) = ran (iEdg‘𝐺)
368, 35eqtri 2786 . . . . . . . . . . 11 𝐸 = ran (iEdg‘𝐺)
3736eleq2i 2856 . . . . . . . . . 10 (𝑝 ∈ 𝐸 ↔ 𝑝 ∈ ran (iEdg‘𝐺))
38 eqid 2763 . . . . . . . . . . . . 13 (iEdg‘𝐺) = (iEdg‘𝐺)
3912, 38upgrf 29721 . . . . . . . . . . . 12 (𝐺 ∈ UPGraph → (iEdg‘𝐺):dom (iEdg‘𝐺)⟶{𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
4039frnd 6748 . . . . . . . . . . 11 (𝐺 ∈ UPGraph → ran (iEdg‘𝐺) ⊆ {𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2})
4140sseld 3912 . . . . . . . . . 10 (𝐺 ∈ UPGraph → (𝑝 ∈ ran (iEdg‘𝐺) → 𝑝 ∈ {𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}))
4237, 41biimtrid 245 . . . . . . . . 9 (𝐺 ∈ UPGraph → (𝑝 ∈ 𝐸 → 𝑝 ∈ {𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2}))
43 fveq2 6916 . . . . . . . . . . . 12 (𝑥 = 𝑝 → (♯‘𝑥) = (♯‘𝑝))
4443breq1d 5118 . . . . . . . . . . 11 (𝑥 = 𝑝 → ((♯‘𝑥) ≤ 2 ↔ (♯‘𝑝) ≤ 2))
4544elrab 3648 . . . . . . . . . 10 (𝑝 ∈ {𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} ↔ (𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘𝑝) ≤ 2))
4645simprbi 503 . . . . . . . . 9 (𝑝 ∈ {𝑥 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑥) ≤ 2} → (♯‘𝑝) ≤ 2)
4742, 46syl6 36 . . . . . . . 8 (𝐺 ∈ UPGraph → (𝑝 ∈ 𝐸 → (♯‘𝑝) ≤ 2))
4847adantr 486 . . . . . . 7 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → (𝑝 ∈ 𝐸 → (♯‘𝑝) ≤ 2))
4934, 48syl5com 32 . . . . . 6 (𝑝 ∈ {𝑒 ∈ 𝐸 ∣ 𝑁 ∉ 𝑒} → ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → (♯‘𝑝) ≤ 2))
5049, 5eleq2s 2882 . . . . 5 (𝑝 ∈ 𝐹 → ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → (♯‘𝑝) ≤ 2))
5150impcom 413 . . . 4 (((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) ∧ 𝑝 ∈ 𝐹) → (♯‘𝑝) ≤ 2)
5233, 51ssrabdv 4001 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → 𝐹 ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
534, 52fssd 6757 . 2 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → ( I ↾ 𝐹):dom ( I ↾ 𝐹)⟶{𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
54 upgrres1.s . . . 4 𝑆 = ⟨(𝑉 ∖ {𝑁}), ( I ↾ 𝐹)⟩
55 opex 5439 . . . 4 ⟨(𝑉 ∖ {𝑁}), ( I ↾ 𝐹)⟩ ∈ V
5654, 55eqeltri 2860 . . 3 𝑆 ∈ V
5712, 8, 5, 54upgrres1lem2 29949 . . . . 5 (Vtx‘𝑆) = (𝑉 ∖ {𝑁})
5857eqcomi 2772 . . . 4 (𝑉 ∖ {𝑁}) = (Vtx‘𝑆)
5912, 8, 5, 54upgrres1lem3 29950 . . . . 5 (iEdg‘𝑆) = ( I ↾ 𝐹)
6059eqcomi 2772 . . . 4 ( I ↾ 𝐹) = (iEdg‘𝑆)
6158, 60isupgr 29719 . . 3 (𝑆 ∈ V → (𝑆 ∈ UPGraph ↔ ( I ↾ 𝐹):dom ( I ↾ 𝐹)⟶{𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
6256, 61mp1i 14 . 2 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → (𝑆 ∈ UPGraph ↔ ( I ↾ 𝐹):dom ( I ↾ 𝐹)⟶{𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
6353, 62mpbird 260 1 ((𝐺 ∈ UPGraph ∧ 𝑁 ∈ 𝑉) → 𝑆 ∈ UPGraph)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2147   ≠ wne 2959   ∉ wnel 3065  ∀wral 3080  {crab 3416  Vcvv 3454   ⊆ wss 3900   ∖ cdif 4048  ∅c0 4281  𝒫 cpw 4560  {csn 4588  ⟨cop 4840   class class class wbr 5108   I cid 5552  dom cdm 5658  ran crn 5659   ↾ cres 5660  ⟶wf 6562  ⟶1-1ontowf1o 6565  ‘cfv 6566   ≤ cle 11383  2c2 12437  ♯chash 14515  Vtxcvtx 29631  iEdgciedg 29632  Edgcedg 29682  UPGraphcupgr 29715
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-1st 8035  df-2nd 8036  df-vtx 29633  df-iedg 29634  df-edg 29683  df-upgr 29717
This theorem is used by:  nbupgrres  30002
  Copyright terms: Public domain W3C validator