| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Solver for equations in idempotent commutative monoids |
| 5 |
-- |
| 6 |
-- Adapted from Algebra.Solver.CommutativeMonoid |
| 7 |
------------------------------------------------------------------------ |
| 8 |
|
| 9 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 10 |
|
| 11 |
open import Algebra.Bundles using (IdempotentCommutativeMonoid) |
| 12 |
|
| 13 |
module Algebra.Solver.IdempotentCommutativeMonoid |
| 14 |
{c ℓ} (M : IdempotentCommutativeMonoid c ℓ) where |
| 15 |
|
| 16 |
import Algebra.Solver.IdempotentCommutativeMonoid.Normal as Normal |
| 17 |
import Algebra.Solver.Monoid.Solver as Solver |
| 18 |
|
| 19 |
open IdempotentCommutativeMonoid M using (monoid) |
| 20 |
|
| 21 |
private |
| 22 |
module N = Normal M |
| 23 |
|
| 24 |
|
| 25 |
------------------------------------------------------------------------ |
| 26 |
-- Normal forms |
| 27 |
|
| 28 |
open N public |
| 29 |
renaming (correct to normalise-correct) |
| 30 |
|
| 31 |
------------------------------------------------------------------------ |
| 32 |
-- Proof procedures |
| 33 |
|
| 34 |
open Solver monoid (record { N }) public |
| 35 |
|
| 36 |
|
| 37 |
------------------------------------------------------------------------ |
| 38 |
-- DEPRECATED NAMES |
| 39 |
------------------------------------------------------------------------ |
| 40 |
-- Please use the new names as continuing support for the old names is |
| 41 |
-- not guaranteed. |
| 42 |
|
| 43 |
-- Version 2.2 |
| 44 |
|
| 45 |
{-# WARNING_ON_USAGE normalise-correct |
| 46 |
"Warning: normalise-correct was deprecated in v2.2. |
| 47 |
Please use Algebra.Solver.IdempotentCommutativeMonoid.Normal.correct instead." |
| 48 |
#-} |