lean4-htt/library/data
Leonardo de Moura 5cef84709f refactor(library): avoid auxiliary definitions such as add/mul/le/etc
See Section "Other goodies" at
https://github.com/leanprover/lean/wiki/Refactoring-structures

This commit also improves the support for projections in the
unifier/matcher.

Now, we consider the extra case-split for projections.
Given a projection `proj`, and the constraint `proj s =?= proj t`, we need to try first `s =?= t` and if it fails, then try to reduce.
This is needed in the standard library because we now have constraints such as:
```
@has_le.le ?A ?s ?a ?b  =?=  @has_le.le nat nat.has_add x y
```
If we reduce the right hand side, we get the unsolvable constraint
```
@has_le.le ?A ?s ?a ?b  =?=  nat.le x y
```
Before this change, the constraint was `@le ?A ?s ?a ?b  =?=  @le nat nat.has_add x y`, and we already perform a case-split in this case.
Moreover, projections were eagerly reduced whenever possible.
The extra case-split generates a performance problem in several tests. For example `fib 8 = 34` was timing out.
I worked around this issue by performing the case-split only when the constraint contains meta-variables.
There are also minor issues. Example. `<` is notation for `has_lt.lt`, but `>` is for `gt`.
2017-05-01 08:52:19 -07:00
..
list feat(library/data/list): cleanup proofs 2017-02-17 19:42:57 -08:00
set refactor(library): avoid auxiliary definitions such as add/mul/le/etc 2017-05-01 08:52:19 -07:00
bitvec.lean feat(library): instances are not reducible by default anymore 2017-04-26 14:10:11 -07:00
buffer.lean chore(*): remove smt2 bindings from standard libary 2017-04-23 11:32:11 -07:00
dlist.lean feat(frontends/lean): allow local decls to shadow namespaces 2017-03-29 16:09:45 -07:00
hash_map.lean feat(frontends/lean): add support for t.<id> and t.<idx> when t is a composite term 2017-03-28 17:47:49 -07:00
lazy_list.lean feat(frontends/lean): no global universes in the frontend 2017-02-08 17:23:04 -08:00
stream.lean chore(library): cleanup proofs 2017-04-25 17:23:42 -07:00
vector.lean refactor(library/data/vector): allow tail to accept empty vector. 2017-04-23 11:22:09 -07:00