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

tt is sometimes not translated #167

Open
gebner opened this issue Aug 24, 2022 · 1 comment
Open

tt is sometimes not translated #167

gebner opened this issue Aug 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@gebner
Copy link
Member

gebner commented Aug 24, 2022

Mathlib (data/nat/basic):

@[simp] lemma bodd_bit1 (n) : bodd (bit1 n) = tt := bodd_bit tt n

Synport:

@[simp]
theorem bodd_bit1 (n) : bodd (bit1 n) = tt :=
  bodd_bit true n

This instance shows both tt being translated to true, as well as tt not being translated.

@gebner gebner added the bug Something isn't working label Aug 24, 2022
@gebner
Copy link
Member Author

gebner commented Aug 25, 2022

This happens because only the second tt has a resolved constant in the AST. Not sure why there is a difference between theorem statement and proof here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant