# HG changeset patch # User Shinji KONO # Date 1689667830 -32400 # Node ID ab531332d0a16b4fe96e5992e8db4709592aaab9 # Parent bd5cd2692b49e17a59fcd73b3f88c9b7486030c7 ... diff -r bd5cd2692b49 -r ab531332d0a1 automaton-in-agda/src/finiteSetUtil.agda --- a/automaton-in-agda/src/finiteSetUtil.agda Tue Jul 18 16:52:06 2023 +0900 +++ b/automaton-in-agda/src/finiteSetUtil.agda Tue Jul 18 17:10:30 2023 +0900 @@ -643,23 +643,30 @@ lem31 : (b : B) → 0 < count-B (toℕ (F←Q fa (f b))) lem31 b = lem32 (toℕ (F←Q fa (f b))) ≤-refl where - lem32 : (i : ℕ) → i ≤ toℕ (F←Q fa (f b)) → 0 < count-B i - lem32 zero le with is-B (Q←F fa ( fromℕ< {0} 0 lt (s≤s z≤n )) + lem32 zero le | case1 eq with is-B (Q←F fa ( fromℕ< {0} 0 le (<-trans fin le (subst (λ k → toℕ (F←Q fa (f b)) < k ) eq1 fin ¬a ¬b c | record { eq = eq1 } with is-B (Q←F fa (fromℕ< c)) + lem32 (suc n) le with <-cmp (finite fa) (suc n) | inspect count-B (suc n) | ≤-∨ le + ... | tri< a ¬b ¬c | _ | case1 eq = lem32 n ? -- ? -- ⊥-elim ( nat-≤> le (<-trans fin le (<-trans fin le (subst (λ k → toℕ (F←Q fa (f b)) < k ) eq1 fin le (subst (λ k → toℕ (F←Q fa (f b)) < k ) eq1 fin ¬a ¬b c | record { eq = eq1 } | case1 eq with is-B (Q←F fa (fromℕ< c)) ... | yes isb = s≤s z≤n - ... | no nisb = lem32 n (≤-trans a≤sa le) + ... | no nisb = lem32 n ? -- (≤-trans a≤sa le) + lem32 (suc n) le | tri> ¬a ¬b c | record { eq = eq1 } | case2 lt with is-B (Q←F fa (fromℕ< c)) + ... | yes isb = s≤s z≤n + ... | no nisb = lem32 n ? -- (≤-trans a≤sa le) cb