Comments (1)
I have a fix to at least the main symptom reported in this issue. However, keep in mind that the Pulse unifier is, by design, very simple, e.g., it does not backtrack.
So, see 80a3d28 for a test case which shows what you can expect to work and not.
That said, there is one aspect of it that I had been trying to get to work, which I think ought to work eventually, but is hard to do in the current way the prover is structured. Consider this example:
ghost
fn test_elim_3 (p q r:vprop)
requires ((p ** q) @==> r) ** p ** q
ensures r
{
elim _ _;
}
Say the invocation of elim is really elim ?1 ?2
, to give names to those uvars.
The prover is called with the following goals : ?1 @==> ?2
and ?1
.
The unifier correctly solves the first goal, setting ?1 := p ** q
and ?2 := r
.
Now it recurses trying to check that the second goal ?1 := p ** q
is properly solved.
But this goal is not an atomic vprop and the matcher is currently designed to solve things one atomic vprop at a time, trying to match it against atomic vprops from the context. So, this fails.
@aseemr : would be nice to talk through this; seems to require some non-trivial restructuring of the matcher and its invariants ... but perhaps you know of an easier way.
from steel.
Related Issues (20)
- Unresolved uvar error on just using an unresolved identifier HOT 1
- Bad error localization on simple typing error HOT 1
- Inferring implicits arguments in return position (and error localization)
- Allow F* type abbreviations for Pulse function types (feature request) HOT 1
- Inferred reveal is incorrectly accepted HOT 1
- "Unary transform" raises some typechecker problems HOT 4
- Eliminating pure underneath an exists* HOT 1
- Meta issue for syntax improvements in Pulse HOT 1
- Recursive calls fail to infer HOT 1
- Ghost, Unobservable, Atomic
- Stack references are freeable
- Bad error messages HOT 2
- admit seems to affect code before it HOT 1
- Trouble with dependent tuples
- Refining types with equalities interacts badly with lack of inductive subtyping
- Wrong bind effect inference in ghost functions
- Preserve postconditions of lemma calls in tail position
- Allow some subtyping for the return type of Pulse functions HOT 1
- Crash when last two implicit arguments have dependency
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 steel.