diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2025-11-10 21:49:45 +0100 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2025-11-10 21:50:25 +0100 |
| commit | 174af2ba568de66e0d890825b8bda930b8e7bb96 (patch) | |
| tree | 5a20f52662e87ff7cf6a6bef5db0713aa6c7884e /src/Lemmas.hs | |
| parent | 92bca235e3aaa287286b6af082d3fce585825a35 (diff) | |
Move module hierarchy under CHAD.
Diffstat (limited to 'src/Lemmas.hs')
| -rw-r--r-- | src/Lemmas.hs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/Lemmas.hs b/src/Lemmas.hs deleted file mode 100644 index 31a43ed..0000000 --- a/src/Lemmas.hs +++ /dev/null @@ -1,21 +0,0 @@ -{-# LANGUAGE DataKinds #-} -{-# LANGUAGE PolyKinds #-} -{-# LANGUAGE TypeFamilies #-} -{-# LANGUAGE TypeOperators #-} - -{-# LANGUAGE AllowAmbiguousTypes #-} -module Lemmas (module Lemmas, (:~:)(Refl)) where - -import Data.Type.Equality -import Unsafe.Coerce (unsafeCoerce) - - -type family Append a b where - Append '[] l = l - Append (x : xs) l = x : Append xs l - -lemAppendNil :: Append a '[] :~: a -lemAppendNil = unsafeCoerce Refl - -lemAppendAssoc :: Append a (Append b c) :~: Append (Append a b) c -lemAppendAssoc = unsafeCoerce Refl |
