Library Nijn.Prelude.Funext
Require Import Nijn.Prelude.Checks.
Require Export ProofIrrelevance.
Require Import Coq.Logic.FunctionalExtensionality.
Require Export ProofIrrelevance.
Require Import Coq.Logic.FunctionalExtensionality.
Functional extensionality
Definition funext
{A : Type}
{B : A → Type}
{f g : ∀ (a : A), B a}
(p : ∀ (a : A), f a = g a)
: f = g.
Proof.
apply functional_extensionality_dep.
exact p.
Qed.
{A : Type}
{B : A → Type}
{f g : ∀ (a : A), B a}
(p : ∀ (a : A), f a = g a)
: f = g.
Proof.
apply functional_extensionality_dep.
exact p.
Qed.