lean4-htt/library
Leonardo de Moura bb5ce6d04b fix(library/init/meta/interactive_base): incorrect pattern
@kha I'm trying to improve the equation compiler. I have added a
preprocessing step, and got the following wierd output when testing
tests/lean/interactive/info_goal.lean

```
> {"record":{"doc":"This tactic applies to any goal. It gives directly the exact proof\nterm of the goal. Let `T` be our goal, let `p` be a term of type `U` then\n`exact p` succeeds iff `T` and `U` are definitionally equal.","source":,"state":"⊢ ℕ → ℕ","tactic_params":["<error while executing interactive.param_desc: don't know how to pretty print lean.parser.pexpr 2>"],"text":"exact","type":"interactive.parse interactive.types.texpr → tactic unit"},"response":"ok","seq_num":4}
```

The problem seems to be the pattern
`(parser.pexpr)
which is sugar for
`(parser.pexpr std.prec.max)
and will not match `(pexpr 2)`

So, I fixed it by replacing the pattern with `(parser.pexpr %%v).
However, it is not clear to me why it was working before.
Any ideas?
2017-08-18 17:05:44 -07:00
..
data refactor(library): move lazy_list back to core library 2017-08-16 14:08:46 -07:00
init fix(library/init/meta/interactive_base): incorrect pattern 2017-08-18 17:05:44 -07:00
smt chore(library/init/meta): add to_unfold parameter to simplify, and remove redundant simp* tactics 2017-07-02 15:26:06 -07:00
system refactor(library): add has_to_string back (but it produces unquoted values) 2017-06-18 18:30:10 -07:00
tools/debugger chore(library): remove workarounds for issue #1682 2017-06-19 16:09:12 -07:00
leanpkg.path feat(leanpkg): add package manager 2017-05-01 14:11:38 -07:00
library.md chore(library/library.md): update documentation 2017-08-16 14:17:26 -07:00