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

Theorem smatrcl 31267
Description: Closure of the rectangular submatrix. (Contributed by Thierry Arnoux, 19-Aug-2020.)
Hypotheses
Ref Expression
smat.s 𝑆 = (𝐾(subMat1‘𝐴)𝐿)
smat.m (𝜑𝑀 ∈ ℕ)
smat.n (𝜑𝑁 ∈ ℕ)
smat.k (𝜑𝐾 ∈ (1...𝑀))
smat.l (𝜑𝐿 ∈ (1...𝑁))
smat.a (𝜑𝐴 ∈ (𝐵m ((1...𝑀) × (1...𝑁))))
Assertion
Ref Expression
smatrcl (𝜑𝑆 ∈ (𝐵m ((1...(𝑀 − 1)) × (1...(𝑁 − 1)))))

Proof of Theorem smatrcl
Dummy variables 𝑖 𝑗 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 smat.a . . . . . . . 8 (𝜑𝐴 ∈ (𝐵m ((1...𝑀) × (1...𝑁))))
2 elmapi 8438 . . . . . . . 8 (𝐴 ∈ (𝐵m ((1...𝑀) × (1...𝑁))) → 𝐴:((1...𝑀) × (1...𝑁))⟶𝐵)
3 ffun 6501 . . . . . . . 8 (𝐴:((1...𝑀) × (1...𝑁))⟶𝐵 → Fun 𝐴)
41, 2, 33syl 18 . . . . . . 7 (𝜑 → Fun 𝐴)
5 eqid 2758 . . . . . . . . 9 (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) = (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)
65mpofun 7270 . . . . . . . 8 Fun (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)
76a1i 11 . . . . . . 7 (𝜑 → Fun (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))
8 funco 6375 . . . . . . 7 ((Fun 𝐴 ∧ Fun (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) → Fun (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
94, 7, 8syl2anc 587 . . . . . 6 (𝜑 → Fun (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
10 smat.s . . . . . . . 8 𝑆 = (𝐾(subMat1‘𝐴)𝐿)
11 fz1ssnn 12987 . . . . . . . . . 10 (1...𝑀) ⊆ ℕ
12 smat.k . . . . . . . . . 10 (𝜑𝐾 ∈ (1...𝑀))
1311, 12sseldi 3890 . . . . . . . . 9 (𝜑𝐾 ∈ ℕ)
14 fz1ssnn 12987 . . . . . . . . . 10 (1...𝑁) ⊆ ℕ
15 smat.l . . . . . . . . . 10 (𝜑𝐿 ∈ (1...𝑁))
1614, 15sseldi 3890 . . . . . . . . 9 (𝜑𝐿 ∈ ℕ)
17 smatfval 31266 . . . . . . . . 9 ((𝐾 ∈ ℕ ∧ 𝐿 ∈ ℕ ∧ 𝐴 ∈ (𝐵m ((1...𝑀) × (1...𝑁)))) → (𝐾(subMat1‘𝐴)𝐿) = (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
1813, 16, 1, 17syl3anc 1368 . . . . . . . 8 (𝜑 → (𝐾(subMat1‘𝐴)𝐿) = (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
1910, 18syl5eq 2805 . . . . . . 7 (𝜑𝑆 = (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
2019funeqd 6357 . . . . . 6 (𝜑 → (Fun 𝑆 ↔ Fun (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩))))
219, 20mpbird 260 . . . . 5 (𝜑 → Fun 𝑆)
22 fdmrn 6523 . . . . 5 (Fun 𝑆𝑆:dom 𝑆⟶ran 𝑆)
2321, 22sylib 221 . . . 4 (𝜑𝑆:dom 𝑆⟶ran 𝑆)
2419dmeqd 5745 . . . . . 6 (𝜑 → dom 𝑆 = dom (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
25 dmco 6084 . . . . . . 7 dom (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) = ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ dom 𝐴)
26 fdm 6506 . . . . . . . . . . . 12 (𝐴:((1...𝑀) × (1...𝑁))⟶𝐵 → dom 𝐴 = ((1...𝑀) × (1...𝑁)))
271, 2, 263syl 18 . . . . . . . . . . 11 (𝜑 → dom 𝐴 = ((1...𝑀) × (1...𝑁)))
2827imaeq2d 5901 . . . . . . . . . 10 (𝜑 → ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ dom 𝐴) = ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ ((1...𝑀) × (1...𝑁))))
2928eleq2d 2837 . . . . . . . . 9 (𝜑 → (𝑥 ∈ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ dom 𝐴) ↔ 𝑥 ∈ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ ((1...𝑀) × (1...𝑁)))))
30 opex 5324 . . . . . . . . . . . 12 ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩ ∈ V
315, 30fnmpoi 7772 . . . . . . . . . . 11 (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) Fn (ℕ × ℕ)
32 elpreima 6819 . . . . . . . . . . 11 ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) Fn (ℕ × ℕ) → (𝑥 ∈ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ ((1...𝑀) × (1...𝑁))) ↔ (𝑥 ∈ (ℕ × ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)))))
3331, 32ax-mp 5 . . . . . . . . . 10 (𝑥 ∈ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ ((1...𝑀) × (1...𝑁))) ↔ (𝑥 ∈ (ℕ × ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))))
3433a1i 11 . . . . . . . . 9 (𝜑 → (𝑥 ∈ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ ((1...𝑀) × (1...𝑁))) ↔ (𝑥 ∈ (ℕ × ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)))))
35 simplr 768 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → 𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩)
3635fveq2d 6662 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) = ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘⟨(1st𝑥), (2nd𝑥)⟩))
37 df-ov 7153 . . . . . . . . . . . . . . . . . 18 ((1st𝑥)(𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)(2nd𝑥)) = ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘⟨(1st𝑥), (2nd𝑥)⟩)
3836, 37eqtr4di 2811 . . . . . . . . . . . . . . . . 17 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) = ((1st𝑥)(𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)(2nd𝑥)))
39 breq1 5035 . . . . . . . . . . . . . . . . . . . . 21 (𝑖 = (1st𝑥) → (𝑖 < 𝐾 ↔ (1st𝑥) < 𝐾))
40 id 22 . . . . . . . . . . . . . . . . . . . . 21 (𝑖 = (1st𝑥) → 𝑖 = (1st𝑥))
41 oveq1 7157 . . . . . . . . . . . . . . . . . . . . 21 (𝑖 = (1st𝑥) → (𝑖 + 1) = ((1st𝑥) + 1))
4239, 40, 41ifbieq12d 4448 . . . . . . . . . . . . . . . . . . . 20 (𝑖 = (1st𝑥) → if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)) = if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)))
4342opeq1d 4769 . . . . . . . . . . . . . . . . . . 19 (𝑖 = (1st𝑥) → ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩ = ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)
44 breq1 5035 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = (2nd𝑥) → (𝑗 < 𝐿 ↔ (2nd𝑥) < 𝐿))
45 id 22 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = (2nd𝑥) → 𝑗 = (2nd𝑥))
46 oveq1 7157 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = (2nd𝑥) → (𝑗 + 1) = ((2nd𝑥) + 1))
4744, 45, 46ifbieq12d 4448 . . . . . . . . . . . . . . . . . . . 20 (𝑗 = (2nd𝑥) → if(𝑗 < 𝐿, 𝑗, (𝑗 + 1)) = if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1)))
4847opeq2d 4770 . . . . . . . . . . . . . . . . . . 19 (𝑗 = (2nd𝑥) → ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩ = ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1))⟩)
49 opex 5324 . . . . . . . . . . . . . . . . . . 19 ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1))⟩ ∈ V
5043, 48, 5, 49ovmpo 7305 . . . . . . . . . . . . . . . . . 18 (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) → ((1st𝑥)(𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)(2nd𝑥)) = ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1))⟩)
5150adantl 485 . . . . . . . . . . . . . . . . 17 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((1st𝑥)(𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)(2nd𝑥)) = ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1))⟩)
5238, 51eqtrd 2793 . . . . . . . . . . . . . . . 16 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) = ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1))⟩)
5352eleq1d 2836 . . . . . . . . . . . . . . 15 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)) ↔ ⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1))⟩ ∈ ((1...𝑀) × (1...𝑁))))
54 opelxp 5560 . . . . . . . . . . . . . . 15 (⟨if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)), if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1))⟩ ∈ ((1...𝑀) × (1...𝑁)) ↔ (if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)) ∈ (1...𝑀) ∧ if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1)) ∈ (1...𝑁)))
5553, 54bitrdi 290 . . . . . . . . . . . . . 14 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)) ↔ (if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)) ∈ (1...𝑀) ∧ if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1)) ∈ (1...𝑁))))
56 ifel 4464 . . . . . . . . . . . . . . . 16 (if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)) ∈ (1...𝑀) ↔ (((1st𝑥) < 𝐾 ∧ (1st𝑥) ∈ (1...𝑀)) ∨ (¬ (1st𝑥) < 𝐾 ∧ ((1st𝑥) + 1) ∈ (1...𝑀))))
57 simplrl 776 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) ∈ ℕ)
5857nnred 11689 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) ∈ ℝ)
5913nnred 11689 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑𝐾 ∈ ℝ)
6059ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → 𝐾 ∈ ℝ)
61 smat.m . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑𝑀 ∈ ℕ)
6261nnred 11689 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑𝑀 ∈ ℝ)
6362ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → 𝑀 ∈ ℝ)
64 simpr 488 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) < 𝐾)
6558, 60, 64ltled 10826 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) ≤ 𝐾)
66 elfzle2 12960 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝐾 ∈ (1...𝑀) → 𝐾𝑀)
6712, 66syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑𝐾𝑀)
6867ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → 𝐾𝑀)
6958, 60, 63, 65, 68letrd 10835 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) ≤ 𝑀)
7057, 69jca 515 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → ((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ 𝑀))
7161nnzd 12125 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑𝑀 ∈ ℤ)
72 fznn 13024 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑀 ∈ ℤ → ((1st𝑥) ∈ (1...𝑀) ↔ ((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ 𝑀)))
7371, 72syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ((1st𝑥) ∈ (1...𝑀) ↔ ((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ 𝑀)))
7473ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → ((1st𝑥) ∈ (1...𝑀) ↔ ((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ 𝑀)))
7570, 74mpbird 260 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) ∈ (1...𝑀))
7658, 60, 63, 64, 68ltletrd 10838 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) < 𝑀)
7761ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → 𝑀 ∈ ℕ)
78 nnltlem1 12088 . . . . . . . . . . . . . . . . . . . . . 22 (((1st𝑥) ∈ ℕ ∧ 𝑀 ∈ ℕ) → ((1st𝑥) < 𝑀 ↔ (1st𝑥) ≤ (𝑀 − 1)))
7957, 77, 78syl2anc 587 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → ((1st𝑥) < 𝑀 ↔ (1st𝑥) ≤ (𝑀 − 1)))
8076, 79mpbid 235 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → (1st𝑥) ≤ (𝑀 − 1))
8175, 802thd 268 . . . . . . . . . . . . . . . . . . 19 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (1st𝑥) < 𝐾) → ((1st𝑥) ∈ (1...𝑀) ↔ (1st𝑥) ≤ (𝑀 − 1)))
8281pm5.32da 582 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((1st𝑥) < 𝐾 ∧ (1st𝑥) ∈ (1...𝑀)) ↔ ((1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1))))
83 fznn 13024 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 ∈ ℤ → (((1st𝑥) + 1) ∈ (1...𝑀) ↔ (((1st𝑥) + 1) ∈ ℕ ∧ ((1st𝑥) + 1) ≤ 𝑀)))
8471, 83syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (((1st𝑥) + 1) ∈ (1...𝑀) ↔ (((1st𝑥) + 1) ∈ ℕ ∧ ((1st𝑥) + 1) ≤ 𝑀)))
8584ad2antrr 725 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((1st𝑥) + 1) ∈ (1...𝑀) ↔ (((1st𝑥) + 1) ∈ ℕ ∧ ((1st𝑥) + 1) ≤ 𝑀)))
86 simprl 770 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (1st𝑥) ∈ ℕ)
8786peano2nnd 11691 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((1st𝑥) + 1) ∈ ℕ)
8887biantrurd 536 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((1st𝑥) + 1) ≤ 𝑀 ↔ (((1st𝑥) + 1) ∈ ℕ ∧ ((1st𝑥) + 1) ≤ 𝑀)))
8986nnzd 12125 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (1st𝑥) ∈ ℤ)
9071ad2antrr 725 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → 𝑀 ∈ ℤ)
91 zltp1le 12071 . . . . . . . . . . . . . . . . . . . . . 22 (((1st𝑥) ∈ ℤ ∧ 𝑀 ∈ ℤ) → ((1st𝑥) < 𝑀 ↔ ((1st𝑥) + 1) ≤ 𝑀))
92 zltlem1 12074 . . . . . . . . . . . . . . . . . . . . . 22 (((1st𝑥) ∈ ℤ ∧ 𝑀 ∈ ℤ) → ((1st𝑥) < 𝑀 ↔ (1st𝑥) ≤ (𝑀 − 1)))
9391, 92bitr3d 284 . . . . . . . . . . . . . . . . . . . . 21 (((1st𝑥) ∈ ℤ ∧ 𝑀 ∈ ℤ) → (((1st𝑥) + 1) ≤ 𝑀 ↔ (1st𝑥) ≤ (𝑀 − 1)))
9489, 90, 93syl2anc 587 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((1st𝑥) + 1) ≤ 𝑀 ↔ (1st𝑥) ≤ (𝑀 − 1)))
9585, 88, 943bitr2d 310 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((1st𝑥) + 1) ∈ (1...𝑀) ↔ (1st𝑥) ≤ (𝑀 − 1)))
9695anbi2d 631 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((¬ (1st𝑥) < 𝐾 ∧ ((1st𝑥) + 1) ∈ (1...𝑀)) ↔ (¬ (1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1))))
9782, 96orbi12d 916 . . . . . . . . . . . . . . . . 17 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((((1st𝑥) < 𝐾 ∧ (1st𝑥) ∈ (1...𝑀)) ∨ (¬ (1st𝑥) < 𝐾 ∧ ((1st𝑥) + 1) ∈ (1...𝑀))) ↔ (((1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1)) ∨ (¬ (1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1)))))
98 pm4.42 1049 . . . . . . . . . . . . . . . . . 18 ((1st𝑥) ≤ (𝑀 − 1) ↔ (((1st𝑥) ≤ (𝑀 − 1) ∧ (1st𝑥) < 𝐾) ∨ ((1st𝑥) ≤ (𝑀 − 1) ∧ ¬ (1st𝑥) < 𝐾)))
99 ancom 464 . . . . . . . . . . . . . . . . . . 19 (((1st𝑥) ≤ (𝑀 − 1) ∧ (1st𝑥) < 𝐾) ↔ ((1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1)))
100 ancom 464 . . . . . . . . . . . . . . . . . . 19 (((1st𝑥) ≤ (𝑀 − 1) ∧ ¬ (1st𝑥) < 𝐾) ↔ (¬ (1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1)))
10199, 100orbi12i 912 . . . . . . . . . . . . . . . . . 18 ((((1st𝑥) ≤ (𝑀 − 1) ∧ (1st𝑥) < 𝐾) ∨ ((1st𝑥) ≤ (𝑀 − 1) ∧ ¬ (1st𝑥) < 𝐾)) ↔ (((1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1)) ∨ (¬ (1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1))))
10298, 101bitri 278 . . . . . . . . . . . . . . . . 17 ((1st𝑥) ≤ (𝑀 − 1) ↔ (((1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1)) ∨ (¬ (1st𝑥) < 𝐾 ∧ (1st𝑥) ≤ (𝑀 − 1))))
10397, 102bitr4di 292 . . . . . . . . . . . . . . . 16 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((((1st𝑥) < 𝐾 ∧ (1st𝑥) ∈ (1...𝑀)) ∨ (¬ (1st𝑥) < 𝐾 ∧ ((1st𝑥) + 1) ∈ (1...𝑀))) ↔ (1st𝑥) ≤ (𝑀 − 1)))
10456, 103syl5bb 286 . . . . . . . . . . . . . . 15 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)) ∈ (1...𝑀) ↔ (1st𝑥) ≤ (𝑀 − 1)))
105 ifel 4464 . . . . . . . . . . . . . . . 16 (if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1)) ∈ (1...𝑁) ↔ (((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ∈ (1...𝑁)) ∨ (¬ (2nd𝑥) < 𝐿 ∧ ((2nd𝑥) + 1) ∈ (1...𝑁))))
106 simplrr 777 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) ∈ ℕ)
107106nnred 11689 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) ∈ ℝ)
10816nnred 11689 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑𝐿 ∈ ℝ)
109108ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → 𝐿 ∈ ℝ)
110 smat.n . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑𝑁 ∈ ℕ)
111110nnred 11689 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑𝑁 ∈ ℝ)
112111ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → 𝑁 ∈ ℝ)
113 simpr 488 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) < 𝐿)
114107, 109, 113ltled 10826 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) ≤ 𝐿)
115 elfzle2 12960 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝐿 ∈ (1...𝑁) → 𝐿𝑁)
11615, 115syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑𝐿𝑁)
117116ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → 𝐿𝑁)
118107, 109, 112, 114, 117letrd 10835 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) ≤ 𝑁)
119106, 118jca 515 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ 𝑁))
120110nnzd 12125 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑𝑁 ∈ ℤ)
121 fznn 13024 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑁 ∈ ℤ → ((2nd𝑥) ∈ (1...𝑁) ↔ ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ 𝑁)))
122120, 121syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ((2nd𝑥) ∈ (1...𝑁) ↔ ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ 𝑁)))
123122ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → ((2nd𝑥) ∈ (1...𝑁) ↔ ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ 𝑁)))
124119, 123mpbird 260 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) ∈ (1...𝑁))
125107, 109, 112, 113, 117ltletrd 10838 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) < 𝑁)
126110ad3antrrr 729 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → 𝑁 ∈ ℕ)
127 nnltlem1 12088 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd𝑥) ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((2nd𝑥) < 𝑁 ↔ (2nd𝑥) ≤ (𝑁 − 1)))
128106, 126, 127syl2anc 587 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → ((2nd𝑥) < 𝑁 ↔ (2nd𝑥) ≤ (𝑁 − 1)))
129125, 128mpbid 235 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → (2nd𝑥) ≤ (𝑁 − 1))
130124, 1292thd 268 . . . . . . . . . . . . . . . . . . 19 ((((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ (2nd𝑥) < 𝐿) → ((2nd𝑥) ∈ (1...𝑁) ↔ (2nd𝑥) ≤ (𝑁 − 1)))
131130pm5.32da 582 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ∈ (1...𝑁)) ↔ ((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1))))
132 fznn 13024 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ ℤ → (((2nd𝑥) + 1) ∈ (1...𝑁) ↔ (((2nd𝑥) + 1) ∈ ℕ ∧ ((2nd𝑥) + 1) ≤ 𝑁)))
133120, 132syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (((2nd𝑥) + 1) ∈ (1...𝑁) ↔ (((2nd𝑥) + 1) ∈ ℕ ∧ ((2nd𝑥) + 1) ≤ 𝑁)))
134133ad2antrr 725 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((2nd𝑥) + 1) ∈ (1...𝑁) ↔ (((2nd𝑥) + 1) ∈ ℕ ∧ ((2nd𝑥) + 1) ≤ 𝑁)))
135 simprr 772 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (2nd𝑥) ∈ ℕ)
136135peano2nnd 11691 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((2nd𝑥) + 1) ∈ ℕ)
137136biantrurd 536 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((2nd𝑥) + 1) ≤ 𝑁 ↔ (((2nd𝑥) + 1) ∈ ℕ ∧ ((2nd𝑥) + 1) ≤ 𝑁)))
138135nnzd 12125 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (2nd𝑥) ∈ ℤ)
139120ad2antrr 725 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → 𝑁 ∈ ℤ)
140 zltp1le 12071 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd𝑥) ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((2nd𝑥) < 𝑁 ↔ ((2nd𝑥) + 1) ≤ 𝑁))
141 zltlem1 12074 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd𝑥) ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((2nd𝑥) < 𝑁 ↔ (2nd𝑥) ≤ (𝑁 − 1)))
142140, 141bitr3d 284 . . . . . . . . . . . . . . . . . . . . 21 (((2nd𝑥) ∈ ℤ ∧ 𝑁 ∈ ℤ) → (((2nd𝑥) + 1) ≤ 𝑁 ↔ (2nd𝑥) ≤ (𝑁 − 1)))
143138, 139, 142syl2anc 587 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((2nd𝑥) + 1) ≤ 𝑁 ↔ (2nd𝑥) ≤ (𝑁 − 1)))
144134, 137, 1433bitr2d 310 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((2nd𝑥) + 1) ∈ (1...𝑁) ↔ (2nd𝑥) ≤ (𝑁 − 1)))
145144anbi2d 631 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((¬ (2nd𝑥) < 𝐿 ∧ ((2nd𝑥) + 1) ∈ (1...𝑁)) ↔ (¬ (2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1))))
146131, 145orbi12d 916 . . . . . . . . . . . . . . . . 17 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ∈ (1...𝑁)) ∨ (¬ (2nd𝑥) < 𝐿 ∧ ((2nd𝑥) + 1) ∈ (1...𝑁))) ↔ (((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1)) ∨ (¬ (2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1)))))
147 pm4.42 1049 . . . . . . . . . . . . . . . . . 18 ((2nd𝑥) ≤ (𝑁 − 1) ↔ (((2nd𝑥) ≤ (𝑁 − 1) ∧ (2nd𝑥) < 𝐿) ∨ ((2nd𝑥) ≤ (𝑁 − 1) ∧ ¬ (2nd𝑥) < 𝐿)))
148 ancom 464 . . . . . . . . . . . . . . . . . . 19 (((2nd𝑥) ≤ (𝑁 − 1) ∧ (2nd𝑥) < 𝐿) ↔ ((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1)))
149 ancom 464 . . . . . . . . . . . . . . . . . . 19 (((2nd𝑥) ≤ (𝑁 − 1) ∧ ¬ (2nd𝑥) < 𝐿) ↔ (¬ (2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1)))
150148, 149orbi12i 912 . . . . . . . . . . . . . . . . . 18 ((((2nd𝑥) ≤ (𝑁 − 1) ∧ (2nd𝑥) < 𝐿) ∨ ((2nd𝑥) ≤ (𝑁 − 1) ∧ ¬ (2nd𝑥) < 𝐿)) ↔ (((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1)) ∨ (¬ (2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1))))
151147, 150bitri 278 . . . . . . . . . . . . . . . . 17 ((2nd𝑥) ≤ (𝑁 − 1) ↔ (((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1)) ∨ (¬ (2nd𝑥) < 𝐿 ∧ (2nd𝑥) ≤ (𝑁 − 1))))
152146, 151bitr4di 292 . . . . . . . . . . . . . . . 16 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((((2nd𝑥) < 𝐿 ∧ (2nd𝑥) ∈ (1...𝑁)) ∨ (¬ (2nd𝑥) < 𝐿 ∧ ((2nd𝑥) + 1) ∈ (1...𝑁))) ↔ (2nd𝑥) ≤ (𝑁 − 1)))
153105, 152syl5bb 286 . . . . . . . . . . . . . . 15 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1)) ∈ (1...𝑁) ↔ (2nd𝑥) ≤ (𝑁 − 1)))
154104, 153anbi12d 633 . . . . . . . . . . . . . 14 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → ((if((1st𝑥) < 𝐾, (1st𝑥), ((1st𝑥) + 1)) ∈ (1...𝑀) ∧ if((2nd𝑥) < 𝐿, (2nd𝑥), ((2nd𝑥) + 1)) ∈ (1...𝑁)) ↔ ((1st𝑥) ≤ (𝑀 − 1) ∧ (2nd𝑥) ≤ (𝑁 − 1))))
15555, 154bitrd 282 . . . . . . . . . . . . 13 (((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) → (((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)) ↔ ((1st𝑥) ≤ (𝑀 − 1) ∧ (2nd𝑥) ≤ (𝑁 − 1))))
156155pm5.32da 582 . . . . . . . . . . . 12 ((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) → ((((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))) ↔ (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((1st𝑥) ≤ (𝑀 − 1) ∧ (2nd𝑥) ≤ (𝑁 − 1)))))
157 1zzd 12052 . . . . . . . . . . . . . . . . 17 (𝜑 → 1 ∈ ℤ)
15871, 157zsubcld 12131 . . . . . . . . . . . . . . . 16 (𝜑 → (𝑀 − 1) ∈ ℤ)
159 fznn 13024 . . . . . . . . . . . . . . . 16 ((𝑀 − 1) ∈ ℤ → ((1st𝑥) ∈ (1...(𝑀 − 1)) ↔ ((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ (𝑀 − 1))))
160158, 159syl 17 . . . . . . . . . . . . . . 15 (𝜑 → ((1st𝑥) ∈ (1...(𝑀 − 1)) ↔ ((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ (𝑀 − 1))))
161120, 157zsubcld 12131 . . . . . . . . . . . . . . . 16 (𝜑 → (𝑁 − 1) ∈ ℤ)
162 fznn 13024 . . . . . . . . . . . . . . . 16 ((𝑁 − 1) ∈ ℤ → ((2nd𝑥) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ (𝑁 − 1))))
163161, 162syl 17 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd𝑥) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ (𝑁 − 1))))
164160, 163anbi12d 633 . . . . . . . . . . . . . 14 (𝜑 → (((1st𝑥) ∈ (1...(𝑀 − 1)) ∧ (2nd𝑥) ∈ (1...(𝑁 − 1))) ↔ (((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ (𝑀 − 1)) ∧ ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ (𝑁 − 1)))))
165 an4 655 . . . . . . . . . . . . . 14 ((((1st𝑥) ∈ ℕ ∧ (1st𝑥) ≤ (𝑀 − 1)) ∧ ((2nd𝑥) ∈ ℕ ∧ (2nd𝑥) ≤ (𝑁 − 1))) ↔ (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((1st𝑥) ≤ (𝑀 − 1) ∧ (2nd𝑥) ≤ (𝑁 − 1))))
166164, 165bitrdi 290 . . . . . . . . . . . . 13 (𝜑 → (((1st𝑥) ∈ (1...(𝑀 − 1)) ∧ (2nd𝑥) ∈ (1...(𝑁 − 1))) ↔ (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((1st𝑥) ≤ (𝑀 − 1) ∧ (2nd𝑥) ≤ (𝑁 − 1)))))
167166adantr 484 . . . . . . . . . . . 12 ((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) → (((1st𝑥) ∈ (1...(𝑀 − 1)) ∧ (2nd𝑥) ∈ (1...(𝑁 − 1))) ↔ (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((1st𝑥) ≤ (𝑀 − 1) ∧ (2nd𝑥) ≤ (𝑁 − 1)))))
168156, 167bitr4d 285 . . . . . . . . . . 11 ((𝜑𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩) → ((((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))) ↔ ((1st𝑥) ∈ (1...(𝑀 − 1)) ∧ (2nd𝑥) ∈ (1...(𝑁 − 1)))))
169168pm5.32da 582 . . . . . . . . . 10 (𝜑 → ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)))) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ (1...(𝑀 − 1)) ∧ (2nd𝑥) ∈ (1...(𝑁 − 1))))))
170 elxp6 7727 . . . . . . . . . . . 12 (𝑥 ∈ (ℕ × ℕ) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)))
171170anbi1i 626 . . . . . . . . . . 11 ((𝑥 ∈ (ℕ × ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))) ↔ ((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))))
172 anass 472 . . . . . . . . . . 11 (((𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ)) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)))))
173171, 172bitri 278 . . . . . . . . . 10 ((𝑥 ∈ (ℕ × ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ (((1st𝑥) ∈ ℕ ∧ (2nd𝑥) ∈ ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁)))))
174 elxp6 7727 . . . . . . . . . 10 (𝑥 ∈ ((1...(𝑀 − 1)) × (1...(𝑁 − 1))) ↔ (𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩ ∧ ((1st𝑥) ∈ (1...(𝑀 − 1)) ∧ (2nd𝑥) ∈ (1...(𝑁 − 1)))))
175169, 173, 1743bitr4g 317 . . . . . . . . 9 (𝜑 → ((𝑥 ∈ (ℕ × ℕ) ∧ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)‘𝑥) ∈ ((1...𝑀) × (1...𝑁))) ↔ 𝑥 ∈ ((1...(𝑀 − 1)) × (1...(𝑁 − 1)))))
17629, 34, 1753bitrd 308 . . . . . . . 8 (𝜑 → (𝑥 ∈ ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ dom 𝐴) ↔ 𝑥 ∈ ((1...(𝑀 − 1)) × (1...(𝑁 − 1)))))
177176eqrdv 2756 . . . . . . 7 (𝜑 → ((𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩) “ dom 𝐴) = ((1...(𝑀 − 1)) × (1...(𝑁 − 1))))
17825, 177syl5eq 2805 . . . . . 6 (𝜑 → dom (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) = ((1...(𝑀 − 1)) × (1...(𝑁 − 1))))
17924, 178eqtrd 2793 . . . . 5 (𝜑 → dom 𝑆 = ((1...(𝑀 − 1)) × (1...(𝑁 − 1))))
180179feq2d 6484 . . . 4 (𝜑 → (𝑆:dom 𝑆⟶ran 𝑆𝑆:((1...(𝑀 − 1)) × (1...(𝑁 − 1)))⟶ran 𝑆))
18123, 180mpbid 235 . . 3 (𝜑𝑆:((1...(𝑀 − 1)) × (1...(𝑁 − 1)))⟶ran 𝑆)
18219rneqd 5779 . . . . 5 (𝜑 → ran 𝑆 = ran (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)))
183 rncoss 5813 . . . . 5 ran (𝐴 ∘ (𝑖 ∈ ℕ, 𝑗 ∈ ℕ ↦ ⟨if(𝑖 < 𝐾, 𝑖, (𝑖 + 1)), if(𝑗 < 𝐿, 𝑗, (𝑗 + 1))⟩)) ⊆ ran 𝐴
184182, 183eqsstrdi 3946 . . . 4 (𝜑 → ran 𝑆 ⊆ ran 𝐴)
185 frn 6504 . . . . 5 (𝐴:((1...𝑀) × (1...𝑁))⟶𝐵 → ran 𝐴𝐵)
1861, 2, 1853syl 18 . . . 4 (𝜑 → ran 𝐴𝐵)
187184, 186sstrd 3902 . . 3 (𝜑 → ran 𝑆𝐵)
188 fss 6512 . . 3 ((𝑆:((1...(𝑀 − 1)) × (1...(𝑁 − 1)))⟶ran 𝑆 ∧ ran 𝑆𝐵) → 𝑆:((1...(𝑀 − 1)) × (1...(𝑁 − 1)))⟶𝐵)
189181, 187, 188syl2anc 587 . 2 (𝜑𝑆:((1...(𝑀 − 1)) × (1...(𝑁 − 1)))⟶𝐵)
190 reldmmap 8425 . . . . . 6 Rel dom ↑m
191190ovrcl 7191 . . . . 5 (𝐴 ∈ (𝐵m ((1...𝑀) × (1...𝑁))) → (𝐵 ∈ V ∧ ((1...𝑀) × (1...𝑁)) ∈ V))
1921, 191syl 17 . . . 4 (𝜑 → (𝐵 ∈ V ∧ ((1...𝑀) × (1...𝑁)) ∈ V))
193192simpld 498 . . 3 (𝜑𝐵 ∈ V)
194 ovex 7183 . . . 4 (1...(𝑀 − 1)) ∈ V
195 ovex 7183 . . . 4 (1...(𝑁 − 1)) ∈ V
196194, 195xpex 7474 . . 3 ((1...(𝑀 − 1)) × (1...(𝑁 − 1))) ∈ V
197 elmapg 8429 . . 3 ((𝐵 ∈ V ∧ ((1...(𝑀 − 1)) × (1...(𝑁 − 1))) ∈ V) → (𝑆 ∈ (𝐵m ((1...(𝑀 − 1)) × (1...(𝑁 − 1)))) ↔ 𝑆:((1...(𝑀 − 1)) × (1...(𝑁 − 1)))⟶𝐵))
198193, 196, 197sylancl 589 . 2 (𝜑 → (𝑆 ∈ (𝐵m ((1...(𝑀 − 1)) × (1...(𝑁 − 1)))) ↔ 𝑆:((1...(𝑀 − 1)) × (1...(𝑁 − 1)))⟶𝐵))
199189, 198mpbird 260 1 (𝜑𝑆 ∈ (𝐵m ((1...(𝑀 − 1)) × (1...(𝑁 − 1)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844   = wceq 1538  wcel 2111  Vcvv 3409  wss 3858  ifcif 4420  cop 4528   class class class wbr 5032   × cxp 5522  ccnv 5523  dom cdm 5524  ran crn 5525  cima 5527  ccom 5528  Fun wfun 6329   Fn wfn 6330  wf 6331  cfv 6335  (class class class)co 7150  cmpo 7152  1st c1st 7691  2nd c2nd 7692  m cmap 8416  cr 10574  1c1 10576   + caddc 10578   < clt 10713  cle 10714  cmin 10908  cn 11674  cz 12020  ...cfz 12939  subMat1csmat 31264
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-rep 5156  ax-sep 5169  ax-nul 5176  ax-pow 5234  ax-pr 5298  ax-un 7459  ax-cnex 10631  ax-resscn 10632  ax-1cn 10633  ax-icn 10634  ax-addcl 10635  ax-addrcl 10636  ax-mulcl 10637  ax-mulrcl 10638  ax-mulcom 10639  ax-addass 10640  ax-mulass 10641  ax-distr 10642  ax-i2m1 10643  ax-1ne0 10644  ax-1rid 10645  ax-rnegex 10646  ax-rrecex 10647  ax-cnre 10648  ax-pre-lttri 10649  ax-pre-lttrn 10650  ax-pre-ltadd 10651  ax-pre-mulgt0 10652
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-nel 3056  df-ral 3075  df-rex 3076  df-reu 3077  df-rab 3079  df-v 3411  df-sbc 3697  df-csb 3806  df-dif 3861  df-un 3863  df-in 3865  df-ss 3875  df-pss 3877  df-nul 4226  df-if 4421  df-pw 4496  df-sn 4523  df-pr 4525  df-tp 4527  df-op 4529  df-uni 4799  df-iun 4885  df-br 5033  df-opab 5095  df-mpt 5113  df-tr 5139  df-id 5430  df-eprel 5435  df-po 5443  df-so 5444  df-fr 5483  df-we 5485  df-xp 5530  df-rel 5531  df-cnv 5532  df-co 5533  df-dm 5534  df-rn 5535  df-res 5536  df-ima 5537  df-pred 6126  df-ord 6172  df-on 6173  df-lim 6174  df-suc 6175  df-iota 6294  df-fun 6337  df-fn 6338  df-f 6339  df-f1 6340  df-fo 6341  df-f1o 6342  df-fv 6343  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7580  df-1st 7693  df-2nd 7694  df-wrecs 7957  df-recs 8018  df-rdg 8056  df-er 8299  df-map 8418  df-en 8528  df-dom 8529  df-sdom 8530  df-pnf 10715  df-mnf 10716  df-xr 10717  df-ltxr 10718  df-le 10719  df-sub 10910  df-neg 10911  df-nn 11675  df-n0 11935  df-z 12021  df-uz 12283  df-fz 12940  df-smat 31265
This theorem is referenced by:  smatcl  31273  1smat1  31275
  Copyright terms: Public domain W3C validator