Skip to content

Commit

Permalink
feat(category_theory/limits/types): ext iff lemma (#4883)
Browse files Browse the repository at this point in the history
A little lemma which sometimes makes it easier to work with limits in type.
  • Loading branch information
b-mehta committed Nov 3, 2020
1 parent 6bed7d4 commit b37d4a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/category_theory/limits/types.lean
Expand Up @@ -104,6 +104,10 @@ begin
simp [w j],
end

lemma limit_ext_iff (F : J ⥤ Type u) (x y : limit F) :
x = y ↔ (∀ j, limit.π F j x = limit.π F j y) :=
⟨λ t _, t ▸ rfl, limit_ext _ _ _⟩

-- TODO: are there other limits lemmas that should have `_apply` versions?
-- Can we generate these like with `@[reassoc]`?
-- PROJECT: prove these for any concrete category where the forgetful functor preserves limits?
Expand Down

0 comments on commit b37d4a3

Please sign in to comment.