Starting from:

$30

COMPUTATIONAL LOGIC-Homework 4 Solved

Please use the Coq file hw2-2.v[1] to show the following instance of the Chinese remainder theorem:

Theorem 1. Let m,n ∈ Z and m,n be relatively prime. For every a,b ∈Z, there is an x ∈Z such that

x ≡ a (m) x ≡ b (n).

Hints:

•    Bezout’s coefficients in the Coq standard library Znumtheory[2]will be useful.

•    A useful on-line information is Software Foundations[3].

•    Another useful on-line information is Certified Programming with Dependent Types[4].

More products