let is_open = function _, Open _ -> true | _ -> false
let close = function n, Open g -> n, Closed g | l -> l
let filter_open = List.filter is_open
- let is_fresh = function n, Open _ when n > 0 -> true | _ -> false
+ let is_fresh =
+ function n, Open _ when n > 0 -> true | _,Closed _ -> true | _ -> false
let goal_of_loc = function _, Open g | _, Closed g -> g
let goal_of_switch = function Open g | Closed g -> g
let switch_of_loc = snd
let of_metasenv metasenv =
let goals = List.map (fun (g, _, _) -> g) metasenv in
[ zero_pos goals, [], [], `NoTag ]
+
+ let of_nmetasenv metasenv =
+ let goals = List.map (fun (g, _) -> g) metasenv in
+ [ zero_pos goals, [], [], `NoTag ]
let head_switches =
function