> For the complete documentation index, see [llms.txt](https://ampersandtarski.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ampersandtarski.gitbook.io/documentation/the-language-ampersand/terms/semantics-visualized/semantics-of-boolean-operators-visualized.md).

# Semantics of boolean operators visualized

Consider two relations: `authorized[Account*Person]` and `beneficiary[Account*Person]`. The first relation tells which persons are authorized to which accounts. The diagram shows this as red dashed lines. The second relation tells which persons stand to benefit from which accounts.. It is depicted by dotted blue lines in the diagram.

![](/files/-M0fX0rv19P4QHtw9PDz)

This diagram gives an example population of the relations `authorized[Account*Person]` and `beneficiary[Account*Person]`. Bob is authorized for account DE9382991 and Ann is authorized for account RS746620. Carl stands to benefit from account NL19RABO03992844 and Ann stands to benefit from account RS746620. Formally, we say:

| statements                              |
| --------------------------------------- |
| `"NL19RABO03992844" beneficiary "Carl"` |
| `"DE9382991" authorized "Bob"`          |
| `"RS746620" authorized "Ann"`           |
| `"RS746620" beneficiary "Ann"`          |

By combining the relations `authorized` and `beneficiary`, we can derive the following true statements.

| statement                                             | natural language                                                           |
| ----------------------------------------------------- | -------------------------------------------------------------------------- |
| `"RS746620" (authorized/\beneficiary) "Ann"`          | Ann is authorized for and stands to benefit from for account RS746620.     |
| `"NL19RABO03992844" (authorized\/beneficiary) "Carl"` | Carl is authorized for or stands to benefit from account NL19RABO03992844. |
| `"RS746620" (authorized\/beneficiary) "Ann"`          | Ann is authorized for or stands to benefit from account RS746620.          |
| `"DE9382991" (authorized\/beneficiary) "Bob"`         | Bob is authorized for or stands to benefit from account DE9382991.         |

A different way to state the same is:

|                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `authorized/\beneficiary = {("RS746620", "Ann")}`                                                                                                                                          |
| <p><code>authorized/beneficiary =</code> </p><p>  <code>{ ("NL19RABO03992844", "Carl")</code></p><p>  <code>, ("RS746620", "Ann")</code></p><p>  <code>, ("DE9382991", "Bob") }</code></p> |

## Other explanations

Would you like a different explanation of the boolean operators? [This page](/documentation/the-language-ampersand/terms/semantics-in-sets/boolean-operators-sets.md) explains them in set theory. [Click here](/documentation/the-language-ampersand/terms/semantics-in-algebra/boolean-operators-in-algebra.md) for the semantics of the boolean operators in algebra. [Here](/documentation/the-language-ampersand/terms/semantics-in-logic/boolean-operators.md) you get their definitions in logic.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://ampersandtarski.gitbook.io/documentation/the-language-ampersand/terms/semantics-visualized/semantics-of-boolean-operators-visualized.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.
