Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions theories/core/Core.ec
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ proof. by move=> fK gK x y; rewrite -{1}[y]gK; apply (can_eq f g). qed.
lemma inj_idfun: injective (idfun<:'a>).
proof. by []. qed.

lemma comp_idfunL ['a 'b] (f : 'a -> 'b) : idfun \o f = f.
proof. by []. qed.

lemma comp_idfunR ['a 'b] (f : 'a -> 'b) : f \o idfun = f.
proof. by []. qed.

hint simplify comp_idfunL, comp_idfunR.

lemma inj_can_sym (f:'a -> 'b) f':
cancel f f' => injective f' => cancel f' f.
proof. by move=> fK injf' x; apply injf'; rewrite fK. qed.
Expand Down
Loading