Skip to content
Snippets Groups Projects
Commit 08f14526 authored by Max New's avatar Max New
Browse files

[coq] start working on the coq impl, but stop

parent b404ff0d
No related branches found
No related tags found
No related merge requests found
...@@ -13,20 +13,17 @@ Record StCtx X := mkStCtx { ...@@ -13,20 +13,17 @@ Record StCtx X := mkStCtx {
ty : StoupSem S -> X ty : StoupSem S -> X
}. }.
Definition cdot X : StCtx X := mkStCtx _ None (fun x => match x with end). Definition cdot {X} : StCtx X := mkStCtx _ None (fun x => match x with end).
Definition hstoup Y (B : Y) : StCtx Y := mkStCtx _ One (fun x => match x with tt => B end). Definition hstoup {Y} (B : Y) : StCtx Y := mkStCtx _ One (fun x => match x with tt => B end).
Inductive Dimension := Top | Bot. Inductive VType : Set :=
Definition DCtx := StCtx Dimension. VUnit : VType
| VTimes : forall (A A' : VType), VType
Inductive VType : DCtx -> Set := | VU : forall (B : CType), VType
VUnit : forall I, VType I
| VTimes : forall {I} (A A' : VType I), VType I
| VU : forall {I} (B : CType I), VType I
with with
CType : DCtx -> Set := CType : Set :=
| CTo : forall {I} (A : VType I) (B : CType I), CType I | CTo : forall (A : VType) (B : CType), CType
| CF : forall {I} (A : VType I), CType I. | CF : forall (A : VType), CType.
Inductive Vlt : VType -> VType -> Set := Inductive Vlt : VType -> VType -> Set :=
vrefl : forall A, Vlt A A vrefl : forall A, Vlt A A
...@@ -67,6 +64,8 @@ Definition ext (G : VCtx) (A : VType) : VCtx := ...@@ -67,6 +64,8 @@ Definition ext (G : VCtx) (A : VType) : VCtx :=
| inr tt => A | inr tt => A
end). end).
Definition CCtx := StCtx CType.
Inductive Value : VCtx -> VType -> Type := Inductive Value : VCtx -> VType -> Type :=
| var : forall G (x : U G), Value G (vty G x) | var : forall G (x : U G), Value G (vty G x)
| vunit : forall G, Value G VUnit | vunit : forall G, Value G VUnit
...@@ -101,8 +100,3 @@ Term : VCtx -> CCtx -> CType -> Type := ...@@ -101,8 +100,3 @@ Term : VCtx -> CCtx -> CType -> Type :=
Term G Dt B Term G Dt B
. .
asdf
.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment