# HG changeset patch # User Shinji KONO # Date 1574683666 -32400 # Node ID e909c828cefe57c05e9b37afb6fbe727ebe84503 # Parent 0dcf08f3ff182027e2159341eef1fe9118bab9a4 which way? diff -r 0dcf08f3ff18 -r e909c828cefe prob1.agda --- a/prob1.agda Mon Nov 25 21:05:25 2019 +0900 +++ b/prob1.agda Mon Nov 25 21:07:46 2019 +0900 @@ -80,8 +80,8 @@ problem0-k=k : ( k A M : ℕ ) → problem A M k problem0-k=k zero A M () problem0-k=k (suc k) A M A k * M ) → Cond1 A M (suc k) - ccn gt = record { n = 0 ; i = minus A (k * M ) ; range-n = s≤s z≤n ; range-i = A-Mk k * M ) → Cond1 A M (suc k) + ccn gt = record { n = 0 ; i = minus A (k * M ) ; range-n = s≤s z≤n ; range-i = A-Mk k * M ) → ( suc A < (suc k ) * M ) → minus A (k * M ) < M A-Mk k * M ) (cong (λ k → suc k) (sym b )) a ¬a ¬b c = ccn (<-trans c a ¬a ¬b c = ccn c problem0 : ( A M k : ℕ ) → M > 0 → k > 0 → (suc A < k * M ) → Cond1 A M k problem0 A (suc M) (suc k) 0