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 28982
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 3184 . . . 4 (𝑀𝑉𝑀 ∈ V)
213ad2ant3 1076 . . 3 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝑀 ∈ V)
3 coeq1 5188 . . . . 5 (𝑚 = 𝑀 → (𝑚 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)) = (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)))
43mpt2eq3dv 6596 . . . 4 (𝑚 = 𝑀 → (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑚 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))) = (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
5 df-smat 28981 . . . 4 subMat1 = (𝑚 ∈ V ↦ (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑚 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
6 nnex 10875 . . . . 5 ℕ ∈ V
76, 6mpt2ex 7113 . . . 4 (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))) ∈ V
84, 5, 7fvmpt 6175 . . 3 (𝑀 ∈ V → (subMat1‘𝑀) = (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
92, 8syl 17 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (subMat1‘𝑀) = (𝑘 ∈ ℕ, 𝑙 ∈ ℕ ↦ (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))))
10 breq2 4581 . . . . . . . 8 (𝑘 = 𝐾 → (𝑖 < 𝑘𝑖 < 𝐾))
1110ifbid 4057 . . . . . . 7 (𝑘 = 𝐾 → if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)) = if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)))
1211opeq1d 4340 . . . . . 6 (𝑘 = 𝐾 → ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩ = ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)
1312mpt2eq3dv 6596 . . . . 5 (𝑘 = 𝐾 → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩))
14 breq2 4581 . . . . . . . 8 (𝑙 = 𝐿 → (𝑗 < 𝑙𝑗 < 𝐿))
1514ifbid 4057 . . . . . . 7 (𝑙 = 𝐿 → if(𝑗 < 𝑙, 𝑗, (𝑗 + 1)) = if(𝑗 < 𝐿, 𝑗, (𝑗 + 1)))
1615opeq2d 4341 . . . . . 6 (𝑙 = 𝐿 → ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩ = ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)
1716mpt2eq3dv 6596 . . . . 5 (𝑙 = 𝐿 → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))
1813, 17sylan9eq 2663 . . . 4 ((𝑘 = 𝐾𝑙 = 𝐿) → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))
1918adantl 480 . . 3 (((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) ∧ (𝑘 = 𝐾𝑙 = 𝐿)) → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))
2019coeq2d 5193 . 2 (((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) ∧ (𝑘 = 𝐾𝑙 = 𝐿)) → (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝑘, 𝑖, (𝑖 + 1)), if(𝑗 < 𝑙, 𝑗, (𝑗 + 1))⟩)) = (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
21 simp1 1053 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝐾 ∈ ℕ)
22 simp2 1054 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝐿 ∈ ℕ)
23 simp3 1055 . . 3 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → 𝑀𝑉)
246, 6mpt2ex 7113 . . . 4 (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) ∈ V
2524a1i 11 . . 3 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) ∈ V)
26 coexg 6987 . . 3 ((𝑀𝑉 ∧ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) ∈ V) → (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) ∈ V)
2723, 25, 26syl2anc 690 . 2 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) ∈ V)
289, 20, 21, 22, 27ovmpt2d 6663 1 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝑀𝑉) → (𝐾(subMat1‘𝑀)𝐿) = (𝑀 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382  w3a 1030   = wceq 1474  wcel 1976  Vcvv 3172  ifcif 4035  cop 4130   class class class wbr 4577  ccom 5031  cfv 5789  (class class class)co 6526  cmpt2 6528  1c1 9793   + caddc 9795   < clt 9930  cn 10869  subMat1csmat 28980
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2033  ax-13 2233  ax-ext 2589  ax-rep 4693  ax-sep 4703  ax-nul 4711  ax-pow 4763  ax-pr 4827  ax-un 6824  ax-cnex 9848  ax-resscn 9849  ax-1cn 9850  ax-icn 9851  ax-addcl 9852  ax-addrcl 9853  ax-mulcl 9854  ax-mulrcl 9855  ax-i2m1 9860  ax-1ne0 9861  ax-rrecex 9864  ax-cnre 9865
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-ral 2900  df-rex 2901  df-reu 2902  df-rab 2904  df-v 3174  df-sbc 3402  df-csb 3499  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-pss 3555  df-nul 3874  df-if 4036  df-pw 4109  df-sn 4125  df-pr 4127  df-tp 4129  df-op 4131  df-uni 4367  df-iun 4451  df-br 4578  df-opab 4638  df-mpt 4639  df-tr 4675  df-eprel 4938  df-id 4942  df-po 4948  df-so 4949  df-fr 4986  df-we 4988  df-xp 5033  df-rel 5034  df-cnv 5035  df-co 5036  df-dm 5037  df-rn 5038  df-res 5039  df-ima 5040  df-pred 5582  df-ord 5628  df-on 5629  df-lim 5630  df-suc 5631  df-iota 5753  df-fun 5791  df-fn 5792  df-f 5793  df-f1 5794  df-fo 5795  df-f1o 5796  df-fv 5797  df-ov 6529  df-oprab 6530  df-mpt2 6531  df-om 6935  df-1st 7036  df-2nd 7037  df-wrecs 7271  df-recs 7332  df-rdg 7370  df-nn 10870  df-smat 28981
This theorem is referenced by:  smatrcl  28983  smatlem  28984
  Copyright terms: Public domain W3C validator