Skip to content

Commit

Permalink
Add RTEquiv to .ott
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Jan 21, 2021
1 parent 7edda89 commit b12edfc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions tex/common.ott
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ terminals :: terminals_ ::=
| |-> :: :: subst {{ tex \mapsto }}
| GD :: :: contextdelta {{ tex \Delta }}
| ~~> :: :: evalsto {{ tex \evalsto }}
| =trb :: :: r_equiv {{ tex =_{\tau r\beta} }}
| in :: :: in {{ tex \in }}
| |- :: :: proves {{ tex \vdash }}
| \ :: :: lambda {{ tex \lambda }}
Expand Down
7 changes: 7 additions & 0 deletions tex/paper.mng
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ with some extra rules for the ADTs and pattern matching.
\label{fig:surface_opsem}
\end{figure}

\begin{figure}[ht]
\footnotesize
\drules[RTEquiv]{$[[ ts1 =trb ts2 ]]$}{type equivalence}{Forward,Backward}
\caption{Surface language type equivalence}
\label{fig:surface_tyequiv}
\end{figure}

\begin{figure}[ht]
\footnotesize
\drules[TCTX]{$[[ G ok ]]$}{context well-formedness}{Empty,Bind}
Expand Down
10 changes: 10 additions & 0 deletions tex/surface.ott
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ C {{ tex \nonterm C }} :: logic_ctx_ ::= {{ com logical context }}

defns Jtype :: '' ::=

defn ts1 =trb ts2 :: :: type_r_equiv :: RTEquiv_ {{ com restricted type equivalence }} by

es ~~> es'
------------------------------------- :: Forward
[ x |-> es' ] ts =trb [ x |-> es ] ts

es ~~> es'
------------------------------------- :: Backward
[ x |-> es ] ts =trb [ x |-> es' ] ts

defn G ok :: :: ctx_wf :: TCTX_ {{ com context well-formedness }} by

-------- :: Empty
Expand Down

0 comments on commit b12edfc

Please sign in to comment.