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

Theorem upgrreslem 27574
Description: Lemma for upgrres 27576. (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
upgrreslem ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ran (𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
Distinct variable groups:   𝑖,𝐸   𝐸,𝑝   𝐺,𝑝   𝑖,𝑁   𝑁,𝑝   𝑉,𝑝
Allowed substitution hints:   𝐹(𝑖,𝑝)   𝐺(𝑖)   𝑉(𝑖)

Proof of Theorem upgrreslem
Dummy variable 𝑗 is distinct from all other variables.
StepHypRef Expression
1 df-ima 5593 . 2 (𝐸𝐹) = ran (𝐸𝐹)
2 fveq2 6756 . . . . . . 7 (𝑖 = 𝑗 → (𝐸𝑖) = (𝐸𝑗))
3 neleq2 3054 . . . . . . 7 ((𝐸𝑖) = (𝐸𝑗) → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
42, 3syl 17 . . . . . 6 (𝑖 = 𝑗 → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
5 upgrres.f . . . . . 6 𝐹 = {𝑖 ∈ dom 𝐸𝑁 ∉ (𝐸𝑖)}
64, 5elrab2 3620 . . . . 5 (𝑗𝐹 ↔ (𝑗 ∈ dom 𝐸𝑁 ∉ (𝐸𝑗)))
7 upgrres.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
8 upgrres.e . . . . . . . 8 𝐸 = (iEdg‘𝐺)
97, 8upgrf 27359 . . . . . . 7 (𝐺 ∈ UPGraph → 𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
10 ffvelrn 6941 . . . . . . . . . 10 ((𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ∧ 𝑗 ∈ dom 𝐸) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
11 fveq2 6756 . . . . . . . . . . . . 13 (𝑝 = (𝐸𝑗) → (♯‘𝑝) = (♯‘(𝐸𝑗)))
1211breq1d 5080 . . . . . . . . . . . 12 (𝑝 = (𝐸𝑗) → ((♯‘𝑝) ≤ 2 ↔ (♯‘(𝐸𝑗)) ≤ 2))
1312elrab 3617 . . . . . . . . . . 11 ((𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2))
14 eldifsn 4717 . . . . . . . . . . . . . . . . . 18 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ↔ ((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ≠ ∅))
15 simpl 482 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 𝑉)
16 elpwi 4539 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐸𝑗) ∈ 𝒫 𝑉 → (𝐸𝑗) ⊆ 𝑉)
1716adantr 480 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ⊆ 𝑉)
18 simpr 484 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → 𝑁 ∉ (𝐸𝑗))
19 elpwdifsn 4719 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ⊆ 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
2015, 17, 18, 19syl3anc 1369 . . . . . . . . . . . . . . . . . . . 20 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
2120ex 412 . . . . . . . . . . . . . . . . . . 19 ((𝐸𝑗) ∈ 𝒫 𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2221adantr 480 . . . . . . . . . . . . . . . . . 18 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ≠ ∅) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2314, 22sylbi 216 . . . . . . . . . . . . . . . . 17 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2423adantr 480 . . . . . . . . . . . . . . . 16 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2524imp 406 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
26 eldifsni 4720 . . . . . . . . . . . . . . . . 17 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) → (𝐸𝑗) ≠ ∅)
2726adantr 480 . . . . . . . . . . . . . . . 16 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝐸𝑗) ≠ ∅)
2827adantr 480 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ≠ ∅)
29 eldifsn 4717 . . . . . . . . . . . . . . 15 ((𝐸𝑗) ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ↔ ((𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}) ∧ (𝐸𝑗) ≠ ∅))
3025, 28, 29sylanbrc 582 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}))
31 simpr 484 . . . . . . . . . . . . . . 15 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (♯‘(𝐸𝑗)) ≤ 2)
3231adantr 480 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (♯‘(𝐸𝑗)) ≤ 2)
3312, 30, 32elrabd 3619 . . . . . . . . . . . . 13 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
3433ex 412 . . . . . . . . . . . 12 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
3534a1d 25 . . . . . . . . . . 11 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})))
3613, 35sylbi 216 . . . . . . . . . 10 ((𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})))
3710, 36syl 17 . . . . . . . . 9 ((𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ∧ 𝑗 ∈ dom 𝐸) → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})))
3837ex 412 . . . . . . . 8 (𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} → (𝑗 ∈ dom 𝐸 → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))))
3938com23 86 . . . . . . 7 (𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} → (𝑁𝑉 → (𝑗 ∈ dom 𝐸 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))))
409, 39syl 17 . . . . . 6 (𝐺 ∈ UPGraph → (𝑁𝑉 → (𝑗 ∈ dom 𝐸 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))))
4140imp4b 421 . . . . 5 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ((𝑗 ∈ dom 𝐸𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
426, 41syl5bi 241 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → (𝑗𝐹 → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
4342ralrimiv 3106 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
44 upgruhgr 27375 . . . . . 6 (𝐺 ∈ UPGraph → 𝐺 ∈ UHGraph)
458uhgrfun 27339 . . . . . 6 (𝐺 ∈ UHGraph → Fun 𝐸)
4644, 45syl 17 . . . . 5 (𝐺 ∈ UPGraph → Fun 𝐸)
4746adantr 480 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → Fun 𝐸)
485ssrab3 4011 . . . 4 𝐹 ⊆ dom 𝐸
49 funimass4 6816 . . . 4 ((Fun 𝐸𝐹 ⊆ dom 𝐸) → ((𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
5047, 48, 49sylancl 585 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ((𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
5143, 50mpbird 256 . 2 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → (𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
521, 51eqsstrrid 3966 1 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ran (𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wne 2942  wnel 3048  wral 3063  {crab 3067  cdif 3880  wss 3883  c0 4253  𝒫 cpw 4530  {csn 4558   class class class wbr 5070  dom cdm 5580  ran crn 5581  cres 5582  cima 5583  Fun wfun 6412  wf 6414  cfv 6418  cle 10941  2c2 11958  chash 13972  Vtxcvtx 27269  iEdgciedg 27270  UHGraphcuhgr 27329  UPGraphcupgr 27353
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fv 6426  df-uhgr 27331  df-upgr 27355
This theorem is referenced by:  upgrres  27576
  Copyright terms: Public domain W3C validator