Metamath Proof Explorer


Theorem eupthvdres

Description: Formerly part of proof of eupth2 : The vertex degree remains the same for all vertices if the edges are restricted to the edges of an Eulerian path. (Contributed by Mario Carneiro, 8-Apr-2015) (Revised by AV, 26-Feb-2021)

Ref Expression
Hypotheses eupthvdres.v ⊢ V = Vtx ⁡ G
eupthvdres.i ⊢ I = iEdg ⁡ G
eupthvdres.g ⊢ φ → G ∈ W
eupthvdres.f ⊢ φ → Fun ⁡ I
eupthvdres.p ⊢ φ → F EulerPaths ⁡ G P
eupthvdres.h ⊢ H = V I ↾ F 0 ..^ F
Assertion eupthvdres ⊢ φ → VtxDeg ⁡ H = VtxDeg ⁡ G

Proof

Step Hyp Ref Expression
1 eupthvdres.v ⊢ V = Vtx ⁡ G
2 eupthvdres.i ⊢ I = iEdg ⁡ G
3 eupthvdres.g ⊢ φ → G ∈ W
4 eupthvdres.f ⊢ φ → Fun ⁡ I
5 eupthvdres.p ⊢ φ → F EulerPaths ⁡ G P
6 eupthvdres.h ⊢ H = V I ↾ F 0 ..^ F
7 opex ⊢ V I ↾ F 0 ..^ F ∈ V
8 6 7 eqeltri ⊢ H ∈ V
9 8 a1i ⊢ φ → H ∈ V
10 6 fveq2i ⊢ Vtx ⁡ H = Vtx ⁡ V I ↾ F 0 ..^ F
11 1 fvexi ⊢ V ∈ V
12 2 fvexi ⊢ I ∈ V
13 12 resex ⊢ I ↾ F 0 ..^ F ∈ V
14 11 13 pm3.2i ⊢ V ∈ V ∧ I ↾ F 0 ..^ F ∈ V
15 14 a1i ⊢ φ → V ∈ V ∧ I ↾ F 0 ..^ F ∈ V
16 opvtxfv ⊢ V ∈ V ∧ I ↾ F 0 ..^ F ∈ V → Vtx ⁡ V I ↾ F 0 ..^ F = V
17 15 16 syl ⊢ φ → Vtx ⁡ V I ↾ F 0 ..^ F = V
18 10 17 eqtrid ⊢ φ → Vtx ⁡ H = V
19 18 1 eqtrdi ⊢ φ → Vtx ⁡ H = Vtx ⁡ G
20 6 fveq2i ⊢ iEdg ⁡ H = iEdg ⁡ V I ↾ F 0 ..^ F
21 opiedgfv ⊢ V ∈ V ∧ I ↾ F 0 ..^ F ∈ V → iEdg ⁡ V I ↾ F 0 ..^ F = I ↾ F 0 ..^ F
22 15 21 syl ⊢ φ → iEdg ⁡ V I ↾ F 0 ..^ F = I ↾ F 0 ..^ F
23 20 22 eqtrid ⊢ φ → iEdg ⁡ H = I ↾ F 0 ..^ F
24 2 eupthf1o ⊢ F EulerPaths ⁡ G P → F : 0 ..^ F ⟶ 1-1 onto dom ⁡ I
25 f1ofo ⊢ F : 0 ..^ F ⟶ 1-1 onto dom ⁡ I → F : 0 ..^ F ⟶ onto dom ⁡ I
26 foima ⊢ F : 0 ..^ F ⟶ onto dom ⁡ I → F 0 ..^ F = dom ⁡ I
27 5 24 25 26 4syl ⊢ φ → F 0 ..^ F = dom ⁡ I
28 27 reseq2d ⊢ φ → I ↾ F 0 ..^ F = I ↾ dom ⁡ I
29 4 funfnd ⊢ φ → I Fn dom ⁡ I
30 fnresdm ⊢ I Fn dom ⁡ I → I ↾ dom ⁡ I = I
31 29 30 syl ⊢ φ → I ↾ dom ⁡ I = I
32 23 28 31 3eqtrd ⊢ φ → iEdg ⁡ H = I
33 32 2 eqtrdi ⊢ φ → iEdg ⁡ H = iEdg ⁡ G
34 3 9 19 33 vtxdeqd ⊢ φ → VtxDeg ⁡ H = VtxDeg ⁡ G