Rewriting at the type level
问题 I have the following proof state: 1 subgoals U : Type X : Ensemble U Y : Ensemble U f : U -> U g : U -> U pF : proof_dom_cod U X Y f pG : proof_dom_cod U X Y g fg : f = g H : proof_dom_cod U X Y g = proof_dom_cod U X Y f ______________________________________(1/1) createarrow U X Y f pF = createarrow U X Y g pG So I want to assert (pF = pG) and then use proof irrelevance to prove that. Unfortunately, pF = pG is not valid because they have different types, even though I know the types to be