# HG changeset patch # User Shinji KONO # Date 1687141349 -32400 # Node ID 29f686c654bf033fc55f532edb5765999b315532 # Parent e3302db6bbdc2438a51ac27b94d3a070707bee8f ... diff -r e3302db6bbdc -r 29f686c654bf src/bijection.agda --- a/src/bijection.agda Mon Jun 19 08:11:48 2023 +0900 +++ b/src/bijection.agda Mon Jun 19 11:22:29 2023 +0900 @@ -892,13 +892,13 @@ fun← cn (suc (suc i)) ∎ ... | tri> ¬a ¬b c₁ | tri> ¬a₁ ¬b₁ c₂ | u = u - c1 ¬a ¬b c₁ = ≤-refl ... | yes isa | tri≈ ¬a b ¬c = ≤-refl ... | yes isa | tri> ¬a ¬b c₁ = a≤sa - c1 ¬a ¬b c₁ = lem01 n ≤-refl where lem01 : (i : ℕ) → i ≤ n → c1 i 0 ≤ 0 @@ -931,7 +931,7 @@ ... | tri≈ ¬a bi2 ¬c = ⊥-elim (nat-≡< (sym (inject-cgf (trans bi (sym bi2)) )) (<-transʳ j≤i a ¬a ¬b c₁ = lem02 j (≤-trans j≤i a≤sa) lem01 (suc i) (s≤s i≤n) | tri> ¬a ¬b c₁ = lem01 i (≤-trans i≤n a≤sa) - c1 ¬a ¬b c₁ = z≤n - c1 ¬a ¬b c₁ = subst ( λ k → k ≤ count-A i) (c1+0 {n} {i} nisa) (c1 ¬a ¬b c₁ = subst ( λ k → k ≤ count-A i) (c1+0 {n} {i} nisa) (c1 ¬a ¬b c₁ | eq = begin c1 n (suc i) ≡⟨ sym eq ⟩ - suc ( c1 n i) ≤⟨ s≤s (c1 ¬a ¬b c₁ | eq = ? lem13 : suc (c1 n (suc i)) ≤ suc (count-A i) - lem13 with <-cmp n (fun→ an (Is.a isa)) | c1+1 n i isa - ... | tri< a ¬b ¬c | eq = s≤s (subst (λ k → k ≤ count-A i) eq (c1 ¬a ¬b c₁ | eq = ? + lem13 = s≤s ( subst (λ k → k ≤ count-A i) lem15 ( c1 ¬a ¬b c₁ = lem12 -- count-A is one degree larger now record maxAC (n : ℕ) : Set where