feat: add superderive stepwise derivation figures

A third sibling toolkit: rewrite steps, justification rails,
cancel/substitute highlights, and lint-on-warning builds.
This commit is contained in:
dela
2026-08-17 10:05:03 +08:00
commit 9f635d358b
22 changed files with 724 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# Grammar
| Fact | Macro |
|---|---|
| one legal rewrite | `\sdstep[role=rewrite]{name}{lhs}{rhs}` |
| why it is legal | `\sdreason{name}{text}` |
| a cancelled term | `\sdcancel{name}{math}` |
| substitution | `\sdsubst{name}{from}{to}` |
| focus box | `\sdbox[role=keep]{name}{math}` |
| illegal vs legal | `\sdcol{name}{bad}{good}` (one per figure) |
| bottom | `\sdmeaningbox` (idea / rewrite / caveat) |
Built-in roles: `keep` `rewrite` `cancel` `intro` `warn` `neutral`.