Metamath Proof Explorer


Theorem ubmelfzo

Description: If an integer in a 1-based finite set of sequential integers is subtracted from the upper bound of this finite set of sequential integers, the result is contained in a half-open range of nonnegative integers with the same upper bound. (Contributed by AV, 18-Mar-2018) (Revised by AV, 30-Oct-2018)

Ref Expression
Assertion ubmelfzo K1NNK0..^N

Proof

Step Hyp Ref Expression
1 simp3 KNKNKN
2 nnnn0 KK0
3 nnnn0 NN0
4 2 3 anim12i KNK0N0
5 4 3adant3 KNKNK0N0
6 nn0sub K0N0KNNK0
7 5 6 syl KNKNKNNK0
8 1 7 mpbid KNKNNK0
9 simp2 KNKNN
10 nngt0 K0<K
11 10 3ad2ant1 KNKN0<K
12 nnre KK
13 nnre NN
14 12 13 anim12i KNKN
15 14 3adant3 KNKNKN
16 ltsubpos KN0<KNK<N
17 15 16 syl KNKN0<KNK<N
18 11 17 mpbid KNKNNK<N
19 8 9 18 3jca KNKNNK0NNK<N
20 elfz1b K1NKNKN
21 elfzo0 NK0..^NNK0NNK<N
22 19 20 21 3imtr4i K1NNK0..^N