diff options
author | Greg Brown <greg.brown01@ed.ac.uk> | 2022-11-24 14:13:43 +0000 |
---|---|---|
committer | Greg Brown <greg.brown01@ed.ac.uk> | 2022-11-24 14:13:43 +0000 |
commit | 00fcc3517b7f680d31028abe83664a96305101b6 (patch) | |
tree | 8330231a4fae3c8ae91e819c2865257e7dd367d7 /src/Soat | |
parent | 418730bde34c925ed93cc1a2ca81d09fcbd92821 (diff) |
Define lifting of first-order signatures.
Diffstat (limited to 'src/Soat')
-rw-r--r-- | src/Soat/SecondOrder/Signature/Lift.idr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Soat/SecondOrder/Signature/Lift.idr b/src/Soat/SecondOrder/Signature/Lift.idr new file mode 100644 index 0000000..159cdb3 --- /dev/null +++ b/src/Soat/SecondOrder/Signature/Lift.idr @@ -0,0 +1,14 @@ +module Soat.SecondOrder.Signature.Lift + +import public Soat.FirstOrder.Signature +import public Soat.SecondOrder.Signature + +%default total + +public export +data LiftOp : (O : a -> List a -> Type) -> (i : a) -> (ctx : List (Pair (List a) a)) -> Type where + Op : forall i . {ctx : List a} -> (op : o i ctx) -> LiftOp o i (map (MkPair []) ctx) + +public export +lift : FirstOrder.Signature.Signature -> SecondOrder.Signature.Signature +lift sig = MkSignature sig.T (LiftOp sig.O) |