Zulip Chat Archive

Stream: Is there code for X?

Topic: Empty function


Will Fourie (Oct 22 2022 at 15:20):

Assume I have types A, B as well as functions f, g : A -> B and a proof of H : is_empty A.

How can I show that f must equal g?

Set theoretically I would just say that f and g must both be equal to the empty function and so are equal to each other. I don’t know if that still works in type theory.

Andrew Yang (Oct 22 2022 at 15:22):

docs#funext and then docs#is_empty.elim.
Not sure if there is a one lemma solution.

Will Fourie (Oct 22 2022 at 15:23):

Turns out that

subsingleton.elim f g works

Will Fourie (Oct 22 2022 at 15:23):

^ keeping this here for reference


Last updated: Dec 20 2023 at 11:08 UTC