equal
deleted
inserted
replaced
68 |
68 |
69 |
69 |
70 (* strip_positions *) |
70 (* strip_positions *) |
71 |
71 |
72 fun strip_positions (Appl ((t as Constant c) :: u :: (v as Variable x) :: asts)) = |
72 fun strip_positions (Appl ((t as Constant c) :: u :: (v as Variable x) :: asts)) = |
73 if (c = "_constrain" orelse c = "_constrainAbs") andalso is_some (Term_Position.decode x) |
73 if member (op =) Term_Position.markers c andalso is_some (Term_Position.decode x) |
74 then mk_appl (strip_positions u) (map strip_positions asts) |
74 then mk_appl (strip_positions u) (map strip_positions asts) |
75 else Appl (map strip_positions (t :: u :: v :: asts)) |
75 else Appl (map strip_positions (t :: u :: v :: asts)) |
76 | strip_positions (Appl asts) = Appl (map strip_positions asts) |
76 | strip_positions (Appl asts) = Appl (map strip_positions asts) |
77 | strip_positions ast = ast; |
77 | strip_positions ast = ast; |
78 |
78 |