Structure intSyntax


Source File Identifier index Theory binding index

signature intSyntax =
sig
  include Abbrev

  (* terms and types *)
  val int_ty         : hol_type
  val zero_tm        : term
  val one_tm         : term
  val negate_tm      : term
  val absval_tm      : term
  val plus_tm        : term
  val minus_tm       : term
  val mult_tm        : term
  val div_tm         : term
  val mod_tm         : term
  val quot_tm        : term
  val rem_tm         : term
  val exp_tm         : term
  val int_eq_tm      : term
  val less_tm        : term
  val leq_tm         : term
  val great_tm       : term
  val geq_tm         : term
  val divides_tm     : term
  val min_tm         : term
  val max_tm         : term
  val LEAST_INT_tm   : term
  val Num_tm         : term (* the coercion from :int -> :num *)
  val int_injection  : term (* the injection from :num -> :int *)

  (* discriminators, constructors, etc *)

  val is_int_literal : term -> bool
  val int_of_term    : term -> Arbint.int
  val term_of_int    : Arbint.int -> term

  val mk_injected    : term -> term
  val dest_injected  : term -> term
  val is_injected    : term -> bool

  val mk_Num         : term -> term
  val dest_Num       : term -> term
  val is_Num         : term -> bool

  val is_negated     : term -> bool  (* if a term is of form ~ e *)
  val mk_negated     : term -> term
  val dest_negated   : term -> term

  val is_plus        : term -> bool
  val mk_plus        : (term * term) -> term
  val dest_plus      : term -> (term * term)
  val list_mk_plus   : (* non-empty *) term list -> term
  val strip_plus     : term -> term list

  val is_minus       : term -> bool
  val dest_minus     : term -> (term * term)
  val mk_minus       : (term * term) -> term

  val is_mult        : term -> bool
  val mk_mult        : (term * term) -> term
  val dest_mult      : term -> (term * term)
  val list_mk_mult   : (* non-empty *) term list -> term
  val strip_mult     : term -> term list

  val is_exp         : term -> bool
  val mk_exp         : (term * term) -> term
  val dest_exp       : term -> (term * term)

  val is_div         : term -> bool
  val dest_div       : term -> (term * term)
  val mk_div         : (term * term) -> term

  val is_mod         : term -> bool
  val dest_mod       : term -> (term * term)
  val mk_mod         : (term * term) -> term

  val is_quot        : term -> bool
  val dest_quot      : term -> (term * term)
  val mk_quot        : (term * term) -> term

  val is_rem         : term -> bool
  val dest_rem       : term -> (term * term)
  val mk_rem         : (term * term) -> term

  val is_absval      : term -> bool
  val mk_absval      : term -> term
  val dest_absval    : term -> term

  val is_less        : term -> bool
  val dest_less      : term -> (term * term)
  val mk_less        : (term * term) -> term

  val is_leq         : term -> bool
  val dest_leq       : term -> (term * term)
  val mk_leq         : (term * term) -> term

  val is_great       : term -> bool
  val dest_great     : term -> (term * term)
  val mk_great       : (term * term) -> term

  val is_geq         : term -> bool
  val dest_geq       : term -> (term * term)
  val mk_geq         : (term * term) -> term

  val is_divides     : term -> bool
  val dest_divides   : term -> (term * term)
  val mk_divides     : (term * term) -> term

  val is_min         : term -> bool
  val dest_min       : term -> (term * term)
  val mk_min         : (term * term) -> term

  val is_max         : term -> bool
  val dest_max       : term -> (term * term)
  val mk_max         : (term * term) -> term

  val is_LEAST_INT   : term -> bool
  val dest_LEAST_INT : term -> term
  val mk_LEAST_INT   : term -> term

end


Source File Identifier index Theory binding index

HOL 4, Kananaskis-10