# HG changeset patch # User Shinji KONO # Date 1686703123 -32400 # Node ID 93da949d4f83f1e4ca1e5111a2f0e8a874b36256 # Parent f506b71b08f91343fe90acaf8f6082decf2c0280 ... diff -r f506b71b08f9 -r 93da949d4f83 src/bijection.agda --- a/src/bijection.agda Wed Jun 14 09:02:37 2023 +0900 +++ b/src/bijection.agda Wed Jun 14 09:38:43 2023 +0900 @@ -599,110 +599,6 @@ ... | no nisA | yes isB = ≤-trans (ca≤cb0 n) px≤x ... | no nisA | no nisB = ca≤cb0 n - data FL (n : ℕ ) : Set where - ca ¬a ¬b c = tri> ¬a (λ eq → ¬b (FL-eq0 eq) ) c - - _f ¬a ¬b c = no ¬a - - FList : (n : ℕ ) → Set - FList n = List# (FL n) ⌊ _f ¬a ¬b lt = cons a ( x ∷# [] ) ( Level.lift (fromWitness lt) , Level.lift tt ) - FLinsert {suc n} x (cons a y yr) | tri> ¬a ¬b a ¬a ¬b b ¬a ¬b b ¬a ¬b b ¬a ¬b a ¬a ¬b a ¬a ¬b c = ⊥-elim (nat-≤> c x ) - lem02 : fun→ cn (g (f (fun← an j))) ≡ 0 - lem02 with <-cmp (fun→ cn (g (f (fun← an j)))) 0 - ... | tri≈ ¬a b ¬c = b - ... | tri> ¬a ¬b c = ⊥-elim (nat-≤> c y ) - - insAny : {n : ℕ} → {x h : FL n } → (xs : FList n) → Any (x ≡_) xs → Any (x ≡_) (FLinsert h xs) - insAny {zero} {f1} {f2} (cons a L xr) (here eq) = here FL0uniq - insAny {zero} {f1} {f2} (cons a L xr) (there any) = insAny {zero} {f1} {f2} L any - insAny {suc n} {x} {h} (cons a L xr) any with FLcmp h a - ... | tri< x ¬a ¬b c = here refl - insAny {suc n} {x} {h} (cons a (cons a₁ L x₁) xr) (here refl) | tri> ¬a ¬b c = here refl - insAny {suc n} {x} {h} (cons a (cons a₁ L x₁) xr) (there any) | tri> ¬a ¬b c = there (insAny (cons a₁ L x₁) any) - fla-max : (n : ℕ) → ℕ fla-max zero = fun→ cn (g (f (fun← an zero))) @@ -711,55 +607,15 @@ fla-max< : (i n : ℕ) → i < suc n → fun→ cn (g (f (fun← an i))) < suc (fla-max n) fla-max< zero zero (s≤s z≤n) = a