Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prove subtyping case for soundness #153

Merged
merged 8 commits into from
Aug 15, 2024
Merged

Prove subtyping case for soundness #153

merged 8 commits into from
Aug 15, 2024

Conversation

Ailrun
Copy link
Member

@Ailrun Ailrun commented Aug 8, 2024

C.f. #136

glu_univ_elem_per_subtyp_typ_if requires a way to relate OT' (satisfying {{ Γ, IT ⊢ OT' ® OP' d{{{ ⇑! a' (length Γ) }}} equiv_len'_len' }}) and OT'' (satisfying {{ Δ ⊢ OT'' ® OP' c equiv_c }})
but I am not sure if it is even possible.

@Ailrun Ailrun force-pushed the pr-subtyping-lemmas branch from e7535cf to 54ed0f2 Compare August 8, 2024 19:13
@Ailrun

This comment was marked as resolved.

@HuStmpHrrr
Copy link
Member

HuStmpHrrr commented Aug 8, 2024

Why do you need to come up with this type? I tend to believe you won't need the lemma you are trying to prove here.

@Ailrun
Copy link
Member Author

Ailrun commented Aug 9, 2024

Why do you need to come up with this type?

As I mentioned here: #136 (comment),
for subtyping cases, we need El to El', which then requires P to P' (as El depends on P).

@HuStmpHrrr
Copy link
Member

HuStmpHrrr commented Aug 9, 2024

right. I am saying glu_univ_elem_per_subtyp_typ_escape is all you need. you can just move on to proving the lemma about El. you probably won't need this lemma you are stuck at.

@Ailrun
Copy link
Member Author

Ailrun commented Aug 9, 2024

Now I think that might be the case. Let me check the actual subtyping case. If that's indeed the case, I will remove the stuck lemma and then the rest can be merged

@HuStmpHrrr
Copy link
Member

yeah, I think the subtyping judgment is directly given by the semantic judgment in completeness, so you directly have the fact that the evaluations of two types are also in a subtyping relation. I think you can take it from there. You don't need a lemma that comes up with a type.

@Ailrun

This comment was marked as resolved.

@Ailrun

This comment was marked as resolved.

@HuStmpHrrr
Copy link
Member

HuStmpHrrr commented Aug 9, 2024

I think all you need is to add two premises to the subtyping rule, which says A and A' have type Type@i. Then you will have the right IHs which give you what you want. It will probably change some proofs of those syntactic lemmas, but to a livable extent.

@Ailrun Ailrun changed the title [WIP] Stuck on a subtyping lemma Prove subtyping case Aug 12, 2024
@Ailrun Ailrun changed the title Prove subtyping case Prove subtyping case for soundness Aug 12, 2024
@Ailrun Ailrun mentioned this pull request Aug 12, 2024
4 tasks
@Ailrun Ailrun marked this pull request as ready for review August 12, 2024 18:04
Ailrun

This comment was marked as resolved.

@Ailrun Ailrun requested a review from HuStmpHrrr August 12, 2024 18:06
@Ailrun Ailrun force-pushed the pr-subtyping-lemmas branch from eebb96d to 28e13a2 Compare August 12, 2024 21:57
@Ailrun Ailrun mentioned this pull request Aug 14, 2024
@HuStmpHrrr
Copy link
Member

sorry will review today. stay tuned.

@HuStmpHrrr
Copy link
Member

I am sorry, this week was very bad for me. this PR looks almost ready to me.

@Ailrun Ailrun merged commit 6050e64 into main Aug 15, 2024
2 checks passed
@Ailrun Ailrun deleted the pr-subtyping-lemmas branch August 15, 2024 23:11
This was referenced Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants