Skip to content

Work on inference, unification and subject-reduction#328

Merged
rlepigre merged 71 commits into
Deducteam:masterfrom
fblanqui:rhs_metas
Apr 10, 2020
Merged

Work on inference, unification and subject-reduction#328
rlepigre merged 71 commits into
Deducteam:masterfrom
fblanqui:rhs_metas

Conversation

@fblanqui

@fblanqui fblanqui commented Apr 2, 2020

Copy link
Copy Markdown
Member

fix type inference, unification, handling of implicit arguments in rules, subject-reduction
fix issues #303 #330 #334

Comment thread src/core/extra.ml Outdated
Comment thread src/core/terms.ml Outdated
Comment thread src/core/terms.ml
Comment thread src/core/proof.ml
@fblanqui

fblanqui commented Apr 2, 2020

Copy link
Copy Markdown
Member Author

There is a bug I need to fix. I am working on it.

@fblanqui

fblanqui commented Apr 9, 2020

Copy link
Copy Markdown
Member Author

I have a question: do we assume somewhere in the code that a meta of arity n has a type of the form \forall x1:A1,..,\forall xn:An,B?

@rlepigre

rlepigre commented Apr 9, 2020

Copy link
Copy Markdown
Contributor

I have a question: do we assume somewhere in he code that a meta of arity n has a type of the form \forall x1:A1,..,\forall xn:An,B?

I'm not sure, but most probably.

rlepigre
rlepigre previously approved these changes Apr 10, 2020

@rlepigre rlepigre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still changes in there that I think are a mistake, but I guess I can live with them.

@rlepigre

Copy link
Copy Markdown
Contributor

So can I merge @fblanqui? (I want to do it myself because I want to fix the commit message.)

rlepigre
rlepigre previously approved these changes Apr 10, 2020
Comment thread src/core/sr.ml
@rlepigre rlepigre changed the title fix type inference, unification, handling of implicit arguments in rules, subject-reduction Work on inference, unification and subject-reduction Apr 10, 2020
@fblanqui

Copy link
Copy Markdown
Member Author

I have a question: do you keep the LHS unchanged after scoping?

@rlepigre

Copy link
Copy Markdown
Contributor

I have a question: do you keep the LHS unchanged after scoping?

For now yes, but it will have to change once I implement the optimisation.

@fblanqui

Copy link
Copy Markdown
Member Author

Ok. The optimisation does not change the matching behavior. It is important to not change this indeed. Only the RHS metavariables should be instantiated by something.

@fblanqui

Copy link
Copy Markdown
Member Author

Thanks to merge @rlepigre . And thanks for your improvements on this PR!

@rlepigre

Copy link
Copy Markdown
Contributor

Ok. The optimisation does not change the matching behavior. It is important to not change this indeed. Only the RHS metavariables should be instantiated by something.

Yeah, the only thing that the optimisation will do is just not record the term matching a pattern variable in the case where it is not useful in the RHS (and does not appear non-linearly). This means that we will have wildcards again (i.e., terms of the form Patt(None,...,...)) when reducing. For now these do not appear anymore I think. This wastes space since we allocate arrays that are bigger than they need to be.

@rlepigre rlepigre merged commit 1dd8385 into Deducteam:master Apr 10, 2020
@fblanqui fblanqui deleted the rhs_metas branch April 10, 2020 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in rule RHS type inference.

3 participants