Users' Mathboxes Mathbox for Ender Ting < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  chnsubseqwl Structured version   Visualization version   GIF version

Theorem chnsubseqwl 48025
Description: A subsequence of a chain has the same length as its indexing sequence. (Contributed by Ender Ting, 22-Jan-2026.)
Hypotheses
Ref Expression
chnsubseq.1 (𝜑 → 𝑊 ∈ ( < Chain 𝐴))
chnsubseq.2 (𝜑 → 𝐼 ∈ ( < Chain (0..^(♯‘𝑊))))
Assertion
Ref Expression
chnsubseqwl (𝜑 → (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼))

Proof of Theorem chnsubseqwl
StepHypRef Expression
1 chnsubseq.2 . . . . . . . 8 (𝜑 → 𝐼 ∈ ( < Chain (0..^(♯‘𝑊))))
21chnwrd 18791 . . . . . . 7 (𝜑 → 𝐼 ∈ Word (0..^(♯‘𝑊)))
3 wrdf 14670 . . . . . . 7 (𝐼 ∈ Word (0..^(♯‘𝑊)) → 𝐼:(0..^(♯‘𝐼))⟶(0..^(♯‘𝑊)))
42, 3syl 18 . . . . . 6 (𝜑 → 𝐼:(0..^(♯‘𝐼))⟶(0..^(♯‘𝑊)))
54frnd 6723 . . . . 5 (𝜑 → ran 𝐼 ⊆ (0..^(♯‘𝑊)))
6 chnsubseq.1 . . . . . . 7 (𝜑 → 𝑊 ∈ ( < Chain 𝐴))
76chnwrd 18791 . . . . . 6 (𝜑 → 𝑊 ∈ Word 𝐴)
8 wrddm 14673 . . . . . 6 (𝑊 ∈ Word 𝐴 → dom 𝑊 = (0..^(♯‘𝑊)))
97, 8syl 18 . . . . 5 (𝜑 → dom 𝑊 = (0..^(♯‘𝑊)))
105, 9sseqtrrd 3946 . . . 4 (𝜑 → ran 𝐼 ⊆ dom 𝑊)
11 dmcosseq 5961 . . . 4 (ran 𝐼 ⊆ dom 𝑊 → dom (𝑊 ∘ 𝐼) = dom 𝐼)
1210, 11syl 18 . . 3 (𝜑 → dom (𝑊 ∘ 𝐼) = dom 𝐼)
136, 1chnsubseqword 48024 . . . 4 (𝜑 → (𝑊 ∘ 𝐼) ∈ Word 𝐴)
14 wrddm 14673 . . . 4 ((𝑊 ∘ 𝐼) ∈ Word 𝐴 → dom (𝑊 ∘ 𝐼) = (0..^(♯‘(𝑊 ∘ 𝐼))))
1513, 14syl 18 . . 3 (𝜑 → dom (𝑊 ∘ 𝐼) = (0..^(♯‘(𝑊 ∘ 𝐼))))
16 wrddm 14673 . . . 4 (𝐼 ∈ Word (0..^(♯‘𝑊)) → dom 𝐼 = (0..^(♯‘𝐼)))
172, 16syl 18 . . 3 (𝜑 → dom 𝐼 = (0..^(♯‘𝐼)))
1812, 15, 173eqtr3d 2803 . 2 (𝜑 → (0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)))
19 0z 12711 . . . . 5 0 ∈ ℤ
20 lencl 14685 . . . . . . 7 ((𝑊 ∘ 𝐼) ∈ Word 𝐴 → (♯‘(𝑊 ∘ 𝐼)) ∈ ℕ0)
2113, 20syl 18 . . . . . 6 (𝜑 → (♯‘(𝑊 ∘ 𝐼)) ∈ ℕ0)
2221nn0zd 12725 . . . . 5 (𝜑 → (♯‘(𝑊 ∘ 𝐼)) ∈ ℤ)
23 simpr 490 . . . . 5 ((𝜑 ∧ 0 < (♯‘(𝑊 ∘ 𝐼))) → 0 < (♯‘(𝑊 ∘ 𝐼)))
24 fzoopth 13904 . . . . 5 ((0 ∈ ℤ ∧ (♯‘(𝑊 ∘ 𝐼)) ∈ ℤ ∧ 0 < (♯‘(𝑊 ∘ 𝐼))) → ((0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)) ↔ (0 = 0 ∧ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼))))
2519, 22, 23, 24mp3an2ani 1497 . . . 4 ((𝜑 ∧ 0 < (♯‘(𝑊 ∘ 𝐼))) → ((0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)) ↔ (0 = 0 ∧ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼))))
26 eqid 2760 . . . . 5 0 = 0
2726biantrur 540 . . . 4 ((♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼) ↔ (0 = 0 ∧ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼)))
2825, 27bitr4di 292 . . 3 ((𝜑 ∧ 0 < (♯‘(𝑊 ∘ 𝐼))) → ((0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)) ↔ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼)))
29 simpr 490 . . . . . . . 8 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → 0 = (♯‘(𝑊 ∘ 𝐼)))
3029oveq2d 7440 . . . . . . 7 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → (0..^0) = (0..^(♯‘(𝑊 ∘ 𝐼))))
31 fzo0 13825 . . . . . . 7 (0..^0) = ∅
3230, 31eqtr3di 2810 . . . . . 6 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → (0..^(♯‘(𝑊 ∘ 𝐼))) = ∅)
3332eqeq1d 2762 . . . . 5 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → ((0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)) ↔ ∅ = (0..^(♯‘𝐼))))
34 eqcom 2767 . . . . 5 (∅ = (0..^(♯‘𝐼)) ↔ (0..^(♯‘𝐼)) = ∅)
3533, 34bitrdi 290 . . . 4 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → ((0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)) ↔ (0..^(♯‘𝐼)) = ∅))
36 0zd 12712 . . . . 5 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → 0 ∈ ℤ)
37 lencl 14685 . . . . . . . 8 (𝐼 ∈ Word (0..^(♯‘𝑊)) → (♯‘𝐼) ∈ ℕ0)
382, 37syl 18 . . . . . . 7 (𝜑 → (♯‘𝐼) ∈ ℕ0)
3938nn0zd 12725 . . . . . 6 (𝜑 → (♯‘𝐼) ∈ ℤ)
4039adantr 486 . . . . 5 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → (♯‘𝐼) ∈ ℤ)
41 fzon 13822 . . . . 5 ((0 ∈ ℤ ∧ (♯‘𝐼) ∈ ℤ) → ((♯‘𝐼) ≤ 0 ↔ (0..^(♯‘𝐼)) = ∅))
4236, 40, 41syl2anc 596 . . . 4 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → ((♯‘𝐼) ≤ 0 ↔ (0..^(♯‘𝐼)) = ∅))
43 nn0le0eq0 12641 . . . . . . . . 9 ((♯‘𝐼) ∈ ℕ0 → ((♯‘𝐼) ≤ 0 ↔ (♯‘𝐼) = 0))
4443biimpa 482 . . . . . . . 8 (((♯‘𝐼) ∈ ℕ0 ∧ (♯‘𝐼) ≤ 0) → (♯‘𝐼) = 0)
4538, 44sylan 592 . . . . . . 7 ((𝜑 ∧ (♯‘𝐼) ≤ 0) → (♯‘𝐼) = 0)
4645adantlr 728 . . . . . 6 (((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) ∧ (♯‘𝐼) ≤ 0) → (♯‘𝐼) = 0)
47 id 23 . . . . . . . 8 ((♯‘𝐼) = 0 → (♯‘𝐼) = 0)
48 0le0 12451 . . . . . . . 8 0 ≤ 0
4947, 48eqbrtrdi 5143 . . . . . . 7 ((♯‘𝐼) = 0 → (♯‘𝐼) ≤ 0)
5049adantl 487 . . . . . 6 (((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) ∧ (♯‘𝐼) = 0) → (♯‘𝐼) ≤ 0)
5146, 50impbida 813 . . . . 5 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → ((♯‘𝐼) ≤ 0 ↔ (♯‘𝐼) = 0))
52 eqcom 2767 . . . . . 6 ((♯‘𝐼) = 0 ↔ 0 = (♯‘𝐼))
5352a1i 11 . . . . 5 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → ((♯‘𝐼) = 0 ↔ 0 = (♯‘𝐼)))
5429eqeq1d 2762 . . . . 5 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → (0 = (♯‘𝐼) ↔ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼)))
5551, 53, 543bitrd 308 . . . 4 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → ((♯‘𝐼) ≤ 0 ↔ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼)))
5635, 42, 553bitr2d 310 . . 3 ((𝜑 ∧ 0 = (♯‘(𝑊 ∘ 𝐼))) → ((0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)) ↔ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼)))
5721nn0ge0d 12677 . . . 4 (𝜑 → 0 ≤ (♯‘(𝑊 ∘ 𝐼)))
58 0red 11318 . . . . 5 (𝜑 → 0 ∈ ℝ)
5921nn0red 12675 . . . . 5 (𝜑 → (♯‘(𝑊 ∘ 𝐼)) ∈ ℝ)
6058, 59leloed 11460 . . . 4 (𝜑 → (0 ≤ (♯‘(𝑊 ∘ 𝐼)) ↔ (0 < (♯‘(𝑊 ∘ 𝐼)) ∨ 0 = (♯‘(𝑊 ∘ 𝐼)))))
6157, 60mpbid 235 . . 3 (𝜑 → (0 < (♯‘(𝑊 ∘ 𝐼)) ∨ 0 = (♯‘(𝑊 ∘ 𝐼))))
6228, 56, 61mpjaodan 973 . 2 (𝜑 → ((0..^(♯‘(𝑊 ∘ 𝐼))) = (0..^(♯‘𝐼)) ↔ (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼)))
6318, 62mpbid 235 1 (𝜑 → (♯‘(𝑊 ∘ 𝐼)) = (♯‘𝐼))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1569   ∈ wcel 2144   ⊆ wss 3896  ∅c0 4277   class class class wbr 5102  dom cdm 5651  ran crn 5652   ∘ ccom 5655  ⟶wf 6539  ‘cfv 6543  (class class class)co 7424  0cc0 11207   < clt 11350   ≤ cle 11351  ℕ0cn0 12613  ℤcz 12700  ..^cfzo 13795  ♯chash 14481  Word cword 14665   Chain cchn 18788
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5327  ax-pr 5391  ax-un 7755  ax-cnex 11263  ax-resscn 11264  ax-1cn 11265  ax-icn 11266  ax-addcl 11267  ax-addrcl 11268  ax-mulcl 11269  ax-mulrcl 11270  ax-mulcom 11271  ax-addass 11272  ax-mulass 11273  ax-distr 11274  ax-i2m1 11275  ax-1ne0 11276  ax-1rid 11277  ax-rnegex 11278  ax-rrecex 11279  ax-cnre 11280  ax-pre-lttri 11281  ax-pre-lttrn 11282  ax-pre-ltadd 11283  ax-pre-mulgt0 11284
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3848  df-ss 3897  df-pss 4013  df-dif 4046  df-in 4090  df-un 4150  df-nul 4278  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-int 4907  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6307  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6497  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7381  df-ov 7427  df-oprab 7428  df-mpo 7429  df-om 7882  df-1st 8005  df-2nd 8006  df-frecs 8307  df-wrecs 8338  df-recs 8387  df-rdg 8426  df-1o 8484  df-er 8725  df-en 8982  df-dom 8983  df-sdom 8984  df-fin 8985  df-card 10027  df-pnf 11352  df-mnf 11353  df-xr 11354  df-ltxr 11355  df-le 11356  df-sub 11550  df-neg 11551  df-nn 12343  df-n0 12614  df-z 12701  df-uz 12973  df-fz 13647  df-fzo 13796  df-hash 14482  df-word 14666  df-chn 18789
This theorem is used by:  chnsubseq  48026  chnsuslle  48027
  Copyright terms: Public domain W3C validator