Compare commits

..

No commits in common. "acfd4e828817d2a7cd10fbdb0bbfe47910647582" and "46347d8244f7e9c7b84b5276bd8f303a8a236ce6" have entirely different histories.

1 changed files with 3 additions and 7 deletions

View File

@ -83,20 +83,16 @@ def serialize_sort_level_ast (level: Level): String :=
let u_str := match u with
| .zero => "0"
| .succ _ => panic! "getLevelOffset should not return .succ"
| .max v w =>
| .max v w | .imax v w =>
let v := serialize_sort_level_ast v
let w := serialize_sort_level_ast w
s!"(:max {v} {w})"
| .imax v w =>
let v := serialize_sort_level_ast v
let w := serialize_sort_level_ast w
s!"(:imax {v} {w})"
s!"(max {v} {w})"
| .param name =>
let name := name_to_ast name
s!"{name}"
| .mvar id =>
let name := name_to_ast id.name
s!"(:mv {name})"
s!"(:mvar {name})"
match k, u with
| 0, _ => u_str
| _, .zero => s!"{k}"