Rename some confusing fields (#51)

This commit is contained in:
Patrick Stevens
2019-10-13 09:31:54 +01:00
committed by GitHub
parent 96d15c6017
commit 959071214e
21 changed files with 441 additions and 441 deletions

View File

@@ -76,14 +76,14 @@ additiveInverse (nonneg (succ x)) = negSucc x
additiveInverse (negSucc x) = nonneg (succ x)
Group : Group (reflSetoid ) (_+Z_)
Group.wellDefined Group refl refl = refl
Group.identity Group = nonneg 0
Group.+WellDefined Group refl refl = refl
Group.0G Group = nonneg 0
Group.inverse Group = additiveInverse
Group.multAssoc Group {a} {b} {c} = +ZAssociative a b c
Group.multIdentRight Group {nonneg zero} = refl
Group.multIdentRight Group {nonneg (succ x)} = applyEquality (λ i nonneg (succ i)) (Semiring.commutative Semiring x 0)
Group.multIdentRight Group {negSucc x} = refl
Group.multIdentLeft Group = refl
Group.+Associative Group {a} {b} {c} = +ZAssociative a b c
Group.identRight Group {nonneg zero} = refl
Group.identRight Group {nonneg (succ x)} = applyEquality (λ i nonneg (succ i)) (Semiring.commutative Semiring x 0)
Group.identRight Group {negSucc x} = refl
Group.identLeft Group = refl
Group.invLeft Group {nonneg zero} = refl
Group.invLeft Group {nonneg (succ x)} = additiveInverseExists x
Group.invLeft Group {negSucc x} = transitivity (+ZCommutative (nonneg (succ x)) (negSucc x)) (additiveInverseExists x)