Skip to content
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

saw-core pretty printer should preserve more sharing #155

Closed
brianhuffman opened this issue Jul 1, 2016 · 0 comments
Closed

saw-core pretty printer should preserve more sharing #155

brianhuffman opened this issue Jul 1, 2016 · 0 comments

Comments

@brianhuffman
Copy link
Contributor

When saw-core terms are printed with print_term or print_goal, shared subterms are printed once in a single top-level let block. However, shared subterms that refer to lambda-bound variables cannot be moved outside the lambda, and so those get printed in expanded form. This situation is very common for proof goals, where the goal term starts with lambdas for all the quantified variables. This makes print_goal much less useful.

In addition to a top-level let block for shared closed subterms, the term pretty printer should also produce let blocks under lambdas for shared subterms that mention that bound variable.

brianhuffman pushed a commit that referenced this issue Apr 26, 2021
Add dependent sum datatype `Sigma` to saw-core prelude.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant