Finite sum over a monoid
Function
context | ⟨⟨M,∗⟩⟩ … monoid |
let | e … unit of ⟨⟨M,∗⟩⟩ |
definition | ∑n:∏S:Sequence(M)range(length(S))→M |
definition | ∑nk=1 Sk:={eif n=0(∑n−1k=1 Sk) ∗ Snelse |
Discussion
Here ∏S:Sequence(M) is a dependent function type former.