Skip to content

Instantly share code, notes, and snippets.

@SimonForest
SimonForest / bug-wo-record.agda
Created December 21, 2018 14:19
A bug in Agda ?
record MyS
(State : Set)
(Operation : (f g : State) → Set)
(Change : {f g : State} (O : Operation f g) → Set)
:
Set
where
data Left-state : Set where
Left-notdone : Left-state
@SimonForest
SimonForest / bug.agda
Created December 21, 2018 14:06
A bug in Agda ?
record MyS
(State : Set)
(Operation : (f g : State) → Set)
(Change : {f g : State} (O : Operation f g) → Set)
:
Set
where
field
comp : {f f' f'' : State} (F : Operation f f') (G : Operation f' f'') → Operation f f''
(set-option :global-decls false)
(set-option :smt.mbqi false)
(declare-sort Ref)
(declare-fun Ref_constr_id (Ref) Int)
(declare-sort String)
(declare-fun String_constr_id (String) Int)
(declare-sort Kind)
(declare-fun Kind_constr_id (Kind) Int)
(set-option :global-decls false)
(set-option :smt.mbqi false)
(declare-sort Ref)
(declare-fun Ref_constr_id (Ref) Int)
(declare-sort String)
(declare-fun String_constr_id (String) Int)
(declare-sort Kind)
(declare-fun Kind_constr_id (Kind) Int)