<scon>
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
signature OBJECT = | |
sig | |
type 'a tag | |
type t | |
val new : unit -> t list tag | |
and make : 'a tag -> 'a -> t | |
val get : t -> 'a tag -> 'a | |
(* primitives *) |
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
signature OBJECT = | |
sig | |
type 'a tag | |
type t | |
val Bool : bool tag | |
and Int : int tag | |
and String : string tag | |
val toString : t -> string |
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
{-# OPTIONS --cubical #-} | |
open import Cubical.Foundations.Prelude | |
infix 1 begin_ | |
begin_ : {A : Set} {x y : A} → x ≡ y → x ≡ y | |
begin_ x≡y = x≡y | |
infix 9 _⁻¹ | |
infixl 5 _·_ |
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
signature UNIV_MAP = | |
sig | |
structure Key : sig | |
type 'a t | |
val create : unit -> 'a t | |
end | |
type t | |
val empty : t |