Skip to content

Commit

Permalink
chore: add a non-tactic version of injection→extensional! (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia authored Dec 11, 2023
1 parent 6477dac commit 2272186
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/1Lab/Extensionality.agda
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,21 @@ iso→extensional
iso→extensional f ext =
embedding→extensional (Iso→Embedding f) ext

injection→extensional
: {ℓ ℓ' ℓr} {A : Type ℓ} {B : Type ℓ'}
is-set B
{f : A B}
( {x y} f x ≡ f y x ≡ y)
Extensional B ℓr
Extensional A ℓr
injection→extensional b-set {f} inj ext =
embedding→extensional (f , injective→is-embedding b-set f inj) ext

injection→extensional!
: {ℓ ℓ' ℓr} {A : Type ℓ} {B : Type ℓ'}
{@(tactic hlevel-tactic-worker) sb : is-set B}
{f : A B}
( {x y} f x ≡ f y x ≡ y)
Extensional B ℓr
Extensional A ℓr
injection→extensional! {sb = b-set} {f} inj ext =
embedding→extensional (f , injective→is-embedding b-set f inj) ext
injection→extensional! {sb = b-set} = injection→extensional b-set

0 comments on commit 2272186

Please sign in to comment.