Skip to content

Commit fe20aa5

Browse files
committed
update: show applied rules in NDTree.tree(style="gentzen")
1 parent 7103ef2 commit fe20aa5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎mathesis/deduction/natural_deduction/natural_deduction.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ def tree(self, style=None, number=True):
8686
output = ""
8787
root = self._sequent_tree.root.right[0].subproof
8888
for pre, fill, node in RenderTree(root):
89-
output += "{}{}{}\n".format(
89+
output += "{}{}{}{}\n".format(
9090
pre,
9191
f"[{node.name}]" if getattr(node, "marked", False) else node.name,
9292
# self.proof_tree.mapping[node].n,
9393
" ×" if getattr(node, "marked", False) else "",
94+
f" [{node.derived_by}]" if node.derived_by is not None else "",
9495
)
9596
return output
9697
else:

0 commit comments

Comments
 (0)