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

Theorem wwlksnextinj 26670
Description: Lemma for wwlksnextbij 26673. (Contributed by Alexander van der Vekens, 7-Aug-2018.) (Revised by AV, 18-Apr-2021.)
Hypotheses
Ref Expression
wwlksnextbij0.v 𝑉 = (Vtx‘𝐺)
wwlksnextbij0.e 𝐸 = (Edg‘𝐺)
wwlksnextbij0.d 𝐷 = {𝑤 ∈ Word 𝑉 ∣ ((#‘𝑤) = (𝑁 + 2) ∧ (𝑤 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑤)} ∈ 𝐸)}
wwlksnextbij.r 𝑅 = {𝑛𝑉 ∣ {( lastS ‘𝑊), 𝑛} ∈ 𝐸}
wwlksnextbij.f 𝐹 = (𝑡𝐷 ↦ ( lastS ‘𝑡))
Assertion
Ref Expression
wwlksnextinj (𝑁 ∈ ℕ0𝐹:𝐷1-1𝑅)
Distinct variable groups:   𝑤,𝐺   𝑤,𝑁   𝑤,𝑊   𝑡,𝐷   𝑛,𝐸   𝑤,𝐸   𝑡,𝑁,𝑤   𝑡,𝑅   𝑛,𝑉   𝑤,𝑉   𝑛,𝑊   𝑡,𝑛
Allowed substitution hints:   𝐷(𝑤,𝑛)   𝑅(𝑤,𝑛)   𝐸(𝑡)   𝐹(𝑤,𝑡,𝑛)   𝐺(𝑡,𝑛)   𝑁(𝑛)   𝑉(𝑡)   𝑊(𝑡)

Proof of Theorem wwlksnextinj
Dummy variables 𝑑 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 wwlksnextbij0.v . . 3 𝑉 = (Vtx‘𝐺)
2 wwlksnextbij0.e . . 3 𝐸 = (Edg‘𝐺)
3 wwlksnextbij0.d . . 3 𝐷 = {𝑤 ∈ Word 𝑉 ∣ ((#‘𝑤) = (𝑁 + 2) ∧ (𝑤 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑤)} ∈ 𝐸)}
4 wwlksnextbij.r . . 3 𝑅 = {𝑛𝑉 ∣ {( lastS ‘𝑊), 𝑛} ∈ 𝐸}
5 wwlksnextbij.f . . 3 𝐹 = (𝑡𝐷 ↦ ( lastS ‘𝑡))
61, 2, 3, 4, 5wwlksnextfun 26669 . 2 (𝑁 ∈ ℕ0𝐹:𝐷𝑅)
7 fveq2 6150 . . . . . . 7 (𝑡 = 𝑑 → ( lastS ‘𝑡) = ( lastS ‘𝑑))
8 fvex 6160 . . . . . . 7 ( lastS ‘𝑑) ∈ V
97, 5, 8fvmpt 6241 . . . . . 6 (𝑑𝐷 → (𝐹𝑑) = ( lastS ‘𝑑))
10 fveq2 6150 . . . . . . 7 (𝑡 = 𝑥 → ( lastS ‘𝑡) = ( lastS ‘𝑥))
11 fvex 6160 . . . . . . 7 ( lastS ‘𝑥) ∈ V
1210, 5, 11fvmpt 6241 . . . . . 6 (𝑥𝐷 → (𝐹𝑥) = ( lastS ‘𝑥))
139, 12eqeqan12d 2637 . . . . 5 ((𝑑𝐷𝑥𝐷) → ((𝐹𝑑) = (𝐹𝑥) ↔ ( lastS ‘𝑑) = ( lastS ‘𝑥)))
1413adantl 482 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝑑𝐷𝑥𝐷)) → ((𝐹𝑑) = (𝐹𝑥) ↔ ( lastS ‘𝑑) = ( lastS ‘𝑥)))
15 fveq2 6150 . . . . . . . . 9 (𝑤 = 𝑑 → (#‘𝑤) = (#‘𝑑))
1615eqeq1d 2623 . . . . . . . 8 (𝑤 = 𝑑 → ((#‘𝑤) = (𝑁 + 2) ↔ (#‘𝑑) = (𝑁 + 2)))
17 oveq1 6614 . . . . . . . . 9 (𝑤 = 𝑑 → (𝑤 substr ⟨0, (𝑁 + 1)⟩) = (𝑑 substr ⟨0, (𝑁 + 1)⟩))
1817eqeq1d 2623 . . . . . . . 8 (𝑤 = 𝑑 → ((𝑤 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ↔ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊))
19 fveq2 6150 . . . . . . . . . 10 (𝑤 = 𝑑 → ( lastS ‘𝑤) = ( lastS ‘𝑑))
2019preq2d 4247 . . . . . . . . 9 (𝑤 = 𝑑 → {( lastS ‘𝑊), ( lastS ‘𝑤)} = {( lastS ‘𝑊), ( lastS ‘𝑑)})
2120eleq1d 2683 . . . . . . . 8 (𝑤 = 𝑑 → ({( lastS ‘𝑊), ( lastS ‘𝑤)} ∈ 𝐸 ↔ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸))
2216, 18, 213anbi123d 1396 . . . . . . 7 (𝑤 = 𝑑 → (((#‘𝑤) = (𝑁 + 2) ∧ (𝑤 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑤)} ∈ 𝐸) ↔ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)))
2322, 3elrab2 3349 . . . . . 6 (𝑑𝐷 ↔ (𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)))
24 fveq2 6150 . . . . . . . . 9 (𝑤 = 𝑥 → (#‘𝑤) = (#‘𝑥))
2524eqeq1d 2623 . . . . . . . 8 (𝑤 = 𝑥 → ((#‘𝑤) = (𝑁 + 2) ↔ (#‘𝑥) = (𝑁 + 2)))
26 oveq1 6614 . . . . . . . . 9 (𝑤 = 𝑥 → (𝑤 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, (𝑁 + 1)⟩))
2726eqeq1d 2623 . . . . . . . 8 (𝑤 = 𝑥 → ((𝑤 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ↔ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊))
28 fveq2 6150 . . . . . . . . . 10 (𝑤 = 𝑥 → ( lastS ‘𝑤) = ( lastS ‘𝑥))
2928preq2d 4247 . . . . . . . . 9 (𝑤 = 𝑥 → {( lastS ‘𝑊), ( lastS ‘𝑤)} = {( lastS ‘𝑊), ( lastS ‘𝑥)})
3029eleq1d 2683 . . . . . . . 8 (𝑤 = 𝑥 → ({( lastS ‘𝑊), ( lastS ‘𝑤)} ∈ 𝐸 ↔ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))
3125, 27, 303anbi123d 1396 . . . . . . 7 (𝑤 = 𝑥 → (((#‘𝑤) = (𝑁 + 2) ∧ (𝑤 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑤)} ∈ 𝐸) ↔ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)))
3231, 3elrab2 3349 . . . . . 6 (𝑥𝐷 ↔ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)))
33 eqtr3 2642 . . . . . . . . . . . . . . . . 17 (((#‘𝑑) = (𝑁 + 2) ∧ (#‘𝑥) = (𝑁 + 2)) → (#‘𝑑) = (#‘𝑥))
3433expcom 451 . . . . . . . . . . . . . . . 16 ((#‘𝑥) = (𝑁 + 2) → ((#‘𝑑) = (𝑁 + 2) → (#‘𝑑) = (#‘𝑥)))
35343ad2ant1 1080 . . . . . . . . . . . . . . 15 (((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸) → ((#‘𝑑) = (𝑁 + 2) → (#‘𝑑) = (#‘𝑥)))
3635adantl 482 . . . . . . . . . . . . . 14 ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → ((#‘𝑑) = (𝑁 + 2) → (#‘𝑑) = (#‘𝑥)))
3736com12 32 . . . . . . . . . . . . 13 ((#‘𝑑) = (𝑁 + 2) → ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (#‘𝑑) = (#‘𝑥)))
38373ad2ant1 1080 . . . . . . . . . . . 12 (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸) → ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (#‘𝑑) = (#‘𝑥)))
3938adantl 482 . . . . . . . . . . 11 ((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) → ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (#‘𝑑) = (#‘𝑥)))
4039imp 445 . . . . . . . . . 10 (((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) → (#‘𝑑) = (#‘𝑥))
4140adantr 481 . . . . . . . . 9 ((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) → (#‘𝑑) = (#‘𝑥))
4241adantr 481 . . . . . . . 8 (((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)) → (#‘𝑑) = (#‘𝑥))
43 simpr 477 . . . . . . . 8 (((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)) → ( lastS ‘𝑑) = ( lastS ‘𝑥))
44 eqtr3 2642 . . . . . . . . . . . . . . . . . . . 20 (((𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊) → (𝑑 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, (𝑁 + 1)⟩))
45 1e2m1 11083 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 1 = (2 − 1)
4645a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑁 ∈ ℕ0 → 1 = (2 − 1))
4746oveq2d 6623 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑁 ∈ ℕ0 → (𝑁 + 1) = (𝑁 + (2 − 1)))
48 nn0cn 11249 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑁 ∈ ℕ0𝑁 ∈ ℂ)
49 2cnd 11040 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑁 ∈ ℕ0 → 2 ∈ ℂ)
50 1cnd 10003 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑁 ∈ ℕ0 → 1 ∈ ℂ)
5148, 49, 50addsubassd 10359 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑁 ∈ ℕ0 → ((𝑁 + 2) − 1) = (𝑁 + (2 − 1)))
5247, 51eqtr4d 2658 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑁 ∈ ℕ0 → (𝑁 + 1) = ((𝑁 + 2) − 1))
5352adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 ∈ ℕ0 ∧ (#‘𝑑) = (𝑁 + 2)) → (𝑁 + 1) = ((𝑁 + 2) − 1))
54 oveq1 6614 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((#‘𝑑) = (𝑁 + 2) → ((#‘𝑑) − 1) = ((𝑁 + 2) − 1))
5554eqeq2d 2631 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((#‘𝑑) = (𝑁 + 2) → ((𝑁 + 1) = ((#‘𝑑) − 1) ↔ (𝑁 + 1) = ((𝑁 + 2) − 1)))
5655adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 ∈ ℕ0 ∧ (#‘𝑑) = (𝑁 + 2)) → ((𝑁 + 1) = ((#‘𝑑) − 1) ↔ (𝑁 + 1) = ((𝑁 + 2) − 1)))
5753, 56mpbird 247 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑁 ∈ ℕ0 ∧ (#‘𝑑) = (𝑁 + 2)) → (𝑁 + 1) = ((#‘𝑑) − 1))
58 opeq2 4373 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑁 + 1) = ((#‘𝑑) − 1) → ⟨0, (𝑁 + 1)⟩ = ⟨0, ((#‘𝑑) − 1)⟩)
5958oveq2d 6623 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 + 1) = ((#‘𝑑) − 1) → (𝑑 substr ⟨0, (𝑁 + 1)⟩) = (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩))
6058oveq2d 6623 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 + 1) = ((#‘𝑑) − 1) → (𝑥 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))
6159, 60eqeq12d 2636 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑁 + 1) = ((#‘𝑑) − 1) → ((𝑑 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, (𝑁 + 1)⟩) ↔ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)))
6257, 61syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑁 ∈ ℕ0 ∧ (#‘𝑑) = (𝑁 + 2)) → ((𝑑 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, (𝑁 + 1)⟩) ↔ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)))
6362biimpd 219 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑁 ∈ ℕ0 ∧ (#‘𝑑) = (𝑁 + 2)) → ((𝑑 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, (𝑁 + 1)⟩) → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)))
6463ex 450 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0 → ((#‘𝑑) = (𝑁 + 2) → ((𝑑 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, (𝑁 + 1)⟩) → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
6564com13 88 . . . . . . . . . . . . . . . . . . . 20 ((𝑑 substr ⟨0, (𝑁 + 1)⟩) = (𝑥 substr ⟨0, (𝑁 + 1)⟩) → ((#‘𝑑) = (𝑁 + 2) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
6644, 65syl 17 . . . . . . . . . . . . . . . . . . 19 (((𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊) → ((#‘𝑑) = (𝑁 + 2) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
6766ex 450 . . . . . . . . . . . . . . . . . 18 ((𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 → ((𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 → ((#‘𝑑) = (𝑁 + 2) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)))))
6867com23 86 . . . . . . . . . . . . . . . . 17 ((𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 → ((#‘𝑑) = (𝑁 + 2) → ((𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)))))
6968impcom 446 . . . . . . . . . . . . . . . 16 (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊) → ((𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
7069com12 32 . . . . . . . . . . . . . . 15 ((𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 → (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
71703ad2ant2 1081 . . . . . . . . . . . . . 14 (((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸) → (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
7271adantl 482 . . . . . . . . . . . . 13 ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
7372com12 32 . . . . . . . . . . . 12 (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊) → ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
74733adant3 1079 . . . . . . . . . . 11 (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸) → ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
7574adantl 482 . . . . . . . . . 10 ((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) → ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (𝑁 ∈ ℕ0 → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
7675imp31 448 . . . . . . . . 9 ((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))
7776adantr 481 . . . . . . . 8 (((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)) → (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))
78 simpl 473 . . . . . . . . . . . . 13 ((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) → 𝑑 ∈ Word 𝑉)
79 simpl 473 . . . . . . . . . . . . 13 ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → 𝑥 ∈ Word 𝑉)
8078, 79anim12i 589 . . . . . . . . . . . 12 (((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) → (𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉))
8180adantr 481 . . . . . . . . . . 11 ((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) → (𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉))
82 nn0re 11248 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0𝑁 ∈ ℝ)
83 2re 11037 . . . . . . . . . . . . . . . . . . . . . 22 2 ∈ ℝ
8483a1i 11 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0 → 2 ∈ ℝ)
85 nn0ge0 11265 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0 → 0 ≤ 𝑁)
86 2pos 11059 . . . . . . . . . . . . . . . . . . . . . 22 0 < 2
8786a1i 11 . . . . . . . . . . . . . . . . . . . . 21 (𝑁 ∈ ℕ0 → 0 < 2)
8882, 84, 85, 87addgegt0d 10548 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ ℕ0 → 0 < (𝑁 + 2))
8988adantl 482 . . . . . . . . . . . . . . . . . . 19 (((#‘𝑑) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0) → 0 < (𝑁 + 2))
90 breq2 4619 . . . . . . . . . . . . . . . . . . . 20 ((#‘𝑑) = (𝑁 + 2) → (0 < (#‘𝑑) ↔ 0 < (𝑁 + 2)))
9190adantr 481 . . . . . . . . . . . . . . . . . . 19 (((#‘𝑑) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0) → (0 < (#‘𝑑) ↔ 0 < (𝑁 + 2)))
9289, 91mpbird 247 . . . . . . . . . . . . . . . . . 18 (((#‘𝑑) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0) → 0 < (#‘𝑑))
93 hashgt0n0 13099 . . . . . . . . . . . . . . . . . 18 ((𝑑 ∈ Word 𝑉 ∧ 0 < (#‘𝑑)) → 𝑑 ≠ ∅)
9492, 93sylan2 491 . . . . . . . . . . . . . . . . 17 ((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0)) → 𝑑 ≠ ∅)
9594exp32 630 . . . . . . . . . . . . . . . 16 (𝑑 ∈ Word 𝑉 → ((#‘𝑑) = (𝑁 + 2) → (𝑁 ∈ ℕ0𝑑 ≠ ∅)))
9695com12 32 . . . . . . . . . . . . . . 15 ((#‘𝑑) = (𝑁 + 2) → (𝑑 ∈ Word 𝑉 → (𝑁 ∈ ℕ0𝑑 ≠ ∅)))
97963ad2ant1 1080 . . . . . . . . . . . . . 14 (((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸) → (𝑑 ∈ Word 𝑉 → (𝑁 ∈ ℕ0𝑑 ≠ ∅)))
9897impcom 446 . . . . . . . . . . . . 13 ((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) → (𝑁 ∈ ℕ0𝑑 ≠ ∅))
9998adantr 481 . . . . . . . . . . . 12 (((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) → (𝑁 ∈ ℕ0𝑑 ≠ ∅))
10099imp 445 . . . . . . . . . . 11 ((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) → 𝑑 ≠ ∅)
10188adantl 482 . . . . . . . . . . . . . . . . . . 19 (((#‘𝑥) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0) → 0 < (𝑁 + 2))
102 breq2 4619 . . . . . . . . . . . . . . . . . . . 20 ((#‘𝑥) = (𝑁 + 2) → (0 < (#‘𝑥) ↔ 0 < (𝑁 + 2)))
103102adantr 481 . . . . . . . . . . . . . . . . . . 19 (((#‘𝑥) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0) → (0 < (#‘𝑥) ↔ 0 < (𝑁 + 2)))
104101, 103mpbird 247 . . . . . . . . . . . . . . . . . 18 (((#‘𝑥) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0) → 0 < (#‘𝑥))
105 hashgt0n0 13099 . . . . . . . . . . . . . . . . . 18 ((𝑥 ∈ Word 𝑉 ∧ 0 < (#‘𝑥)) → 𝑥 ≠ ∅)
106104, 105sylan2 491 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ 𝑁 ∈ ℕ0)) → 𝑥 ≠ ∅)
107106exp32 630 . . . . . . . . . . . . . . . 16 (𝑥 ∈ Word 𝑉 → ((#‘𝑥) = (𝑁 + 2) → (𝑁 ∈ ℕ0𝑥 ≠ ∅)))
108107com12 32 . . . . . . . . . . . . . . 15 ((#‘𝑥) = (𝑁 + 2) → (𝑥 ∈ Word 𝑉 → (𝑁 ∈ ℕ0𝑥 ≠ ∅)))
1091083ad2ant1 1080 . . . . . . . . . . . . . 14 (((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸) → (𝑥 ∈ Word 𝑉 → (𝑁 ∈ ℕ0𝑥 ≠ ∅)))
110109impcom 446 . . . . . . . . . . . . 13 ((𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸)) → (𝑁 ∈ ℕ0𝑥 ≠ ∅))
111110adantl 482 . . . . . . . . . . . 12 (((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) → (𝑁 ∈ ℕ0𝑥 ≠ ∅))
112111imp 445 . . . . . . . . . . 11 ((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) → 𝑥 ≠ ∅)
11381, 100, 112jca32 557 . . . . . . . . . 10 ((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) → ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) ∧ (𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅)))
114113adantr 481 . . . . . . . . 9 (((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)) → ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) ∧ (𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅)))
115 simpl 473 . . . . . . . . . . . 12 ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) → 𝑑 ∈ Word 𝑉)
116115adantr 481 . . . . . . . . . . 11 (((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) ∧ (𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅)) → 𝑑 ∈ Word 𝑉)
117 simpr 477 . . . . . . . . . . . 12 ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) → 𝑥 ∈ Word 𝑉)
118117adantr 481 . . . . . . . . . . 11 (((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) ∧ (𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅)) → 𝑥 ∈ Word 𝑉)
119 hashneq0 13098 . . . . . . . . . . . . . . . 16 (𝑑 ∈ Word 𝑉 → (0 < (#‘𝑑) ↔ 𝑑 ≠ ∅))
120119biimprd 238 . . . . . . . . . . . . . . 15 (𝑑 ∈ Word 𝑉 → (𝑑 ≠ ∅ → 0 < (#‘𝑑)))
121120adantr 481 . . . . . . . . . . . . . 14 ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) → (𝑑 ≠ ∅ → 0 < (#‘𝑑)))
122121com12 32 . . . . . . . . . . . . 13 (𝑑 ≠ ∅ → ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) → 0 < (#‘𝑑)))
123122adantr 481 . . . . . . . . . . . 12 ((𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅) → ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) → 0 < (#‘𝑑)))
124123impcom 446 . . . . . . . . . . 11 (((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) ∧ (𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅)) → 0 < (#‘𝑑))
125 2swrd1eqwrdeq 13395 . . . . . . . . . . 11 ((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉 ∧ 0 < (#‘𝑑)) → (𝑑 = 𝑥 ↔ ((#‘𝑑) = (#‘𝑥) ∧ ((𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)))))
126116, 118, 124, 125syl3anc 1323 . . . . . . . . . 10 (((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) ∧ (𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅)) → (𝑑 = 𝑥 ↔ ((#‘𝑑) = (#‘𝑥) ∧ ((𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)))))
127 ancom 466 . . . . . . . . . . . 12 (((𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)) ↔ (( lastS ‘𝑑) = ( lastS ‘𝑥) ∧ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)))
128127anbi2i 729 . . . . . . . . . . 11 (((#‘𝑑) = (#‘𝑥) ∧ ((𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥))) ↔ ((#‘𝑑) = (#‘𝑥) ∧ (( lastS ‘𝑑) = ( lastS ‘𝑥) ∧ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
129 3anass 1040 . . . . . . . . . . 11 (((#‘𝑑) = (#‘𝑥) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥) ∧ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)) ↔ ((#‘𝑑) = (#‘𝑥) ∧ (( lastS ‘𝑑) = ( lastS ‘𝑥) ∧ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
130128, 129bitr4i 267 . . . . . . . . . 10 (((#‘𝑑) = (#‘𝑥) ∧ ((𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥))) ↔ ((#‘𝑑) = (#‘𝑥) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥) ∧ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩)))
131126, 130syl6bb 276 . . . . . . . . 9 (((𝑑 ∈ Word 𝑉𝑥 ∈ Word 𝑉) ∧ (𝑑 ≠ ∅ ∧ 𝑥 ≠ ∅)) → (𝑑 = 𝑥 ↔ ((#‘𝑑) = (#‘𝑥) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥) ∧ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
132114, 131syl 17 . . . . . . . 8 (((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)) → (𝑑 = 𝑥 ↔ ((#‘𝑑) = (#‘𝑥) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥) ∧ (𝑑 substr ⟨0, ((#‘𝑑) − 1)⟩) = (𝑥 substr ⟨0, ((#‘𝑑) − 1)⟩))))
13342, 43, 77, 132mpbir3and 1243 . . . . . . 7 (((((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) ∧ 𝑁 ∈ ℕ0) ∧ ( lastS ‘𝑑) = ( lastS ‘𝑥)) → 𝑑 = 𝑥)
134133exp31 629 . . . . . 6 (((𝑑 ∈ Word 𝑉 ∧ ((#‘𝑑) = (𝑁 + 2) ∧ (𝑑 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑑)} ∈ 𝐸)) ∧ (𝑥 ∈ Word 𝑉 ∧ ((#‘𝑥) = (𝑁 + 2) ∧ (𝑥 substr ⟨0, (𝑁 + 1)⟩) = 𝑊 ∧ {( lastS ‘𝑊), ( lastS ‘𝑥)} ∈ 𝐸))) → (𝑁 ∈ ℕ0 → (( lastS ‘𝑑) = ( lastS ‘𝑥) → 𝑑 = 𝑥)))
13523, 32, 134syl2anb 496 . . . . 5 ((𝑑𝐷𝑥𝐷) → (𝑁 ∈ ℕ0 → (( lastS ‘𝑑) = ( lastS ‘𝑥) → 𝑑 = 𝑥)))
136135impcom 446 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝑑𝐷𝑥𝐷)) → (( lastS ‘𝑑) = ( lastS ‘𝑥) → 𝑑 = 𝑥))
13714, 136sylbid 230 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝑑𝐷𝑥𝐷)) → ((𝐹𝑑) = (𝐹𝑥) → 𝑑 = 𝑥))
138137ralrimivva 2965 . 2 (𝑁 ∈ ℕ0 → ∀𝑑𝐷𝑥𝐷 ((𝐹𝑑) = (𝐹𝑥) → 𝑑 = 𝑥))
139 dff13 6469 . 2 (𝐹:𝐷1-1𝑅 ↔ (𝐹:𝐷𝑅 ∧ ∀𝑑𝐷𝑥𝐷 ((𝐹𝑑) = (𝐹𝑥) → 𝑑 = 𝑥)))
1406, 138, 139sylanbrc 697 1 (𝑁 ∈ ℕ0𝐹:𝐷1-1𝑅)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  w3a 1036   = wceq 1480  wcel 1987  wne 2790  wral 2907  {crab 2911  c0 3893  {cpr 4152  cop 4156   class class class wbr 4615  cmpt 4675  wf 5845  1-1wf1 5846  cfv 5849  (class class class)co 6607  cr 9882  0cc0 9883  1c1 9884   + caddc 9886   < clt 10021  cmin 10213  2c2 11017  0cn0 11239  #chash 13060  Word cword 13233   lastS clsw 13234   substr csubstr 13237  Vtxcvtx 25781  Edgcedg 25846
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4733  ax-sep 4743  ax-nul 4751  ax-pow 4805  ax-pr 4869  ax-un 6905  ax-cnex 9939  ax-resscn 9940  ax-1cn 9941  ax-icn 9942  ax-addcl 9943  ax-addrcl 9944  ax-mulcl 9945  ax-mulrcl 9946  ax-mulcom 9947  ax-addass 9948  ax-mulass 9949  ax-distr 9950  ax-i2m1 9951  ax-1ne0 9952  ax-1rid 9953  ax-rnegex 9954  ax-rrecex 9955  ax-cnre 9956  ax-pre-lttri 9957  ax-pre-lttrn 9958  ax-pre-ltadd 9959  ax-pre-mulgt0 9960
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-fal 1486  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3188  df-sbc 3419  df-csb 3516  df-dif 3559  df-un 3561  df-in 3563  df-ss 3570  df-pss 3572  df-nul 3894  df-if 4061  df-pw 4134  df-sn 4151  df-pr 4153  df-tp 4155  df-op 4157  df-uni 4405  df-int 4443  df-iun 4489  df-br 4616  df-opab 4676  df-mpt 4677  df-tr 4715  df-eprel 4987  df-id 4991  df-po 4997  df-so 4998  df-fr 5035  df-we 5037  df-xp 5082  df-rel 5083  df-cnv 5084  df-co 5085  df-dm 5086  df-rn 5087  df-res 5088  df-ima 5089  df-pred 5641  df-ord 5687  df-on 5688  df-lim 5689  df-suc 5690  df-iota 5812  df-fun 5851  df-fn 5852  df-f 5853  df-f1 5854  df-fo 5855  df-f1o 5856  df-fv 5857  df-riota 6568  df-ov 6610  df-oprab 6611  df-mpt2 6612  df-om 7016  df-1st 7116  df-2nd 7117  df-wrecs 7355  df-recs 7416  df-rdg 7454  df-1o 7508  df-oadd 7512  df-er 7690  df-en 7903  df-dom 7904  df-sdom 7905  df-fin 7906  df-card 8712  df-pnf 10023  df-mnf 10024  df-xr 10025  df-ltxr 10026  df-le 10027  df-sub 10215  df-neg 10216  df-nn 10968  df-2 11026  df-n0 11240  df-xnn0 11311  df-z 11325  df-uz 11635  df-fz 12272  df-fzo 12410  df-hash 13061  df-word 13241  df-lsw 13242  df-s1 13244  df-substr 13245
This theorem is referenced by:  wwlksnextbij0  26672
  Copyright terms: Public domain W3C validator