lean2/library/data/nat
Leonardo de Moura 42fbc63bb6 fix(library/tc_multigraph): avoid name collisions
@avigad, @fpvandoorn, @rlewis1988, @dselsam

I changed how transitive instances are named.
The motivation is to avoid a naming collision problem found by Daniel.
Before this commit, we were getting an error on the following file
tests/lean/run/collision_bug.lean.

Now, transitive instances contain the prefix "_trans_".
It makes it clear this is an internal definition and it should not be used
by users.

This change also demonstrates (again) how the `rewrite` tactic is
fragile. The problem is that the matching procedure used by it has
very little support for solving matching constraints that involving type
class instances. Eventually, we will need to reimplement `rewrite`
using the new unification procedure used in blast.

In the meantime, the workaround is to use `krewrite` (as usual).
2016-02-04 13:15:42 -08:00
..
examples refactor(library): remove algebra namespace 2015-12-05 23:50:01 -08:00
basic.lean feat(library/blast/forward): inst_simp should use the left-hand-side as a pattern (if none is provided by the user) 2015-12-31 20:20:39 -08:00
bigops.lean fix(library/tc_multigraph): avoid name collisions 2016-02-04 13:15:42 -08:00
bquant.lean refactor(library/init/subtype.lean): put subtype notation in the namespace 2015-12-22 16:39:13 -05:00
default.lean fix(library/data): 'choose' -> 'find' renaming problems 2015-07-25 11:25:04 -07:00
div.lean refactor(library): rename strategy "msimp" ==> "inst_simp" 2015-12-31 12:45:48 -08:00
fact.lean refactor(library): remove algebra namespace 2015-12-05 23:50:01 -08:00
find.lean refactor(library): remove algebra namespace 2015-12-05 23:50:01 -08:00
gcd.lean refactor(library): test simp and msimp in the standard library 2015-12-30 11:22:58 -08:00
nat.md fix(library/data/nat/nat.md): add 'find' to markdown file 2015-07-27 07:46:59 -07:00
order.lean feat(hott): port nat and int from the standard library 2015-12-09 12:36:11 -08:00
pairing.lean refactor(library): remove algebra namespace 2015-12-05 23:50:01 -08:00
parity.lean refactor(library): remove algebra namespace 2015-12-05 23:50:01 -08:00
power.lean fix(library/tc_multigraph): avoid name collisions 2016-02-04 13:15:42 -08:00
sqrt.lean refactor(library): remove algebra namespace 2015-12-05 23:50:01 -08:00
sub.lean feat(library/blast/forward): inst_simp should use the left-hand-side as a pattern (if none is provided by the user) 2015-12-31 20:20:39 -08:00