Repository navigation
docs: document vector product pattern-matching limitation - #922
Open
nasa314159 wants to merge 1 commit into
Open
nasa314159 wants to merge 1 commit into
nasa314159 wants to merge 1 commit into
Conversation
The pattern matcher does not in general try all assignments of vector factors to vector wildcards. Document this limitation, with the reproducer from issue form-dev#300 and a note on canonical ordering and workarounds. This documents the limitation; it does not fix the matcher.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a short note to the pattern-matching chapter documenting a limitation for products of vector wildcards. This is a documentation-only change; it does not modify the matcher.
Motivation / issue #300
Issue #300 reports that a pattern with repeated vector wildcards does not match a term that would match under another assignment of the same vector factors. A maintainer comment (2020-07-28) says this is a known shortcoming, that a full fix would require a large rewrite, and that it would be best to mention it in the manual instead.
Documents #300.
Documentation changes
idstatements can cover fixed small cases, but do not make the matcher try all permutations.Validation performed
idworkaround and input reordering; reordering the input does not help.git diff --checkclean.pdflatex(two passes) andhtlatexbuilds completed locally;dvipngis not installed, so HTML math images were not generated. No system dependencies were installed.doc/manual/pattern.tex.Limitations