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

Example in README doesn't typecheck #57

Open
fairflow opened this issue Sep 24, 2024 · 1 comment
Open

Example in README doesn't typecheck #57

fairflow opened this issue Sep 24, 2024 · 1 comment

Comments

@fairflow
Copy link

lakefile: require Qq from git "https://github.com/leanprover-community/quote4" @ "master"
imported and opened Qq fine; simple examples work but:

def betterApp {α : Q(Sort u)} {β : Q($α → Sort v)} (f : Q((a : α) → $β a)) (a : Q($α)) : Q($β $a) := q($f $a)

error in Q((a : α) → $β a)) reported:
unsupported implicit auto-bound: α is not a level name
humble apologies if this is a simple user error!

@edegeltje
Copy link

similarly, it seems that the List ((u : Level) × (α : Q(Sort u)) × List Q(Option $α)) example doesn't work. The cause for this seems to be that Option takes a Type argument, not a Sort one.

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

2 participants