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

Why do we need this premise? #273

Open
HuStmpHrrr opened this issue Dec 16, 2024 · 4 comments
Open

Why do we need this premise? #273

HuStmpHrrr opened this issue Dec 16, 2024 · 4 comments

Comments

@HuStmpHrrr
Copy link
Member

(** We have this extra argument for soundness.

Why is this? @Ailrun Things like this are good to recall, as we might need to talk about them in the paper.

@Ailrun
Copy link
Member

Ailrun commented Dec 16, 2024

In soundness case for the rule, we have syntactic A sub A' judgement and semantic M : A judgement. We cannot obtain semantic well-formedness of A' from these, thus we should have it as an IH.

@HuStmpHrrr
Copy link
Member Author

I think it has something to do with subtyping being unidirectional. see also

Lemma glu_rel_exp_conv : forall {Γ M A A' i},
{{ Γ ⊩ M : A }} ->
{{ Γ ⊢ A ≈ A' : Type@i }} ->
{{ Γ ⊩ M : A' }}.

This lemma doesn't need the semantic well-formedness of A'.

@Ailrun
Copy link
Member

Ailrun commented Dec 16, 2024

Hm, that might the case for subtyping as well. I mean, completeness might resolve the need of the extra IH.

@Ailrun
Copy link
Member

Ailrun commented Dec 16, 2024

Or not. As you said, it is uni-directional so one cannot prove an analogous lemma of

Lemma glu_univ_elem_resp_per_univ : forall i a a' P El,
{{ Dom a ≈ a' ∈ per_univ i }} ->
{{ DG a ∈ glu_univ_elem i ↘ P ↘ El }} ->
{{ DG a' ∈ glu_univ_elem i ↘ P ↘ El }}.

for semantic subtyping.

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

No branches or pull requests

2 participants