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

explicit implicit arguments #1092

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

explicit implicit arguments #1092

GoogleCodeExporter opened this issue Aug 8, 2015 · 1 comment
Labels
conversion Conversion checking for terms, types; Subtyping; Size solving hidden arguments Insertion of hidden arguments and implicit lambdas type: enhancement Issues and pull requests about possible improvements

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Aug 8, 2015

This is on Development Agda of February 16, 2014.

Is this difficult to fix the checker with getting rid of applying in many
places things like

             \ {x} {y} -> f {x} {y}

?
This bites a programmer in a non-trivial way too.
For example (the code is not complete):

  ...
  IsOp₂homomorphism : (From c→ To)  Op₂ A  Op₂ B  Set (α ⊔ β=)
  IsOp₂homomorphism (f , _) _*_ _*'_ =
                                     {x y : A}  f (x * y) =b ((f x) *' (f y))

  foo : (g : C)  Op₂homomorphism _+_ _∙_
  foo g =  (cFromℤ , (\ {z} {u}  isH {z} {u}))
    where
    from = fromℤ g
    cong-from = cong₂-fromℤ {g = g}
    cFromℤ =  (from , cong-from)

    isH : IsOp₂homomorphism cFromℤ _+_ _∙_
    isH {z} {u} = fromℤ+homo g z u

  foo1 : C  Op₂homomorphism _+_ _∙_
  foo1 g =  homoFromℤ
            where
            homoFromℤ : Op₂homomorphism _+_ _∙_
            homoFromℤ = foo g

            cMap = proj₁ homoFromℤ

            is2homo :  IsOp₂homomorphism cMap _+_ _∙_
            is2homo =  \ {z} {u}  proj₂ homoFromℤ {z} {u}

The prefix "\ {z} {u} →"

occurs necessary not only in the line of "foo g"
but also in the line of "is2homo = ".

Sometimes it is difficult to debug, because there are too many possible sources
of "unsolved metas".


Original issue reported on code.google.com by `mech...@botik.ru` on 30 Mar 2014 at 7:39
* Merged into: #1079
@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Aug 8, 2015

This is along the lines of issue #1079. Unfortunately, it is non-trivial to fix.

Original comment by andreas....@gmail.com on 2 Apr 2014 at 6:15

  • Changed state: Duplicate
  • Added labels: Conversion, HiddenArguments, Type-Enhancement

@GoogleCodeExporter GoogleCodeExporter added auto-migrated type: enhancement Issues and pull requests about possible improvements conversion Conversion checking for terms, types; Subtyping; Size solving hidden arguments Insertion of hidden arguments and implicit lambdas labels Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conversion Conversion checking for terms, types; Subtyping; Size solving hidden arguments Insertion of hidden arguments and implicit lambdas type: enhancement Issues and pull requests about possible improvements
Projects
None yet
Development

No branches or pull requests

2 participants