27 | SOME n => Bound n) |
28 | SOME n => Bound n) |
28 | Const("RealDef.real",_)$ @{term "0::int"} => C 0 |
29 | Const("RealDef.real",_)$ @{term "0::int"} => C 0 |
29 | Const("RealDef.real",_)$ @{term "1::int"} => C 1 |
30 | Const("RealDef.real",_)$ @{term "1::int"} => C 1 |
30 | @{term "0::real"} => C 0 |
31 | @{term "0::real"} => C 0 |
31 | @{term "0::real"} => C 1 |
32 | @{term "0::real"} => C 1 |
32 | Term.Bound i => Bound (Integer.nat i) |
33 | Term.Bound i => Bound (nat i) |
33 | Const(@{const_name "HOL.uminus"},_)$t' => Neg (num_of_term vs t') |
34 | Const(@{const_name "HOL.uminus"},_)$t' => Neg (num_of_term vs t') |
34 | Const (@{const_name "HOL.plus"},_)$t1$t2 => Add (num_of_term vs t1,num_of_term vs t2) |
35 | Const (@{const_name "HOL.plus"},_)$t1$t2 => Add (num_of_term vs t1,num_of_term vs t2) |
35 | Const (@{const_name "HOL.minus"},_)$t1$t2 => Sub (num_of_term vs t1,num_of_term vs t2) |
36 | Const (@{const_name "HOL.minus"},_)$t1$t2 => Sub (num_of_term vs t1,num_of_term vs t2) |
36 | Const (@{const_name "HOL.times"},_)$t1$t2 => |
37 | Const (@{const_name "HOL.times"},_)$t1$t2 => |
37 (case (num_of_term vs t1) of C i => |
38 (case (num_of_term vs t1) of C i => |