Commit graph

29801 commits

Author SHA1 Message Date
Leonardo de Moura
85486ad82e refactor(library/init/core): define nat.add using equations
Several tests had to be patched. The new ouput is bad in several cases.
Future commits will fix that.
2016-10-11 14:10:49 -07:00
Leonardo de Moura
f2a610ab52 fix(library/type_context): bug at is_def_eq_args
The method would produce incorrect result for dependent functions whose
arity depends on the arguments provided (e.g., recursors).
2016-10-10 14:07:54 -07:00
Leonardo de Moura
65e040ac38 fix(library/type_context): bug at scope life-cycle 2016-10-10 11:53:42 -07:00
Leonardo de Moura
a737ecfc78 fix(library/eqn_lemmas): typo 2016-10-09 19:27:30 -07:00
Leonardo de Moura
50aca35ce3 fix(frontends/lean/definition_cmds): do not generate code for examples 2016-10-09 19:27:07 -07:00
Leonardo de Moura
ebd912d243 feat(library/eqn_lemmas): add map function name => equational lemmas 2016-10-09 11:48:55 -07:00
Leonardo de Moura
e8497f3b7e fix(frontends/lean/definition_cmds): typo 2016-10-09 11:42:30 -07:00
Leonardo de Moura
231c124be8 feat(library/init/meta): rename dsimp => rsimp, and add primitive tactic that takes an arbitrary simp_lemmas 2016-10-09 10:02:26 -07:00
Leonardo de Moura
a78e8fb11a refactor(library/tactic/simp_lemmas_tactics): consistent naming 2016-10-09 09:37:20 -07:00
Leonardo de Moura
df9a93c44d refactor(library/tactic/simp_lemmas_tactics): rename function 2016-10-09 09:00:15 -07:00
Gabriel Ebner
37b998ff1e feat(frontends/lean,library/flycheck): redirect all diagnostic output from commands to flycheck 2016-10-08 22:23:53 -07:00
Daniel Selsam
7cdec2c8f3 chore(frontents/lean/definition_cmds): improve error message 2016-10-08 22:22:23 -07:00
Daniel Selsam
1644e52c47 fix(frontends/lean/decl_cmds): allow noncomputable meta 2016-10-08 22:21:56 -07:00
Leonardo de Moura
476684a284 refactor(library,library/tactic/defeq_simplifier): use simp_lemmas in the defeq_simplifier 2016-10-08 22:15:27 -07:00
Leonardo de Moura
a796bda14e refactor(library/tactic): use new simp_lemmas module in the simplifier 2016-10-08 21:54:34 -07:00
Leonardo de Moura
86b0c53c14 refactor(library/simp_lemmas): new simp_lemmas module that combines rfl_lemmas and simplifier/simp_lemmas 2016-10-08 20:57:08 -07:00
Leonardo de Moura
5e1bb3dbdd refactor(library/rfl_lemmas): avoid tmp_type_context 2016-10-08 10:45:47 -07:00
Leonardo de Moura
84f55bb736 fix(library/inverse): m_inv_arity was not being stored in the .olean file 2016-10-07 17:08:56 -07:00
Leonardo de Moura
d44b5c749b feat(library): add discrimination trees 2016-10-07 17:07:31 -07:00
Leonardo de Moura
eaef8dae20 chore(library/init/core): remove unnecessary annotations 2016-10-07 16:09:14 -07:00
Leonardo de Moura
7336c4dade chore(library/init/core): use equations 2016-10-07 14:58:17 -07:00
Leonardo de Moura
39a1ec9e08 chore(library/init/bool): add xor for Booleans 2016-10-07 14:21:11 -07:00
Leonardo de Moura
7e62a8e4c7 chore(library/init/function): cleanup 2016-10-07 14:09:52 -07:00
Leonardo de Moura
77d899eca6 chore(emacs/lean-mode): disable minor mode 2016-10-07 13:14:30 -07:00
Leonardo de Moura
61d68f4abf feat(library/type_context): solve ?m s =?= ?m t by first-order unification in approximate mode 2016-10-07 12:06:22 -07:00
Leonardo de Moura
224d78e98c feat(library/type_context): improve precision 2016-10-07 12:01:12 -07:00
Leonardo de Moura
cc3150ea79 fix(frontends/lean/definition_cmds): make sure theorem/lemma type does not contain metavariables before we try to elaborate its proof 2016-10-07 11:10:01 -07:00
Gabriel Ebner
7f203a3def fix(library/vm/vm_declaration): fix typo in instantiate_value_univ_params 2016-10-06 21:34:00 -07:00
Leonardo de Moura
531a437d1f chore(library/tactic/simplifier): remove dead code 2016-10-06 20:56:30 -07:00
Leonardo de Moura
3fbdb71f3e feat(library/tactic/simplifier): remove simp_extensions 2016-10-06 20:50:23 -07:00
Leonardo de Moura
d747fcb17c refactor(library/tactic/simp_lemmas): new caching mechanism 2016-10-06 20:20:01 -07:00
Leonardo de Moura
1e93c2c235 refactor(library/rfl_lemmas): simplify 2016-10-06 16:49:20 -07:00
Leonardo de Moura
0d74ad97a7 chore(library/init): definition => def 2016-10-06 16:04:12 -07:00
Leonardo de Moura
e473d7cefc feat(frontends/lean/definition_cmds): make sure copied lemma is a rfl lemma if source is a rfl lemma
The idea is to allow the defeq simplifier to use the copied lemma.
2016-10-06 15:49:38 -07:00
Leonardo de Moura
c745519e50 feat(frontends/lean/definition_cmds): generate equation lemmas for top-level definitions 2016-10-06 15:30:43 -07:00
Leonardo de Moura
fd3158d37d chore(tests/lean/induction_tac1): adjust output 2016-10-05 22:01:16 -07:00
Leonardo de Moura
bf0f24e22d feat(src/library/defeq_canonizer): improve cache 2016-10-05 22:00:23 -07:00
Leonardo de Moura
91076b06ad feat(library/init/meta/converter): add 'find_pattern' conversional 2016-10-05 19:22:17 -07:00
Leonardo de Moura
895a94d17e feat(library/init/meta/converter): match based conversions 2016-10-05 18:54:11 -07:00
Leonardo de Moura
1b628930ba feat(kernel/inductive): v_idx ==> ih_idx 2016-10-05 17:13:52 -07:00
Leonardo de Moura
68df31df67 feat(library/init/meta/converter): add adapter for applying propext automatically 2016-10-05 17:13:28 -07:00
zjhmale
9c23a3ded3 doc(make): change g++-4.9 to g++
now if use g++4.9 as compiler flag on OSX, it will produce error message
that

```
CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_CXX_COMPILER:

    g++-4.9

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting
  either the environment variable "CXX" or the CMake cache entry
  CMAKE_CXX_COMPILER to the full path to the compiler, or to the
  compiler name if it is in the PATH.
```
2016-10-05 15:38:22 -07:00
Gabriel Ebner
996b4375a9 feat(library/flycheck,frontends/lean/elaborator): show trace messages in flycheck 2016-10-05 15:20:00 -07:00
Gabriel Ebner
6883720cc7 fix(library/init/meta/expr): consistently compare expressions 2016-10-05 15:17:02 -07:00
Daniel Selsam
480b31e172 chore(inductive_compiler/mutual): remove outdated comment 2016-10-05 15:10:22 -07:00
Daniel Selsam
6b8583ecac chore(inductive_compiler/mutual): better error message for non-positive occurrences 2016-10-05 15:10:21 -07:00
Daniel Selsam
3d2ff8a76d chore(frontends/lean/inductive_cmd): readable name for ind result level placeholder 2016-10-05 15:10:21 -07:00
Daniel Selsam
03ed74fea1 fix(inductive_compiler): generate has_sizeof for structures 2016-10-05 15:10:21 -07:00
Leonardo de Moura
1e325c11a1 feat(library/standard): add system.IO 2016-10-05 15:05:22 -07:00
Leonardo de Moura
990c414b86 feat(library/init/meta/converter): add 'congr' and 'depthfirst' conversionals 2016-10-05 15:05:22 -07:00