# Group

## Definition

A group is defined as a set $$G$$ closed under a binary operation ★ and is usually instantiated as$$\<G, ★>$$.

If our operation ★ = $$+$$ or is addition, we call this an **Additive Group.**

If our operation ★ = $$\*$$ or is multiplication, we call this a **Multiplicative Group.**

### Properties

Groups hold **4 properties**:

1. Closure aka “closed”
   1. $$x★y$$ is in $$G$$, for all $$x,y$$ in $$G$$
2. Associativity
   1. $$(x★y)★z = x★(y★z)$$, for all $$x,y,z$$ in $$G$$
3. Identity
   1. There exists a single “$$e$$” in $$G$$ such that $$x★e = e★x = x$$
4. Inverse
   1. There exists an $$x^{-1}$$ in $$G$$ such that $$x★x^{-1} = x^{-1}★x = e$$ , where “$$e$$” refers to the “$$e$$” of the identity property

> If the Commutative property is also valid ($$x★y = y★x,$$ for all $$x, y$$ in $$G$$), then the group is called an “**Abelian Group.”**

## Examples

1. $$<\mathbb{Z}$$, $$+>$$ additive for the set of all integers ✅ (valid group)
   1. closure ✅
   2. associativity ✅
   3. identity $$a + 0 = 0 + a = a$$ ✅
   4. inverse $$a + (-a) = (-a) + a = 0$$ ✅
2. $$<\mathbb{Z}$$, $$\*>$$ multiplicative for the set of all integers ❌ (not a valid group)
   1. closure ✅
   2. associativity ✅
   3. identity $$a1 = 1a = a$$ ✅
   4. inverse $$a \* \frac{1}{a} = \frac{1}{a} \* a = 1$$, but $$\frac{1}{a}$$ does not necessarily exist in $$\mathbb{Z}$$ ❌


---

# 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://fractalyze.gitbook.io/intro/primitives/abstract-algebra/group.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.
