changeset 194:619c7091a41a

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 29 Nov 2020 14:02:18 +0900
parents f9aa8bb5fb1d
children af2428b97f60
files FLComm.agda
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/FLComm.agda	Sun Nov 29 09:36:16 2020 +0900
+++ b/FLComm.agda	Sun Nov 29 14:02:18 2020 +0900
@@ -62,10 +62,9 @@
    -- Any (_≡_ (perm→FL [ g , h ])) (tl3 G (cons H (cons a L1 x) x₁) L3)
    comm3 (cons H L1 x₁) (here refl) L3 = comma L1 where
        comma :  (L1 : FList n)  →  Any (_≡_ (perm→FL [ g , h ])) (tl3 G L1 (FLinsert (perm→FL [ FL→perm G , FL→perm H ]) L3))
-       comma [] = subst (λ k → Any (_≡_  k) (FLinsert (perm→FL [ FL→perm G , FL→perm H ]) L3 ) ) comm6 (x∈FLins ( perm→FL [ FL→perm G , FL→perm H ] ) L3 )
-       comma (cons a L1 x) = {!!} where -- Any (_≡_ (perm→FL [ g , h ])) (tl3 G (cons a L1 x) (FLinsert (perm→FL [ FL→perm G , FL→perm H ]) L3))
-          commb :                          Any (_≡_ (perm→FL [ g , h ])) (tl3 G L1            (FLinsert (perm→FL [ FL→perm G , FL→perm H ]) L3)) 
-          commb = comma L1
+       comma L1 with tl3 G L1 (FLinsert (perm→FL [ FL→perm G , FL→perm H ]) L3)  
+       ... | [] = {!!}
+       ... | cons a t x = there (subst (λ k → {!!}) {!!} (x∈FLins ( perm→FL [ FL→perm G , FL→perm H ] ) (FLinsert (perm→FL [ FL→perm G , FL→perm H ]) L3))
    comm3 (cons a L  _) (there b) L3 = comm3 L b (FLinsert (perm→FL [ FL→perm G , FL→perm a ]) L3)
    comm2 : (L L1 : FList n) → Any (G ≡_) L → Any (H ≡_) L1 → (L3 : FList n) → Any (perm→FL [ g , h ]  ≡_) (tl2 L L1 L3)
    comm2 (cons G L xr) L1 (here refl) b L3 = comm7 L L3 where