-
Notifications
You must be signed in to change notification settings - Fork 46
Update Lean printer to new infrastructure #1607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
If the monolithic change is too hard to review, I can try to break it down into smaller pieces, but it's a non negligible amount of work. |
W95Psp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me, I have a few minor comments.
franziskuskiefer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit and a question.
Co-authored-by: Lucas Franceschino <[email protected]>
This PR is based on #1603.
It updates the Lean backend to the new printing infrastructure.
Context
#1603 and #1600 added new infrastructure for printing, based on the return of experience of the Lean printer. Specifically, they introduced a proper notion of backend/printer, and some utils for writing
docs.This PR
This PR updates the Lean backend to the new infrastructure, which unfortunately makes for a monolithic swap. It should not make any semantic changes, besides whitespace and two library edits :
usizeis nowUsize,u8is nowUInt8, etcabbrev RustVector := Array. The fact that Lean and Rust have opposite terminology was a source of confusion