mathlib
5bccb515 - refactor(logic/equiv/basic): tweak lemmas on equivalences between `unique` types (#14605)

Commit
2 years ago
refactor(logic/equiv/basic): tweak lemmas on equivalences between `unique` types (#14605) This PR does various simple and highly related things: - Rename `equiv_of_unique_of_unique` to `equiv_of_unique` and make its arguments explicit, in order to match the lemma `equiv_of_empty` added in #14604. - Rename `equiv_punit_of_unique` to `equiv_punit` and make its argument explicit to match `equiv_pempty`. - Fix their docstrings (which talked about a `subsingleton` type instead of a `unique` one). - Move them much earlier in the file, together with the lemmas on empty types. - Golf `prop_equiv_punit`.
Author
Parents
  • src
    • algebra/hom
      • equiv.lean
    • group_theory/perm/cycle
      • type.lean
    • linear_algebra
      • finite_dimensional.lean
    • logic/equiv
      • basic.lean
      • fin.lean
    • measure_theory
      • measurable_space.lean
    • set_theory
      • cardinal
        • basic.lean
      • game
        • nim.lean