# HG changeset patch # User Shinji KONO # Date 1689674086 -32400 # Node ID 6ba2836177b441e18bde604867e10c6cf2a3db46 # Parent 57d007e9c581a3160c61e7daf0f736df2424e36b fix fin 0 → Data.Nat.pred (toℕ f) < n pred ¬a₁ ¬b c = f1-phase1 qs p (case2 q1) f1-phase1 (x ∷ qs) p (case1 q1) | tri> ¬a ¬b c with <-fcmp i (fromℕ< (≤-trans c (fin≤n (fromℕ< an = ⊥-elim (nat-≤> i>n (finn = ⊥-elim (nat-≤> i>n (fin ¬a₁ ¬b c | _ | _ = ⊥-elim (nat-≡< (sym b) (<-trans a ¬a ¬b c | tri< a ¬b₁ ¬c | _ | _ = ⊥-elim (nat-≤> a (<-transʳ c a ¬a ¬b c | tri≈ ¬a₁ b ¬c | record { eq = eq0 } | record { eq = eq1 } = ? - ... | tri> ¬a ¬b c | tri> ¬a₁ ¬b₁ c₁ | _ | _ = ? + ... | tri> ¬a ¬b c | tri≈ ¬a₁ b ¬c | record { eq = eq0 } | record { eq = eq1 } with is-B (Q←F fa (fromℕ< c)) + ... | yes isb = refl-≤≡ (sym eq0) + ... | no nisb = refl-≤≡ (sym eq0) + lem01 (suc i) | tri> ¬a ¬b c | tri> ¬a₁ ¬b₁ c₁ | record { eq = eq0 } | record { eq = eq1 } + with is-B (Q←F fa (fromℕ< c)) | is-B (Q←F fa (fromℕ< c₁)) + ... | yes isb0 | yes isb1 = ≤-trans (refl-≤≡ (sym eq0)) a≤sa + ... | yes isb0 | no nisb1 = refl-≤≡ (sym eq0) + ... | no nisb0 | yes isb1 = ≤-trans (refl-≤≡ (sym eq0)) a≤sa + ... | no nisb0 | no nisb1 = refl-≤≡ (sym eq0) lem31 : (b : B) → 0 < count-B (toℕ (F←Q fa (f b))) lem31 b = lem32 (toℕ (F←Q fa (f b))) refl where @@ -654,21 +670,21 @@ lem33 : f b ≡ Q←F fa ( fromℕ< {0} 0 ¬a ¬b c | record { eq = eq1 } with is-B (Q←F fa (fromℕ< c)) ... | yes isb = s≤s z≤n ... | no nisb = ⊥-elim ( nisb record { a = b ; fa=c = lem33 } ) where lem33 : f b ≡ Q←F fa ( fromℕ< c) lem33 = begin f b ≡⟨ sym (finiso→ fa _) ⟩ - Q←F fa ( F←Q fa (f b)) ≡⟨ sym (cong (λ k → Q←F fa k) ( fromℕ<-toℕ _ fin