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

Theorem upgrreslem 27671
Description: Lemma for upgrres 27673. (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 5602 . 2 (𝐸𝐹) = ran (𝐸𝐹)
2 fveq2 6774 . . . . . . 7 (𝑖 = 𝑗 → (𝐸𝑖) = (𝐸𝑗))
3 neleq2 3055 . . . . . . 7 ((𝐸𝑖) = (𝐸𝑗) → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
42, 3syl 17 . . . . . 6 (𝑖 = 𝑗 → (𝑁 ∉ (𝐸𝑖) ↔ 𝑁 ∉ (𝐸𝑗)))
5 upgrres.f . . . . . 6 𝐹 = {𝑖 ∈ dom 𝐸𝑁 ∉ (𝐸𝑖)}
64, 5elrab2 3627 . . . . 5 (𝑗𝐹 ↔ (𝑗 ∈ dom 𝐸𝑁 ∉ (𝐸𝑗)))
7 upgrres.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
8 upgrres.e . . . . . . . 8 𝐸 = (iEdg‘𝐺)
97, 8upgrf 27456 . . . . . . 7 (𝐺 ∈ UPGraph → 𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
10 ffvelrn 6959 . . . . . . . . . 10 ((𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ∧ 𝑗 ∈ dom 𝐸) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
11 fveq2 6774 . . . . . . . . . . . . 13 (𝑝 = (𝐸𝑗) → (♯‘𝑝) = (♯‘(𝐸𝑗)))
1211breq1d 5084 . . . . . . . . . . . 12 (𝑝 = (𝐸𝑗) → ((♯‘𝑝) ≤ 2 ↔ (♯‘(𝐸𝑗)) ≤ 2))
1312elrab 3624 . . . . . . . . . . 11 ((𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2))
14 eldifsn 4720 . . . . . . . . . . . . . . . . . 18 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ↔ ((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ≠ ∅))
15 simpl 483 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 𝑉)
16 elpwi 4542 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐸𝑗) ∈ 𝒫 𝑉 → (𝐸𝑗) ⊆ 𝑉)
1716adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ⊆ 𝑉)
18 simpr 485 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → 𝑁 ∉ (𝐸𝑗))
19 elpwdifsn 4722 . . . . . . . . . . . . . . . . . . . . 21 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ⊆ 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
2015, 17, 18, 19syl3anc 1370 . . . . . . . . . . . . . . . . . . . 20 (((𝐸𝑗) ∈ 𝒫 𝑉𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
2120ex 413 . . . . . . . . . . . . . . . . . . 19 ((𝐸𝑗) ∈ 𝒫 𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2221adantr 481 . . . . . . . . . . . . . . . . . 18 (((𝐸𝑗) ∈ 𝒫 𝑉 ∧ (𝐸𝑗) ≠ ∅) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2314, 22sylbi 216 . . . . . . . . . . . . . . . . 17 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2423adantr 481 . . . . . . . . . . . . . . . 16 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁})))
2524imp 407 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}))
26 eldifsni 4723 . . . . . . . . . . . . . . . . 17 ((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) → (𝐸𝑗) ≠ ∅)
2726adantr 481 . . . . . . . . . . . . . . . 16 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝐸𝑗) ≠ ∅)
2827adantr 481 . . . . . . . . . . . . . . 15 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ≠ ∅)
29 eldifsn 4720 . . . . . . . . . . . . . . 15 ((𝐸𝑗) ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ↔ ((𝐸𝑗) ∈ 𝒫 (𝑉 ∖ {𝑁}) ∧ (𝐸𝑗) ≠ ∅))
3025, 28, 29sylanbrc 583 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}))
31 simpr 485 . . . . . . . . . . . . . . 15 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (♯‘(𝐸𝑗)) ≤ 2)
3231adantr 481 . . . . . . . . . . . . . 14 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (♯‘(𝐸𝑗)) ≤ 2)
3312, 30, 32elrabd 3626 . . . . . . . . . . . . 13 ((((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) ∧ 𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
3433ex 413 . . . . . . . . . . . 12 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
3534a1d 25 . . . . . . . . . . 11 (((𝐸𝑗) ∈ (𝒫 𝑉 ∖ {∅}) ∧ (♯‘(𝐸𝑗)) ≤ 2) → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})))
3613, 35sylbi 216 . . . . . . . . . 10 ((𝐸𝑗) ∈ {𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})))
3710, 36syl 17 . . . . . . . . 9 ((𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ∧ 𝑗 ∈ dom 𝐸) → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})))
3837ex 413 . . . . . . . 8 (𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} → (𝑗 ∈ dom 𝐸 → (𝑁𝑉 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))))
3938com23 86 . . . . . . 7 (𝐸:dom 𝐸⟶{𝑝 ∈ (𝒫 𝑉 ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} → (𝑁𝑉 → (𝑗 ∈ dom 𝐸 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))))
409, 39syl 17 . . . . . 6 (𝐺 ∈ UPGraph → (𝑁𝑉 → (𝑗 ∈ dom 𝐸 → (𝑁 ∉ (𝐸𝑗) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))))
4140imp4b 422 . . . . 5 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ((𝑗 ∈ dom 𝐸𝑁 ∉ (𝐸𝑗)) → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
426, 41syl5bi 241 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → (𝑗𝐹 → (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
4342ralrimiv 3102 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
44 upgruhgr 27472 . . . . . 6 (𝐺 ∈ UPGraph → 𝐺 ∈ UHGraph)
458uhgrfun 27436 . . . . . 6 (𝐺 ∈ UHGraph → Fun 𝐸)
4644, 45syl 17 . . . . 5 (𝐺 ∈ UPGraph → Fun 𝐸)
4746adantr 481 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → Fun 𝐸)
485ssrab3 4015 . . . 4 𝐹 ⊆ dom 𝐸
49 funimass4 6834 . . . 4 ((Fun 𝐸𝐹 ⊆ dom 𝐸) → ((𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
5047, 48, 49sylancl 586 . . 3 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ((𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2} ↔ ∀𝑗𝐹 (𝐸𝑗) ∈ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2}))
5143, 50mpbird 256 . 2 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → (𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
521, 51eqsstrrid 3970 1 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ran (𝐸𝐹) ⊆ {𝑝 ∈ (𝒫 (𝑉 ∖ {𝑁}) ∖ {∅}) ∣ (♯‘𝑝) ≤ 2})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wne 2943  wnel 3049  wral 3064  {crab 3068  cdif 3884  wss 3887  c0 4256  𝒫 cpw 4533  {csn 4561   class class class wbr 5074  dom cdm 5589  ran crn 5590  cres 5591  cima 5592  Fun wfun 6427  wf 6429  cfv 6433  cle 11010  2c2 12028  chash 14044  Vtxcvtx 27366  iEdgciedg 27367  UHGraphcuhgr 27426  UPGraphcupgr 27450
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-fv 6441  df-uhgr 27428  df-upgr 27452
This theorem is referenced by:  upgrres  27673
  Copyright terms: Public domain W3C validator