Proof of Theorem clwlkclwwlk2
Step | Hyp | Ref
| Expression |
1 | | simp1 1135 |
. . 3
⊢ ((𝐺 ∈ USPGraph ∧ 𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 𝐺 ∈ USPGraph) |
2 | | wrdsymb1 14256 |
. . . . . 6
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (𝑃‘0) ∈ 𝑉) |
3 | 2 | s1cld 14308 |
. . . . 5
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 〈“(𝑃‘0)”〉 ∈
Word 𝑉) |
4 | | ccatcl 14277 |
. . . . 5
⊢ ((𝑃 ∈ Word 𝑉 ∧ 〈“(𝑃‘0)”〉 ∈ Word 𝑉) → (𝑃 ++ 〈“(𝑃‘0)”〉) ∈ Word 𝑉) |
5 | 3, 4 | syldan 591 |
. . . 4
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (𝑃 ++ 〈“(𝑃‘0)”〉) ∈ Word 𝑉) |
6 | 5 | 3adant1 1129 |
. . 3
⊢ ((𝐺 ∈ USPGraph ∧ 𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (𝑃 ++ 〈“(𝑃‘0)”〉) ∈ Word 𝑉) |
7 | | lencl 14236 |
. . . . . . . 8
⊢ (𝑃 ∈ Word 𝑉 → (♯‘𝑃) ∈
ℕ0) |
8 | | 1e2m1 12100 |
. . . . . . . . . 10
⊢ 1 = (2
− 1) |
9 | 8 | breq1i 5081 |
. . . . . . . . 9
⊢ (1 ≤
(♯‘𝑃) ↔ (2
− 1) ≤ (♯‘𝑃)) |
10 | | 2re 12047 |
. . . . . . . . . . 11
⊢ 2 ∈
ℝ |
11 | 10 | a1i 11 |
. . . . . . . . . 10
⊢
((♯‘𝑃)
∈ ℕ0 → 2 ∈ ℝ) |
12 | | 1red 10976 |
. . . . . . . . . 10
⊢
((♯‘𝑃)
∈ ℕ0 → 1 ∈ ℝ) |
13 | | nn0re 12242 |
. . . . . . . . . 10
⊢
((♯‘𝑃)
∈ ℕ0 → (♯‘𝑃) ∈ ℝ) |
14 | 11, 12, 13 | lesubaddd 11572 |
. . . . . . . . 9
⊢
((♯‘𝑃)
∈ ℕ0 → ((2 − 1) ≤ (♯‘𝑃) ↔ 2 ≤
((♯‘𝑃) +
1))) |
15 | 9, 14 | syl5bb 283 |
. . . . . . . 8
⊢
((♯‘𝑃)
∈ ℕ0 → (1 ≤ (♯‘𝑃) ↔ 2 ≤ ((♯‘𝑃) + 1))) |
16 | 7, 15 | syl 17 |
. . . . . . 7
⊢ (𝑃 ∈ Word 𝑉 → (1 ≤ (♯‘𝑃) ↔ 2 ≤
((♯‘𝑃) +
1))) |
17 | 16 | biimpa 477 |
. . . . . 6
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 2 ≤
((♯‘𝑃) +
1)) |
18 | | s1len 14311 |
. . . . . . 7
⊢
(♯‘〈“(𝑃‘0)”〉) = 1 |
19 | 18 | oveq2i 7286 |
. . . . . 6
⊢
((♯‘𝑃) +
(♯‘〈“(𝑃‘0)”〉)) =
((♯‘𝑃) +
1) |
20 | 17, 19 | breqtrrdi 5116 |
. . . . 5
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 2 ≤
((♯‘𝑃) +
(♯‘〈“(𝑃‘0)”〉))) |
21 | | ccatlen 14278 |
. . . . . 6
⊢ ((𝑃 ∈ Word 𝑉 ∧ 〈“(𝑃‘0)”〉 ∈ Word 𝑉) → (♯‘(𝑃 ++ 〈“(𝑃‘0)”〉)) =
((♯‘𝑃) +
(♯‘〈“(𝑃‘0)”〉))) |
22 | 3, 21 | syldan 591 |
. . . . 5
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (♯‘(𝑃 ++ 〈“(𝑃‘0)”〉)) =
((♯‘𝑃) +
(♯‘〈“(𝑃‘0)”〉))) |
23 | 20, 22 | breqtrrd 5102 |
. . . 4
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 2 ≤
(♯‘(𝑃 ++
〈“(𝑃‘0)”〉))) |
24 | 23 | 3adant1 1129 |
. . 3
⊢ ((𝐺 ∈ USPGraph ∧ 𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 2 ≤
(♯‘(𝑃 ++
〈“(𝑃‘0)”〉))) |
25 | | clwlkclwwlk.v |
. . . 4
⊢ 𝑉 = (Vtx‘𝐺) |
26 | | clwlkclwwlk.e |
. . . 4
⊢ 𝐸 = (iEdg‘𝐺) |
27 | 25, 26 | clwlkclwwlk 28366 |
. . 3
⊢ ((𝐺 ∈ USPGraph ∧ (𝑃 ++ 〈“(𝑃‘0)”〉) ∈
Word 𝑉 ∧ 2 ≤
(♯‘(𝑃 ++
〈“(𝑃‘0)”〉))) →
(∃𝑓 𝑓(ClWalks‘𝐺)(𝑃 ++ 〈“(𝑃‘0)”〉) ↔
((lastS‘(𝑃 ++
〈“(𝑃‘0)”〉)) = ((𝑃 ++ 〈“(𝑃‘0)”〉)‘0)
∧ ((𝑃 ++
〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) ∈
(ClWWalks‘𝐺)))) |
28 | 1, 6, 24, 27 | syl3anc 1370 |
. 2
⊢ ((𝐺 ∈ USPGraph ∧ 𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (∃𝑓 𝑓(ClWalks‘𝐺)(𝑃 ++ 〈“(𝑃‘0)”〉) ↔
((lastS‘(𝑃 ++
〈“(𝑃‘0)”〉)) = ((𝑃 ++ 〈“(𝑃‘0)”〉)‘0)
∧ ((𝑃 ++
〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) ∈
(ClWWalks‘𝐺)))) |
29 | | wrdlenccats1lenm1 14327 |
. . . . . . . 8
⊢ (𝑃 ∈ Word 𝑉 → ((♯‘(𝑃 ++ 〈“(𝑃‘0)”〉)) − 1) =
(♯‘𝑃)) |
30 | 29 | oveq2d 7291 |
. . . . . . 7
⊢ (𝑃 ∈ Word 𝑉 → ((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) =
((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
(♯‘𝑃))) |
31 | 30 | adantr 481 |
. . . . . 6
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → ((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) =
((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
(♯‘𝑃))) |
32 | | simpl 483 |
. . . . . . 7
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 𝑃 ∈ Word 𝑉) |
33 | | eqidd 2739 |
. . . . . . 7
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (♯‘𝑃) = (♯‘𝑃)) |
34 | | pfxccatid 14454 |
. . . . . . 7
⊢ ((𝑃 ∈ Word 𝑉 ∧ 〈“(𝑃‘0)”〉 ∈ Word 𝑉 ∧ (♯‘𝑃) = (♯‘𝑃)) → ((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
(♯‘𝑃)) = 𝑃) |
35 | 32, 3, 33, 34 | syl3anc 1370 |
. . . . . 6
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → ((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
(♯‘𝑃)) = 𝑃) |
36 | 31, 35 | eqtr2d 2779 |
. . . . 5
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → 𝑃 = ((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) −
1))) |
37 | 36 | eleq1d 2823 |
. . . 4
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (𝑃 ∈ (ClWWalks‘𝐺) ↔ ((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) ∈
(ClWWalks‘𝐺))) |
38 | | lswccats1fst 14345 |
. . . . 5
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (lastS‘(𝑃 ++ 〈“(𝑃‘0)”〉)) =
((𝑃 ++ 〈“(𝑃‘0)”〉)‘0)) |
39 | 38 | biantrurd 533 |
. . . 4
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (((𝑃 ++ 〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) ∈
(ClWWalks‘𝐺) ↔
((lastS‘(𝑃 ++
〈“(𝑃‘0)”〉)) = ((𝑃 ++ 〈“(𝑃‘0)”〉)‘0)
∧ ((𝑃 ++
〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) ∈
(ClWWalks‘𝐺)))) |
40 | 37, 39 | bitr2d 279 |
. . 3
⊢ ((𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (((lastS‘(𝑃 ++ 〈“(𝑃‘0)”〉)) =
((𝑃 ++ 〈“(𝑃‘0)”〉)‘0)
∧ ((𝑃 ++
〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) ∈
(ClWWalks‘𝐺)) ↔
𝑃 ∈
(ClWWalks‘𝐺))) |
41 | 40 | 3adant1 1129 |
. 2
⊢ ((𝐺 ∈ USPGraph ∧ 𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (((lastS‘(𝑃 ++ 〈“(𝑃‘0)”〉)) =
((𝑃 ++ 〈“(𝑃‘0)”〉)‘0)
∧ ((𝑃 ++
〈“(𝑃‘0)”〉) prefix
((♯‘(𝑃 ++
〈“(𝑃‘0)”〉)) − 1)) ∈
(ClWWalks‘𝐺)) ↔
𝑃 ∈
(ClWWalks‘𝐺))) |
42 | 28, 41 | bitrd 278 |
1
⊢ ((𝐺 ∈ USPGraph ∧ 𝑃 ∈ Word 𝑉 ∧ 1 ≤ (♯‘𝑃)) → (∃𝑓 𝑓(ClWalks‘𝐺)(𝑃 ++ 〈“(𝑃‘0)”〉) ↔ 𝑃 ∈ (ClWWalks‘𝐺))) |