# HG changeset patch # User Shinji KONO # Date 1624803187 -32400 # Node ID 709e63cb9d196edde5a562b5922f8f8dd33d6b91 # Parent 9f7e4a4415f72575cc26913fa9d2b86f463ac5e8 ... diff -r 9f7e4a4415f7 -r 709e63cb9d19 automaton-in-agda/src/gcd.agda --- a/automaton-in-agda/src/gcd.agda Sun Jun 27 22:43:20 2021 +0900 +++ b/automaton-in-agda/src/gcd.agda Sun Jun 27 23:13:07 2021 +0900 @@ -299,6 +299,17 @@ → Dividable k ( gcd i j ) gcd-div i j k k>1 if jf = gcd-gt i i j j k k>1 (DtoF if) if (DtoF jf) jf (div-div k>1 if jf) +-- gcd loop invariant +-- +record GCD ( i i0 j j0 : ℕ ) : Set where + i