Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  pfxval Structured version   Visualization version   GIF version

Theorem pfxval 41911
Description: Value of a prefix. (Contributed by AV, 2-May-2020.)
Assertion
Ref Expression
pfxval ((𝑆𝑉𝐿 ∈ ℕ0) → (𝑆 prefix 𝐿) = (𝑆 substr ⟨0, 𝐿⟩))

Proof of Theorem pfxval
Dummy variables 𝑙 𝑠 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-pfx 41910 . . 3 prefix = (𝑠 ∈ V, 𝑙 ∈ ℕ0 ↦ (𝑠 substr ⟨0, 𝑙⟩))
21a1i 11 . 2 ((𝑆𝑉𝐿 ∈ ℕ0) → prefix = (𝑠 ∈ V, 𝑙 ∈ ℕ0 ↦ (𝑠 substr ⟨0, 𝑙⟩)))
3 simpl 474 . . . 4 ((𝑠 = 𝑆𝑙 = 𝐿) → 𝑠 = 𝑆)
4 opeq2 4554 . . . . 5 (𝑙 = 𝐿 → ⟨0, 𝑙⟩ = ⟨0, 𝐿⟩)
54adantl 473 . . . 4 ((𝑠 = 𝑆𝑙 = 𝐿) → ⟨0, 𝑙⟩ = ⟨0, 𝐿⟩)
63, 5oveq12d 6832 . . 3 ((𝑠 = 𝑆𝑙 = 𝐿) → (𝑠 substr ⟨0, 𝑙⟩) = (𝑆 substr ⟨0, 𝐿⟩))
76adantl 473 . 2 (((𝑆𝑉𝐿 ∈ ℕ0) ∧ (𝑠 = 𝑆𝑙 = 𝐿)) → (𝑠 substr ⟨0, 𝑙⟩) = (𝑆 substr ⟨0, 𝐿⟩))
8 elex 3352 . . 3 (𝑆𝑉𝑆 ∈ V)
98adantr 472 . 2 ((𝑆𝑉𝐿 ∈ ℕ0) → 𝑆 ∈ V)
10 simpr 479 . 2 ((𝑆𝑉𝐿 ∈ ℕ0) → 𝐿 ∈ ℕ0)
11 ovexd 6844 . 2 ((𝑆𝑉𝐿 ∈ ℕ0) → (𝑆 substr ⟨0, 𝐿⟩) ∈ V)
122, 7, 9, 10, 11ovmpt2d 6954 1 ((𝑆𝑉𝐿 ∈ ℕ0) → (𝑆 prefix 𝐿) = (𝑆 substr ⟨0, 𝐿⟩))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1632  wcel 2139  Vcvv 3340  cop 4327  (class class class)co 6814  cmpt2 6816  0cc0 10148  0cn0 11504   substr csubstr 13501   prefix cpfx 41909
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-sep 4933  ax-nul 4941  ax-pr 5055
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1074  df-tru 1635  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ral 3055  df-rex 3056  df-rab 3059  df-v 3342  df-sbc 3577  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-nul 4059  df-if 4231  df-sn 4322  df-pr 4324  df-op 4328  df-uni 4589  df-br 4805  df-opab 4865  df-id 5174  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-iota 6012  df-fun 6051  df-fv 6057  df-ov 6817  df-oprab 6818  df-mpt2 6819  df-pfx 41910
This theorem is referenced by:  pfx00  41912  pfx0  41913  pfxcl  41914  pfxmpt  41915  pfxid  41920  pfxn0  41922  pfxnd  41923  pfxfv  41927  pfx1  41939  pfxswrd  41941  swrdpfx  41942  pfxpfx  41943  pfxccatpfx1  41955  pfxccatpfx2  41956  splvalpfx  41963  cshword2  41965  pfxco  41966
  Copyright terms: Public domain W3C validator