-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finish completeness proof using only co-variant subtyping
- Loading branch information
1 parent
dc2e5e1
commit 6a2d1a1
Showing
5 changed files
with
64 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From Coq Require Import RelationClasses. | ||
From Mcltt Require Import Base LibTactics. | ||
From Mcltt.Core Require Import Completeness Completeness.FundamentalTheorem Completeness.LogicalRelation Semantic.Realizability PER. | ||
From Mcltt.Core Require Export SystemOpt. | ||
Import Domain_Notations. | ||
|
||
Lemma ctxeq_nbe_eq : forall Γ Γ' M A, | ||
{{ Γ ⊢ M : A }} -> | ||
{{ ⊢ Γ ≈ Γ' }} -> | ||
exists w, nbe Γ M A w /\ nbe Γ' M A w. | ||
Proof. | ||
intros ? ? ? ? [envR [Henv [i ?]]]%completeness_fundamental_exp [envR' Henv']%completeness_fundamental_ctx_eq. | ||
handle_per_ctx_env_irrel. | ||
destruct (per_ctx_then_per_env_initial_env Henv') as [p [p' [? [? ?]]]]. | ||
deepexec H ltac:(fun H => destruct H as [R [? ?]]). | ||
progressive_inversion. | ||
deepexec @per_elem_then_per_top ltac:(fun H => destruct H as [w [? ?]]). | ||
exists w. | ||
split; econstructor; eauto. | ||
erewrite per_ctx_respects_length; try eassumption. | ||
eexists. symmetry. | ||
eassumption. | ||
Qed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters