Add thinning from empty list

This commit is contained in:
2024-06-20 09:29:49 +02:00
parent c040ccadcd
commit 19141b121b
+6
View File
@@ -45,3 +45,9 @@ end ∘ end = end
include α ∘ include β = include (α ∘ β) include α ∘ include β = include (α ∘ β)
include α ∘ exclude β = exclude (α ∘ β) include α ∘ exclude β = exclude (α ∘ β)
exclude α ∘ β = exclude (α ∘ β) exclude α ∘ β = exclude (α ∘ β)
-- There is always a Thinning from the empty list to any list. Here we exclude
-- at every step.
¡ : Thinning A [] xs
¡ {xs = []} = end
¡ {xs = x ∷ xs} = exclude ¡