Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions posts/simp-made-simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,18 @@ Roughly speaking, when traversing an expression `e`, `simp` does the following i

We call this the *simplification loop*.

```mermaid
<div class="mermaid">
graph TD
e["e"]
e1["e₁"]
e2["e₂"]

e -->|pre| e1
e -->|pre| e2

e1 -->|post| e
e2 -->|post| e
```

</div>
In the figure above, the simplification loop does the following:

1. Preprocedures on `e`
Expand Down
7 changes: 7 additions & 0 deletions themes/lean_theme/templates/base.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
</div>
{{ base.late_load_js() }}
{% block extra_js %}{% endblock %}

<!-- Mermaid JS for diagram rendering -->
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>

{{ body_end }}
{{ template_hooks['body_end']() }}
</body>
Expand Down