aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-07Extraction: fix complexity issue #5310Pierre Letouzey
A double call to pp_module_type inside Ocaml.pp_specif was causing an complexity blowup when pretty-printing heavily modular extracted code. I wasn't able to figure out why this double call is there. It could be the leftover of some intermediate work in 2007 before commit 350398eae (which introduced global printing phases Pre/Impl/Intf). Anyway I'm reasonably sure that today these two pp_module_type calls produce the exact same pretty-printed signature (even if there's a large bunch of imperative states around). Moreover, this duplicated signature is actually slightly wrong: when we alias a module M with a unambiguous name like Coq__123, the type of Coq__123 should not be an exact copy of the type of M, but rather a "strengthened" version of it (with equality between inductive types). So the best solution is now to use this funny feature of OCaml introduced in 3.12 : module Coq__123 : module type of struct include M end This "module type of struct include" is slightly awkward, but short, correct, and trivial to produce :-). And I doubt anybody will object to the (rare) use of some 3.12 features in extracted code of 2017...
2017-02-06fix Emacs compiler warning on '(lambda...)Hendrik Tews
lambda is self-quoting, see elisp manual, section 12.7 Anonymous Functions
2017-02-02Fixing an anomaly with 'pat after cofix.Hugo Herbelin
2017-02-01Merge branch 'v8.5' into v8.6Pierre-Marie Pédrot
2017-01-31Fixing #5311 (anomaly on unexpected intro pattern).Hugo Herbelin
This was introduced in 8.5 while reorganizing the structure of intro-patterns.
2017-01-30Merge PR#408: [native comp] Improve error message on linking error.Maxime Dénès
2017-01-30Fix a typo in STM universe communications.Maxime Dénès
2017-01-28Fix bug #5262: Error should tell me which name is duplicated.Pierre-Marie Pédrot
2017-01-27Fix documentation typos.Guillaume Melquiond
2017-01-26[native comp] Improve error message on linking error.Emilio Jesus Gallego Arias
The native compiler doesn't support `Require` inside `Module` sections in some cases, we improve the error message. See: https://coq.inria.fr/bugs/show_bug.cgi?id=4335 This patch improves the error message and gives the user some feedback.
2017-01-26Fixing #5326 (anomaly on some unsupported case of 'pat).Hugo Herbelin
We complete the support of 'pat in this particular case (a 'pat under a binder in a notation).
2017-01-24Merge PR#383: fix #5244: set printing width ignored when given enough spaceMaxime Dénès
2017-01-23Merge branch 'v8.5' into v8.6Pierre-Marie Pédrot
2017-01-23Fixing unification regression #5323.Hugo Herbelin
Tracking conversion problems to reconsider was lost for evars subject to restriction (field last_mods was not updated and conversion problems not considered to be changed).
2017-01-22Fixing bugs in typing "match" (regressions #5322 and #5324 + bugs with let-ins).Hugo Herbelin
A cleaning done in ade2363e35 (Dec 2015) was hinting at bugs in typing a matching over a "catch-all" variable, when let-ins occur in the arity. However ade2363e35 failed to understand what was the correct fix, introducing instead the regressions mentioned in #5322 and #5324. This fixes all of #5322 and #5324, as well as the handling of let-ins in the arity. Thanks to Jason for helping in diagnosing the problem.
2017-01-21Revert "Process Next Obligation proofs in parallel (fix #5314)"Enrico Tassi
This reverts commit 1d4c34c79624fb81e64dfed8874b2fc9fa66c070. It seems the proof terminator of obligation.ml, in the case in which Set Shrink Obligation is set, accesses the opaque proof.
2017-01-20Process Next Obligation proofs in parallel (fix #5314)Enrico Tassi
2017-01-20Do not add redundant side effects in tactic code.Pierre-Marie Pédrot
This was observable in long proofs, because side effects kept being duplicated, leading to an additional cost linear in the size of the proof. This commit touches kernel files, but the corresponding API is only used in tactic-facing code so that the side_effects type remains opaque. Thus it does not affect the kernel safety.
2017-01-17Mapping named_context_val preserves sharing when possible.Pierre-Marie Pédrot
This was deactivated by 27c9346 and made an optimization moot in eauto. This optimization was physically checking for equality, but as lists where rebuilt by the mapping, this was never true. Some contribs were thus quite slower, including persistent-union-find which was twice slower. This 2-line patch fixes it by trying to preserve sharing as much as possible. Note that we should still do something about eauto, because it does redo useless work a lot whenever the environment only changes a bit, while we could cache this computation.
2017-01-17STM: fix run-time classification of VernacInstance (fix #5313)Enrico Tassi
2017-01-16Fixing (part of) #5303 (clarifications around Record/Structure/Variant).Hugo Herbelin
- We fix the inconsistency of Structure and Record which according to doc are the same. - We improve the error message when not using { ... } for Record or Structure.
2017-01-13Fix race condition in STM DAG generation (in debug mode).Maxime Dénès
The same file name for .dot graphs could be used by concurrent processes.
2017-01-13Properly remove aux files in subdirectories (bug #5089).Erik Martin-Dorel
The aux file for foo/bar.v is foo/.bar.aux, not .foo/bar.aux.
2017-01-13Fix broken .aux machinery.Guillaume Melquiond
Coq expects aux_file_name_for to give the aux file corresponding to the input file whichever its Coq-related extension, be it .v or .vo or .vio. Commit 3e6fa1c broke this contract when fixing bug #5183. As a consequence, depending on the execution path, Coq would try to save or load from either .foo.aux or .foo.vo.aux or .foo.vio.aux. This commit reverts 3e6fa1c and fixes bug #5183 much earlier in the call chain by not initializing hints when the input file does not end with .v. This also restores 8.5 behavior with respect to aux file naming.
2017-01-12Fix configure crash on some version strings of camlp5, e.g. "6.18-exp" (bug ↵Guillaume Melquiond
#5307).
2017-01-05Fixing a little bug in printing cofix with no arguments.Hugo Herbelin
2017-01-04Fixing another inconsistency when looking for camlp5o when camlp5dir is given.Hugo Herbelin
This was not fixed by b9a15a390f yet.
2016-12-28Fix some typos in tutorial (bug #5294).Guillaume Melquiond
This commit uses the proper url for bug reporting, marks urls as such, stops qualifying the Coq'Art book as new, and fix the spacing after the Coq name.
2016-12-26Handle application of a primitive projection to a not yet evaluated ↵Guillaume Melquiond
cofixpoint (bug #5286).
2016-12-26Fix broken documentation in presence of \zeroone{... \tt ...}.Guillaume Melquiond
The way \zeroone was defined, the \tt modifier was leaked outside the brackets, thus messing with the following text. There are a bunch of occurrences of this issue in the manual, so rather than turning all the \tt into \texttt, the definition of \zeroone is made more robust. Unfortunately, there is one single occurrence of \zeroone that does not support the more robust version. (Note that this specific usage of \zeroone is morally a bug, since it goes against all the LaTeX conventions.) So the commit also keeps the old leaky version of \zeroone around as \zeroonelax so that it can be used there.
2016-12-26Update documentation (bugs #5246 and #5251).Guillaume Melquiond
2016-12-26Fix some documentation typos.Guillaume Melquiond
2016-12-26Remove spurious spaces in merlin file generated by coq_makefile (bug #5213).Guillaume Melquiond
2016-12-23Excluding explicitly coinductive types in Scheme Equality (#5284).Hugo Herbelin
2016-12-23Handle application of a primitive projection to a not yet evaluated ↵Guillaume Melquiond
cofixpoint (bug #5286).
2016-12-22Fixing anomaly EqUnknown in Equality Scheme (#5278).Hugo Herbelin
2016-12-19Avoid concurrent runs when producing html documentation (bug #5269).Guillaume Melquiond
Make does not allow for rules that produce multiple outputs (unless they are pattern rules). As a consequence, the hacha rule could be run several times concurrently, thus causing doc/refman/html to be deleted under the feet of some runs. This commit fixes the issue by turning the rule into a single-output rule and adding a dummy rule to handle all the other indexes. Note that this is not a perfect solution since, if the user were to manually delete one of the auxiliary index, it would not be rebuilt until the main index is.
2016-12-16Fix incorrect documentation that prevents successful compilation (bug #5265).Guillaume Melquiond
2016-12-08Set version to 8.6 in configure.Maxime Dénès
2016-12-08Windows build scripts for 8.6 final.Maxime Dénès
2016-12-08Fix paths in 32-bit windows build scripts.Maxime Dénès
2016-12-07Commit bumping the version number was partial...Maxime Dénès
The sad part of the story is that the script testing this version number is run after tagging by the coq-dev-tools Makefile... will fix that.
2016-12-07Add bat files for 8.6rc1 build.Maxime Dénès
2016-12-07Add bat files for 8.6beta1 build.Maxime Dénès
2016-12-07Set version number to 8.6rc1.Maxime Dénès
2016-12-07A few words in CHANGES.Maxime Dénès
2016-12-07ssrmatching: fix iter_constr_LR iterator wrt ProjEnrico Tassi
2016-12-06Fix #5248 - test-suite fails in 8.6beta1Maxime Dénès
This was yet another bug in the VM long multiplication, that I unfortunately introduced in ebc509ed2. It was impacting only 32-bit architectures. In the future, I'll try to make sure that 1) we provide unit tests for integer arithmetic (my int63 branch ships with such tests) 2) our continuous testing infrastructure runs the test suite on a 32-bit architecture. I tried to set up such an instance, but failed. Waiting for support reply.
2016-12-06Fix broken documentation in presence of \zeroone{... \tt ...}.Guillaume Melquiond
The way \zeroone was defined, the \tt modifier was leaked outside the brackets, thus messing with the following text. There are a bunch of occurrences of this issue in the manual, so rather than turning all the \tt into \texttt, the definition of \zeroone is made more robust. Unfortunately, there is one single occurrence of \zeroone that does not support the more robust version. (Note that this specific usage of \zeroone is morally a bug, since it goes against all the LaTeX conventions.) So the commit also keeps the old leaky version of \zeroone around as \zeroonelax so that it can be used there.
2016-12-06Update documentation (bugs #5246 and #5251).Guillaume Melquiond