kdrag.printers.pretty

Compact, width-aware display of SMT expressions and tactic goals.

Functions

pretty_expr(expr, *[, width])

Display an SMT expression using compact mathematical notation.

pretty_goal(goal, *[, width])

Display locals, numbered hypotheses, and the conclusion.

register_infix(decl, symbol, precedence, *)

Set a binary display rule with precedence from 1 to 8 (tightest).

kdrag.printers.pretty.pretty_expr(expr: ExprRef, *, width: int = 80) → str

Display an SMT expression using compact mathematical notation.

Parameters:
  • expr (ExprRef)

  • width (int)

Return type:

str

kdrag.printers.pretty.pretty_goal(goal: Goal, *, width: int = 80) → str

Display locals, numbered hypotheses, and the conclusion.

Parameters:
  • goal (Goal)

  • width (int)

Return type:

str

kdrag.printers.pretty.register_infix(decl: FuncDeclRef, symbol: str, precedence: int, *, association: Literal['left', 'right', 'none'] = 'none', breaks: bool = False) → None

Set a binary display rule with precedence from 1 to 8 (tightest).

Parameters:
  • decl (FuncDeclRef)

  • symbol (str)

  • precedence (int)

  • association (Literal['left', 'right', 'none'])

  • breaks (bool)

Return type:

None