-
Notifications
You must be signed in to change notification settings - Fork 314
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
[Merged by Bors] - feat: add commutative diagram widget #3583
Conversation
This looks promising to me, and works out of the box. From a UI perspective:
|
@Vtec234, should this have the |
Okay, it's ready! @semorrison / @eric-wieser could you check that it still works, please?
We always show a widget version over non-widget ones now, and a system for user-defined precedences between different widgets is planned.
I rewrote the rendering code to be much more robust. If it ever shows an inconsistent state, it will be during loading, and the widget is grayed out then.
They do now.
This is the only outstanding item left. I'd like to do it in another PR as changes to core are required. |
Still works for me! |
bors merge |
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in `test/CommDiag.lean`. The set of diagram shapes which can be visualized is extensible via the `@[expr_presenter]` attribute. The widget is triggered in a tactic proof using the `with_panel_widgets [GoalTypePanel]` tactic combinator. Support for globally enabling the widget in a given file is planned for another PR. Continued from #363, please see there for more discussion. Co-authored-by: Wojciech Nawrocki <wjnawrocki@protonmail.com>
Build failed (retrying...): |
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in `test/CommDiag.lean`. The set of diagram shapes which can be visualized is extensible via the `@[expr_presenter]` attribute. The widget is triggered in a tactic proof using the `with_panel_widgets [GoalTypePanel]` tactic combinator. Support for globally enabling the widget in a given file is planned for another PR. Continued from #363, please see there for more discussion. Co-authored-by: Wojciech Nawrocki <wjnawrocki@protonmail.com>
Build failed (retrying...): |
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in `test/CommDiag.lean`. The set of diagram shapes which can be visualized is extensible via the `@[expr_presenter]` attribute. The widget is triggered in a tactic proof using the `with_panel_widgets [GoalTypePanel]` tactic combinator. Support for globally enabling the widget in a given file is planned for another PR. Continued from #363, please see there for more discussion. Co-authored-by: Wojciech Nawrocki <wjnawrocki@protonmail.com>
Build failed (retrying...): |
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in `test/CommDiag.lean`. The set of diagram shapes which can be visualized is extensible via the `@[expr_presenter]` attribute. The widget is triggered in a tactic proof using the `with_panel_widgets [GoalTypePanel]` tactic combinator. Support for globally enabling the widget in a given file is planned for another PR. Continued from #363, please see there for more discussion. Co-authored-by: Wojciech Nawrocki <wjnawrocki@protonmail.com>
Build failed: |
Thanks 🎉 bors merge |
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in `test/CommDiag.lean`. The set of diagram shapes which can be visualized is extensible via the `@[expr_presenter]` attribute. The widget is triggered in a tactic proof using the `with_panel_widgets [GoalTypePanel]` tactic combinator. Support for globally enabling the widget in a given file is planned for another PR. Continued from #363, please see there for more discussion. Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com> Co-authored-by: Wojciech Nawrocki <wjnawrocki@protonmail.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. |
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in `test/CommDiag.lean`. The set of diagram shapes which can be visualized is extensible via the `@[expr_presenter]` attribute. The widget is triggered in a tactic proof using the `with_panel_widgets [GoalTypePanel]` tactic combinator. Support for globally enabling the widget in a given file is planned for another PR. Continued from #363, please see there for more discussion. Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com> Co-authored-by: Wojciech Nawrocki <wjnawrocki@protonmail.com>
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in `test/CommDiag.lean`. The set of diagram shapes which can be visualized is extensible via the `@[expr_presenter]` attribute. The widget is triggered in a tactic proof using the `with_panel_widgets [GoalTypePanel]` tactic combinator. Support for globally enabling the widget in a given file is planned for another PR. Continued from leanprover-community#363, please see there for more discussion. Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com> Co-authored-by: Wojciech Nawrocki <wjnawrocki@protonmail.com>
Adds a widget for displaying goals in the language of category theory as commutative diagrams. Examples are found in
test/CommDiag.lean
. The set of diagram shapes which can be visualized is extensible via the@[expr_presenter]
attribute. The widget is triggered in a tactic proof using thewith_panel_widgets [GoalTypePanel]
tactic combinator. Support for globally enabling the widget in a given file is planned for another PR.Continued from #363, please see there for more discussion.