Skip to content

Commit 0ec659f

Browse files
committed
Do not parenthesize nullary applications
1 parent d6edf27 commit 0ec659f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyk/src/pyk/klean/k2lean4.py

+3
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ def _transform_arg(self, pattern: Pattern, *, concrete: bool = False) -> Term:
374374
if not isinstance(pattern, App):
375375
return term
376376

377+
if not pattern.args:
378+
return term
379+
377380
if pattern.symbol in self.structure_symbols:
378381
return term
379382

0 commit comments

Comments
 (0)