src/HOL/Tools/Nitpick/minipick.ML
changeset 34121 5e831d805118
parent 33980 a28733ef3a82
child 34124 c4628a1dcf75
equal deleted inserted replaced
34120:f9920a3ddf50 34121:5e831d805118
   230        | Const (@{const_name fst}, _) => raise SAME ()
   230        | Const (@{const_name fst}, _) => raise SAME ()
   231        | Const (@{const_name snd}, _) $ _ => raise SAME ()
   231        | Const (@{const_name snd}, _) $ _ => raise SAME ()
   232        | Const (@{const_name snd}, _) => raise SAME ()
   232        | Const (@{const_name snd}, _) => raise SAME ()
   233        | Const (_, @{typ bool}) => atom_from_formula (to_F Ts t)
   233        | Const (_, @{typ bool}) => atom_from_formula (to_F Ts t)
   234        | Free (x as (_, T)) =>
   234        | Free (x as (_, T)) =>
   235          Rel (arity_of RRep card T, find_index (equal x) frees)
   235          Rel (arity_of RRep card T, find_index (curry (op =) x) frees)
   236        | Term.Var _ => raise NOT_SUPPORTED "schematic variables"
   236        | Term.Var _ => raise NOT_SUPPORTED "schematic variables"
   237        | Bound j => raise SAME ()
   237        | Bound j => raise SAME ()
   238        | Abs (_, T, t') =>
   238        | Abs (_, T, t') =>
   239          (case fastype_of1 (T :: Ts, t') of
   239          (case fastype_of1 (T :: Ts, t') of
   240             @{typ bool} => Comprehension (decls_for SRep card Ts T,
   240             @{typ bool} => Comprehension (decls_for SRep card Ts T,