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

Theorem eupth2lems 28002
Description: Lemma for eupth2 28003 (induction step): The only vertices of odd degree in a graph with an Eulerian path are the endpoints, and then only if the endpoints are distinct, if the Eulerian path shortened by one edge has this property. Formerly part of proof for eupth2 28003. (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 26-Feb-2021.)
Hypotheses
Ref Expression
eupth2.v 𝑉 = (Vtx‘𝐺)
eupth2.i 𝐼 = (iEdg‘𝐺)
eupth2.g (𝜑𝐺 ∈ UPGraph)
eupth2.f (𝜑 → Fun 𝐼)
eupth2.p (𝜑𝐹(EulerPaths‘𝐺)𝑃)
Assertion
Ref Expression
eupth2lems ((𝜑𝑛 ∈ ℕ0) → ((𝑛 ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)})) → ((𝑛 + 1) ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}))))
Distinct variable groups:   𝜑,𝑥   𝑥,𝐹   𝑥,𝐼   𝑥,𝑉   𝑥,𝑛
Allowed substitution hints:   𝜑(𝑛)   𝑃(𝑥,𝑛)   𝐹(𝑛)   𝐺(𝑥,𝑛)   𝐼(𝑛)   𝑉(𝑛)

Proof of Theorem eupth2lems
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 nn0re 11884 . . . . . 6 (𝑛 ∈ ℕ0𝑛 ∈ ℝ)
21adantl 485 . . . . 5 ((𝜑𝑛 ∈ ℕ0) → 𝑛 ∈ ℝ)
32lep1d 11548 . . . 4 ((𝜑𝑛 ∈ ℕ0) → 𝑛 ≤ (𝑛 + 1))
4 peano2re 10790 . . . . . 6 (𝑛 ∈ ℝ → (𝑛 + 1) ∈ ℝ)
52, 4syl 17 . . . . 5 ((𝜑𝑛 ∈ ℕ0) → (𝑛 + 1) ∈ ℝ)
6 eupth2.p . . . . . . . 8 (𝜑𝐹(EulerPaths‘𝐺)𝑃)
7 eupthiswlk 27976 . . . . . . . 8 (𝐹(EulerPaths‘𝐺)𝑃𝐹(Walks‘𝐺)𝑃)
8 wlkcl 27384 . . . . . . . 8 (𝐹(Walks‘𝐺)𝑃 → (♯‘𝐹) ∈ ℕ0)
96, 7, 83syl 18 . . . . . . 7 (𝜑 → (♯‘𝐹) ∈ ℕ0)
109nn0red 11934 . . . . . 6 (𝜑 → (♯‘𝐹) ∈ ℝ)
1110adantr 484 . . . . 5 ((𝜑𝑛 ∈ ℕ0) → (♯‘𝐹) ∈ ℝ)
12 letr 10711 . . . . 5 ((𝑛 ∈ ℝ ∧ (𝑛 + 1) ∈ ℝ ∧ (♯‘𝐹) ∈ ℝ) → ((𝑛 ≤ (𝑛 + 1) ∧ (𝑛 + 1) ≤ (♯‘𝐹)) → 𝑛 ≤ (♯‘𝐹)))
132, 5, 11, 12syl3anc 1368 . . . 4 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 ≤ (𝑛 + 1) ∧ (𝑛 + 1) ≤ (♯‘𝐹)) → 𝑛 ≤ (♯‘𝐹)))
143, 13mpand 694 . . 3 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) ≤ (♯‘𝐹) → 𝑛 ≤ (♯‘𝐹)))
1514imim1d 82 . 2 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)})) → ((𝑛 + 1) ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))))
16 fveq2 6643 . . . . . . . . 9 (𝑥 = 𝑦 → ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥) = ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑦))
1716breq2d 5051 . . . . . . . 8 (𝑥 = 𝑦 → (2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥) ↔ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑦)))
1817notbid 321 . . . . . . 7 (𝑥 = 𝑦 → (¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥) ↔ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑦)))
1918elrab 3657 . . . . . 6 (𝑦 ∈ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥)} ↔ (𝑦𝑉 ∧ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑦)))
20 eupth2.v . . . . . . . . 9 𝑉 = (Vtx‘𝐺)
21 eupth2.i . . . . . . . . 9 𝐼 = (iEdg‘𝐺)
22 eupth2.g . . . . . . . . . 10 (𝜑𝐺 ∈ UPGraph)
2322ad3antrrr 729 . . . . . . . . 9 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → 𝐺 ∈ UPGraph)
24 eupth2.f . . . . . . . . . 10 (𝜑 → Fun 𝐼)
2524ad3antrrr 729 . . . . . . . . 9 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → Fun 𝐼)
266ad3antrrr 729 . . . . . . . . 9 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → 𝐹(EulerPaths‘𝐺)𝑃)
27 eqid 2821 . . . . . . . . 9 𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩ = ⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩
28 eqid 2821 . . . . . . . . 9 𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩ = ⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩
29 simpr 488 . . . . . . . . . 10 ((𝜑𝑛 ∈ ℕ0) → 𝑛 ∈ ℕ0)
3029ad2antrr 725 . . . . . . . . 9 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → 𝑛 ∈ ℕ0)
31 simprl 770 . . . . . . . . . 10 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑛 + 1) ≤ (♯‘𝐹))
3231adantr 484 . . . . . . . . 9 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → (𝑛 + 1) ≤ (♯‘𝐹))
33 simpr 488 . . . . . . . . 9 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → 𝑦𝑉)
34 simplrr 777 . . . . . . . . 9 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))
3520, 21, 23, 25, 26, 27, 28, 30, 32, 33, 34eupth2lem3 28000 . . . . . . . 8 ((((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) ∧ 𝑦𝑉) → (¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑦) ↔ 𝑦 ∈ if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))})))
3635pm5.32da 582 . . . . . . 7 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → ((𝑦𝑉 ∧ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑦)) ↔ (𝑦𝑉𝑦 ∈ if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}))))
37 0elpw 5229 . . . . . . . . . . 11 ∅ ∈ 𝒫 𝑉
3820wlkepvtx 27429 . . . . . . . . . . . . . . . 16 (𝐹(Walks‘𝐺)𝑃 → ((𝑃‘0) ∈ 𝑉 ∧ (𝑃‘(♯‘𝐹)) ∈ 𝑉))
3938simpld 498 . . . . . . . . . . . . . . 15 (𝐹(Walks‘𝐺)𝑃 → (𝑃‘0) ∈ 𝑉)
406, 7, 393syl 18 . . . . . . . . . . . . . 14 (𝜑 → (𝑃‘0) ∈ 𝑉)
4140ad2antrr 725 . . . . . . . . . . . . 13 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑃‘0) ∈ 𝑉)
4220wlkp 27385 . . . . . . . . . . . . . . . 16 (𝐹(Walks‘𝐺)𝑃𝑃:(0...(♯‘𝐹))⟶𝑉)
436, 7, 423syl 18 . . . . . . . . . . . . . . 15 (𝜑𝑃:(0...(♯‘𝐹))⟶𝑉)
4443ad2antrr 725 . . . . . . . . . . . . . 14 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → 𝑃:(0...(♯‘𝐹))⟶𝑉)
45 peano2nn0 11915 . . . . . . . . . . . . . . . . . . 19 (𝑛 ∈ ℕ0 → (𝑛 + 1) ∈ ℕ0)
4645adantl 485 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑛 ∈ ℕ0) → (𝑛 + 1) ∈ ℕ0)
4746adantr 484 . . . . . . . . . . . . . . . . 17 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑛 + 1) ∈ ℕ0)
48 nn0uz 12258 . . . . . . . . . . . . . . . . 17 0 = (ℤ‘0)
4947, 48eleqtrdi 2922 . . . . . . . . . . . . . . . 16 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑛 + 1) ∈ (ℤ‘0))
509ad2antrr 725 . . . . . . . . . . . . . . . . 17 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (♯‘𝐹) ∈ ℕ0)
5150nn0zd 12063 . . . . . . . . . . . . . . . 16 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (♯‘𝐹) ∈ ℤ)
52 elfz5 12883 . . . . . . . . . . . . . . . 16 (((𝑛 + 1) ∈ (ℤ‘0) ∧ (♯‘𝐹) ∈ ℤ) → ((𝑛 + 1) ∈ (0...(♯‘𝐹)) ↔ (𝑛 + 1) ≤ (♯‘𝐹)))
5349, 51, 52syl2anc 587 . . . . . . . . . . . . . . 15 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → ((𝑛 + 1) ∈ (0...(♯‘𝐹)) ↔ (𝑛 + 1) ≤ (♯‘𝐹)))
5431, 53mpbird 260 . . . . . . . . . . . . . 14 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑛 + 1) ∈ (0...(♯‘𝐹)))
5544, 54ffvelrnd 6825 . . . . . . . . . . . . 13 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑃‘(𝑛 + 1)) ∈ 𝑉)
5641, 55prssd 4728 . . . . . . . . . . . 12 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → {(𝑃‘0), (𝑃‘(𝑛 + 1))} ⊆ 𝑉)
57 prex 5306 . . . . . . . . . . . . 13 {(𝑃‘0), (𝑃‘(𝑛 + 1))} ∈ V
5857elpw 4516 . . . . . . . . . . . 12 ({(𝑃‘0), (𝑃‘(𝑛 + 1))} ∈ 𝒫 𝑉 ↔ {(𝑃‘0), (𝑃‘(𝑛 + 1))} ⊆ 𝑉)
5956, 58sylibr 237 . . . . . . . . . . 11 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → {(𝑃‘0), (𝑃‘(𝑛 + 1))} ∈ 𝒫 𝑉)
60 ifcl 4484 . . . . . . . . . . 11 ((∅ ∈ 𝒫 𝑉 ∧ {(𝑃‘0), (𝑃‘(𝑛 + 1))} ∈ 𝒫 𝑉) → if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}) ∈ 𝒫 𝑉)
6137, 59, 60sylancr 590 . . . . . . . . . 10 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}) ∈ 𝒫 𝑉)
6261elpwid 4523 . . . . . . . . 9 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}) ⊆ 𝑉)
6362sseld 3942 . . . . . . . 8 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑦 ∈ if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}) → 𝑦𝑉))
6463pm4.71rd 566 . . . . . . 7 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑦 ∈ if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}) ↔ (𝑦𝑉𝑦 ∈ if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}))))
6536, 64bitr4d 285 . . . . . 6 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → ((𝑦𝑉 ∧ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑦)) ↔ 𝑦 ∈ if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))})))
6619, 65syl5bb 286 . . . . 5 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → (𝑦 ∈ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥)} ↔ 𝑦 ∈ if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))})))
6766eqrdv 2819 . . . 4 (((𝜑𝑛 ∈ ℕ0) ∧ ((𝑛 + 1) ≤ (♯‘𝐹) ∧ {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}))) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}))
6867exp32 424 . . 3 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) ≤ (♯‘𝐹) → ({𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)}) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}))))
6968a2d 29 . 2 ((𝜑𝑛 ∈ ℕ0) → (((𝑛 + 1) ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)})) → ((𝑛 + 1) ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}))))
7015, 69syld 47 1 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^𝑛)))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃𝑛), ∅, {(𝑃‘0), (𝑃𝑛)})) → ((𝑛 + 1) ≤ (♯‘𝐹) → {𝑥𝑉 ∣ ¬ 2 ∥ ((VtxDeg‘⟨𝑉, (𝐼 ↾ (𝐹 “ (0..^(𝑛 + 1))))⟩)‘𝑥)} = if((𝑃‘0) = (𝑃‘(𝑛 + 1)), ∅, {(𝑃‘0), (𝑃‘(𝑛 + 1))}))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1538  wcel 2115  {crab 3130  wss 3910  c0 4266  ifcif 4440  𝒫 cpw 4512  {cpr 4542  cop 4546   class class class wbr 5039  cres 5530  cima 5531  Fun wfun 6322  wf 6324  cfv 6328  (class class class)co 7130  cr 10513  0cc0 10514  1c1 10515   + caddc 10517  cle 10653  2c2 11670  0cn0 11875  cz 11959  cuz 12221  ...cfz 12875  ..^cfzo 13016  chash 13674  cdvds 15586  Vtxcvtx 26768  iEdgciedg 26769  UPGraphcupgr 26852  VtxDegcvtxdg 27234  Walkscwlks 27365  EulerPathsceupth 27961
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2178  ax-ext 2793  ax-rep 5163  ax-sep 5176  ax-nul 5183  ax-pow 5239  ax-pr 5303  ax-un 7436  ax-cnex 10570  ax-resscn 10571  ax-1cn 10572  ax-icn 10573  ax-addcl 10574  ax-addrcl 10575  ax-mulcl 10576  ax-mulrcl 10577  ax-mulcom 10578  ax-addass 10579  ax-mulass 10580  ax-distr 10581  ax-i2m1 10582  ax-1ne0 10583  ax-1rid 10584  ax-rnegex 10585  ax-rrecex 10586  ax-cnre 10587  ax-pre-lttri 10588  ax-pre-lttrn 10589  ax-pre-ltadd 10590  ax-pre-mulgt0 10591  ax-pre-sup 10592
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-ifp 1059  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2623  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2892  df-nfc 2960  df-ne 3008  df-nel 3112  df-ral 3131  df-rex 3132  df-reu 3133  df-rmo 3134  df-rab 3135  df-v 3473  df-sbc 3750  df-csb 3858  df-dif 3913  df-un 3915  df-in 3917  df-ss 3927  df-pss 3929  df-nul 4267  df-if 4441  df-pw 4514  df-sn 4541  df-pr 4543  df-tp 4545  df-op 4547  df-uni 4812  df-int 4850  df-iun 4894  df-br 5040  df-opab 5102  df-mpt 5120  df-tr 5146  df-id 5433  df-eprel 5438  df-po 5447  df-so 5448  df-fr 5487  df-we 5489  df-xp 5534  df-rel 5535  df-cnv 5536  df-co 5537  df-dm 5538  df-rn 5539  df-res 5540  df-ima 5541  df-pred 6121  df-ord 6167  df-on 6168  df-lim 6169  df-suc 6170  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-riota 7088  df-ov 7133  df-oprab 7134  df-mpo 7135  df-om 7556  df-1st 7664  df-2nd 7665  df-wrecs 7922  df-recs 7983  df-rdg 8021  df-1o 8077  df-2o 8078  df-oadd 8081  df-er 8264  df-map 8383  df-pm 8384  df-en 8485  df-dom 8486  df-sdom 8487  df-fin 8488  df-sup 8882  df-inf 8883  df-dju 9306  df-card 9344  df-pnf 10654  df-mnf 10655  df-xr 10656  df-ltxr 10657  df-le 10658  df-sub 10849  df-neg 10850  df-div 11275  df-nn 11616  df-2 11678  df-3 11679  df-n0 11876  df-xnn0 11946  df-z 11960  df-uz 12222  df-rp 12368  df-xadd 12486  df-fz 12876  df-fzo 13017  df-seq 13353  df-exp 13414  df-hash 13675  df-word 13846  df-cj 14437  df-re 14438  df-im 14439  df-sqrt 14573  df-abs 14574  df-dvds 15587  df-vtx 26770  df-iedg 26771  df-edg 26820  df-uhgr 26830  df-ushgr 26831  df-upgr 26854  df-uspgr 26922  df-vtxdg 27235  df-wlks 27368  df-trls 27461  df-eupth 27962
This theorem is referenced by:  eupth2  28003
  Copyright terms: Public domain W3C validator