"""Print checked propositions with deterministic identity labels and bounds."""
from std.testing import assert_equal
from judgment_shell import HeadIndex, Props, Session, show
from termbank import Budget


def main() raises:
    var s = Session()
    var props = Props(s)
    var formula = props.imp(props.true_(), props.not_(props.false_()))
    var budget = Budget(10000)
    var index = HeadIndex(s, budget)
    assert_equal(show(s, index, formula, budget), "(True → (¬False))")
    assert_equal(show(s, index, formula, budget, 0), "…")
    print("bounded debug printing: ok")
