summaryrefslogtreecommitdiff
path: root/src/Core
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2023-04-07 17:50:13 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2023-04-07 17:50:13 +0100
commitea4c4a98486f57f09d634318676cca84f3046568 (patch)
treeb2d06ca62506887479e6f7b35a1ba7748a2e2598 /src/Core
parent4943ffb49405127ec3e8505c398b007dcd661dd0 (diff)
Prove some (non-)identity properties.
Diffstat (limited to 'src/Core')
-rw-r--r--src/Core/Thinning.idr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Core/Thinning.idr b/src/Core/Thinning.idr
index a41536e..f54d9e9 100644
--- a/src/Core/Thinning.idr
+++ b/src/Core/Thinning.idr
@@ -43,6 +43,21 @@ public export
wkn1 : (0 sx : Context) -> (0 n : Name) -> sx `Thins` sx :< n
wkn1 sx n = drop (id sx) n
+-- Properties
+
+export
+dropIsNotId : (thin : sx `Thins` sy) -> (0 n : Name) -> IsNotId (drop thin n)
+dropIsNotId IsId n = ItIsThinner
+dropIsNotId (IsThinner thinner) n = ItIsThinner
+
+export
+keepIdIsId : (0 sx : Context) -> (0 n : Name) -> keep (id sx) n = id (sx :< n)
+keepIdIsId sx n = Refl
+
+export
+keepNotIdIsNotId : IsNotId thin -> (0 n : Name) -> IsNotId (keep thin n)
+keepNotIdIsNotId ItIsThinner n = ItIsThinner
+
-- Views -----------------------------------------------------------------------
public export