src/HOL/Integ/reflected_cooper.ML
changeset 21909 a6439243512b
parent 21820 2f2b6a965ccc
child 22997 d4f3b015b50b
equal deleted inserted replaced
21908:d02ba728cd56 21909:a6439243512b
    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);