diff options
author | Greg Brown <greg.brown01@ed.ac.uk> | 2022-12-05 14:43:50 +0000 |
---|---|---|
committer | Greg Brown <greg.brown01@ed.ac.uk> | 2022-12-05 14:43:50 +0000 |
commit | f77aeb6c4b25b381e897a4ab59c1008e34005404 (patch) | |
tree | 07e8f0ec56bda51e9489b7b49558a3c2d860f932 /src/Soat/FirstOrder/Algebra.idr | |
parent | 8ff37b98737f4af5bd11d3006ae1b26902a1a82f (diff) |
refactor: rename MakeRawAlgebra -> MkRawAlgebra.
Diffstat (limited to 'src/Soat/FirstOrder/Algebra.idr')
-rw-r--r-- | src/Soat/FirstOrder/Algebra.idr | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Soat/FirstOrder/Algebra.idr b/src/Soat/FirstOrder/Algebra.idr index b8cbc0c..f002dec 100644 --- a/src/Soat/FirstOrder/Algebra.idr +++ b/src/Soat/FirstOrder/Algebra.idr @@ -12,21 +12,13 @@ public export 0 algebraOver : (sig : Signature) -> (U : sig.T -> Type) -> Type algebraOver sig x = {t : sig.T} -> (op : Op sig t) -> x ^ op.arity -> x t -public export 0 -algebraOver' : (sig : Signature) -> (U : sig.T -> Type) -> Type -algebraOver' sig x = {t : sig.T} -> (op : Op sig t) -> map x op.arity `ary` x t - public export record RawAlgebra (0 sig : Signature) where - constructor MakeRawAlgebra + constructor MkRawAlgebra 0 U : sig.T -> Type sem : sig `algebraOver` U public export -MkRawAlgebra : (0 U : sig.T -> Type) -> (sem : sig `algebraOver'` U) -> RawAlgebra sig -MkRawAlgebra u sem = MakeRawAlgebra u (\o => uncurry (sem o)) - -public export record RawAlgebraWithRelation (0 sig : Signature) where constructor MkRawAlgebraWithRelation raw : RawAlgebra sig |