Skip to content

Commit

Permalink
Add new blocking primitives to Reflection.TCM (agda#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
plt-amy authored and jamesmckinna committed Nov 4, 2023
1 parent 135951f commit a843d0d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3812,6 +3812,15 @@ This is a full list of proofs that have changed form to use irrelevant instance
WellFounded _<_ → Irreflexive _≈_ _<_
```

* Added new types and operations to `Reflection.TCM`:
```
Blocker : Set
blockerMeta : Meta → Blocker
blockerAny : List Blocker → Blocker
blockerAll : List Blocker → Blocker
blockTC : Blocker → TC A
```

* Added new file `Relation.Binary.Reasoning.Base.Apartness`

This is how to use it:
Expand Down
7 changes: 5 additions & 2 deletions src/Reflection/TCM.agda
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

module Reflection.TCM where

open import Reflection.AST.Term
import Agda.Builtin.Reflection as Builtin

open import Reflection.AST.Term
import Reflection.TCM.Format as Format

------------------------------------------------------------------------
Expand All @@ -29,7 +30,9 @@ open Builtin public
; getContext; extendContext; inContext; freshName
; declareDef; declarePostulate; defineFun; getType; getDefinition
; blockOnMeta; commitTC; isMacro; withNormalisation
; debugPrint; noConstraints; runSpeculative)
; debugPrint; noConstraints; runSpeculative
; Blocker; blockerMeta; blockerAny; blockerAll; blockTC
)
renaming (returnTC to pure)

open Format public
Expand Down

0 comments on commit a843d0d

Please sign in to comment.