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

Theorem upgrreslem 27652
Description: Lemma for upgrres 27654. (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 5601 . 2 (𝐸𝐹) = ran (𝐸𝐹)
2 fveq2 6768 . . . . . . 7 (𝑖 = 𝑗 → (𝐸𝑖) = (𝐸𝑗))
3 neleq2 3056 . . . . . . 7 ((𝐸𝑖) = (𝐸𝑗) → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
42, 3syl 17 . . . . . 6 (𝑖 = 𝑗 → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
5 upgrres.f . . . . . 6 𝐹 = {𝑖 ∈ dom 𝐸𝑁 ∉ (𝐸𝑖)}
64, 5elrab2 3628 . . . . 5 (𝑗𝐹 ↔ (𝑗 ∈ dom 𝐸𝑁 ∉ (𝐸𝑗)))
7 upgrres.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
8 upgrres.e . . . . . . . 8 𝐸 = (iEdg‘𝐺)
97, 8upgrf 27437 . . . . . . 7 (𝐺 ∈ UPGraph → 𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
10 ffvelrn 6953 . . . . . . . . . 10 ((𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ∧ 𝑗 ∈ dom 𝐸) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
11 fveq2 6768 . . . . . . . . . . . . 13 (𝑝 = (𝐸𝑗) → (♯‘𝑝) = (♯‘(𝐸𝑗)))
1211breq1d 5088 . . . . . . . . . . . 12 (𝑝 = (𝐸𝑗) → ((♯‘𝑝) ≤ 2 ↔ (♯‘(𝐸𝑗)) ≤ 2))
1312elrab 3625 . . . . . . . . . . 11 ((𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2))
14 eldifsn 4725 . . . . . . . . . . . . . . . . . 18 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ↔ ((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ≠ ∅))
15 simpl 482 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 𝑉)
16 elpwi 4547 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐸𝑗) ∈ 𝒫 𝑉 → (𝐸𝑗) ⊆ 𝑉)
1716adantr 480 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ⊆ 𝑉)
18 simpr 484 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → 𝑁 ∉ (𝐸𝑗))
19 elpwdifsn 4727 . . . . . . . . . . . . . . . . . . . . 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 4728 . . . . . . . . . . . . . . . . 17 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) → (𝐸𝑗) ≠ ∅)
2726adantr 480 . . . . . . . . . . . . . . . 16 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝐸𝑗) ≠ ∅)
2827adantr 480 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ≠ ∅)
29 eldifsn 4725 . . . . . . . . . . . . . . 15 ((𝐸𝑗) ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ↔ ((𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}) ∧ (𝐸𝑗) ≠ ∅))
3025, 28, 29sylanbrc 582 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}))
31 simpr 484 . . . . . . . . . . . . . . 15 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (♯‘(𝐸𝑗)) ≤ 2)
3231adantr 480 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (♯‘(𝐸𝑗)) ≤ 2)
3312, 30, 32elrabd 3627 . . . . . . . . . . . . 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 3108 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
44 upgruhgr 27453 . . . . . 6 (𝐺 ∈ UPGraph → 𝐺 ∈ UHGraph)
458uhgrfun 27417 . . . . . 6 (𝐺 ∈ UHGraph → Fun 𝐸)
4644, 45syl 17 . . . . 5 (𝐺 ∈ UPGraph → Fun 𝐸)
4746adantr 480 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → Fun 𝐸)
485ssrab3 4019 . . . 4 𝐹 ⊆ dom 𝐸
49 funimass4 6828 . . . 4 ((Fun 𝐸𝐹 ⊆ dom 𝐸) → ((𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
5047, 48, 49sylancl 585 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ((𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
5143, 50mpbird 256 . 2 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → (𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
521, 51eqsstrrid 3974 1 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ran (𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1541  wcel 2109  wne 2944  wnel 3050  wral 3065  {crab 3069  cdif 3888  wss 3891  c0 4261  𝒫 cpw 4538  {csn 4566   class class class wbr 5078  dom cdm 5588  ran crn 5589  cres 5590  cima 5591  Fun wfun 6424  wf 6426  cfv 6430  cle 10994  2c2 12011  chash 14025  Vtxcvtx 27347  iEdgciedg 27348  UHGraphcuhgr 27407  UPGraphcupgr 27431
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-nel 3051  df-ral 3070  df-rex 3071  df-rab 3074  df-v 3432  df-sbc 3720  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-br 5079  df-opab 5141  df-id 5488  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-fv 6438  df-uhgr 27409  df-upgr 27433
This theorem is referenced by:  upgrres  27654
  Copyright terms: Public domain W3C validator