-
Notifications
You must be signed in to change notification settings - Fork 246
/
Copy pathCommutativeMonoid.agda
50 lines (35 loc) · 1.48 KB
/
CommutativeMonoid.agda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
------------------------------------------------------------------------
-- The Agda standard library
--
-- Solver for equations in commutative monoids
--
-- Adapted from Algebra.Solver.Monoid
------------------------------------------------------------------------
{-# OPTIONS --cubical-compatible --safe #-}
open import Algebra.Bundles using (CommutativeMonoid)
module Algebra.Solver.CommutativeMonoid {c ℓ} (M : CommutativeMonoid c ℓ) where
import Algebra.Solver.CommutativeMonoid.Normal as Normal
import Algebra.Solver.Monoid.Tactic as Tactic
open CommutativeMonoid M using (monoid)
------------------------------------------------------------------------
-- Expressions and Normal forms
open module N = Normal M public
-- for deprecation below
renaming (∙-homo to comp-correct; correct to normalise-correct)
hiding (module Expr)
open N.Expr public
-- for backwards compatibility
renaming (‵var to var; ‵ε to id; _‵∙_ to _⊕_)
------------------------------------------------------------------------
-- Tactic
open Tactic monoid normal public
------------------------------------------------------------------------
-- DEPRECATED NAMES
------------------------------------------------------------------------
-- Please use the new names as continuing support for the old names is
-- not guaranteed.
-- Version 2.2
{-# WARNING_ON_USAGE normalise-correct
"Warning: normalise-correct was deprecated in v2.2.
Please use Algebra.Solver.CommutativeMonoid.Normal.correct instead."
#-}