postulate
extensionality : ∀ {A B : Set} {f g : A → B}
→ (∀ (x : A) → f x ≡ g x)
-----------------------
→ f ≡ g
I know that the above definition is consistent, but what if a little twist on it is made?
postulate
extensionality' : ∀ {A : Set} {B : A → Set} {f g : (x : A) → B x}
→ (∀ (x : A) → f x ≡ g x)
-----------------------
→ f ≡ g
I had to define this in order to solve one of the PLFA book exercises, but I am not sure if I did the right thing by doing that. I think this should be consistent, but I do not have a good way of reasoning this out at the moment so I want to ask here.