Sebastian Ullrich
c36393066e
feat(init/category): introduce monad_functor and implement it for reader, state, and except
2018-03-20 14:58:36 -07:00
Sebastian Ullrich
7565ce380f
feat(init/category): some helper functions
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
e24b364d0e
refactor(init/category/state): change monad_state.state to monad_state.embed taking state
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
788e8695eb
refactor(init/category/state): replace modify/put (returning unit) with modify'/put' (returning punit)
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
7f0b3b7628
feat(init/category): add monad_reader, reader, reader_t
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
d7c6bb4b99
feat(init/category/except): monad_except class
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
0ab672e304
feat(init/category): except_t monad transformer
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
b28a0392f7
feat(frontends/lean/structure_cmd): allow implicitness infer annotation and parameters in field declaration
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
940aca1ec3
refactor(init/category/lawful): unbundle lawful classes
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
e9b2d1fdc8
refactor(init/category/state): remove dependency on tactic framework
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
159b45c74f
refactor(init/category/state): introduce monad_state
...
* rename `read/write` to `get/put`, as in Haskell
* define `state` as `state_t id`
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
c799a52411
feat(init/category/id): id is a monad
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
8e2e101e0b
refactor(init/category/lawful): prove seq_assoc by normalization to bind
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
1c6861528b
refactor(init/category): move monad laws into separate type classes defined after the tactic framework
2018-03-20 14:58:35 -07:00
Sebastian Ullrich
63382cf7e3
chore(init/category/transformers): move monad_transformer, monad_lift out of monad namespace, make universe polymorphic
2018-03-20 14:58:35 -07:00
Leonardo de Moura
c17e5b913b
doc(tmp/lean4): expand explicit reference counter section
2018-03-19 21:42:16 -07:00
Leonardo de Moura
f81f0452ee
doc(tmp/lean4): explicit reference counting
2018-03-19 19:18:02 -07:00
Leonardo de Moura
ae60d2bf48
doc(tmp/lean4): add SSA/SIL remark
2018-03-19 18:42:34 -07:00
Leonardo de Moura
78accd059c
doc(tmp/lean4): object memory layout
2018-03-19 18:33:35 -07:00
Leonardo de Moura
e7760eaa0b
doc(tmp/lean4): expr, level, name, ... in Lean
2018-03-19 17:39:46 -07:00
Leonardo de Moura
785466507a
doc(tmp/lean4): document the inline issue
2018-03-19 17:26:31 -07:00
Leonardo de Moura
d52b5a9f4f
doc(tmp/lean4): update notes
2018-03-19 17:21:11 -07:00
Sebastian Ullrich
07bb7d809b
chore(.travis.yml): increase travis_wait timeout
...
By default, `travis_wait` kills the process after 20 minutes, so this could make test runs fail that actually would have succeeded before the change. Increase to maximum job runtime of 60 minutes.
2018-03-13 17:17:55 +01:00
Leonardo de Moura
16f28315ee
doc(lean4): design notes
...
@kha I added some notes for the Lean4 branch. It is very unpolished.
2018-03-09 17:48:00 -08:00
Sebastian Ullrich
29d1911f50
chore(.appveyor.yml,src/CMakeLists): make cxx and linker flags configurable and use them to disable slow LTO on AppVeyor
2018-03-08 10:30:58 -08:00
Sebastian Ullrich
340e056dee
chore(shell/CMakeLists): copy mpir.dll when building with MSVC
...
Also simplify code a bit
2018-03-08 10:30:47 -08:00
Sebastian Ullrich
854475808d
chore(shell/CMakeLists): make bin/lean a proper target
...
This ensures that it will be re-copied when removed, which is a quick way of
switching between debug and release builds.
2018-03-08 10:30:38 -08:00
Sebastian Ullrich
94b45cf48a
chore(.appveyor.yml): support MSVC
2018-03-08 10:30:28 -08:00
Sebastian Ullrich
7c8f884699
chore(README,doc/faq): The Gitter chat room has been migrated to Zulip
2018-03-08 10:06:37 -08:00
Sebastian Ullrich
fbe6b70295
perf(library/module_mgr): fix module_info reference cycle
2018-03-08 10:06:20 -08:00
Sebastian Ullrich
191d1e7321
chore(shell/server): sync_output command for debugging
2018-03-08 10:06:09 -08:00
Leonardo de Moura
2e66449feb
fix(library/tactic/tactic_state): build
2018-03-08 09:58:07 -08:00
Leonardo de Moura
169cd87dbe
feat(library/system/io): add io.run_tactic
...
@nunoplopes @aqjune
I had to add a new primitive to allow you to execute a tactic from the
`main` function. The `main` function is in the `io` monad. The new
primitive has type:
```
meta constant io.run_tactic {α : Type} (a : tactic α) : io α
```
I also added a new test that shows how to use it.
The test displays all declarations that have the `nat` prefix.
cc @kha
2018-03-07 12:15:26 -08:00
Leonardo de Moura
832d2358f1
test(tests/lean/run/1942): closes #1942
...
It seems the assertion violation has been fixed by recent changes.
2018-03-06 17:43:08 -08:00
Leonardo de Moura
2889482fe9
fix(library/init/meta/interactive): fixes #1943
2018-03-06 17:36:18 -08:00
Nuno Lopes
9152aaa7d6
fix(bit_tricks): make sure no one calls math.h's log2()
...
this fixes the bit_trick test with MSVC
2018-03-06 11:21:28 -08:00
Leonardo de Moura
d569533bf5
chore(tests/lean/try_for_heap): disable expensive test
2018-03-05 17:55:01 -08:00
Leonardo de Moura
0492f254b7
chore(library/data/dlist): remove rsimp dependency
...
Reason: `rsimp` is based on the smt framework. The smt framework
has to be reimplemented. Moreover, the smt framework is currently
not using the new cache infrastructure and we pay a substantial
performance penalty.
2018-03-05 17:09:08 -08:00
Leonardo de Moura
3e81f88887
feat(library): implement new cache API for fun_info
2018-03-05 15:46:42 -08:00
Leonardo de Moura
eddc64d154
chore(library/abstract_context_cache): remove unnecessary argument
2018-03-05 14:40:47 -08:00
Leonardo de Moura
a5ace58fb3
feat(library): add elab_context
2018-03-05 13:11:55 -08:00
Leonardo de Moura
bdea7d420d
chore(*): type_context ==> type_context_old
2018-03-05 12:38:24 -08:00
Leonardo de Moura
f873def910
refactor(library/type_context): move unification_hints to cache object
2018-03-05 12:17:09 -08:00
Sebastian Ullrich
d6d44a1994
fix(frontends/lean/pp): fix #1922
...
Fixes #1922
2018-03-02 13:02:48 -08:00
Sebastian Ullrich
f487989470
feat(init/core): add infer_instance
2018-03-01 16:09:10 +01:00
Sebastian Ullrich
3d63169b44
feat(init): some simp lemmas
2018-03-01 16:07:52 +01:00
Sebastian Ullrich
48147646bc
refactor(library): mk_result/get_result_* ~> mk_success/get_success_*
2018-03-01 14:56:01 +01:00
Sebastian Ullrich
e1fc2bdbea
refactor(library): encapsulate tactic's Lean implementation better
2018-03-01 14:56:01 +01:00
Nuno Lopes
39270fd46f
fix(tactic): build on MSVC
2018-02-28 10:38:50 -08:00
Sebastian Ullrich
f72a700e34
fix(frontends/lean/decl_cmds): attribute cmd: save info for first ident
2018-02-28 17:42:19 +01:00