mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Transfer reflexive example: added ideal version.
This commit is contained in:
@@ -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