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

Clarity for Tactic chapter #61

Open
winston-h-zhang opened this issue Jul 10, 2022 · 0 comments
Open

Clarity for Tactic chapter #61

winston-h-zhang opened this issue Jul 10, 2022 · 0 comments

Comments

@winston-h-zhang
Copy link

Note: I'm raising this issue mostly for bookkeeping purposes -- if someone wants to address them please feel free to! (Anyways, I'm probably going to come back and add these in myself sometime in the future)

  1. Make clear goalDecl.type and Lean.Meta.getMVarType goal are the same -- possible confusion from two options.

  2. Similarly, what is the difference between Lean.Meta.inferType declExpr and decl.type?

  3. Also this

syntax "custom_tactic" : tactic
macro_rules
| `(tactic| custom_tactic) => `(tactic| rfl)
macro_rules
| `(tactic| custom_tactic) => `(tactic| apply And.intro <;> custom_tactic)

has and-then failure behavior; if the first rule fails then the second is applied. However, this

syntax "custom_tactic" : tactic
macro_rules
| `(tactic| custom_tactic) => `(tactic| rfl)
| `(tactic| custom_tactic) => `(tactic| apply And.intro <;> custom_tactic)

does not work. This could be pointed out in the text.

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