Metamath Proof Explorer


Theorem fvinim0ffz

Description: The function values for the borders of a finite interval of integers, which is the domain of the function, are not in the image of the interior of the interval iff the intersection of the images of the interior and the borders is empty. (Contributed by Alexander van der Vekens, 31-Oct-2017) (Revised by AV, 5-Feb-2021)

Ref Expression
Assertion fvinim0ffz F : 0 K V K 0 F 0 K F 1 ..^ K = F 0 F 1 ..^ K F K F 1 ..^ K

Proof

Step Hyp Ref Expression
1 ffn F : 0 K V F Fn 0 K
2 1 adantr F : 0 K V K 0 F Fn 0 K
3 0nn0 0 0
4 3 a1i F : 0 K V K 0 0 0
5 simpr F : 0 K V K 0 K 0
6 nn0ge0 K 0 0 K
7 6 adantl F : 0 K V K 0 0 K
8 elfz2nn0 0 0 K 0 0 K 0 0 K
9 4 5 7 8 syl3anbrc F : 0 K V K 0 0 0 K
10 id K 0 K 0
11 nn0re K 0 K
12 11 leidd K 0 K K
13 elfz2nn0 K 0 K K 0 K 0 K K
14 10 10 12 13 syl3anbrc K 0 K 0 K
15 14 adantl F : 0 K V K 0 K 0 K
16 fnimapr F Fn 0 K 0 0 K K 0 K F 0 K = F 0 F K
17 2 9 15 16 syl3anc F : 0 K V K 0 F 0 K = F 0 F K
18 17 ineq1d F : 0 K V K 0 F 0 K F 1 ..^ K = F 0 F K F 1 ..^ K
19 18 eqeq1d F : 0 K V K 0 F 0 K F 1 ..^ K = F 0 F K F 1 ..^ K =
20 disj F 0 F K F 1 ..^ K = v F 0 F K ¬ v F 1 ..^ K
21 fvex F 0 V
22 fvex F K V
23 eleq1 v = F 0 v F 1 ..^ K F 0 F 1 ..^ K
24 23 notbid v = F 0 ¬ v F 1 ..^ K ¬ F 0 F 1 ..^ K
25 df-nel F 0 F 1 ..^ K ¬ F 0 F 1 ..^ K
26 24 25 bitr4di v = F 0 ¬ v F 1 ..^ K F 0 F 1 ..^ K
27 eleq1 v = F K v F 1 ..^ K F K F 1 ..^ K
28 27 notbid v = F K ¬ v F 1 ..^ K ¬ F K F 1 ..^ K
29 df-nel F K F 1 ..^ K ¬ F K F 1 ..^ K
30 28 29 bitr4di v = F K ¬ v F 1 ..^ K F K F 1 ..^ K
31 21 22 26 30 ralpr v F 0 F K ¬ v F 1 ..^ K F 0 F 1 ..^ K F K F 1 ..^ K
32 20 31 bitri F 0 F K F 1 ..^ K = F 0 F 1 ..^ K F K F 1 ..^ K
33 19 32 bitrdi F : 0 K V K 0 F 0 K F 1 ..^ K = F 0 F 1 ..^ K F K F 1 ..^ K