Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  smatfval Structured version   Visualization version   GIF version

Theorem smatfval 29846
Description: Value of the submatrix. (Contributed by Thierry Arnoux, 19-Aug-2020.)
Assertion
Ref Expression
smatfval ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (𝐾(subMat1‘𝑀)𝐿) = (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
Distinct variable groups:   𝑖,𝐾,𝑗   𝑖,𝐿,𝑗
Allowed substitution hints:   𝑀(𝑖,𝑗)   𝑉(𝑖,𝑗)

Proof of Theorem smatfval
Dummy variables 𝑘 𝑙 𝑚 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elex 3210 . . . 4 (𝑀𝑉𝑀 ∈ V)
213ad2ant3 1083 . . 3 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝑀 ∈ V)
3 coeq1 5277 . . . . 5 (𝑚 = 𝑀 → (𝑚 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)) = (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)))
43mpt2eq3dv 6718 . . . 4 (𝑚 = 𝑀 → (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑚 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))) = (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
5 df-smat 29845 . . . 4 subMat1 = (𝑚 ∈ V ↦ (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑚 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
6 nnex 11023 . . . . 5 ℕ ∈ V
76, 6mpt2ex 7244 . . . 4 (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))) ∈ V
84, 5, 7fvmpt 6280 . . 3 (𝑀 ∈ V → (subMat1‘𝑀) = (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
92, 8syl 17 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (subMat1‘𝑀) = (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
10 breq2 4655 . . . . . . . 8 (𝑘 = 𝐾 → (𝑖 < 𝑘𝑖 < 𝐾))
1110ifbid 4106 . . . . . . 7 (𝑘 = 𝐾 → if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)) = if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)))
1211opeq1d 4406 . . . . . 6 (𝑘 = 𝐾 → ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩ = ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)
1312mpt2eq3dv 6718 . . . . 5 (𝑘 = 𝐾 → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))
14 breq2 4655 . . . . . . . 8 (𝑙 = 𝐿 → (𝑗 < 𝑙𝑗 < 𝐿))
1514ifbid 4106 . . . . . . 7 (𝑙 = 𝐿 → if(𝑗 < 𝑙, 𝑗, (𝑗 + 1)) = if(𝑗 < 𝐿, 𝑗, (𝑗 + 1)))
1615opeq2d 4407 . . . . . 6 (𝑙 = 𝐿 → ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩ = ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)
1716mpt2eq3dv 6718 . . . . 5 (𝑙 = 𝐿 → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))
1813, 17sylan9eq 2675 . . . 4 ((𝑘 = 𝐾𝑙 = 𝐿) → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))
1918adantl 482 . . 3 (((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) ∧ (𝑘 = 𝐾𝑙 = 𝐿)) → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))
2019coeq2d 5282 . 2 (((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) ∧ (𝑘 = 𝐾𝑙 = 𝐿)) → (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)) = (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
21 simp1 1060 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝐾 ∈ ℕ)
22 simp2 1061 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝐿 ∈ ℕ)
23 simp3 1062 . . 3 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝑀𝑉)
246, 6mpt2ex 7244 . . . 4 (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) ∈ V
2524a1i 11 . . 3 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) ∈ V)
26 coexg 7114 . . 3 ((𝑀𝑉 ∧ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) ∈ V) → (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) ∈ V)
2723, 25, 26syl2anc 693 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) ∈ V)
289, 20, 21, 22, 27ovmpt2d 6785 1 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (𝐾(subMat1‘𝑀)𝐿) = (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384  w3a 1037   = wceq 1482  wcel 1989  Vcvv 3198  ifcif 4084  cop 4181   class class class wbr 4651  ccom 5116  cfv 5886  (class class class)co 6647  cmpt2 6649  1c1 9934   + caddc 9936   < clt 10071  cn 11017  subMat1csmat 29844
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1721  ax-4 1736  ax-5 1838  ax-6 1887  ax-7 1934  ax-8 1991  ax-9 1998  ax-10 2018  ax-11 2033  ax-12 2046  ax-13 2245  ax-ext 2601  ax-rep 4769  ax-sep 4779  ax-nul 4787  ax-pow 4841  ax-pr 4904  ax-un 6946  ax-cnex 9989  ax-resscn 9990  ax-1cn 9991  ax-icn 9992  ax-addcl 9993  ax-addrcl 9994  ax-mulcl 9995  ax-mulrcl 9996  ax-i2m1 10001  ax-1ne0 10002  ax-rrecex 10005  ax-cnre 10006
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1038  df-3an 1039  df-tru 1485  df-ex 1704  df-nf 1709  df-sb 1880  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2752  df-ne 2794  df-ral 2916  df-rex 2917  df-reu 2918  df-rab 2920  df-v 3200  df-sbc 3434  df-csb 3532  df-dif 3575  df-un 3577  df-in 3579  df-ss 3586  df-pss 3588  df-nul 3914  df-if 4085  df-pw 4158  df-sn 4176  df-pr 4178  df-tp 4180  df-op 4182  df-uni 4435  df-iun 4520  df-br 4652  df-opab 4711  df-mpt 4728  df-tr 4751  df-id 5022  df-eprel 5027  df-po 5033  df-so 5034  df-fr 5071  df-we 5073  df-xp 5118  df-rel 5119  df-cnv 5120  df-co 5121  df-dm 5122  df-rn 5123  df-res 5124  df-ima 5125  df-pred 5678  df-ord 5724  df-on 5725  df-lim 5726  df-suc 5727  df-iota 5849  df-fun 5888  df-fn 5889  df-f 5890  df-f1 5891  df-fo 5892  df-f1o 5893  df-fv 5894  df-ov 6650  df-oprab 6651  df-mpt2 6652  df-om 7063  df-1st 7165  df-2nd 7166  df-wrecs 7404  df-recs 7465  df-rdg 7503  df-nn 11018  df-smat 29845
This theorem is referenced by:  smatrcl  29847  smatlem  29848
  Copyright terms: Public domain W3C validator