Add missing Univ rule

This commit is contained in:
Yiyun Liu 2025-02-06 18:15:25 -05:00
parent 6daa275ac8
commit 2e2e41cbe6
2 changed files with 13 additions and 1 deletions

View file

@ -978,6 +978,14 @@ Proof.
hauto lq:on ctrs:rtc inv:option.
Qed.
#[export]Hint Resolve ST_Var ST_Bind ST_Abs ST_App ST_Pair ST_Proj1 ST_Proj2 ST_Conv
Lemma ST_Univ n Γ i j :
i < j ->
Γ PUniv i : PTm n PUniv j.
Proof.
move => ?.
apply SemWt_Univ. move => ρ hρ. eexists. by apply InterpUniv_Univ.
Qed.
#[export]Hint Resolve ST_Var ST_Bind ST_Abs ST_App ST_Pair ST_Proj1 ST_Proj2 ST_Univ ST_Conv
SE_Refl SE_Symmetric SE_Transitive SE_Bind SE_Abs SE_App SE_Proj1 SE_Proj2
SE_Conv SE_Bind_Proj1 SE_Bind_Proj2 SemWff_nil SemWff_cons : sem.

View file

@ -37,6 +37,10 @@ Inductive Wt : forall {n}, (fin n -> PTm n) -> PTm n -> PTm n -> Prop :=
Γ a PBind PSig A B ->
Γ PProj PR a subst_PTm (scons (PProj PL a) VarPTm) B
| T_Univ n Γ i j :
i < j ->
Γ PUniv i : PTm n PUniv j
| T_Conv n Γ (a : PTm n) A B i :
Γ a A ->
Γ A B PUniv i ->