# HG changeset patch # User Shinji KONO # Date 1606664161 -32400 # Node ID 57188c35ea1af0dba05d61ef0bfa47cafafd1038 # Parent ca656da4d4841a660f49d849f12a6e8fc7d02958 ... diff -r ca656da4d484 -r 57188c35ea1a FLComm.agda --- a/FLComm.agda Sun Nov 29 22:24:50 2020 +0900 +++ b/FLComm.agda Mon Nov 30 00:36:01 2020 +0900 @@ -56,18 +56,15 @@ H = perm→FL h comm6 : perm→FL [ FL→perm G , FL→perm H ] ≡ perm→FL [ g , h ] comm6 = pcong-pF (comm-resp (FL←iso _) (FL←iso _)) + commc : (L3 L1 : FList n) → Any (_≡_ (perm→FL [ FL→perm G , FL→perm H ])) L3 + → Any (_≡_ (perm→FL [ FL→perm G , FL→perm H ])) (tl3 G L1 L3) + commc L3 [] any = any + commc L3 (cons a L1 _) any = commc (FLinsert (perm→FL [ FL→perm G , FL→perm a ]) L3) L1 {!!} comm3 : (L1 : FList n) → Any (H ≡_) L1 → (L3 : FList n) → Any (_≡_ (perm→FL [ g , h ])) (tl3 G L1 L3) comm3 (H ∷# []) (here refl) L3 = 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 ) - -- 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 L3 where - commb : (a : FL n) → (L1 L3 : FList n) → (xr : fresh (FL n) ⌊ _f ¬a ¬b c | t | record { eq = eq } = {!!} +insAny {suc n} {x} {h} (cons a (cons a₁ L x₁) xr) (here x₂) | tri> ¬a ¬b c | t | record { eq = eq } = subst (λ k → Any (_≡_ x) k) {!!} (here {!!}) +insAny {suc n} {x} {h} (cons a (cons a₁ L x₁) xr) (there any) | tri> ¬a ¬b c | t | record { eq = eq } = subst (λ k → Any (_≡_ x) k) {!!} (there {!!}) + AnyFList : {n : ℕ } → (x : FL n ) → Any (x ≡_ ) (∀Flist fmax) AnyFList {zero} f0 = here refl AnyFList {suc zero} (zero :: f0) = here refl