Metamath Proof Explorer


Theorem repsconst

Description: Construct a function mapping a half-open range of nonnegative integers to a constant, see also fconstmpt . (Contributed by AV, 4-Nov-2018)

Ref Expression
Assertion repsconst S V N 0 S repeatS N = 0 ..^ N × S

Proof

Step Hyp Ref Expression
1 reps S V N 0 S repeatS N = x 0 ..^ N S
2 fconstmpt 0 ..^ N × S = x 0 ..^ N S
3 1 2 eqtr4di S V N 0 S repeatS N = 0 ..^ N × S