Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix [rewrite@A] #747

Merged
merged 2 commits into from Apr 7, 2015
Merged

Fix [rewrite@A] #747

merged 2 commits into from Apr 7, 2015

Conversation

JasonGross
Copy link
Contributor

When the hypothesis contained a @ (b @ c) where the implicit arguments to concat did not match the implicit arguments inferred for @concat _ _ _ _ a (@concat _ _ _ _ b c) (according to pattern),
left_associate_concat_in looped, repeatedly finding a @ (b @ c), and failing to associate it to the left, introducing constant transports that did nothing.

This is now fixed, by picking up and passing the implicit arguments, explicitly.

The comment in Modalities/ReflectiveSubuniverse.v has been updated; a naive use of rewrite@A causes the subsequent rewrite to fail. I haven't tracked it down, but I suspect @mikeshulman wouldn't have much trouble updating the file.

This fixes #744; the test is now added to Tests.v.

When the hypothesis contained [a @ (b @ c)] where the implicit arguments
to [concat] did not match the implicit arguments inferred for [@concat _
_ _ _ a (@concat _ _ _ _ b c)] (according to [pattern]),
[left_associate_concat_in] looped, repeatedly finding [a @ (b @ c)], and
failing to associate it to the left, introducing constant transports
that did nothing.

This is now fixed, by picking up and passing the implicit arguments,
explicitly.

The comment in Modalities/ReflectiveSubuniverse.v has been updated; a
naive use of [rewrite@A] causes the subsequent rewrite to fail.  I
haven't tracked it down, but I suspect @mikeshulman wouldn't have much
trouble updating the file.

This fixes HoTT#744; the test is now added to Tests.v.
This will hopefully prevent other loops, by making the thing we search
in and the thing we pattern in the same.
@mikeshulman
Copy link
Contributor

LGTM, thanks!

spitters added a commit that referenced this pull request Apr 7, 2015
@spitters spitters merged commit 7eda94b into HoTT:master Apr 7, 2015
@JasonGross JasonGross deleted the fix-rewrite@A branch April 7, 2015 18:05
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.

rewrite@A helper tactic diverges on to_O_natural_compose
3 participants