| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Exponentiation defined over a commutative semiring as repeated multiplication |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Algebra.Bundles using (CommutativeSemiring) |
| 10 |
|
| 11 |
module Algebra.Properties.CommutativeSemiring.Exp |
| 12 |
{a ℓ} (S : CommutativeSemiring a ℓ) where |
| 13 |
|
| 14 |
open CommutativeSemiring S |
| 15 |
import Algebra.Properties.CommutativeMonoid.Mult *-commutativeMonoid as Mult |
| 16 |
|
| 17 |
------------------------------------------------------------------------ |
| 18 |
-- Definition |
| 19 |
|
| 20 |
open import Algebra.Properties.Semiring.Exp semiring public |
| 21 |
|
| 22 |
------------------------------------------------------------------------ |
| 23 |
-- Properties |
| 24 |
|
| 25 |
^-distrib-* : ∀ x y n → (x * y) ^ n ≈ x ^ n * y ^ n |
| 26 |
^-distrib-* = Mult.×-distrib-+ |