# memorithm/fep architecture

> Architecture diagram of the GitHub repository memorithm/fep, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/memorithm/fep
- Repository: https://github.com/memorithm/fep

## Overview

FEP is an autonomous mathematical-research repository: researchers reproduce finite computations and inspect certificates for claims about its algebra, rather than using an application workflow. Its branches cover the finite-state algebra, spectra and algebraic pathways, transition monoids, Boolean constructions, and reconstruction problems. The graph emphasizes those research stages and the sampled computational cores. Several README-described capabilities are represented by their existing directories because their implementation files were not sampled; those internal relationships are therefore not inferred.

Main entry points: [`research/full_state/full_state_core.cjs`](https://github.com/memorithm/fep/blob/main/research/full_state/full_state_core.cjs) (Full-state core), [`verification/relecture_independante/fep_noyau.py`](https://github.com/memorithm/fep/blob/main/verification/relecture_independante/fep_noyau.py) (Independent FEP core), [`verification/FEP_6.0_niveau1_voies`](https://github.com/memorithm/fep/tree/main/verification/FEP_6.0_niveau1_voies) (Level-1 pathways), [`research/full_state/verify_echo_return.cjs`](https://github.com/memorithm/fep/blob/main/research/full_state/verify_echo_return.cjs) (Echo return checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_state["Finite-state algebra"]
  node_fullstate["Full-state core"]
  node_echo_return["Echo return checks"]
  node_independent_core["Independent FEP core<br/>[fep_noyau.py]"]
  node_independent_review["Independent review<br/>[relecture_51_59.py]"]
  node_state_review["State review<br/>[relecture_81_82.py]"]
end

subgraph group_spectra["Spectra and pathways"]
  node_order32_core["Order-32 engine<br/>[order32_core.cjs]"]
  node_order32_runner["Order-32 runner<br/>[order32_runner.cjs]"]
  node_spectrum["Spectrum verification"]
  node_pathways["Level-1 pathways"]
  node_base_verification["FEP 6 verification"]
  node_historical["FEP 5 verification"]
end

subgraph group_monoids["Transition monoids"]
  node_monoide_rank["Rank K−4 certificates"]
  node_monoide_count["Rank counting"]
  node_monoide_research["Other monoid results<br/>[FEP_6.0_monoides]"]
end

subgraph group_boolean["Boolean research"]
  node_boolean_intervals["Dyadic intervals"]
  node_boolean_events["Dyadic events"]
  node_boolean_research["Boolean investigations"]
end

subgraph group_reconstruction["Reconstruction"]
  node_tamari_search["Tamari search<br/>[search.rs]"]
  node_tamari_trees["Tree operations<br/>[trees.rs]"]
  node_root_split["Root-split certificate"]
  node_hybrid["Ternary hybrid checks"]
  node_reconstruction_research["Other reconstruction"]
end

node_researcher(("Researcher"))

node_researcher -->|"reproduces FEP 6"| node_base_verification
node_researcher -->|"reproduces spectrum"| node_spectrum
node_researcher -->|"checks pathways"| node_pathways
node_researcher -->|"reproduces FEP 5"| node_historical
node_researcher -->|"checks monoids"| node_monoide_research
node_researcher -->|"checks antiassociativity"| node_pathways
node_researcher -.->|"explores state algebra"| node_fullstate
node_echo_return -->|"uses core"| node_fullstate
node_independent_review -->|"checks against"| node_independent_core
node_state_review -->|"uses core"| node_independent_core
node_order32_runner -->|"runs engine"| node_order32_core
node_monoide_count -->|"imports certificate"| node_monoide_rank
node_boolean_events -->|"reads results"| node_boolean_intervals
node_tamari_search -->|"uses tree operations"| node_tamari_trees
node_hybrid -->|"uses certificate"| node_root_split

click node_fullstate "https://github.com/memorithm/fep/blob/main/research/full_state/full_state_core.cjs"
click node_echo_return "https://github.com/memorithm/fep/blob/main/research/full_state/verify_echo_return.cjs"
click node_independent_core "https://github.com/memorithm/fep/blob/main/verification/relecture_independante/fep_noyau.py"
click node_independent_review "https://github.com/memorithm/fep/blob/main/verification/relecture_independante/relecture_51_59.py"
click node_state_review "https://github.com/memorithm/fep/blob/main/verification/relecture_independante/relecture_81_82.py"
click node_order32_core "https://github.com/memorithm/fep/blob/main/research/order32/order32_core.cjs"
click node_order32_runner "https://github.com/memorithm/fep/blob/main/research/order32/order32_runner.cjs"
click node_spectrum "https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_niveau1_spectre.py"
click node_pathways "https://github.com/memorithm/fep/tree/main/verification/FEP_6.0_niveau1_voies"
click node_base_verification "https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_verification.py"
click node_historical "https://github.com/memorithm/fep/blob/main/verification/FEP_5.0_verification.py"
click node_monoide_rank "https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_monoides/verify_rank4_complete.py"
click node_monoide_count "https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_monoides/verify_rank4_count.py"
click node_monoide_research "https://github.com/memorithm/fep/tree/main/verification/FEP_6.0_monoides"
click node_boolean_intervals "https://github.com/memorithm/fep/blob/main/verification/boolean/verify_dyadic_direct_intervals.js"
click node_boolean_events "https://github.com/memorithm/fep/blob/main/verification/boolean/verify_dyadic_event_enumerator.js"
click node_boolean_research "https://github.com/memorithm/fep/tree/main/verification/boolean"
click node_tamari_search "https://github.com/memorithm/fep/blob/main/verification/reconstruction/tamari/search.rs"
click node_tamari_trees "https://github.com/memorithm/fep/blob/main/verification/reconstruction/tamari/trees.rs"
click node_root_split "https://github.com/memorithm/fep/blob/main/verification/reconstruction/verify_root_split.py"
click node_hybrid "https://github.com/memorithm/fep/blob/main/verification/reconstruction/verify_ternary_hybrid.py"
click node_reconstruction_research "https://github.com/memorithm/fep/tree/main/verification/reconstruction"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_fullstate,node_echo_return,node_independent_core,node_independent_review,node_state_review toneBlue
class node_order32_core,node_order32_runner,node_spectrum,node_pathways,node_base_verification,node_historical toneAmber
class node_monoide_rank,node_monoide_count,node_monoide_research toneMint
class node_boolean_intervals,node_boolean_events,node_boolean_research toneRose
class node_tamari_search,node_tamari_trees,node_root_split,node_hybrid,node_reconstruction_research,node_researcher toneIndigo
```

## Components

### Finite-state algebra

- [Full-state core](https://github.com/memorithm/fep/blob/main/research/full_state/full_state_core.cjs): `research/full_state/full_state_core.cjs`
- [Echo return checks](https://github.com/memorithm/fep/blob/main/research/full_state/verify_echo_return.cjs): `research/full_state/verify_echo_return.cjs`
- [Independent FEP core](https://github.com/memorithm/fep/blob/main/verification/relecture_independante/fep_noyau.py): `verification/relecture_independante/fep_noyau.py`
- [Independent review](https://github.com/memorithm/fep/blob/main/verification/relecture_independante/relecture_51_59.py): `verification/relecture_independante/relecture_51_59.py`
- [State review](https://github.com/memorithm/fep/blob/main/verification/relecture_independante/relecture_81_82.py): `verification/relecture_independante/relecture_81_82.py`

### Spectra and pathways

- [Order-32 engine](https://github.com/memorithm/fep/blob/main/research/order32/order32_core.cjs): `research/order32/order32_core.cjs`
- [Order-32 runner](https://github.com/memorithm/fep/blob/main/research/order32/order32_runner.cjs): `research/order32/order32_runner.cjs`
- [Spectrum verification](https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_niveau1_spectre.py): `verification/FEP_6.0_niveau1_spectre.py`
- [Level-1 pathways](https://github.com/memorithm/fep/tree/main/verification/FEP_6.0_niveau1_voies): `verification/FEP_6.0_niveau1_voies`
- [FEP 6 verification](https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_verification.py): `verification/FEP_6.0_verification.py`
- [FEP 5 verification](https://github.com/memorithm/fep/blob/main/verification/FEP_5.0_verification.py): `verification/FEP_5.0_verification.py`

### Transition monoids

- [Rank K−4 certificates](https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_monoides/verify_rank4_complete.py): `verification/FEP_6.0_monoides/verify_rank4_complete.py`
- [Rank counting](https://github.com/memorithm/fep/blob/main/verification/FEP_6.0_monoides/verify_rank4_count.py): `verification/FEP_6.0_monoides/verify_rank4_count.py`
- [Other monoid results](https://github.com/memorithm/fep/tree/main/verification/FEP_6.0_monoides): `verification/FEP_6.0_monoides`

### Boolean research

- [Dyadic intervals](https://github.com/memorithm/fep/blob/main/verification/boolean/verify_dyadic_direct_intervals.js): `verification/boolean/verify_dyadic_direct_intervals.js`
- [Dyadic events](https://github.com/memorithm/fep/blob/main/verification/boolean/verify_dyadic_event_enumerator.js): `verification/boolean/verify_dyadic_event_enumerator.js`
- [Boolean investigations](https://github.com/memorithm/fep/tree/main/verification/boolean): `verification/boolean`

### Reconstruction

- [Tamari search](https://github.com/memorithm/fep/blob/main/verification/reconstruction/tamari/search.rs): `verification/reconstruction/tamari/search.rs`
- [Tree operations](https://github.com/memorithm/fep/blob/main/verification/reconstruction/tamari/trees.rs): `verification/reconstruction/tamari/trees.rs`
- [Root-split certificate](https://github.com/memorithm/fep/blob/main/verification/reconstruction/verify_root_split.py): `verification/reconstruction/verify_root_split.py`
- [Ternary hybrid checks](https://github.com/memorithm/fep/blob/main/verification/reconstruction/verify_ternary_hybrid.py): `verification/reconstruction/verify_ternary_hybrid.py`
- [Other reconstruction](https://github.com/memorithm/fep/tree/main/verification/reconstruction): `verification/reconstruction`

### Other components

- **Researcher**

## Connections

- Researcher → FEP 6 verification: reproduces FEP 6
- Researcher → Spectrum verification: reproduces spectrum
- Researcher → Level-1 pathways: checks pathways
- Researcher → FEP 5 verification: reproduces FEP 5
- Researcher → Other monoid results: checks monoids
- Researcher → Level-1 pathways: checks antiassociativity
- Researcher → Full-state core: explores state algebra
- Echo return checks → Full-state core: uses core (evidence: `research/full_state/verify_echo_return.cjs`)
- Independent review → Independent FEP core: checks against (evidence: `verification/relecture_independante/relecture_51_59.py`)
- State review → Independent FEP core: uses core (evidence: `verification/relecture_independante/relecture_81_82.py`)
- Order-32 runner → Order-32 engine: runs engine (evidence: `research/order32/order32_runner.cjs`)
- Rank counting → Rank K−4 certificates: imports certificate (evidence: `verification/FEP_6.0_monoides/verify_rank4_count.py`)
- Dyadic events → Dyadic intervals: reads results (evidence: `verification/boolean/verify_dyadic_event_enumerator.js`)
- Tamari search → Tree operations: uses tree operations (evidence: `verification/reconstruction/tamari/search.rs`)
- Ternary hybrid checks → Root-split certificate: uses certificate (evidence: `verification/reconstruction/verify_ternary_hybrid.py`)
