# HG changeset patch # User Shinji KONO # Date 1687311216 -32400 # Node ID 07fe8f8bb6d336d03f4b6c6ecb15cdddcac705af # Parent 4e1150abfb86a18921a1209bb596fd2b7edc4fd7 ... diff -r 4e1150abfb86 -r 07fe8f8bb6d3 src/bijection.agda --- a/src/bijection.agda Tue Jun 20 19:24:48 2023 +0900 +++ b/src/bijection.agda Wed Jun 21 10:33:36 2023 +0900 @@ -702,10 +702,14 @@ ... | yes _ = cong suc (lem02 n t refl) ... | no _ = lem02 n t refl + -- remove (ani i) from clist (c n) + -- a-list : (i : ℕ) → (cl : List C) → Any (_≡_ (g (f (fun← an i)))) cl → List C a-list i (_ ∷ t) (here px) = t a-list i (h ∷ t) (there a) = h ∷ ( a-list i t a ) + -- count of a in a-list is one step reduced + -- a-list-ca : (i : ℕ) → (cl : List C) → (a : Any (_≡_ (g (f (fun← an i)))) cl ) → suc (ca-list (a-list i cl a)) ≡ ca-list cl a-list-ca i cl a = lem03 i cl _ a refl where @@ -720,14 +724,62 @@ ... | yes y = refl ... | no nisa = ⊥-elim ( nisa record { a = _ ; fa=c = px } ) + -- reduced list still have all ani j < i + -- + a-list-any : (i : ℕ) → (cl : List C) → (a : Any (_≡_ (g (f (fun← an i)))) cl ) + → (j : ℕ) → j < i → Any (_≡_ (g (f (fun← an j)))) cl → Any (_≡_ (g (f (fun← an j)))) (a-list i cl a) + a-list-any i cl a j j