Repository navigation
Conversation
meefs
pushed a commit
to meefs/lean4
that referenced
this pull request
Oct 6, 2026
This PR adds HTML-like syntax to `Lean.Data.Html.Syntax`, together with an elaborator from the syntax into `Lean.Data.Html`. The syntax is agnostic of the type it will be elaborated into. Most of the complexity (handling whitespace, decoding HTML character references) is pushed into parsing in order to simplify downstream elaborators. We expose `.view` functions (e.g. `Html.Content.view`) that provide convenient inductive descriptions of what was parsed. Downstream elaborators are expected to process syntax using `.view`s rather than by looking at nodes/atoms directly. The downstream-lean4 adaptation PR adopts the new syntax throughout supported packages. VIR is adapted in - leanprover/lean-vir#197
This was referenced Oct 9, 2026
ejgallego
added a commit
that referenced
this pull request
Oct 9, 2026
This PR adopts the `jsx%{...}` notation suggested in #197, keeping JSX elements separate from Lean terms and do-block statements.
- Expose JSX literals and `js_field%` on import, remove the Jsx scope requirement, and migrate callers and documentation.
- Preserve the pinned Lean 4.35 toolchain and native props/child semantics; defer upstream HTML parser integration until Lean 4.36.
Co-authored-by: Wojciech Nawrocki <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adapts VIR to use the upstream HTML syntax.