let rec delete_rule_in_level_list entry symbols levs =
match symbols with
| Sself :: symbols ->
delete_rule_in_suffix entry symbols levs
| Snterm e :: symbols when e == entry ->
delete_rule_in_suffix entry symbols levs
| _ -> delete_rule_in_prefix entry symbols levs