diff options
author | Tom Smeding <t.j.smeding@uu.nl> | 2024-01-24 21:31:24 +0100 |
---|---|---|
committer | Tom Smeding <t.j.smeding@uu.nl> | 2024-01-24 21:31:24 +0100 |
commit | 04ce88ce93523988ec1dc6775ac6a4b439e90913 (patch) | |
tree | 14366c17e0cdc66f4b624cfcb641b1eeb1eed5f9 /src/Lemmas.hs | |
parent | b06fff729063aaf23500ba1c417520185a2cf7c0 (diff) |
WIP rewrite code transform typing
Diffstat (limited to 'src/Lemmas.hs')
-rw-r--r-- | src/Lemmas.hs | 15 |
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 |