-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2816605
commit 6bd89db
Showing
3 changed files
with
41 additions
and
1 deletion.
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,31 @@ | ||
open import Agda.Builtin.Equality | ||
|
||
cong : ∀{a b} {A : Set a} {B : Set b} (f : A → B) {x y : A} (eq : x ≡ y) → f x ≡ f y | ||
cong f refl = refl | ||
|
||
record Category : Set₂ where | ||
field | ||
Ob : Set₁ | ||
_⇒_ : Ob → Ob → Set | ||
_∘_ : ∀ {O P Q} → P ⇒ Q → O ⇒ P → O ⇒ Q | ||
|
||
-- Moving this out of the record fixes the problem. | ||
idem : {X : Ob} → X ⇒ X → Set₁ | ||
idem {X} f = f ∘ f ≡ f → Set | ||
|
||
Sets : Category | ||
Sets = record | ||
{ Ob = Set | ||
; _⇒_ = {!!} | ||
; _∘_ = λ f g x → f (g x) | ||
} | ||
open Category Sets | ||
|
||
postulate | ||
Y : Ob | ||
f : Y ⇒ Y | ||
|
||
idem-f : idem {X = _} f -- Solving the _ fixes the problem | ||
idem-f ff≡f | ||
with ffx≡fx ← cong {!!} ff≡f | ||
= Y |
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 @@ | ||
Issue5805.agda:29,1-31,6 | ||
(ff≡f : (_65 ∘ _65) ≡ _65) → | ||
?1 (ff≡f = ff≡f) (λ x → _65 (_65 x)) ≡ ?1 (ff≡f = ff≡f) _65 → Set | ||
is not a valid type | ||
when checking that the type | ||
(ff≡f : (_65 ∘ _65) ≡ _65) → | ||
?1 (ff≡f = ff≡f) (λ x → _65 (_65 x)) ≡ ?1 (ff≡f = ff≡f) _65 → Set | ||
of the generated with function is well-formed |