Syntactic properties of top-level defs#323
Conversation
dc2881b to
018a17e
Compare
018a17e to
9005c28
Compare
f10db51 to
51605f4
Compare
|
I still think we need to add explicit [Wk] in typing rules including but not limited to This form cannot be proved by induction, what we can is to prove its generalization but this form is incorrect, because now M and A may contain local vars, so we have to add weakening to this to let it become |
|
the direction of the generalization is wrong. it should be to the left, i.e. |
|
but to prove weakening, we have to let the context grow on the right, because some rules adds a new entry on the right (e.g. Pi formation rule) and you also agree with @Ailrun that we don't need to change the typing rule to add explicit weakenings? |
|
yes, the context grows on the right, so what adds to the local context needs no change. the extension is to the left of what exists. |
|
this lemma is provable without any modification to the theory if generalization is done in this way. |
07fba36 to
8a88c00
Compare
|
it works |
ce3aff8 to
a6dcffb
Compare
|
just to make point clear that the current syntax don't introduce let yet, so the global context remains unchanged during the derivation what I am unsure of is, when we add |
dce6d8c to
26ef4cc
Compare
|
and I cannot prove presup for specifially the LHS though we know |
|
@Antoine-something Can you post the form of thm/proof you mentioned yesterday? |
|
Actually, I took a closer look at the issue and I now understand better why it is not so easy. My intuition was that we should be able to prove that applying substitutions to closed terms does not actually affect them. Something like this: I played around trying to prove this and I managed to solve several cases, but it becomes difficult whenever a subterm of |
|
yeah, the key difficulty is to find a generalization of the property to handle the cases where contexts are extended, I was thinking of some |
|
The theorem should be something like instead of using the empty context. Then, the proof for Actually, maybe I will try a proof of the main property today (for a global-context-less version). |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
Yes, I am thinking of a similar form. |
|
Oh damn I am outdated lol |
|
I thought that was somehow related to the weakening lemma, but it is not the case haha. Anyway, I think this general version should work (at most with some minor adjustments). |
|
BTW, if |
yes, it's needed only for the presup of the following equivalent case |
|
the specifically, given we need to show I don't come up with ideas to further gen the prop to make this case work. I feel like it's a bit fundamental (i.e. the prop could be wrong?) and and wonder shall we rely on extra facts that M and A are NFs and do not contain subst to make it work? On the other hand, the good news is that if subst_wk_wf_exp_eq worked, then presup would also be good |
|
maybe a mutual statement on subst would work |
1bd071d to
cf15694
Compare
|
I drafted a version |
|
There are a couple of things to highlight here. The problem here indicates a missing component in the current formulation of explicit substitutions. Notice that explicit substitutions can be understood as a categorical formulation. From this aspect, it appears that the current definition misses a terminal object, say Saying that there is only one terminal object. The effect of applying it to a term is noop. That said, it's unclear that what a terminal object should be evaluated to. |
No description provided.