Soonho Kong
|
07e188acdb
|
feat(emacs/README.md): add instr. for MELPA; add whitespace-cleanup-mode
|
2014-08-07 11:59:59 -07:00 |
|
Soonho Kong
|
a2867b3d06
|
feat(emacs/README.md): add README.md
|
2014-08-07 09:59:15 -07:00 |
|
Soonho Kong
|
f523c25c52
|
feat(emacs/lean-mode.el): use whitespace-cleanup-mode to fci-mode
|
2014-08-07 09:59:15 -07:00 |
|
Soonho Kong
|
f9f8c09143
|
refactor(emacs/lean-mode.el): clean up, add license
|
2014-08-07 09:59:15 -07:00 |
|
Soonho Kong
|
61f3897b0d
|
feat(emacs/lean-util.el): add lean-util.el
|
2014-08-07 09:59:15 -07:00 |
|
Soonho Kong
|
164eab5574
|
feat(emacs/lean-settings.el): add customization-settings file
|
2014-08-07 09:59:15 -07:00 |
|
Soonho Kong
|
977ccc4631
|
feat(emacs/lean-flycheck.el): add lean-flycheck.el
|
2014-08-07 09:59:15 -07:00 |
|
Leonardo de Moura
|
9a6df02683
|
fix(util/name): avoid assertion violation when reading numeric names
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-07 08:32:43 -07:00 |
|
Leonardo de Moura
|
6d6c62461f
|
chore(library/kernel_serializer): add assertions for invalid uses of anonymous names
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-07 08:32:32 -07:00 |
|
Leonardo de Moura
|
955d7d2659
|
fix(library/aliases): namespace and constant have the same name, and 'using' produces the 'empty' alias
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-07 08:32:21 -07:00 |
|
Leonardo de Moura
|
4ad7e709aa
|
feat(frontends/lean): default for inductive types, closes #32
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-07 07:52:37 -07:00 |
|
Leonardo de Moura
|
b56233cbe3
|
fix(frontends/lean): make sure typing information is sorted, make sure the error messages contains line file name
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 23:15:05 -07:00 |
|
Leonardo de Moura
|
c6f3232f81
|
feat(frontends/lean): provide 'partial' type information even when there are type errors
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 21:56:57 -07:00 |
|
Leonardo de Moura
|
1cbf40a5d2
|
fix(frontends/lean): remove duplicate info entries, fix bug in save_overload
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 21:23:37 -07:00 |
|
Leonardo de Moura
|
0af4a67881
|
feat(frontends/lean): save type information after elaboration, remove --flyinfo option
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 19:35:26 -07:00 |
|
Leonardo de Moura
|
0276f4c1c0
|
feat(frontends/lean): store 'overload' information, remove #setline
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 19:13:09 -07:00 |
|
Leonardo de Moura
|
1ba9a92df2
|
feat(frontends/lean/parser): save snapshots
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 18:31:53 -07:00 |
|
Leonardo de Moura
|
9b765a2a06
|
chore(frontends/lean): fix style
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 18:10:33 -07:00 |
|
Leonardo de Moura
|
1a725574b1
|
refactor(frontends/lean): add 'server' module as a replacement for 'interactive'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 18:07:04 -07:00 |
|
Leonardo de Moura
|
2c3737bcc6
|
feat(frontends/lean): add info_manager
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-06 15:25:28 -07:00 |
|
Leonardo de Moura
|
da616f69ea
|
perf(library/unifier): do not explore branches that will trigger type errors
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-05 20:16:16 -07:00 |
|
Leonardo de Moura
|
bbc4380a52
|
fix(library/unifier): bug exposed by recent changes
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-05 19:02:30 -07:00 |
|
Leonardo de Moura
|
069f217215
|
fix(frontends/lean/elaborator): use full local context for metavariables due to coercions and overloads
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-05 17:21:21 -07:00 |
|
Leonardo de Moura
|
d14cbfd7e9
|
refactor(frontends/lean/elaborator): local context
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-05 16:25:54 -07:00 |
|
Leonardo de Moura
|
9cc2015caa
|
feat(library/unifier): better error message for invalid local context
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-05 16:25:22 -07:00 |
|
Leonardo de Moura
|
d1924097d5
|
feat(library/match): add 'local' backtracking
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-05 10:09:00 -07:00 |
|
Leonardo de Moura
|
e6ffda0c51
|
feat(library/match): add basic match_plugin that just invokes whnf before failing
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-05 08:37:03 -07:00 |
|
Leonardo de Moura
|
56d151ef7f
|
feat(frontends/lean): 'partial' aliases. closes #24
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 22:08:10 -07:00 |
|
Leonardo de Moura
|
f4031b620f
|
feat(library/match): extend match_plugin interface, and allow them to recursively invoke the matcher
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 18:30:30 -07:00 |
|
Leonardo de Moura
|
c34c2f4f5c
|
feat(library/match): match universe levels
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 18:30:30 -07:00 |
|
Leonardo de Moura
|
b0a5ff7f93
|
refactor(library): rename hop_match to match
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 18:30:30 -07:00 |
|
Leonardo de Moura
|
0d5e346143
|
fix(library/expr_lt): make sure the builtin order is AC-compatible
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 15:51:10 -07:00 |
|
Leonardo de Moura
|
b9fadeb86e
|
fix(util/realpath): realpath on cygwin
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 15:06:08 -07:00 |
|
Leonardo de Moura
|
5755ce4bfc
|
fix(util/lean_path): use unix style paths when using cygwin
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 14:45:23 -07:00 |
|
Leonardo de Moura
|
53c7124c2b
|
fix(util/realpath): rename realpath to lrealpath
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 14:42:44 -07:00 |
|
Leonardo de Moura
|
bc4cef9ecb
|
feat(build): clean-olean target deletes .olean and .d files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 14:01:13 -07:00 |
|
Leonardo de Moura
|
59f6cb5962
|
fix(build): delete incorrect/old .d and .olean files, detect errors when generating .d files.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 13:58:48 -07:00 |
|
Leonardo de Moura
|
d5bb7d45ec
|
fix(library/unifier): constraint priority in the unifier, and remove hack from if.lean
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-04 13:58:47 -07:00 |
|
Leonardo de Moura
|
552be37d48
|
feat(library/hop_match): port higher-order (pattern) matcher to Lean 0.2, we still have to implement support for universe levels
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-03 16:03:58 -07:00 |
|
Leonardo de Moura
|
2dca68e645
|
chore(util/list): add inline functions for commonly used patterns in list processing code
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-03 13:51:38 -07:00 |
|
Leonardo de Moura
|
5611c6a0a0
|
chore(util/lean_path): workaround 'spurious' warning produced by g++ in release mode
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-03 13:28:05 -07:00 |
|
Leonardo de Moura
|
50b0c17092
|
feat(library/unifier): add more information in error messages due to type errors when assigning metavariables
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-03 09:49:30 -07:00 |
|
Leonardo de Moura
|
bae9700260
|
fix(frontends/lean/dependencies): take relative paths into account when computing dependencies
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 20:03:51 -07:00 |
|
Leonardo de Moura
|
4b030c5d5f
|
feat(library/module): relative module path
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 19:47:55 -07:00 |
|
Leonardo de Moura
|
8768197c24
|
feat(util/lean_path): add dirname and path_append aux functions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 18:12:28 -07:00 |
|
Leonardo de Moura
|
8c37a95164
|
fix(frontends/lean/scanner): typo reported by clang++
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 15:24:04 -07:00 |
|
Leonardo de Moura
|
249c878597
|
fix(frontends/lean/elaborator): warning message
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 15:21:23 -07:00 |
|
Leonardo de Moura
|
fbc4a7af3b
|
feat(library/unifier): when unifier.expensive == true, then use only restrict higher-order unification (a fragment slightly more general than higher-order pattern matching) for solving class-instance constraints
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 14:30:25 -07:00 |
|
Leonardo de Moura
|
5e2185cfbe
|
feat(library/unifier): postpone as much as possible universe constraints of the form ?m1 =?= max(l1, l2) and ?m1 =?= imax(l1, l2) where ?m1 occurs in the right hand side. When there is nothing else to be done, try to solve them by reducing to ?m1 = l1 and ?m1 = l2.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 09:14:35 -07:00 |
|
Leonardo de Moura
|
a62e6f84e3
|
feat(frontends/lean/scanner): allow letter-like unicode characters and sub/super-scripts in identifiers
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 00:47:58 -07:00 |
|
Leonardo de Moura
|
52e3505599
|
feat(frontends/lean): display warning message when importing file that uses 'sorry'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-02 00:47:58 -07:00 |
|
Leonardo de Moura
|
53833c70e9
|
fix(library/coercion): spurious 'replacing coercion', fixes #22
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 21:45:37 -07:00 |
|
Leonardo de Moura
|
428d5cfb99
|
chore(util/sexpr/options): typos
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 21:20:01 -07:00 |
|
Leonardo de Moura
|
0465c6ef53
|
fix(frontends/lean): flyinfo for identifiers defined in sections
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 21:15:02 -07:00 |
|
Leonardo de Moura
|
3795d466c1
|
fix(frontends/lean/elaborator): provide type information for expressions using '@' operator, and strict function applications
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 20:57:24 -07:00 |
|
Leonardo de Moura
|
0c9317b167
|
feat(frontends/lean/elaborator): add flyinfo for placeholders
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 20:25:06 -07:00 |
|
Leonardo de Moura
|
8bd36dabce
|
refactor(kernel/pos_info_provider): get_pos_info return none if position is not available
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 20:17:26 -07:00 |
|
Leonardo de Moura
|
df57043861
|
fix(frontends/lean/scanner): decode utf8
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 19:58:02 -07:00 |
|
Leonardo de Moura
|
4b604521a0
|
fix(frontends/lean): add hack for flycheck
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 16:26:04 -07:00 |
|
Leonardo de Moura
|
288831dc66
|
fix(kernel/formatter): fixes #21
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 15:07:01 -07:00 |
|
Leonardo de Moura
|
bd766d8b0e
|
fix(frontends/lean/elaborator): remove duplicate entries in flyinfo data
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 14:40:26 -07:00 |
|
Leonardo de Moura
|
4cb8fb20fe
|
fix(frontends/lean/elaborator): bug when mixing string and non-strict implict arguments
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 10:58:20 -07:00 |
|
Leonardo de Moura
|
d27c85e30c
|
fix(library/Makefile.common): avoid error message when .d files do not exist
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-08-01 10:11:01 -07:00 |
|
Leonardo de Moura
|
466dd11d1b
|
fix(frontends/lean/dependencies): warning message
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 19:59:05 -07:00 |
|
Leonardo de Moura
|
f39b2eb70f
|
feat(frontends/lean): add --flyinfo option
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 19:54:21 -07:00 |
|
Leonardo de Moura
|
c01b4bd636
|
fix(frontends/lean/parser): generate flycheck-friendly import error
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 19:03:54 -07:00 |
|
Leonardo de Moura
|
6ca80b5000
|
feat(frontends/lean): add 'sorry'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 18:35:57 -07:00 |
|
Leonardo de Moura
|
9cf93c8299
|
feat(library/error_handling): add helpers classes for creating WARNING and INFO annotations for flycheck
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 17:41:39 -07:00 |
|
Leonardo de Moura
|
d5d2c1d069
|
fix(emacs): syntax highlight issues reported by Jeremy
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 16:49:19 -07:00 |
|
Leonardo de Moura
|
ba98634a7a
|
feat(frontends/lean/pp): do not display metavariable arguments by default, add option pp.metavar_args to control whether they are displayed or not
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 16:46:16 -07:00 |
|
Leonardo de Moura
|
de05c041c7
|
feat(library/unifier): add flag for enabling/disabling expensive extensions in the unifier
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 16:46:16 -07:00 |
|
Leonardo de Moura
|
f57fc33442
|
fix(library/unifier): bug that was making unifier miss solutions, and add a new case-split that tries to solve flex_rigid constraints by putting the rhs into whnf
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 16:46:16 -07:00 |
|
Soonho Kong
|
9dfa1b6c1d
|
chore(CMakeLists.txt): replace "lib1;lib2" with "lib1" "lib2"
|
2014-07-31 14:31:19 -07:00 |
|
Soonho Kong
|
b4c2234e10
|
chore(shell/CMakeLists.txt): put EXECUTABLE_SUFFIX to lean
|
2014-07-31 14:11:59 -07:00 |
|
Leonardo de Moura
|
92e90fbd07
|
feat(library/error_handling): add flycheck_scope helper class
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 12:45:54 -07:00 |
|
Leonardo de Moura
|
1a8a2b0811
|
refactor(library/unifier): process_flex_rigid method before adding yet another case split
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 12:25:35 -07:00 |
|
Leonardo de Moura
|
8e222e6244
|
fix(kernel/converter): missing constraints
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-31 12:25:35 -07:00 |
|
Soonho Kong
|
14a406d4d7
|
feat: add "--flycheck" option to print out error msgs for flycheck
|
2014-07-31 11:18:51 -07:00 |
|
Soonho Kong
|
82afcfac9c
|
fix(frontends/lean/parser.cpp): fix typo
|
2014-07-31 10:15:45 -07:00 |
|
Leonardo de Moura
|
8834563a7f
|
feat(build): add 'clean-olean' custom-target
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-30 15:12:37 -07:00 |
|
Leonardo de Moura
|
1d62a614e7
|
fix(frontends/lean): remove keywords 'class' and '[class]'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-30 15:05:44 -07:00 |
|
Leonardo de Moura
|
9637ceb86e
|
feat(frontends/lean): allow user to provide a terminator for 'foldr' and 'foldl'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-30 15:04:44 -07:00 |
|
Leonardo de Moura
|
5238da9ac7
|
refactor(frontends/lean): rename action::is_compatible to action::is_equal
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-30 12:37:35 -07:00 |
|
Leonardo de Moura
|
450131692a
|
fix(library/converter): missing constraint on eta expansion
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-30 10:43:47 -07:00 |
|
Leonardo de Moura
|
b4700e4eed
|
chore(build): eliminate artificial dependencies
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 18:25:57 -07:00 |
|
Leonardo de Moura
|
936bb2744b
|
fix(library/unifier): add a flag to sign that a choice constraint owns a metavariable ?m, that is, it has the right to assign ?m, and the unifier should postpone any other constraint that tries to assign ?m
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 17:32:55 -07:00 |
|
Leonardo de Moura
|
6e135832d8
|
feat(frontends/lean/pp): pretty print '@' explict operator
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 14:26:27 -07:00 |
|
Leonardo de Moura
|
320bc55e85
|
fix(frontends/lean/elaborator): use preprocessed expression when displaying errors
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 14:25:50 -07:00 |
|
Leonardo de Moura
|
634363c5ec
|
fix(frontends/lean/dependencies): dependency generation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 14:13:31 -07:00 |
|
Leonardo de Moura
|
b15f1bb8c7
|
fix(frontends/lean/elaborator): apply coercions in definitions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 13:55:39 -07:00 |
|
Leonardo de Moura
|
501cae37e5
|
fix(frontends/lean/parser): bug in check_constant_next (when invoked inside of a section)
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 13:04:58 -07:00 |
|
Leonardo de Moura
|
c0039735f4
|
feat(emacs): add shortcut for using --hott option
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 10:57:52 -07:00 |
|
Leonardo de Moura
|
793b2817ec
|
fix(util/lean_path): clear g_lean_path_vector before (re-)initializing it
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 10:57:20 -07:00 |
|
Leonardo de Moura
|
8278700b47
|
feat(build): copy lean executable to bin directory
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 10:25:55 -07:00 |
|
Leonardo de Moura
|
f8eba36b0a
|
fix(build): set LEAN_PATH before make standard and hott libraries
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 10:06:39 -07:00 |
|
Leonardo de Moura
|
7df78ea503
|
feat(kernel): add combinator for combining normalizer_extensions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-29 10:00:40 -07:00 |
|
Leonardo de Moura
|
33c77afc29
|
feat(frontends/lean/structure): add 'structure' command skeleton
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-28 19:59:38 -07:00 |
|
Leonardo de Moura
|
105c29b51e
|
refactor(library/standard): use new coding style, rename bool.b0 and bool.b1 to bool.ff and bool.tt
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-28 19:59:38 -07:00 |
|
Leonardo de Moura
|
2b4bd66081
|
feat(build): generate tests for all code blocks in org-files, and examples at ./examples/standard
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-28 12:06:11 -07:00 |
|
Leonardo de Moura
|
5f360cd8ec
|
feat(kernel/error_msgs): improve application type mismatch error messages
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2014-07-28 07:08:12 -07:00 |
|