Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error in TypeChecking.MetaVars #1231

Closed
GoogleCodeExporter opened this issue Aug 8, 2015 · 1 comment
Closed

Internal error in TypeChecking.MetaVars #1231

GoogleCodeExporter opened this issue Aug 8, 2015 · 1 comment
Assignees
Labels
meta Metavariables, insertion of implicit arguments, etc pruning type: bug Issues and pull requests about actual bugs
Milestone

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Aug 8, 2015

__IMPOSSIBLE__ in assignTerm' (line 111 on maint-2.4.0). Present both in master and maint.

I didn't manage to shrink this further:

data Nat : Set where
  zero : Nat

data _≡_ {A : Set} (x : A) : A  Set where
  refl : x ≡ x

subst :  {A : Set} (P : A  Set) {x y}  x ≡ y  P x  P y
subst P refl px = px

postulate
  Eq : Set  Set
  mkEq : {A : Set} (x y : A)  x ≡ y
  _==_ : {A : Set} {{_ : Eq A}} (x y : A)  x ≡ y

  A : Set
  B : A  Set
  C :  x  B x  Set

case_of_ :  {a b} {A : Set a} {B : Set b}  A  (A  B)  B
case x of f = f x

id :  {a} (A : Set a)  A  A
id A x = x

eqTriple : {{_ :  {x} {y : B x}  Eq (C x y)}}
           (a : A) (b : B a) (c : C a b)
           (a₁ : A) (b₁ : B a₁) (c : C a₁ b₁)  Nat
eqTriple a b c a₁ b₁ c₁ =
  subst (λ a₂   (b₂ : B a₂) (c₂ : _)  Nat) (mkEq a a₁)
        (λ b₂ c₂  subst (λ b₃   c₃  Nat) (mkEq b b₂)
                           (λ c₃  case c == c₃ of λ eq  zero) c₂)
        b₁ c₁

Original issue reported on code.google.com by ulf.nor...@gmail.com on 17 Jul 2014 at 2:42

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Aug 8, 2015

Fixed. The problem was that metavariable pruning didn't respect dontAssignMetas.

Commit: 4f08824

Original comment by ulf.nor...@gmail.com on 17 Jul 2014 at 3:09

  • Changed state: Fixed

@GoogleCodeExporter GoogleCodeExporter added type: bug Issues and pull requests about actual bugs auto-migrated meta Metavariables, insertion of implicit arguments, etc labels Aug 8, 2015
@asr asr modified the milestone: 2.4.0.2 Aug 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Metavariables, insertion of implicit arguments, etc pruning type: bug Issues and pull requests about actual bugs
Projects
None yet
Development

No branches or pull requests

4 participants