File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ open import Data.Maybe.Properties using (just-injective)
16
16
open import Data.Bool.Base using (Bool; true; false)
17
17
open import Data.List.Base as List using (List; []; _∷_; _++_)
18
18
open import Data.List.Effectful using () renaming (monad to listMonad)
19
- open import Data.List.Properties using (length-++; length-++-≤ˡ; length-++-≤ʳ; ++-assoc; map-++)
19
+ open import Data.List.Properties using (length-++; length-++-comm; length-++- ≤ˡ; length-++-≤ʳ; ++-assoc; map-++)
20
20
open import Data.List.NonEmpty.Effectful using () renaming (monad to list⁺Monad)
21
21
open import Data.List.NonEmpty as List⁺
22
22
using (List⁺; _∷_; tail; head; toList; _⁺++_; _⁺++⁺_; _++⁺_; length; fromList;
@@ -91,6 +91,10 @@ length-⁺++⁺ : (xs ys : List⁺ A) →
91
91
length (xs ⁺++⁺ ys) ≡ length xs + length ys
92
92
length-⁺++⁺ (x ∷ xs) (y ∷ ys) = length-++ (x ∷ xs)
93
93
94
+ length-⁺++⁺-comm : ∀ (xs ys : List⁺ A) →
95
+ length (xs ⁺++⁺ ys) ≡ length (ys ⁺++⁺ xs)
96
+ length-⁺++⁺-comm (x ∷ xs) (y ∷ ys) = length-++-comm (x ∷ xs) (y ∷ ys)
97
+
94
98
length-⁺++⁺-≤ˡ : (xs ys : List⁺ A) →
95
99
length xs ≤ length (xs ⁺++⁺ ys)
96
100
length-⁺++⁺-≤ˡ (x ∷ xs) (y ∷ ys) = s≤s (length-++-≤ˡ xs)
You can’t perform that action at this time.
0 commit comments