Theory int_arith

Parents

Contents

Type operators

(none)

Constants

Definitions

bmarker_def

Theorems

CONJ_EQ_ELIMHO_SUB_ELIMINT_DIVIDES_LRMULINT_DIVIDES_RELPRIME_MULINT_LINEAR_GCDINT_LT_ADD_NUMERALINT_NUM_CONDINT_NUM_DIVIDESINT_NUM_EVENINT_NUM_EXISTSINT_NUM_FORALLINT_NUM_ODDINT_NUM_SUBINT_NUM_UEXISTSINT_SUB_SUB3NOT_INT_DIVIDESNOT_INT_DIVIDES_POSadd_to_greaterbmarker_rewritesbot_and_greaterscan_get_bigcan_get_smallcooper_lemma_1elim_eqelim_eq_coeffselim_le_coeffselim_lt_coeffs1elim_lt_coeffs2elim_minus_oneselim_neg_oneseq_context_rwt1eq_context_rwt2eq_justify_multiplicationeq_move_all_lefteq_move_all_righteq_move_left_lefteq_move_left_righteq_move_right_leftgcd1thmgcd21_thmgcdthm2in_additive_rangein_subtractive_rangejustify_dividesjustify_divides2justify_divides3lcm_eliminatele_context_rwt1le_context_rwt2le_context_rwt3le_context_rwt4le_context_rwt5le_move_all_rightle_move_right_leftless_to_leq_samelless_to_leq_samerlt_justify_multiplicationlt_move_all_leftlt_move_all_rightlt_move_left_leftlt_move_left_rightmove_subnot_lesspositive_product_implicationrestricted_quantification_simpsubtract_to_smalltop_and_lessers

Definitions

⊢ ∀b. int_arith$bmarker b ⇔ b

Theorems

⊢ ∀P v e. (v = e) ∧ P v ⇔ (v = e) ∧ P e
⊢ ∀P a b. P (&(a − b)) ⇔ &b ≤ &a ∧ P (&a + -&b) ∨ &a < &b ∧ P 0
⊢ ∀p q r. q ≠ 0 ⇒ (p * q int_divides r * q ⇔ p int_divides r)
⊢ ∀p q r. coprime p q ⇒ (&p int_divides &q * r ⇔ &p int_divides r)
⊢ ∀n m. ∃p q. p * &n + q * &m = &gcd n m
⊢ ∀x y.
    x < x + &NUMERAL (BIT1 y) ∧ x < x + &NUMERAL (BIT2 y) ∧
    ¬(x < x + -&NUMERAL y)
⊢ ∀b n m. &(if b then n else m) = if b then &n else &m
⊢ ∀n m. &n int_divides &m ⇔ divides n m
⊢ ∀n. EVEN n ⇔ 2 int_divides &n
⊢ (∃n. P (&n)) ⇔ ∃x. 0 ≤ x ∧ P x
⊢ (∀n. P (&n)) ⇔ ∀x. 0 ≤ x ⇒ P x
⊢ ∀n. ODD n ⇔ ¬(2 int_divides &n)
⊢ ∀n m. &(n − m) = if &n < &m then 0 else &n − &m
⊢ (∃!n. P (&n)) ⇔ ∃!x. 0 ≤ x ∧ P x
⊢ ∀x y z. x − (y − z) = x + z − y
⊢ ∀c d.
    c ≠ 0 ⇒
    (¬(c int_divides d) ⇔ ∃i. 1 ≤ i ∧ i ≤ ABS c − 1 ∧ c int_divides d + i)
⊢ ∀n d.
    n ≠ 0 ⇒
    (¬(&n int_divides d) ⇔ ∃i. (1 ≤ i ∧ i ≤ &n − 1) ∧ &n int_divides d + i)
⊢ ∀x d. 0 < d ⇒ ∃k. 0 < x + k * d ∧ x + k * d ≤ d
⊢ ∀p q r.
    (q ∧ int_arith$bmarker p ⇔ int_arith$bmarker p ∧ q) ∧
    (q ∧ int_arith$bmarker p ∧ r ⇔ int_arith$bmarker p ∧ q ∧ r) ∧
    ((int_arith$bmarker p ∧ q) ∧ r ⇔ int_arith$bmarker p ∧ q ∧ r)
⊢ ∀P d x0. (∀x. P x ⇒ P (x + d)) ∧ P x0 ⇒ ∀c. 0 < c ⇒ P (x0 + c * d)
⊢ ∀x y d. 0 < d ⇒ ∃c. 0 < c ∧ x < y + c * d
⊢ ∀x y d. 0 < d ⇒ ∃c. 0 < c ∧ y − c * d < x
⊢ ∀m n a b u v p q x d.
    (d = gcd (u * m) (a * n)) ∧ (&d = p * &u * &m + q * &a * &n) ∧ m ≠ 0 ∧
    n ≠ 0 ∧ a ≠ 0 ∧ u ≠ 0 ⇒
    (&m int_divides &a * x + b ∧ &n int_divides &u * x + v ⇔
     &m * &n int_divides &d * x + v * &m * p + b * &n * q ∧
     &d int_divides &a * v − &u * b)
⊢ (x = y) ⇔ x < y + 1 ∧ y < x + 1
⊢ ∀m x y. m ≠ 0 ⇒ ((&m * x = y) ⇔ &m int_divides y ∧ (x = y / &m))
⊢ ∀m n x. 0 < m ⇒ (0 ≤ m * x + n ⇔ 0 ≤ x + n / m)
⊢ ∀n m x. m ≠ 0 ⇒ (&n < &m * x ⇔ &n / &m < x)
⊢ ∀n m x.
    m ≠ 0 ⇒
    (&m * x < &n ⇔ x < if &m int_divides &n then &n / &m else &n / &m + 1)
⊢ ∀x. x + 1 − 1 = x
⊢ ∀x. x + -1 + 1 = x
⊢ (0 = c + x) ⇒ (0 ≤ c + y ⇔ x ≤ y)
⊢ (0 = c + x) ⇒ (0 ≤ -c + y ⇔ -x ≤ y)
⊢ ∀n x y. 0 < n ⇒ ((x = y) ⇔ (n * x = n * y))
⊢ ∀x y. (x = y) ⇔ (x + -y = 0)
⊢ ∀x y. (x = y) ⇔ (0 = y + -x)
⊢ ∀x y z. (x = y + z) ⇔ (x + -y = z)
⊢ ∀x y z. (x + y = z) ⇔ (y = z + -x)
⊢ ∀x y z. (x = y + z) ⇔ (x + -z = y)
⊢ ∀m n p q. (p * &m + q * &n = 1) ⇒ coprime m n
⊢ ∀m a x b p q.
    (p * &a + q * &m = 1) ∧ m ≠ 0 ∧ a ≠ 0 ⇒
    (&m int_divides &a * x + b ⇔ ∃t. x = -p * b + t * &m)
⊢ ∀m a x b d p q.
    (d = gcd a m) ∧ (&d = p * &a + q * &m) ∧ d ≠ 0 ∧ m ≠ 0 ∧ a ≠ 0 ⇒
    (&m int_divides &a * x + b ⇔
     &d int_divides b ∧ ∃t. x = -p * (b / &d) + t * (&m / &d))
⊢ ∀low d x. low < x ∧ x ≤ low + d ⇔ ∃j. (x = low + j) ∧ 0 < j ∧ j ≤ d
⊢ ∀high d x. high − d ≤ x ∧ x < high ⇔ ∃j. (x = high − j) ∧ 0 < j ∧ j ≤ d
⊢ ∀n x y. 0 < n ⇒ (x int_divides y ⇔ n * x int_divides n * y)
⊢ ∀n c x y.
    n * x int_divides n * y + c ⇔
    n * x int_divides n * y + c ∧ n int_divides c
⊢ ∀n x c. n int_divides n * x + c ⇔ n int_divides c
⊢ ∀P c. (∃x. P (c * x)) ⇔ ∃x. P x ∧ c int_divides x
⊢ 0 ≤ c + x ⇒ x ≤ y ⇒ (0 ≤ c + y ⇔ T)
⊢ 0 ≤ c + x ⇒ y < -x ⇒ (0 ≤ -c + y ⇔ F)
⊢ 0 ≤ c + x ⇒ x < y ⇒ ((0 = c + y) ⇔ F)
⊢ 0 ≤ c + x ⇒ x < -y ⇒ ((0 = -c + y) ⇔ F)
⊢ 0 ≤ c + x ⇒ (0 ≤ -c + -x ⇔ (0 = c + x))
⊢ ∀x y. x ≤ y ⇔ 0 ≤ y + -x
⊢ ∀x y z. x ≤ y + z ⇔ x + -z ≤ y
⊢ ∀x y. x < y ⇔ x ≤ y + -1
⊢ ∀x y. x < y ⇔ x + 1 ≤ y
⊢ ∀n x y. 0 < n ⇒ (x < y ⇔ n * x < n * y)
⊢ ∀x y. x < y ⇔ x + -y < 0
⊢ ∀x y. x < y ⇔ 0 < y + -x
⊢ ∀x y z. x < y + z ⇔ x + -y < z
⊢ ∀x y z. x + y < z ⇔ y < z + -x
⊢ ∀c b a. a − c + b = a + b − c
⊢ ¬(x < y) ⇔ y < x + 1
⊢ ∀c d. 0 < c ∧ 0 < d ⇒ 0 < c * d
⊢ ∀low high x.
    low < x ∧ x ≤ high ⇔ low < high ∧ ((x = high) ∨ low < x ∧ x ≤ high − 1)
⊢ ∀x d. 0 < d ⇒ ∃k. 0 < x − k * d ∧ x − k * d ≤ d
⊢ ∀P d x0. (∀x. P x ⇒ P (x − d)) ∧ P x0 ⇒ ∀c. 0 < c ⇒ P (x0 − c * d)