Skip to main content

Module int

Module int 

Source
Expand description

Int: scalars in the range of i32 on 64-bit machines and of 31-bit integers on 32-bit machines (as in lean.h), num-bigint values in mpz objects outside it.

Constants§

LEAN_MAX_SMALL_INT
LEAN_MIN_SMALL_INT

Functions§

lean_big_int64_to_int⚠
lean_big_int_to_int⚠
lean_big_int_to_nat⚠
Consumes a.
lean_big_size_t_to_int⚠
lean_cstr_to_int⚠
An Int from its decimal digits (with an optional -).
lean_int64_to_int⚠
lean_int_add⚠
lean_int_big_add⚠
lean_int_big_div⚠
lean_int_big_div_exact⚠
lean_int_big_ediv⚠
lean_int_big_emod⚠
lean_int_big_eq⚠
lean_int_big_le⚠
lean_int_big_lt⚠
lean_int_big_mod⚠
lean_int_big_mul⚠
lean_int_big_neg⚠
lean_int_big_nonneg⚠
lean_int_big_sub⚠
lean_int_dec_eq⚠
lean_int_dec_le⚠
lean_int_dec_lt⚠
lean_int_dec_nonneg⚠
lean_int_div⚠
lean_int_div_exact⚠
lean_int_ediv⚠
lean_int_emod⚠
lean_int_eq⚠
lean_int_land⚠
lean_int_le⚠
lean_int_lnot⚠
lean_int_lor⚠
lean_int_lt⚠
lean_int_mod⚠
lean_int_mul⚠
lean_int_ne⚠
lean_int_neg⚠
lean_int_neg_succ_of_nat⚠
Int.negSucc (consumes a).
lean_int_shift_right⚠
Int.shiftRight by a Nat (arithmetic shift, rounding towards negative infinity).
lean_int_sub⚠
lean_int_to_int⚠
lean_int_to_nat⚠
Int.toNat of a non-negative Int (consumes a).
lean_int_xor⚠
lean_nat_abs⚠
lean_nat_to_int⚠
Int.ofNat (consumes a).
lean_scalar_to_int⚠
lean_scalar_to_int64⚠