Proof of Theorem uspgr2wlkeqi
Step | Hyp | Ref
| Expression |
1 | | wlkcpr 27898 |
. . . . 5
⊢ (𝐴 ∈ (Walks‘𝐺) ↔ (1st
‘𝐴)(Walks‘𝐺)(2nd ‘𝐴)) |
2 | | wlkcpr 27898 |
. . . . . 6
⊢ (𝐵 ∈ (Walks‘𝐺) ↔ (1st
‘𝐵)(Walks‘𝐺)(2nd ‘𝐵)) |
3 | | wlkcl 27885 |
. . . . . . 7
⊢
((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) → (♯‘(1st
‘𝐴)) ∈
ℕ0) |
4 | | fveq2 6756 |
. . . . . . . . . . . . 13
⊢
((2nd ‘𝐴) = (2nd ‘𝐵) → (♯‘(2nd
‘𝐴)) =
(♯‘(2nd ‘𝐵))) |
5 | 4 | oveq1d 7270 |
. . . . . . . . . . . 12
⊢
((2nd ‘𝐴) = (2nd ‘𝐵) → ((♯‘(2nd
‘𝐴)) − 1) =
((♯‘(2nd ‘𝐵)) − 1)) |
6 | 5 | eqcomd 2744 |
. . . . . . . . . . 11
⊢
((2nd ‘𝐴) = (2nd ‘𝐵) → ((♯‘(2nd
‘𝐵)) − 1) =
((♯‘(2nd ‘𝐴)) − 1)) |
7 | 6 | adantl 481 |
. . . . . . . . . 10
⊢
((((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) ∧ (1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵)) →
((♯‘(2nd ‘𝐵)) − 1) =
((♯‘(2nd ‘𝐴)) − 1)) |
8 | | wlklenvm1 27891 |
. . . . . . . . . . . 12
⊢
((1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵) → (♯‘(1st
‘𝐵)) =
((♯‘(2nd ‘𝐵)) − 1)) |
9 | | wlklenvm1 27891 |
. . . . . . . . . . . 12
⊢
((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) → (♯‘(1st
‘𝐴)) =
((♯‘(2nd ‘𝐴)) − 1)) |
10 | 8, 9 | eqeqan12rd 2753 |
. . . . . . . . . . 11
⊢
(((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) ∧ (1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵)) → ((♯‘(1st
‘𝐵)) =
(♯‘(1st ‘𝐴)) ↔ ((♯‘(2nd
‘𝐵)) − 1) =
((♯‘(2nd ‘𝐴)) − 1))) |
11 | 10 | adantr 480 |
. . . . . . . . . 10
⊢
((((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) ∧ (1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵)) →
((♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)) ↔
((♯‘(2nd ‘𝐵)) − 1) =
((♯‘(2nd ‘𝐴)) − 1))) |
12 | 7, 11 | mpbird 256 |
. . . . . . . . 9
⊢
((((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) ∧ (1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵)) →
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))) |
13 | 12 | anim2i 616 |
. . . . . . . 8
⊢
(((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) ∧ (1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵))) →
((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)))) |
14 | 13 | exp44 437 |
. . . . . . 7
⊢
((♯‘(1st ‘𝐴)) ∈ ℕ0 →
((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) → ((1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵) → ((2nd ‘𝐴) = (2nd ‘𝐵) →
((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))))))) |
15 | 3, 14 | mpcom 38 |
. . . . . 6
⊢
((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) → ((1st ‘𝐵)(Walks‘𝐺)(2nd ‘𝐵) → ((2nd ‘𝐴) = (2nd ‘𝐵) →
((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)))))) |
16 | 2, 15 | syl5bi 241 |
. . . . 5
⊢
((1st ‘𝐴)(Walks‘𝐺)(2nd ‘𝐴) → (𝐵 ∈ (Walks‘𝐺) → ((2nd ‘𝐴) = (2nd ‘𝐵) →
((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)))))) |
17 | 1, 16 | sylbi 216 |
. . . 4
⊢ (𝐴 ∈ (Walks‘𝐺) → (𝐵 ∈ (Walks‘𝐺) → ((2nd ‘𝐴) = (2nd ‘𝐵) →
((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)))))) |
18 | 17 | imp31 417 |
. . 3
⊢ (((𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵)) →
((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)))) |
19 | 18 | 3adant1 1128 |
. 2
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵)) →
((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)))) |
20 | | simpl 482 |
. . . . . . 7
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) → 𝐺 ∈ USPGraph) |
21 | | simpl 482 |
. . . . . . 7
⊢
(((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))) →
(♯‘(1st ‘𝐴)) ∈
ℕ0) |
22 | 20, 21 | anim12i 612 |
. . . . . 6
⊢ (((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) ∧ ((♯‘(1st
‘𝐴)) ∈
ℕ0 ∧ (♯‘(1st ‘𝐵)) =
(♯‘(1st ‘𝐴)))) → (𝐺 ∈ USPGraph ∧
(♯‘(1st ‘𝐴)) ∈
ℕ0)) |
23 | | simpl 482 |
. . . . . . . 8
⊢ ((𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺)) → 𝐴 ∈ (Walks‘𝐺)) |
24 | 23 | adantl 481 |
. . . . . . 7
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) → 𝐴 ∈ (Walks‘𝐺)) |
25 | | eqidd 2739 |
. . . . . . 7
⊢
(((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))) →
(♯‘(1st ‘𝐴)) = (♯‘(1st
‘𝐴))) |
26 | 24, 25 | anim12i 612 |
. . . . . 6
⊢ (((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) ∧ ((♯‘(1st
‘𝐴)) ∈
ℕ0 ∧ (♯‘(1st ‘𝐵)) =
(♯‘(1st ‘𝐴)))) → (𝐴 ∈ (Walks‘𝐺) ∧ (♯‘(1st
‘𝐴)) =
(♯‘(1st ‘𝐴)))) |
27 | | simpr 484 |
. . . . . . . 8
⊢ ((𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺)) → 𝐵 ∈ (Walks‘𝐺)) |
28 | 27 | adantl 481 |
. . . . . . 7
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) → 𝐵 ∈ (Walks‘𝐺)) |
29 | | simpr 484 |
. . . . . . 7
⊢
(((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))) →
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))) |
30 | 28, 29 | anim12i 612 |
. . . . . 6
⊢ (((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) ∧ ((♯‘(1st
‘𝐴)) ∈
ℕ0 ∧ (♯‘(1st ‘𝐵)) =
(♯‘(1st ‘𝐴)))) → (𝐵 ∈ (Walks‘𝐺) ∧ (♯‘(1st
‘𝐵)) =
(♯‘(1st ‘𝐴)))) |
31 | | uspgr2wlkeq2 27916 |
. . . . . 6
⊢ (((𝐺 ∈ USPGraph ∧
(♯‘(1st ‘𝐴)) ∈ ℕ0) ∧ (𝐴 ∈ (Walks‘𝐺) ∧
(♯‘(1st ‘𝐴)) = (♯‘(1st
‘𝐴))) ∧ (𝐵 ∈ (Walks‘𝐺) ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴)))) →
((2nd ‘𝐴)
= (2nd ‘𝐵)
→ 𝐴 = 𝐵)) |
32 | 22, 26, 30, 31 | syl3anc 1369 |
. . . . 5
⊢ (((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) ∧ ((♯‘(1st
‘𝐴)) ∈
ℕ0 ∧ (♯‘(1st ‘𝐵)) =
(♯‘(1st ‘𝐴)))) → ((2nd ‘𝐴) = (2nd ‘𝐵) → 𝐴 = 𝐵)) |
33 | 32 | ex 412 |
. . . 4
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) → (((♯‘(1st
‘𝐴)) ∈
ℕ0 ∧ (♯‘(1st ‘𝐵)) =
(♯‘(1st ‘𝐴))) → ((2nd ‘𝐴) = (2nd ‘𝐵) → 𝐴 = 𝐵))) |
34 | 33 | com23 86 |
. . 3
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺))) → ((2nd ‘𝐴) = (2nd ‘𝐵) →
(((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))) → 𝐴 = 𝐵))) |
35 | 34 | 3impia 1115 |
. 2
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵)) →
(((♯‘(1st ‘𝐴)) ∈ ℕ0 ∧
(♯‘(1st ‘𝐵)) = (♯‘(1st
‘𝐴))) → 𝐴 = 𝐵)) |
36 | 19, 35 | mpd 15 |
1
⊢ ((𝐺 ∈ USPGraph ∧ (𝐴 ∈ (Walks‘𝐺) ∧ 𝐵 ∈ (Walks‘𝐺)) ∧ (2nd ‘𝐴) = (2nd ‘𝐵)) → 𝐴 = 𝐵) |