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

Anonymous module printed in goal #721

Closed
GoogleCodeExporter opened this issue Aug 8, 2015 · 3 comments
Closed

Anonymous module printed in goal #721

GoogleCodeExporter opened this issue Aug 8, 2015 · 3 comments
Labels
type: bug Issues and pull requests about actual bugs ux: display Issues relating to how terms are printed for display
Milestone

Comments

@GoogleCodeExporter
Copy link

When playing around with Issue #632 I discovered this

data Bool : Set where
  false true : Bool

record Foo (b : Bool) : Set where
  field
    _*_ : Bool  Bool  Bool

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

horror1 : (F : Foo false) (x : Bool)  let open Foo F in _*_ x ≡ (λ x  x)
horror1 F x = {!!} -- Goal: (F .Issue632._.* x) x ≡ (λ x₁ → x₁)

Shouldn't the printer expand definitions with anonymous qualifiers?

Original issue reported on code.google.com by andreas....@gmail.com on 20 Oct 2012 at 2:52

@GoogleCodeExporter
Copy link
Author

Problem: loops in the presence of displayForms

-- LOOPS
horror3 : (F : Foo false)  let open Foo F in (x : Bool)  _*_ x ≡ (λ x  x)
horror3 F x = x -- {!!} -- Goal: (F .Issue632._.* x) ≡ (λ x₁ → x₁)
  where open Foo F

displayForm unexpands the definition again, so we are looping.

Original comment by andreas....@gmail.com on 20 Oct 2012 at 5:10

@GoogleCodeExporter GoogleCodeExporter added type: bug Issues and pull requests about actual bugs auto-migrated ux: display Issues relating to how terms are printed for display labels Aug 8, 2015
@GoogleCodeExporter
Copy link
Author

Fixed by not expand definitions that were introduced by displayForms.

Original comment by andreas....@gmail.com on 20 Oct 2012 at 7:17

  • Changed state: Fixed
  • Added labels: Display
  • Removed labels: Printing

@GoogleCodeExporter
Copy link
Author

Issue #644 has been merged into this issue.

Original comment by andreas....@gmail.com on 20 Oct 2012 at 7:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issues and pull requests about actual bugs ux: display Issues relating to how terms are printed for display
Projects
None yet
Development

No branches or pull requests

3 participants