Metamath Proof Explorer


Theorem mulgval

Description: Value of the group multiple (exponentiation) operation. (Contributed by Mario Carneiro, 11-Dec-2014)

Ref Expression
Hypotheses mulgval.b B=BaseG
mulgval.p +˙=+G
mulgval.o 0˙=0G
mulgval.i I=invgG
mulgval.t ·˙=G
mulgval.s S=seq1+˙×X
Assertion mulgval NXBN·˙X=ifN=00˙if0<NSNISN

Proof

Step Hyp Ref Expression
1 mulgval.b B=BaseG
2 mulgval.p +˙=+G
3 mulgval.o 0˙=0G
4 mulgval.i I=invgG
5 mulgval.t ·˙=G
6 mulgval.s S=seq1+˙×X
7 simpl n=Nx=Xn=N
8 7 eqeq1d n=Nx=Xn=0N=0
9 7 breq2d n=Nx=X0<n0<N
10 simpr n=Nx=Xx=X
11 10 sneqd n=Nx=Xx=X
12 11 xpeq2d n=Nx=X×x=×X
13 12 seqeq3d n=Nx=Xseq1+˙×x=seq1+˙×X
14 13 6 eqtr4di n=Nx=Xseq1+˙×x=S
15 14 7 fveq12d n=Nx=Xseq1+˙×xn=SN
16 7 negeqd n=Nx=Xn=N
17 14 16 fveq12d n=Nx=Xseq1+˙×xn=SN
18 17 fveq2d n=Nx=XIseq1+˙×xn=ISN
19 9 15 18 ifbieq12d n=Nx=Xif0<nseq1+˙×xnIseq1+˙×xn=if0<NSNISN
20 8 19 ifbieq2d n=Nx=Xifn=00˙if0<nseq1+˙×xnIseq1+˙×xn=ifN=00˙if0<NSNISN
21 1 2 3 4 5 mulgfval ·˙=n,xBifn=00˙if0<nseq1+˙×xnIseq1+˙×xn
22 3 fvexi 0˙V
23 fvex SNV
24 fvex ISNV
25 23 24 ifex if0<NSNISNV
26 22 25 ifex ifN=00˙if0<NSNISNV
27 20 21 26 ovmpoa NXBN·˙X=ifN=00˙if0<NSNISN