Display

Rendering of expressions, proof chains and theorems as plain text, LaTeX and HTML. Every name on this page is importable directly from jacopy.

Expressions

jacopy.to_ascii(expr[, ctx_precedence])

Render expr as plain text.

jacopy.to_latex(expr[, ctx_precedence])

Render expr as a LaTeX math snippet (no $ delimiters).

jacopy.print_expr(expr, *[, console])

Pretty-print an Expr to the terminal.

jacopy.display_expr(expr)

Wrap an Expr (or a research-layer GeneralizedSection) as inline Jupyter math.

Proof chains and theorems

jacopy.print_chain(chain, *[, console, ...])

Pretty-print a ProofChain to the terminal.

jacopy.display_chain(chain, *[, max_steps])

Wrap a ProofChain as a gather* block.

jacopy.display_theorem(theorem, *[, ...])

A Theorem as an HTML card: statement, the proven equation (MathJax), generality, assumptions, and the proof as a gather* block (truncated to max_steps rows).

jacopy.theorem_to_latex_document(theorem, *)

Wrap theorem_to_latex() in a pdfLaTeX-ready article titled by the theorem's name, with its reference list.