mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-21 15:13:11 -06:00
Transfer reflexive example: added ideal version.
This commit is contained in:
1 parent
941a9f35ba
commit
eee0f20ea8
1 file changed
+9
@@ -29,3 +29,12 @@ reflexivize _ t = composOp ? ? compos_Tree ? reflexivize t
|
||||
|
||||
reflexivize_S : Tree S -> Tree S
|
||||
reflexivize_S = reflexivize S
|
||||
|
||||
{-
|
||||
With a type checker and hidden arguments we could write:
|
||||
|
||||
reflexivize : {C : Cat} -> Tree C -> Tree C
|
||||
reflexivize (PredV2 v s o) | s == o = ReflV2 v s
|
||||
reflexivize t = composOp reflexivize t
|
||||
|
||||
-}
|
||||
Reference in new issue
Block a user