# arith

The `arith` dialect provides foundational operations for working with basic types. It includes instructions for basic arithmetic, logical operations, and comparisons. This dialect is flat, with no subgroups, and focuses entirely on non-encrypted types.&#x20;

### Examples

```
\\Adds two integers and returns an integer result.
%sum = arith.add %a, %b : (i32) -> i32

\\Compares two 64-bit integers for equality, returning a Boolean result.
%eq = arith.eq %x, %y : (i64) -> bool
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fairmath.xyz/fhe-computer/isa/arith.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
