Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(logic/equiv/option): equivalence with subtypes (#16302)
Add an equivalence between equivalences ```lean /-- Equivalences between `option α` and `β` that send `none` to `x` are equivalent to equivalences between `α` and `{y : β // y ≠ x}`. -/ def option_subtype [decidable_eq β] (x : β) : {e : option α ≃ β // e none = x} ≃ (α ≃ {y : β // y ≠ x}) := ``` which can be used to give a much simpler definition of an equivalence in #16278.
- Loading branch information
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters