Skip to content

WIP - Implement Generalizer #1022

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

Draft
wants to merge 51 commits into
base: main
Choose a base branch
from

Conversation

oluwatimilehin
Copy link

No description provided.

import SSA.Experimental.Bits.Fast.Defs
import SSA.Experimental.Bits.Fast.FiniteStateMachine
import SSA.Experimental.Bits.Fast.Attr
import SSA.Experimental.Bits.Fast.Decide
Copy link
Collaborator

Choose a reason for hiding this comment

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

This tactic should not depend on Mathlib or SSA, no?

(fun ix => inputs.map ⟨fun input => Inputs.mk ix input, by intros a b; simp⟩)
⟨out, by
⟨out, by
Copy link
Collaborator

Choose a reason for hiding this comment

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

These changes seem unrelated, no?

Copy link
Author

Choose a reason for hiding this comment

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

They are unrelated. My editor keeps removing these trailing whitespaces, which seems to be according to the setting here, but I'm not sure why they were present before.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It might be worth to commit these whitespace separately, so this diff is clean and our codebase is also cleaner.

BVExpr.shiftRight (substituteBVExpr lhs) (substituteBVExpr rhs)
| .arithShiftRight lhs rhs =>
BVExpr.arithShiftRight (substituteBVExpr lhs) (substituteBVExpr rhs)
| _ => bvExpr --TODO: handle other constructors?
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, you need to handle all constructors which contain expressions

@oluwatimilehin oluwatimilehin changed the title WIP - Exists/For-all Tactic WIP - Generalize Impl Mar 31, 2025
@oluwatimilehin oluwatimilehin changed the title WIP - Generalize Impl WIP - Implement Generalizer Mar 31, 2025
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.

3 participants