Metamath Proof Explorer


Theorem smndex1gid

Description: The composition of a constant function ( GK ) with another endofunction on NN0 results in ( GK ) itself. (Contributed by AV, 14-Feb-2024) Avoid ax-rep . (Revised by GG, 2-Apr-2026)

Ref Expression
Hypotheses smndex1ibas.m M = EndoFMnd 0
smndex1ibas.n N
smndex1ibas.i I = x 0 x mod N
smndex1ibas.g G = n 0 ..^ N x 0 n
Assertion smndex1gid F Base M K 0 ..^ N G K F = G K

Proof

Step Hyp Ref Expression
1 smndex1ibas.m M = EndoFMnd 0
2 smndex1ibas.n N
3 smndex1ibas.i I = x 0 x mod N
4 smndex1ibas.g G = n 0 ..^ N x 0 n
5 id n = K n = K
6 5 mpteq2dv n = K x 0 n = x 0 K
7 fconstmpt 0 × K = x 0 K
8 nn0ex 0 V
9 snex K V
10 8 9 xpex 0 × K V
11 7 10 eqeltrri x 0 K V
12 6 4 11 fvmpt K 0 ..^ N G K = x 0 K
13 12 adantl F Base M K 0 ..^ N G K = x 0 K
14 13 adantr F Base M K 0 ..^ N y 0 G K = x 0 K
15 eqidd F Base M K 0 ..^ N y 0 x = F y K = K
16 eqid Base M = Base M
17 1 16 efmndbasf F Base M F : 0 0
18 ffvelcdm F : 0 0 y 0 F y 0
19 18 ex F : 0 0 y 0 F y 0
20 17 19 syl F Base M y 0 F y 0
21 20 adantr F Base M K 0 ..^ N y 0 F y 0
22 21 imp F Base M K 0 ..^ N y 0 F y 0
23 simplr F Base M K 0 ..^ N y 0 K 0 ..^ N
24 14 15 22 23 fvmptd F Base M K 0 ..^ N y 0 G K F y = K
25 24 mpteq2dva F Base M K 0 ..^ N y 0 G K F y = y 0 K
26 1 2 3 4 smndex1gbas K 0 ..^ N G K Base M
27 1 16 efmndbasf G K Base M G K : 0 0
28 26 27 syl K 0 ..^ N G K : 0 0
29 fcompt G K : 0 0 F : 0 0 G K F = y 0 G K F y
30 28 17 29 syl2anr F Base M K 0 ..^ N G K F = y 0 G K F y
31 eqidd x = y K = K
32 31 cbvmptv x 0 K = y 0 K
33 6 32 eqtrdi n = K x 0 n = y 0 K
34 fconstmpt 0 × K = y 0 K
35 34 10 eqeltrri y 0 K V
36 33 4 35 fvmpt K 0 ..^ N G K = y 0 K
37 36 adantl F Base M K 0 ..^ N G K = y 0 K
38 25 30 37 3eqtr4d F Base M K 0 ..^ N G K F = G K