Conversation
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
This is now [managed by the mathlib4_docs repository](https://github.com/leanprover-community/mathlib4_docs/actions), as this is required to use the new github pages deployment mechanism. The downside of this approach is that we will have to restart doc builds manually every 90 days or so.
This adds Kyle Miller's elaborators for `Type*` and `Sort*` which provide implicit universe variables. It also includes a few tests. Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Some of the tests for LibrarySearch functionality are nondetermininstic and were using `#guard_msgs` to check for specific output. This could [create spurious failures](https://github.com/leanprover-community/mathlib4/actions/runs/5810778556/job/15756601503). We switch to using `#guard_msgs (drop info)` for these tests, which still cleans up the stdout when running these tests without filtering out errors.
Add an option `lake exe graph --excludeMeta` which removes all nodes that start with `Mathlib.[Tactic|Lean|Util]`
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
| @@ -231,12 +237,13 @@ elab_rules : tactic | | |||
| if results.isEmpty then | |||
There was a problem hiding this comment.
Github doesn't let me comment or suggest on the appropriate line, but: should we check that (reducible) rfl doesn't close the goal by itself before looking at rewrite? (Note that even rw ... at h runs rfl on the goal and can close it, so checking it is indeed applicable in every case.) For example:
example : 0 = 0 by rw? -- Try this: rw [← @Nat.le_zero] -- "no goals"
(This is technically orthogonal to this PR, and maybe should be in a different one, but was born out of thinking about computeRfl.)
There was a problem hiding this comment.
Hmm... I'm not sure here. I agree the behaviour of rw? is confusing when you present it with a goal solvable by rfl, but I don't think this makes it rw?'s job to try rfl.
How about we don't modify this behaviour for now, but I'm happy to consider it separately.
|
The PR description doesn't seem to be accurate anymore (regarding bors d+ |
|
✌️ semorrison can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors merge |
This fixes a problem I encountered in another tactic, where the rewrites are not being tried with the original `MetavarContext`. Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk> Co-authored-by: Joachim Breitner <mail@joachim-breitner.de> Co-authored-by: Chris Hughes <chrishughes24@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Anatole Dedecker <anatolededecker@gmail.com> Co-authored-by: Thomas Browning <tb65536@uw.edu> Co-authored-by: Oliver Nash <github@olivernash.org> Co-authored-by: sgouezel <sebastien.gouezel@univ-rennes1.fr> Co-authored-by: Alex J Best <alex.j.best@gmail.com> Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com> Co-authored-by: michaellee94 <michael_lee1@brown.edu> Co-authored-by: Yuma Mizuno <mizuno.y.aj@gmail.com> Co-authored-by: Markus Himmel <markus@himmel-villmar.de> Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Peiran Wu <15968905+wupr@users.noreply.github.com> Co-authored-by: Moritz Firsching <moritz.firsching@gmail.com> Co-authored-by: Yury G. Kudryashov <urkud@urkud.name> Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com> Co-authored-by: Anne Baanen <vierkantor@vierkantor.com> Co-authored-by: Bolton Bailey <bolton.bailey@gmail.com> Co-authored-by: Frédéric Dupuis <dupuisf@iro.umontreal.ca> Co-authored-by: Moritz Doll <moritz.doll@googlemail.com> Co-authored-by: kkytola <kalle.kytola@aalto.fi> Co-authored-by: Joël Riou <joel.riou@universite-paris-saclay.fr> Co-authored-by: damiano <adomani@gmail.com> Co-authored-by: Kyle Miller <kmill31415@gmail.com> Co-authored-by: Rémy Degenne <remydegenne@gmail.com> Co-authored-by: Jz Pan <acme_pjz@hotmail.com> Co-authored-by: Eric Rodriguez <ericrboidi@gmail.com>
|
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
This fixes a problem I encountered in another tactic, where the rewrites are not being tried with the original
MetavarContext.