Debian Codegraph @

src/Algebra/Solver/Monoid.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- A solver for equations over monoids
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 open import Algebra.Bundles using (Monoid)
10
11 module Algebra.Solver.Monoid {c ℓ} (M : Monoid c ℓ) where
12
13 import Algebra.Solver.Monoid.Normal as Normal
14 import Algebra.Solver.Monoid.Solver as Solver
15 open import Data.Maybe.Base as Maybe
16 using (From-just; from-just)
17 open import Data.Product.Base using (_×_; uncurry)
18 open import Function.Base using (_∘_)
19
20 private
21 module N = Normal M
22
23
24 ------------------------------------------------------------------------
25 -- Normal forms
26
27 open N public
28 renaming (comp-correct to homomorphic; correct to normalise-correct)
29
30 ------------------------------------------------------------------------
31 -- Tactic
32
33 open Solver M (record { N }) public
34 hiding (prove)
35
36 prove : ∀ n (es : Expr n × Expr n) → From-just (uncurry prove′ es)
37 prove _ = from-just ∘ uncurry prove′
38
39
40 ------------------------------------------------------------------------
41 -- DEPRECATED NAMES
42 ------------------------------------------------------------------------
43 -- Please use the new names as continuing support for the old names is
44 -- not guaranteed.
45
46 -- Version 2.2
47
48 {-# WARNING_ON_USAGE homomorphic
49 "Warning: homomorphic was deprecated in v2.2.
50 Please use Algebra.Solver.Monoid.Normal.comp-correct instead."
51 #-}
52
53 {-# WARNING_ON_USAGE normalise-correct
54 "Warning: normalise-correct was deprecated in v2.2.
55 Please use Algebra.Solver.Monoid.Normal.correct instead."
56 #-}