summaryrefslogtreecommitdiff
path: root/src/Lemmas.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Lemmas.hs')
-rw-r--r--src/Lemmas.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Lemmas.hs b/src/Lemmas.hs
new file mode 100644
index 0000000..7dbf680
--- /dev/null
+++ b/src/Lemmas.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE TypeOperators #-}
+{-# LANGUAGE PolyKinds #-}
+
+{-# LANGUAGE AllowAmbiguousTypes #-}
+module Lemmas (module Lemmas, (:~:)(Refl)) where
+
+import Data.Type.Equality
+import Unsafe.Coerce (unsafeCoerce)
+
+import AST.Weaken
+
+
+lemAppendAssoc :: Append a (Append b c) :~: Append (Append a b) c
+lemAppendAssoc = unsafeCoerce Refl