-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Mimer trying bad recursive calls (#7195)
* Mimer: use monadic pretty printing combinators * Mimer: use setMetaOccursCheck instead of creating fresh meta * add "mimer.trace" debug printing giving a readable trace of the search * Mimer: remove goalEnv * add ViewPatterns to default extensions * Mimer: make sure recursive call components get fresh metas after use * add a NoSubst newtype wrapper with a trivial Subst instance * Mimer: take care to only generate terminating recursive calls * Mimer: issue 7116 test case * add haddock for NoSubst
- Loading branch information
Showing
7 changed files
with
373 additions
and
373 deletions.
There are no files selected for viewing
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module _ (A : Set) where | ||
|
||
open import Agda.Builtin.Nat | ||
open import Agda.Builtin.Sigma | ||
|
||
data Color : Set where | ||
black : Color | ||
|
||
data Tree' : Color → Nat → Set where | ||
nb : ∀ (a : A) {c} {n} | ||
→ Tree' c n | ||
→ Tree' black n | ||
→ Tree' black (suc n) | ||
|
||
test : ∀ (a : A) {n} (l : Tree' black (suc n)) → Σ _ λ c → Tree' c (suc n) | ||
test a (nb b l r) = {!!} -- C-c C-a | ||
-- was: internal error | ||
-- should be: black , nb a r r | ||
|
||
-- An internal error has occurred. Please report this as a bug. | ||
-- Location of the error: __IMPOSSIBLE__, called at src/full/Agda/TypeChecking/CompiledClause/Match.hs:87:73 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
top_command (cmd_load currentFile []) | ||
goal_command 0 cmd_autoOne "" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(agda2-status-action "") | ||
(agda2-info-action "*Type-checking*" "" nil) | ||
(agda2-highlight-clear) | ||
(agda2-status-action "") | ||
(agda2-info-action "*All Goals*" "?0 : Σ Color (λ c → Tree' c (suc n)) " nil) | ||
((last . 1) . (agda2-goals-action '(0))) | ||
(agda2-give-action 0 "black , nb a r r") | ||
((last . 1) . (agda2-goals-action '())) |