Comments (8)
Probably a difference in a hidden type annotation, something like El(unitname) vs. Unit. I've patches this by having exact matches use the built-in equivalence algorithm (without hints or rewrites) instead of alpha-equivalence. #14 also runs.
Unfortunately, this change makes the system noticeably slower. (because running beta-eta equivalence on every subterm to see if it's the term-to-rewrite is at least a constant factor slower than running alpha-equivalence on every subterm to see if it's the term-to-rewrite).
from andromeda.
Do you short-circuit the alpha-equivalence case? Is there a verbosity level that prints out the hidden annotations? (If not, can there be?)
from andromeda.
Sure, but the the short circuit can only make equivalence faster. Inequivalence, which is the likely issue here, doesn't speed up at all. (When alpha-equivalence fails, you still have to do the full beta-eta check to make sure they're not somehow equivalent).
--annotate
tells the pretty-printer not to elide the hidden stuff, but do so only if you have a strong stomach.
from andromeda.
Why is inequivalence the issue here?
from andromeda.
It's now working harder to identify subterms that can be rewritten, by
using a more general notion of equivalence.
99% of subterms are not rewritable, but there's no way to identify
them ahead of time...they still have to be checked for equivalence to
verify they're not equivalent to any rewriting hint. This checking has
gotten more expensive.
(Actually we compares types of terms and patterns before comparing the
types and patterns themselves, but the principle still applies)
from andromeda.
You've probably already thought of all of this, but can you store the hints in beta-normal (and eta-long?) form, and beta-(eta-)normalize the things you're checking against? (The beta-normal form, at least, can be computed once-and-forall for the whole term, I think.)
from andromeda.
Actually, I think the user should be giving hints in normal form. At least for now.
from andromeda.
Obsolete, the hints are gone from the kernel.
from andromeda.
Related Issues (20)
- Fail gracefully when an atom appears in a derived rule.
- Allow unicode in operators HOT 2
- Abstracting/annotating the result of a recursive call HOT 6
- Fixing typing annotations on recursive functions
- The type of abstraction HOT 1
- The dynamically-variadic nature of "congruence" HOT 2
- Matching against a neutral application HOT 4
- Boundary of an ill-typed equality? HOT 2
- Fix `context`
- Properly implement equality meta-variables, or at least hack them correctly HOT 2
- Fix `coerce`
- Require each module at most once
- Improve the `eq` module
- `open` should be forgotten at the end of a module HOT 3
- Allow patterns in `fun`
- Runtime exceptions are printed in wrong environment
- Printing of local contexts in argument position is reversed
- Failed assertion HOT 1
- Automatic principal arguments in eqchk
- dispatching on arguments that bind variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from andromeda.