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

Theorem umgrreslem 29239
Description: Lemma for umgrres 29241 and usgrres 29242. (Contributed by AV, 27-Nov-2020.) (Revised by AV, 19-Dec-2021.)
Hypotheses
Ref Expression
upgrres.v 𝑉 = (Vtx‘𝐺)
upgrres.e 𝐸 = (iEdg‘𝐺)
upgrres.f 𝐹 = {𝑖 ∈ dom 𝐸𝑁 ∉ (𝐸𝑖)}
Assertion
Ref Expression
umgrreslem ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → ran (𝐸𝐹) ⊆ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})
Distinct variable groups:   𝑖,𝐸   𝐸,𝑝   𝐺,𝑝   𝑖,𝑁   𝑁,𝑝   𝑉,𝑝
Allowed substitution hints:   𝐹(𝑖,𝑝)   𝐺(𝑖)   𝑉(𝑖)

Proof of Theorem umgrreslem
Dummy variable 𝑗 is distinct from all other variables.
StepHypRef Expression
1 df-ima 5654 . 2 (𝐸𝐹) = ran (𝐸𝐹)
2 fveq2 6861 . . . . . . 7 (𝑖 = 𝑗 → (𝐸𝑖) = (𝐸𝑗))
3 neleq2 3037 . . . . . . 7 ((𝐸𝑖) = (𝐸𝑗) → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
42, 3syl 17 . . . . . 6 (𝑖 = 𝑗 → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
5 upgrres.f . . . . . 6 𝐹 = {𝑖 ∈ dom 𝐸𝑁 ∉ (𝐸𝑖)}
64, 5elrab2 3665 . . . . 5 (𝑗𝐹 ↔ (𝑗 ∈ dom 𝐸𝑁 ∉ (𝐸𝑗)))
7 upgrres.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
8 upgrres.e . . . . . . . 8 𝐸 = (iEdg‘𝐺)
97, 8umgrf 29032 . . . . . . 7 (𝐺 ∈ UMGraph → 𝐸:dom 𝐸⟶{𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2})
10 ffvelcdm 7056 . . . . . . . . . 10 ((𝐸:dom 𝐸⟶{𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2} ∧ 𝑗 ∈ dom 𝐸) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2})
11 fveqeq2 6870 . . . . . . . . . . . 12 (𝑝 = (𝐸𝑗) → ((♯‘𝑝) = 2 ↔ (♯‘(𝐸𝑗)) = 2))
1211elrab 3662 . . . . . . . . . . 11 ((𝐸𝑗) ∈ {𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2} ↔ ((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2))
13 simpll 766 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 𝑉)
14 elpwi 4573 . . . . . . . . . . . . . . . . 17 ((𝐸𝑗) ∈ 𝒫 𝑉 → (𝐸𝑗) ⊆ 𝑉)
1514adantr 480 . . . . . . . . . . . . . . . 16 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) → (𝐸𝑗) ⊆ 𝑉)
1615adantr 480 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ⊆ 𝑉)
17 simpr 484 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) ∧ 𝑁 ∉ (𝐸𝑗)) → 𝑁 ∉ (𝐸𝑗))
18 elpwdifsn 4756 . . . . . . . . . . . . . . 15 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ⊆ 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
1913, 16, 17, 18syl3anc 1373 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
20 simpr 484 . . . . . . . . . . . . . . 15 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) → (♯‘(𝐸𝑗)) = 2)
2120adantr 480 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (♯‘(𝐸𝑗)) = 2)
2211, 19, 21elrabd 3664 . . . . . . . . . . . . 13 ((((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})
2322ex 412 . . . . . . . . . . . 12 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))
2423a1d 25 . . . . . . . . . . 11 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (♯‘(𝐸𝑗)) = 2) → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})))
2512, 24sylbi 217 . . . . . . . . . 10 ((𝐸𝑗) ∈ {𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2} → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})))
2610, 25syl 17 . . . . . . . . 9 ((𝐸:dom 𝐸⟶{𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2} ∧ 𝑗 ∈ dom 𝐸) → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})))
2726ex 412 . . . . . . . 8 (𝐸:dom 𝐸⟶{𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2} → (𝑗 ∈ dom 𝐸 → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))))
2827com23 86 . . . . . . 7 (𝐸:dom 𝐸⟶{𝑝 ∈ 𝒫 𝑉 ∣ (♯‘𝑝) = 2} → (𝑁𝑉 → (𝑗 ∈ dom 𝐸 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))))
299, 28syl 17 . . . . . 6 (𝐺 ∈ UMGraph → (𝑁𝑉 → (𝑗 ∈ dom 𝐸 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))))
3029imp4b 421 . . . . 5 ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → ((𝑗 ∈ dom 𝐸𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))
316, 30biimtrid 242 . . . 4 ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → (𝑗𝐹 → (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))
3231ralrimiv 3125 . . 3 ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})
33 umgruhgr 29038 . . . . . 6 (𝐺 ∈ UMGraph → 𝐺 ∈ UHGraph)
348uhgrfun 29000 . . . . . 6 (𝐺 ∈ UHGraph → Fun 𝐸)
3533, 34syl 17 . . . . 5 (𝐺 ∈ UMGraph → Fun 𝐸)
3635adantr 480 . . . 4 ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → Fun 𝐸)
375ssrab3 4048 . . . 4 𝐹 ⊆ dom 𝐸
38 funimass4 6928 . . . 4 ((Fun 𝐸𝐹 ⊆ dom 𝐸) → ((𝐸𝐹) ⊆ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))
3936, 37, 38sylancl 586 . . 3 ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → ((𝐸𝐹) ⊆ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2}))
4032, 39mpbird 257 . 2 ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → (𝐸𝐹) ⊆ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})
411, 40eqsstrrid 3989 1 ((𝐺 ∈ UMGraph ∧ 𝑁𝑉) → ran (𝐸𝐹) ⊆ {𝑝 ∈ 𝒫 (𝑉 ∖ {𝑁}) ∣ (♯‘𝑝) = 2})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395   = wceq 1540  wcel 2109  wnel 3030  wral 3045  {crab 3408  cdif 3914  wss 3917  𝒫 cpw 4566  {csn 4592  dom cdm 5641  ran crn 5642  cres 5643  cima 5644  Fun wfun 6508  wf 6510  cfv 6514  2c2 12248  chash 14302  Vtxcvtx 28930  iEdgciedg 28931  UHGraphcuhgr 28990  UMGraphcumgr 29015
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2702  ax-sep 5254  ax-nul 5264  ax-pow 5323  ax-pr 5390  ax-un 7714  ax-cnex 11131  ax-resscn 11132  ax-1cn 11133  ax-icn 11134  ax-addcl 11135  ax-addrcl 11136  ax-mulcl 11137  ax-mulrcl 11138  ax-mulcom 11139  ax-addass 11140  ax-mulass 11141  ax-distr 11142  ax-i2m1 11143  ax-1ne0 11144  ax-1rid 11145  ax-rnegex 11146  ax-rrecex 11147  ax-cnre 11148  ax-pre-lttri 11149  ax-pre-lttrn 11150  ax-pre-ltadd 11151  ax-pre-mulgt0 11152
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2534  df-eu 2563  df-clab 2709  df-cleq 2722  df-clel 2804  df-nfc 2879  df-ne 2927  df-nel 3031  df-ral 3046  df-rex 3055  df-reu 3357  df-rab 3409  df-v 3452  df-sbc 3757  df-csb 3866  df-dif 3920  df-un 3922  df-in 3924  df-ss 3934  df-pss 3937  df-nul 4300  df-if 4492  df-pw 4568  df-sn 4593  df-pr 4595  df-op 4599  df-uni 4875  df-int 4914  df-iun 4960  df-br 5111  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5536  df-eprel 5541  df-po 5549  df-so 5550  df-fr 5594  df-we 5596  df-xp 5647  df-rel 5648  df-cnv 5649  df-co 5650  df-dm 5651  df-rn 5652  df-res 5653  df-ima 5654  df-pred 6277  df-ord 6338  df-on 6339  df-lim 6340  df-suc 6341  df-iota 6467  df-fun 6516  df-fn 6517  df-f 6518  df-f1 6519  df-fo 6520  df-f1o 6521  df-fv 6522  df-riota 7347  df-ov 7393  df-oprab 7394  df-mpo 7395  df-om 7846  df-1st 7971  df-2nd 7972  df-frecs 8263  df-wrecs 8294  df-recs 8343  df-rdg 8381  df-1o 8437  df-er 8674  df-en 8922  df-dom 8923  df-sdom 8924  df-fin 8925  df-card 9899  df-pnf 11217  df-mnf 11218  df-xr 11219  df-ltxr 11220  df-le 11221  df-sub 11414  df-neg 11415  df-nn 12194  df-2 12256  df-n0 12450  df-z 12537  df-uz 12801  df-fz 13476  df-hash 14303  df-uhgr 28992  df-upgr 29016  df-umgr 29017
This theorem is referenced by:  umgrres  29241  usgrres  29242
  Copyright terms: Public domain W3C validator