lean4-htt/library/init
Leonardo de Moura fdadada3a9 fix(frontends/lean): fixes #1468
@kha I had to add yet another hack to fix this issue.

In notation declarations, names are resolved at notation declaration time.
So, users do not expect them to be resolved again at tactic execution time.

I addressed this problem by wrapping constants occurring in notation
declarations with a "frozen_name" annotation. This transformation is
only performed if m_in_quote is true.
Then resolve_names_fn at elaborator.cpp will not try to resolve the
names again.

This change broke two other modules. `-` notation for inverting
equations at `rw`, and `calc` expressions inside quotes.
The broke for the same reason. They were not expecting the constants
to be wrapped with an annotation.
2017-03-18 13:48:21 -07:00
..
algebra feat(lib/init/data/nat): add function pow and a Galois connection between div and mul 2017-03-12 09:38:19 -07:00
category refactor(library,library): rename pre_monad to has_bind 2017-03-09 20:32:25 -08:00
data feat(library/init/data/list/instances): prove decidability of bounded quantification 2017-03-17 18:03:26 -07:00
meta fix(frontends/lean): fixes #1468 2017-03-18 13:48:21 -07:00
native feat(inductive_compiler): generate injectivity lemmas 2017-03-10 22:27:18 -08:00
.gdb_history chore(library, tests): switch to new attribute declaration syntax 2016-08-12 15:36:12 -07:00
cc_lemmas.lean feat(frontends/lean): no global universes in the frontend 2017-02-08 17:23:04 -08:00
classical.lean refactor(library/init/data/subtype/basic): rename subtype constructor and projections 2017-03-08 19:31:27 -08:00
coe.lean refactor(library/init/data/subtype/basic): rename subtype constructor and projections 2017-03-08 19:31:27 -08:00
core.lean feat(library/init): add unification hint for add/succ 2017-03-12 13:45:30 -07:00
default.lean refactor(library/tactic/user_attribute): use attribute for registering attributes. naturally. 2017-03-15 14:06:34 -07:00
function.lean chore(library/init): remove reducible annotations for id, const, etc, and move $ notation to core.lean 2017-03-11 11:34:16 -08:00
funext.lean chore(library/init/data/quot): use Sort instead of Type 2017-03-07 14:29:57 -08:00
init.md chore(*.md): fix/remove broken links 2016-02-23 10:11:24 -08:00
logic.lean chore(library/init): remove reducible annotations for id, const, etc, and move $ notation to core.lean 2017-03-11 11:34:16 -08:00
propext.lean feat(frontends/lean): no global universes in the frontend 2017-02-08 17:23:04 -08:00
relator.lean feat(library/data/dlist): setup transfer for dlist 2017-03-07 19:30:51 -08:00
util.lean refactor(library/init): provide more general try_for, and implement tactic.try_for using it 2017-02-12 12:15:19 -08:00
wf.lean feat(library): do not generate C.destruct (for structures), and C.induction_on (for structures and inductive datatypes) 2017-03-15 14:45:13 -07:00