Sebastian Ullrich
|
23884d2863
|
refactor(init/data/option_t): move to init/category and adapt style
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
bcbe5ec9f4
|
refactor(init/category/functor): merge has_map into functor
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
3adc5113cb
|
feat(init/category/state): make zoom work linearly
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
720e8c2640
|
doc(init/category/except): add reference to monad_except and move to end
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
da5c8e21df
|
chore(init/category/cont): move to test
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
bac0f66ca0
|
chore(init/category/combinators): remove unnecessary monad.lift{n}
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
e6f5ce1303
|
doc(init/category/reader): add docs and test
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
e044030cd2
|
doc(init/category/cont): add docs and test
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
c104d5d34b
|
doc(init/category/state): add docs and tests
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
4c877cff07
|
doc(init/category/lift): expand docs and note similarities to layers package
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
36f623af42
|
feat(init/category/reader): lift alternative through reader_t
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
1bd73f191f
|
style(init/category): consistently use Greek letters for type parameters (well, except for m)
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
c56606d06a
|
refactor(init/category/state): remove flipped state_t.run
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
10982cd94d
|
chore(init/category/lift): document monad_run
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
afe3078b4b
|
chore(init/category): final touches
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
f4c2499063
|
chore(init/category/transformers): remove now-unused monad_transformer class, rename to lift.lean
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
b5c9569d86
|
feat(init/category): add cont_t monad transformer
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
c653292422
|
feat(init/category/monad_fail): make m in fail implicit
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
ace8ef286a
|
feat(init/category): even more refactorings, simp lemmas
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
5599c9ca67
|
feat(init/category): misc enhancements from the tactic refactoring
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
4742d44a74
|
feat(init/category/state): add monad_except instance for state_t
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
b372dd94d3
|
feat(init/category/transformers): add monad_run class
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
69cfdbd290
|
refactor(init/category): make all monad transformers structures, replace monad classes with has_monad_lift_t wrappers
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
8c157eba64
|
refactor(init/category/state): replace monad_state with monad_state_lift
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
248e035402
|
fix(init/category/transformers): make has_monad_lift more universe polymorphic
|
2018-03-20 14:58:36 -07:00 |
|
Sebastian Ullrich
|
1a0363c7c2
|
feat(init/category/state): add run method, rename with_state
|
2018-03-20 14:58:36 -07:00 |
|
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 |
|
Sebastian Ullrich
|
1abf8738fc
|
feat(frontends/lean/structure_cmd): allow implicitness infer annotation and parameters in field declaration
|
2018-02-28 12:49:22 +01:00 |
|
Sebastian Ullrich
|
a4db338053
|
fix(init/category/functor): make $> actually usable
The abstraction in the previous definition prevented successful elaboration
|
2018-02-02 08:58:52 -08:00 |
|
Leonardo de Moura
|
c943576e5a
|
feat(library/init): add funext tactic
|
2017-12-04 14:54:39 -08:00 |
|
Sebastian Ullrich
|
f6b113849b
|
fix(init/category/monad): bind_pure: remove stray parameter
|
2017-11-28 17:00:22 +01:00 |
|
Leonardo de Moura
|
52d6adc19c
|
chore(library): use new structure update notation in the core lib
|
2017-11-17 16:57:54 -08:00 |
|
Mario Carneiro
|
fb2447468b
|
chore(init/category/combinators): remove monad.for
and variations, in favor of monad.map and variations
|
2017-07-26 11:52:11 +01:00 |
|
Leonardo de Moura
|
8dcccd3bfc
|
fix(frontends/lean/parser): make sure imax and max level arguments are parsed using the same precendence we use to parse application arguments
This commit addresses an issue raised by @digama0 on the Lean slack channel.
|
2017-07-07 12:43:07 -07:00 |
|
Sebastian Ullrich
|
f024ccd75d
|
refactor(frontends/lean/token_table,library): take ~> assume
|
2017-07-05 11:20:10 -07:00 |
|
Sebastian Ullrich
|
0a48809469
|
refactor(frontends/lean/tactic_notation): rename note/define tactics to have/let
|
2017-06-22 08:03:23 -07:00 |
|