Package gfp-div-gcd-def: Definition of a GF(p) division algorithm based on gcd

Information

namegfp-div-gcd-def
version1.60
descriptionDefinition of a GF(p) division algorithm based on gcd
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-11-04
checksum801494824db0857bb1132e26c64fc3970005bbe6
requiresbase
gfp-def
gfp-div-def
showData.Bool
Data.Pair
Number.GF(p)
Number.Natural

Files

Defined Constant

Theorem

u v x1 x2.
    divGcd u v x1 x2 =
    if u = 1 then x1
    else if v = 1 then x2
    else if even u then divGcd (u div 2) v (x1 / 2) x2
    else if even v then divGcd u (v div 2) x1 (x2 / 2)
    else if v u then divGcd (u - v) v (x1 - x2) x2
    else divGcd u (v - u) x1 (x2 - x1)

External Type Operators

External Constants

Assumptions

¬

¬

p. p

t. t ¬t

(¬) = λp. p

() = λp. p ((select) p)

t. (λx. t x) = t

() = λp. p = λx.

t. t

t. t t

t. t

() = λp q. p q p

t1 t2. (if then t1 else t2) = t2

t1 t2. (if then t1 else t2) = t1

p x. p x p ((select) p)

() = λp q. (λf. f p q) = λf. f

() = λp. q. (x. p x q) q

p. (x. p x) a b. p (a, b)

() = λp q. r. (p r) (q r) r

f. fn. a b. fn (a, b) = f a b

p g h. f. x. f x = if p x then f (g x) else h x