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

Figure out how to import arithmetic operations in Agda #24

Open
swamp-agr opened this issue Dec 14, 2022 · 0 comments
Open

Figure out how to import arithmetic operations in Agda #24

swamp-agr opened this issue Dec 14, 2022 · 0 comments

Comments

@swamp-agr
Copy link
Owner

swamp-agr commented Dec 14, 2022

While the errors from Agda REPL and bot are the same, the scope is different:

  • Agda REPL scope:
 :scope
ScopeInfo
  current = agda394558218
  context = []
  modules
    scope
      private
        names
          Prop --> [Agda.Primitive.Prop]
          Set --> [Agda.Primitive.Set]
      imports
        [Agda.Primitive]
    scope agda394558218
      private
        names
          _*_ --> [Agda.Builtin.Nat._*_]
          _+_ --> [Agda.Builtin.Nat._+_]
          _-_ --> [Agda.Builtin.Nat._-_]
          _<_ --> [Agda.Builtin.Nat._<_]
          _==_ --> [Agda.Builtin.Nat._==_]
          Nat --> [Agda.Builtin.Nat.Nat]
          div-helper --> [Agda.Builtin.Nat.div-helper]
          mod-helper --> [Agda.Builtin.Nat.mod-helper]
          suc --> [Agda.Builtin.Nat.Nat.suc]
          zero --> [Agda.Builtin.Nat.Nat.zero]
        modules
          Nat --> [Agda.Builtin.Nat.Nat]
      imports
        [Agda.Builtin.Nat]
    scope Agda.Primitive
      public
        names
          _⊔_ --> [Agda.Primitive._⊔_]
          Level --> [Agda.Primitive.Level]
          Prop --> [Agda.Primitive.Prop]
          SSet --> [Agda.Primitive.SSet]
          SSetω --> [Agda.Primitive.SSetω]
          Set --> [Agda.Primitive.Set]
          Setω --> [Agda.Primitive.Setω]
          lsuc --> [Agda.Primitive.lsuc]
          lzero --> [Agda.Primitive.lzero]
    scope Agda.Builtin.Nat
      public
        names
          _*_ --> [Agda.Builtin.Nat._*_]
          _+_ --> [Agda.Builtin.Nat._+_]
          _-_ --> [Agda.Builtin.Nat._-_]
          _<_ --> [Agda.Builtin.Nat._<_]
          _==_ --> [Agda.Builtin.Nat._==_]
          Nat --> [Agda.Builtin.Nat.Nat]
          div-helper --> [Agda.Builtin.Nat.div-helper]
          mod-helper --> [Agda.Builtin.Nat.mod-helper]
          suc --> [Agda.Builtin.Nat.Nat.suc]
          zero --> [Agda.Builtin.Nat.Nat.zero]
        modules
          Nat --> [Agda.Builtin.Nat.Nat]
    scope Agda.Builtin.Nat.Nat
      public
        names
          suc --> [Agda.Builtin.Nat.Nat.suc]
          zero --> [Agda.Builtin.Nat.Nat.zero]
  • Bot scope:
ScopeInfo
  current =
  context = []
  modules
    scope
      private
        names
          Prop --> [Agda.Primitive.Prop]
          Set --> [Agda.Primitive.Set]
      imports
        [Agda.Primitive]
    scope Agda.Primitive
      public
        names
          _⊔_ --> [Agda.Primitive._⊔_]
          Level --> [Agda.Primitive.Level]
          Prop --> [Agda.Primitive.Prop]
          SSet --> [Agda.Primitive.SSet]
          SSetω --> [Agda.Primitive.SSetω]
          Set --> [Agda.Primitive.Set]
          Setω --> [Agda.Primitive.Setω]
          lsuc --> [Agda.Primitive.lsuc]
          lzero --> [Agda.Primitive.lzero]

The idea is to allow bot to keep imports in the current session scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant