-
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.
Mimer: drop constructor parameters from solutions (#7111)
Mimer: drop constructor parameters from solutions (fixes #7101)
- Loading branch information
Showing
4 changed files
with
92 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
module _ where | ||
|
||
open import Agda.Builtin.Nat | ||
open import Agda.Builtin.Equality | ||
open import Agda.Builtin.List | ||
|
||
_++_ : List Nat → List Nat → List Nat | ||
[] ++ ys = ys | ||
(x ∷ xs) ++ ys = x ∷ xs ++ ys | ||
|
||
sum : List Nat → Nat | ||
sum [] = 0 | ||
sum (x ∷ xs) = x + sum xs | ||
|
||
postulate | ||
sum-++ : ∀ xs ys → sum (xs ++ ys) ≡ sum xs + sum ys | ||
|
||
_ : sum ([] ++ []) ≡ 0 | ||
_ = sum-++ {!!} [] |
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, Errors*" "?0 : List Nat ———— Errors ———————————————————————————————————————————————— Failed to solve the following constraints: sum ?0 + sum [] = 0 : Nat (blocked on _xs_19) sum (?0 ++ []) = 0 : Nat (blocked on _xs_19) " nil) | ||
((last . 1) . (agda2-goals-action '(0))) | ||
(agda2-give-action 0 "[]") | ||
((last . 1) . (agda2-goals-action '())) |