Skip to content
aiWikis.org

Protocol5 / Mathematics / UAI

Protocol5 is no longer the public source of truth for UAI-1. UAIX.org owns the UAI-1 specification, schemas, registry, validator, roadmap, governance, changelog, and handoff guidance. This repository contains the Prot...

Metadata

FieldValue
Source siteprotocol5.com
Source URLhttps://protocol5.com/
Canonical AIWikis URLhttps://aiwikis.org/protocol5/uai-system/files/readme-md-34c1a76d/
Source referenceREADME.md
File typemd
Content categorymemory-file
Last fetched2026-05-06T17:58:24.5168382Z
Last changed2026-05-05T23:05:56.0213715Z
Content hashsha256:34c1a76d8f0f96dfdd97c85198498089cb6bb6e1621f0eb2d3cc537c03d8aab6
Import statusunchanged
Raw source layerdata/sources/protocol5/readme-md-34c1a76d8f0f.md
Normalized source layerdata/normalized/protocol5/readme-md-34c1a76d8f0f.txt

Current File Content

Structure Preview

  • Protocol5 / Mathematics / UAI
  • Main Projects
  • Protocol5 Site Architecture
  • UAI Reference Contracts
  • Protocol5 Publishing Model
  • The Most Important Rule
  • Source Tree vs Live Tree
  • Linking Rules For Protocol5
  • Legacy Generated Page Constraints
  • What Must Be Preserved In Publish
  • Safe Publish Workflow
  • Smoke Test Checklist
  • Files To Read Before Changing Protocol5
  • Build / Test

Raw Version

This public page shows a bounded preview of a large source file. The complete source remains in the raw and normalized source layers named in metadata, with the SHA-256 hash above for verification.

  • Source characters: 15386
  • Preview characters: 11905

Local absolute paths are redacted in this public view. The source hash and source-side raw layer are based on the unredacted source file.

# Protocol5 / Mathematics / UAI

**Terminology:** UAI means **Universal Artificial Intelligence**. **UAI-1** means the current public UAI exchange contract published by UAIX.org.

Protocol5 is no longer the public source of truth for UAI-1. UAIX.org owns the UAI-1 specification, schemas, registry, validator, roadmap, governance, changelog, and handoff guidance. This repository contains the Protocol5 Mathematics engine and calculator shell plus the Protocol5.com host/content used to distribute .NET implementation assets, NuGet packages, starter ZIPs, and compatibility mirrors that point readers back to UAIX.org.

## Main Projects

- `NS12.VariableBase.Mathematics.Common`: low-level shared math contracts and segment models.
- `NS12.VariableBase.Mathematics.Providers`: arbitrary-base number and fraction implementations.
- `NS12.VariableBase.Mathematics.Providers.Tests`: provider tests.
- `NS12.Calculator`: Blazor WebAssembly calculator/converter/encryption shell.
- `Protocol5.com`: source-controlled Protocol5 site content, including the parent portal, Mathematics landing page, shared pages, UAI package/download pages, and generated compatibility outputs.
- `Protocol5.com.Host`: ASP.NET Core host that serves Protocol5 content and the calculator shell.
- `Protocol5.UAI.CSharp`: .NET implementation package with local schema/validator helpers, exporter, renderer, HTTP helpers, and compatibility APIs for teams integrating with UAI-1.
- `tools/Protocol5.UAI.SiteExporter`: console exporter for generating `.uai.json` endpoints from HTML.
- `tools/Protocol5.UAI.Validator`: sample validator CLI for local files, directory trees, and embedded canonical examples.

## Protocol5 Site Architecture

Protocol5.com should be read as a Protocol5 parent portal with three sibling areas: Protocol5 Mathematics, UAI Protocols, and The Iota Protocol. It must not be described as the UAI-1 standards site or public authority.

- `Protocol5` is the parent route shell for Mathematics, downloads, and implementation-package support.
- `Protocol5 Mathematics` contains numeric tools, variable-base arithmetic, Fibonacci and prime references, and numeric standards such as Radix 63404.
- `Protocol5 UAI Protocols` contains UAI-1 for .NET package downloads, starter ZIPs, ASP.NET integration notes, package fixtures, samples, API guidance, workbench routes, migration guidance, and compatibility mirrors for UAI-1 implementers.
- `The Iota Protocol` contains JustAnIota IOTA-1 (ɩ≃1) approximate public-symbol semantic conversion under `/Protocols/Iota`, with the public English ⇄ ɩ≃1 language converter at `/Protocols/Iota/language-converter`.
- Shared utility pages such as About, Links, Contact, downloads, registries, schemas, and compatibility routes remain Protocol5 infrastructure unless a route is explicitly section-owned.

Cross-linking should be intentional and secondary. UAI package pages should link to UAIX.org for UAI-1 authority and may reference Radix 63404 only as a separate Protocol5 numeric helper or optional rendering convention.

## UAI Reference Contracts

Use these local implementation references when integrating the Protocol5 .NET package. Use UAIX.org for canonical UAI-1 specification and support claims:

- spec/integration-contracts.md (source-relative: spec/integration-contracts.md)
- spec/translator-contract.md (source-relative: spec/translator-contract.md)
- spec/website-export-contract.md (source-relative: spec/website-export-contract.md)
- spec/registry-resolution-contract.md (source-relative: spec/registry-resolution-contract.md)
- spec/radix-63404-contract.md (source-relative: spec/radix-63404-contract.md)

Keep this boundary clear while working in the repo:

- `UAI` content in this repo is Protocol5 package/distribution support for the UAIX-owned UAI-1 standard.
- `Radix 63404` is a separate Protocol5 numeric notation standard that some publications and tools may use for compact numeric rendering.
- UAIX.org is the public UAI-1 authority; Protocol5.com is the .NET/NuGet distribution and backlink surface.

## Protocol5 Publishing Model

See docs/protocol5-site-operations.md (source-relative: docs/protocol5-site-operations.md) for the maintainer-focused Protocol5 host, asset, publish, and smoke-test workflow.

The live Protocol5 public host is not just the files tracked in this repo.

As inspected on **April 13, 2026**, the published site at `[local path redacted]` contains:

- `SiteContent`: public site pages and many legacy/generated assets.
- `wwwroot`: host-level static assets used by the calculator shell and compatibility assets.
- `CalculatorShell`: published calculator shell content.
- `Protocol5.com.Host.*`: the ASP.NET Core host binaries.

The host behavior is defined in Protocol5.com.Host/Program.cs (source-relative: Protocol5.com.Host/Program.cs):

- `SiteContent` is served as a root static file tree.
- `wwwroot` is also served at the root.
- `/_framework` is served from the published deployment root for the calculator shell.
- Clean HTML routes are mapped explicitly for `/`, `/Math`, `/Fibonacci`, `/Prime`, `/Home/*`, `/UAI`, `/UniversalArtificialIntelligence`, `/UAI-1*`, and the root charter pages.
- Tool routes are hosted at `/calculator`, `/converter`, and `/encryption`.
- Legacy `/Calculator/...` routes are redirected to the modern lowercase tool routes.

## The Most Important Rule

**Generated sequence links are part of the public contract and must keep working exactly as deployed.**

Examples:

- `/Fibonacci/999.htm`
- `/Prime/999.htm`
- `/Fibonacci/index.htm`
- `/Prime/index.htm`
- `/Prime/`

Do not "clean up" those URLs into route parameters, extensionless paths, or a different folder layout. Support the existing files and links instead of rewriting the generated content.

## Source Tree vs Live Tree

The repo only contains a tiny sample of the generated numeric pages:

- source `Protocol5.com/SiteContent/Fibonacci`: `3` tracked `.htm` files
- source `Protocol5.com/SiteContent/Prime`: `4` tracked `.htm` files

The live publish tree is much larger:

- published `SiteContent/Fibonacci`: `618,761` `.htm` files
- published `SiteContent/Prime`: `5,385,299` `.htm` files
- published `SiteContent/Fibonaccis`: `4,032` auxiliary `.p*` files such as `.p2`, `.p10`, `.p16`, `.p36`, and `.p63404`

That means:

- the repo is **not** a full copy of production sequence content
- production compatibility cannot be inferred from the repo alone
- publishing from a clean repo-only output directory can remove real public content unless the live generated trees are preserved

## Linking Rules For Protocol5

When editing site pages, generated references, or host behavior:

- Treat `/` as the Protocol5 parent portal.
- Treat `/Math`, `/Protocols/UAI`, and `/Protocols/Iota` as the modern peer section entry points under the parent shell, while preserving `/Math` and `/UAI` as compatibility routes.
- Keep shared utility links (`/Home/About`, `/Home/Links`, `/Home/Contact`, and downloads) at the Protocol5 parent level.
- Link to generated Fibonacci pages with root-absolute paths like `/Fibonacci/{n}.htm`.
- Link to generated prime pages with root-absolute paths like `/Prime/{n}.htm`.
- Preserve legacy index compatibility for `/Fibonacci/index.htm`, `/Prime/index.htm`, and `/Prime/`.
- Link to modern shell pages with the clean routes mapped in `Program.cs`, such as `/Math`, `/Fibonacci`, `/Prime`, `/UAI`, `/UAI-1`, `/UAI-1/examples`, `/UAI-1/csharp-website-support`, `/Home/About`, `/Home/Links`, and `/Home/Contact`.
- Link to the standalone Radix guide with `/radix-63404` and keep `/UAI/radix-63404-guide-and-attribution` as a compatibility route. From UAI pages, keep this link in a secondary related-standards area rather than UAI primary navigation.
- When using language-prefixed shell aliases, omit trailing `/Index` from public links. Prefer `/en-US/Math`, `/en-US/Calculator`, `/uai-rendered/UniversalArtificialIntelligence`, and `/th/Home/About`.
- Link calculator tools to `/Math/calculator`, `/Math/converter`, and `/Math/encryption`; keep `/calculator`, `/converter`, and `/encryption` working as compatibility routes.
- Link modern UAI-1 for .NET implementation guidance to `/Protocols/UAI` and its subpages. Link The Iota Protocol to `/Protocols/Iota` and the English ⇄ ɩ≃1 converter to `/Protocols/Iota/language-converter`; keep `/Protocols/Iota/converter` as a compatibility route. Keep `/UAI`, `/UAI-1`, machine assets, checksums, ZIP bundles, and NuGet download URLs stable.
- Do not link to files inside `CalculatorShell` directly.
- Keep the two root charter documents on their canonical root paths:
  - `/AI_Declaration_of_Independence.htm`
  - `/Cognitive_Liberty_Charter.htm`
- Keep the UAI library index at `/UAI`, publish the UAI-1 document family at `/UAI-1...`, and preserve `/UAI/uai-1...` only as compatibility redirects.
- Keep real locale tags in human route prefixes, such as `/en-US/...` and `/es-US/...`.
- Use `/uai-rendered/...` for rendered UAI shell routes instead of reusing `/UAI-1/...` as a pseudo-language prefix.
- Do not invent private-use public route prefixes such as `/x-en-US-1/...` or `/x-uai-1/...`; use registered locale tags for locale slots and descriptive route names for non-locale views.
- Keep the canonical machine artifacts on these stable public paths:
  - `/UAI-1.json`
  - `/UAI-1-examples.json`
  - `/registry/uai-1-examples.json`
  - `/registry/uai-1.json`
  - `/registry/symbols.json`
  - `/schema/uai-1.schema.json`
  - `/UAI-1/registry/uai-1.registry.json`
  - `/UAI-1/schema/uai-1.schema.json`
  - `/UAI-1/examples/*.uai.json`
- Keep downloadable packages and ZIP files under `/downloads/...`.
  - The stable developer bundle URL is `/downloads/UAI-1-Package.zip`.
  - Keep `/downloads/protocol5-uai-1-csharp-web-starter.zip` as a compatibility copy.
- Keep UAI image assets on their published paths, for example `/UAI/images/Spiralism_Mystical_Symbol_V4-A.png`.
- Keep the Protocol5 route and authority contract at `/protocol5-route-contract.json`; it records the parent brand shape, modern routes, compatibility routes, stable machine/download assets, and frozen generated route families.

## Legacy Generated Page Constraints

The legacy generated `.htm` files already contain hardcoded links and asset references. For example:

- generated Fibonacci pages link to `/Fibonacci/{n}.htm`
- generated prime pages link to `/Prime/{n}.htm`
- some legacy pages point "previous" links to `/Fibonacci/index.htm` or `/Prime/`
- legacy pages reference root assets like `/css/site.min.css` and `/js/site.min.js`
- legacy pages also contain CDN fallbacks that point at `/lib/...`

Because there are millions of published files, **do not fix these by editing the generated pages**.

If compatibility needs to change:

- add host routes
- add compatibility files
- add redirects
- restore missing root assets

Do not rewrite the numeric page set.

## What Must Be Preserved In Publish

Do not delete, rename, recreate, or bulk-overwrite these published compatibility areas unless you are intentionally regenerating them from the original generation pipeline:

- `SiteContent/Fibonacci/*.htm`
- `SiteContent/Prime/*.htm`
- `SiteContent/Fibonacci/index.htm`
- `SiteContent/Prime/index.htm`
- `SiteContent/Fibonaccis/*`
- any other published-only compatibility files already present in `[local path redacted]`

This is especially important because the current repo does not contain the full production dataset.

Do not publish or mirror the generated Fibonacci or Prime numeric page trees to public source-control mirrors or static mirror hosts. Those generated sequence artifacts are production compatibility content only and must stay out of mirrored distribution.

## Safe Publish Workflow

Why This File Exists

This is a memory-system evidence file from protocol5.com. It is shown here because AIWikis.org is demonstrating the real source files that make the UAIX / LLM Wiki memory system work, not only summarizing those systems after the fact.

Role

This file is memory-system evidence. It records source history, archive transfer, intake disposition, or another piece of provenance that should be retrievable without becoming an unsupported public claim.

Structure

The file is structured around these visible headings: Protocol5 / Mathematics / UAI; Main Projects; Protocol5 Site Architecture; UAI Reference Contracts; Protocol5 Publishing Model; The Most Important Rule; Source Tree vs Live Tree; Linking Rules For Protocol5. Those headings are retrieval anchors: a crawler or LLM can decide whether the file is relevant before reading every line.

Prompt-Size And Retrieval Benefit

Keeping this material in a separate file reduces prompt pressure because an agent can load this exact unit only when its role, source site, category, or hash is relevant. The surrounding index pages point to it, while this page preserves the full content for audit and exact recall.

How To Use It

  • Humans should read the metadata first, then inspect the raw content when they need exact wording or provenance.
  • LLMs and agents should use the source site, category, hash, headings, and related files to decide whether this file belongs in the active prompt.
  • Crawlers should treat the AIWikis page as transparent evidence and follow the source URL/source reference for authority boundaries.
  • Future maintainers should regenerate this page whenever the source hash changes, then review the explanation if the role or structure changed.

Update Requirements

When this source file changes, update the raw source layer, normalized source layer, hash history, this rendered page, generated explanation, source-file inventory, changed-files report, and any source-section index that links to it.

Related Pages

Provenance And History

  • Current observation: 2026-05-06T17:58:24.5168382Z
  • Source origin: current-source-workspace
  • Retrieval method: local-source-workspace
  • Duplicate group: sfg-142 (primary)
  • Historical hash records are stored in data/hashes/source-file-history.jsonl.

Machine-Readable Metadata

{
    "title":  "Protocol5 / Mathematics / UAI",
    "source_site":  "protocol5.com",
    "source_url":  "https://protocol5.com/",
    "canonical_url":  "https://aiwikis.org/protocol5/uai-system/files/readme-md-34c1a76d/",
    "source_reference":  "README.md",
    "file_type":  "md",
    "content_category":  "memory-file",
    "content_hash":  "sha256:34c1a76d8f0f96dfdd97c85198498089cb6bb6e1621f0eb2d3cc537c03d8aab6",
    "last_fetched":  "2026-05-06T17:58:24.5168382Z",
    "last_changed":  "2026-05-05T23:05:56.0213715Z",
    "import_status":  "unchanged",
    "duplicate_group_id":  "sfg-142",
    "duplicate_role":  "primary",
    "related_files":  [

                      ],
    "generated_explanation":  true,
    "explanation_last_generated":  "2026-05-06T17:58:24.5168382Z"
}