Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: elementwise linting checks, and putting into simp normal form (#…
…2956) Some `elementwise` lemmas are completely trivial even without any simp lemmas, likely because coercions are being unfolded. We add some linting checks to let the user know they can omit the `elementwise` attribute. Also, `elementwise` doesn't necessarily put lemmas into simp normal form, which means `@[elementwise (attr := simp)]` can lead to failing the simpNF linter. Now by default `elementwise` will apply `simp` to the left-hand and right-hand sides of the lemma. Use `@[elementwise nosimp]` to override this. Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
- Loading branch information
1 parent
2a08f2e
commit b531e74
Showing
5 changed files
with
71 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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