Metamath Proof Explorer


Theorem resunimafz0

Description: TODO-AV: Revise using F e. Word dom I ? Formerly part of proof of eupth2lem3 : The union of a restriction by an image over an open range of nonnegative integers and a singleton of an ordered pair is a restriction by an image over an interval of nonnegative integers. (Contributed by Mario Carneiro, 8-Apr-2015) (Revised by AV, 20-Feb-2021)

Ref Expression
Hypotheses resunimafz0.i φFunI
resunimafz0.f φF:0..^FdomI
resunimafz0.n φN0..^F
Assertion resunimafz0 φIF0N=IF0..^NFNIFN

Proof

Step Hyp Ref Expression
1 resunimafz0.i φFunI
2 resunimafz0.f φF:0..^FdomI
3 resunimafz0.n φN0..^F
4 imaundi F0..^NN=F0..^NFN
5 elfzonn0 N0..^FN0
6 3 5 syl φN0
7 elnn0uz N0N0
8 6 7 sylib φN0
9 fzisfzounsn N00N=0..^NN
10 8 9 syl φ0N=0..^NN
11 10 imaeq2d φF0N=F0..^NN
12 2 ffnd φFFn0..^F
13 fnsnfv FFn0..^FN0..^FFN=FN
14 12 3 13 syl2anc φFN=FN
15 14 uneq2d φF0..^NFN=F0..^NFN
16 4 11 15 3eqtr4a φF0N=F0..^NFN
17 16 reseq2d φIF0N=IF0..^NFN
18 resundi IF0..^NFN=IF0..^NIFN
19 17 18 eqtrdi φIF0N=IF0..^NIFN
20 1 funfnd φIFndomI
21 2 3 ffvelrnd φFNdomI
22 fnressn IFndomIFNdomIIFN=FNIFN
23 20 21 22 syl2anc φIFN=FNIFN
24 23 uneq2d φIF0..^NIFN=IF0..^NFNIFN
25 19 24 eqtrd φIF0N=IF0..^NFNIFN