Skip to content

Cleanup TPE helper lemmas#900

Merged
john-h-kastner-aws merged 5 commits intomainfrom
tpe-proof-tweaks
Mar 10, 2026
Merged

Cleanup TPE helper lemmas#900
john-h-kastner-aws merged 5 commits intomainfrom
tpe-proof-tweaks

Conversation

@john-h-kastner-aws
Copy link
Contributor

Move some existing TPE helper lemmas around

Signed-off-by: John Kastner <jkastner@amazon.com>
Signed-off-by: John Kastner <jkastner@amazon.com>
cases res <;> simp [Except.toOption]

public theorem do_to_option_none {ε α β} {res : Except ε α} {f : α → Except ε β} :
res.toOption = none → (do let x ← res; f x).toOption = none
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should those have toOption instead of to_option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we're slightly inconsistent on this. I think generally yes, but existing theorems in this file use to_option

@victornicolet victornicolet self-requested a review March 10, 2026 13:24
@john-h-kastner-aws john-h-kastner-aws merged commit d2c9761 into main Mar 10, 2026
13 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