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

Create selection-based buttons for prover #1542

Merged
merged 3 commits into from
Mar 5, 2025
Merged

Conversation

Negabinary
Copy link
Contributor

No description provided.

@Negabinary Negabinary requested a review from nskh February 25, 2025 15:49
@nskh nskh merged commit 0f987a8 into proof-steps Mar 5, 2025
2 checks passed
@nskh nskh deleted the prover-axiom-box branch March 5, 2025 18:00
@@ -426,22 +431,23 @@ module Update = {
) => {
switch (step_kind) {
| SingleStep(m) =>
calculate_single_step(~settings, expr, state, m, hidden, editor)
calculate_single_step(~settings, expr, ctx, state, m, hidden, editor)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to send in ctx here and elsewhere? Unless I'm missing it, it doesn't seem to get used.

Comment on lines +424 to +436
switch (cached_result) {
| Some(true) => [
Web.Node.text("Valid"),
Widgets.button(Icons.star, _ =>
signal(
AddAxiomStep(
unboxed_selected_exp,
unboxed_cached_exp,
),
)
),
]
| Some(false) => [Web.Node.text("Invalid")]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, so here is where we're using whether the rewrite is valid or not - nice

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.

2 participants