Skip to content

Commit 0af329a

Browse files
committed
Override ite
1 parent 47d7451 commit 0af329a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyk/src/pyk/klean/k2lean4.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050

5151
_PRELUDE_SORTS: Final = {'SortBool', 'SortBytes', 'SortId', 'SortInt', 'SortString', 'SortStringBuffer'}
5252

53+
_SYMBOL_OVERRIDES: Final = {
54+
'Lblite': 'kite',
55+
}
56+
5357

5458
class Field(NamedTuple):
5559
name: str
@@ -198,6 +202,8 @@ def _symbol_ctor(self, sort: str, symbol: str) -> Ctor:
198202

199203
@staticmethod
200204
def _symbol_ident(symbol: str) -> str:
205+
if symbol in _SYMBOL_OVERRIDES:
206+
return _SYMBOL_OVERRIDES[symbol]
201207
if symbol.startswith('Lbl'):
202208
symbol = symbol[3:]
203209
return K2Lean4._escape_ident(symbol, kore=True)

0 commit comments

Comments
 (0)