Zulip Chat Archive
Stream: general
Topic: context irrelevance of defeq
Reid Barton (Feb 28 2020 at 15:31):
Does Lean have the following metatheoretic property:
If and and (defeq), then .
Also, is there an established name for this property?
Mario Carneiro (Feb 28 2020 at 21:32):
I'm pretty sure the answer is yes, but I don't think if explicitly shows up in the thesis
Mario Carneiro (Feb 28 2020 at 21:32):
If is inhabited, you can prove it by substitution
Mario Carneiro (Feb 28 2020 at 22:32):
It's also equivalent to the following statement about typing: If and , then
Reid Barton (Feb 29 2020 at 01:04):
(do you also need or does it follow?)
Mario Carneiro (Feb 29 2020 at 03:04):
Another good question in the same area. Obviously the "natural type" of does not have any free variables not in itself, but it is possible for defeq terms to have different sets of free variables because of proof irrelevance.
For example, consider the proofs and . By proof irrelevance, these two are defeq in the context . So you could have (where the cast is defeq to ).
Reid Barton (Feb 29 2020 at 14:30):
Now that you say that, isn't a more down to earth version something like , where for all
Last updated: Dec 20 2023 at 11:08 UTC