equal
deleted
inserted
replaced
49 | Const("All",_)$Abs(xn,xT,p) => |
49 | Const("All",_)$Abs(xn,xT,p) => |
50 QAll(qf_of_term (map (fn(v,n) => (v,n + 1)) vs) p) |
50 QAll(qf_of_term (map (fn(v,n) => (v,n + 1)) vs) p) |
51 | _ => error "qf_of_term : unknown term!"; |
51 | _ => error "qf_of_term : unknown term!"; |
52 |
52 |
53 (* |
53 (* |
54 fun parse s = term_of (read_cterm (sign_of Main.thy) (s,HOLogic.boolT)); |
54 fun parse thy s = term_of (Thm.read_cterm thy (s, HOLogic.boolT)); |
55 |
55 |
56 val t = parse "ALL (i::int) (j::int). i < 8* j --> (i - 1 = j + 3 + 2*j) & (j <= -i + k ) | 4 = i | 5 dvd i"; |
56 val t = parse "ALL (i::int) (j::int). i < 8* j --> (i - 1 = j + 3 + 2*j) & (j <= -i + k ) | 4 = i | 5 dvd i"; |
57 *) |
57 *) |
58 fun zip [] [] = [] |
58 fun zip [] [] = [] |
59 | zip (x::xs) (y::ys) = (x,y)::(zip xs ys); |
59 | zip (x::xs) (y::ys) = (x,y)::(zip xs ys); |