-
Notifications
You must be signed in to change notification settings - Fork 112
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: add Fin.find?
and lemmas
#1099
base: main
Are you sure you want to change the base?
Conversation
Mathlib CI status (docs):
|
Batteries/Data/Fin/Lemmas.lean
Outdated
|
||
theorem find?_isNone {f : Fin n → Option α} : (find? f).isNone ↔ ∀ i, (f i).isNone := by simp | ||
|
||
theorem find?_eq_list_join_find?_ofFn_isSome {f : Fin n → Option α} : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the other lemma, saying l.find? f = Fin.find? (fun (i : Fin l.length) => f l[i])
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On it... might take a day or so...
Co-authored-by: Kim Morrison <[email protected]>
No description provided.