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

feat: support fixed integers and conditions in meta-simp-set #346

Merged
merged 50 commits into from
May 28, 2024

Conversation

tobiasgrosser
Copy link
Collaborator

@tobiasgrosser tobiasgrosser commented May 26, 2024

  • add ConcreteOrMVar.instantiate_ofNat_eq to simplify instantiation and canonicalize to ofNat.

Unfortunately, this seems to lead to a 'motive not type correct' error. To resolve it we use simp! that just unfolds. This should be debugged further: #349.

  • generalize toSnoc_toMap to work on sequences of snoc

tobiasgrosser and others added 29 commits May 24, 2024 12:56
This is helpful for debugging, when we copy the individual statements to the
actual proof, which may not have Ctxt open.
@tobiasgrosser
Copy link
Collaborator Author

tobiasgrosser commented May 26, 2024

This is work in progress. It seems toSnoc_toMap does not work with nested snocs?

@[simp]
theorem toSnoc_toMap {Γ : Ctxt Ty} {t : Ty } {var : Ctxt.Var Γ t} {f : Ty → Ty2} :
    @Var.toMap _ (Γ.snoc t) _ _ f var.toSnoc = var.toMap.toSnoc := rfl

Copy link

Alive Statistics: 54 / 93 (39 failed)

Copy link

Alive Statistics: 54 / 93 (39 failed)

@tobiasgrosser tobiasgrosser enabled auto-merge May 27, 2024 12:49
@tobiasgrosser tobiasgrosser disabled auto-merge May 27, 2024 12:53
Copy link

Alive Statistics: 54 / 93 (39 failed)

@tobiasgrosser tobiasgrosser enabled auto-merge May 27, 2024 12:56
@tobiasgrosser tobiasgrosser disabled auto-merge May 27, 2024 12:57
Copy link

Alive Statistics: 54 / 93 (39 failed)

@bollu
Copy link
Collaborator

bollu commented May 27, 2024

LGTM, I am happy to merge this in, with @alexkeizer 's review on it.

Copy link
Collaborator

@alexkeizer alexkeizer left a comment

Choose a reason for hiding this comment

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

Some minor style comments. I am curious what brought up the decision to change the normal form of ConcreteOrMVar.concrete, was it just to reduce the noise in goal statements?

SSA/Projects/InstCombine/Test.lean Outdated Show resolved Hide resolved
SSA/Projects/InstCombine/Test.lean Show resolved Hide resolved
Copy link

Alive Statistics: 54 / 93 (39 failed)

1 similar comment
Copy link

Alive Statistics: 54 / 93 (39 failed)

@tobiasgrosser
Copy link
Collaborator Author

From my perspective all comments are adressed. @alexkeizer @bollu, could you take a final look?

Copy link

Alive Statistics: 54 / 93 (39 failed)

@tobiasgrosser
Copy link
Collaborator Author

Reviewed in person by @bollu

@tobiasgrosser tobiasgrosser enabled auto-merge May 28, 2024 09:35
Copy link

Alive Statistics: 54 / 93 (39 failed)

@tobiasgrosser tobiasgrosser added this pull request to the merge queue May 28, 2024
Merged via the queue into main with commit b51cdb2 May 28, 2024
2 checks passed
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