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)

Ref Expression
Hypotheses smndex1ibas.m No typesetting found for |- M = ( EndoFMnd ` NN0 ) with typecode |-
smndex1ibas.n N
smndex1ibas.i I=x0xmodN
smndex1ibas.g G=n0..^Nx0n
Assertion smndex1gid FBaseMK0..^NGKF=GK

Proof

Step Hyp Ref Expression
1 smndex1ibas.m Could not format M = ( EndoFMnd ` NN0 ) : No typesetting found for |- M = ( EndoFMnd ` NN0 ) with typecode |-
2 smndex1ibas.n N
3 smndex1ibas.i I=x0xmodN
4 smndex1ibas.g G=n0..^Nx0n
5 4 a1i K0..^NG=n0..^Nx0n
6 id n=Kn=K
7 6 mpteq2dv n=Kx0n=x0K
8 7 adantl K0..^Nn=Kx0n=x0K
9 id K0..^NK0..^N
10 nn0ex 0V
11 10 mptex x0KV
12 11 a1i K0..^Nx0KV
13 5 8 9 12 fvmptd K0..^NGK=x0K
14 13 adantl FBaseMK0..^NGK=x0K
15 14 adantr FBaseMK0..^Ny0GK=x0K
16 eqidd FBaseMK0..^Ny0x=FyK=K
17 eqid BaseM=BaseM
18 1 17 efmndbasf FBaseMF:00
19 ffvelrn F:00y0Fy0
20 19 ex F:00y0Fy0
21 18 20 syl FBaseMy0Fy0
22 21 adantr FBaseMK0..^Ny0Fy0
23 22 imp FBaseMK0..^Ny0Fy0
24 simplr FBaseMK0..^Ny0K0..^N
25 15 16 23 24 fvmptd FBaseMK0..^Ny0GKFy=K
26 25 mpteq2dva FBaseMK0..^Ny0GKFy=y0K
27 1 2 3 4 smndex1gbas K0..^NGKBaseM
28 1 17 efmndbasf GKBaseMGK:00
29 27 28 syl K0..^NGK:00
30 fcompt GK:00F:00GKF=y0GKFy
31 29 18 30 syl2anr FBaseMK0..^NGKF=y0GKFy
32 eqidd x=yK=K
33 32 cbvmptv x0K=y0K
34 7 33 eqtrdi n=Kx0n=y0K
35 34 adantl K0..^Nn=Kx0n=y0K
36 10 mptex y0KV
37 36 a1i K0..^Ny0KV
38 5 35 9 37 fvmptd K0..^NGK=y0K
39 38 adantl FBaseMK0..^NGK=y0K
40 26 31 39 3eqtr4d FBaseMK0..^NGKF=GK