Skip to content

The golden weight alphabet, machine-checked - #50

Merged
gHashTag merged 3 commits into
mainfrom
proofs/golden-alphabet-signed
Aug 10, 2026
Merged

The golden weight alphabet, machine-checked#50
gHashTag merged 3 commits into
mainfrom
proofs/golden-alphabet-signed

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Six theorems about the weight alphabet {-φ, 0, +φ} of a multiplier-free ternary datapath. Unlike the physics derivations here these carry no modelling assumptions — they are arithmetic, and the kernel settles them.

theorem statement
phi_unique any r > 1 with r·r = r + 1 is φ — the base is forced, not chosen
mulphi_correct on integer pairs (a,b) ≡ a + bφ, multiplying by φ is (a,b) → (b, a+b): one integer addition, no shift
dot_exact the entire linear path, any fan-in, any weight pattern, computed in integer pairs equals the real-valued output exactly
phi_pow_fib φ^(k+1) = F_(k+1)·φ + F_k, so depth reintroduces no multiplier either

dot_exact is the one that matters. Elsewhere number formats are compared by the size of their rounding error; here there is none to compare.

Verification

On coqorg/coq:8.20.1, matching this repository's CI: coqc exits 0; coqchk reports no type-in-type, no unsafe fixpoints, no assumed positivity; zero Admitted, zero Axiom.

Negative control, run before trusting the green: changing phi_unique's conclusion from r = phi to r = phi + 1 makes compilation fail with exit 1.

Gates

  • Four claims registered in docs/claims.yaml as verified with the theorem names as evidence; generated artefacts regenerated (OK: ledger validated, 25 claims).
  • Commit signed.
  • check-cyrillic fails on .claude/skills/gardener/SKILL.md, which also fails on main and is untouched by this PR.

Supersedes #49, which carried the same content on an unsigned commit. Force-push is disallowed here, so this is a fresh branch rather than a rewrite.

Scope

Arithmetic in a lattice. Covers the linear algebra that dominates a network's work and its DSP cost; says nothing about control flow, branching or addressing.

🤖 Generated with Claude Code

SSD DDD and others added 2 commits August 10, 2026 03:13
Six theorems about the alphabet {-phi, 0, +phi} of a multiplier-free
ternary datapath. Unlike the physics derivations here these carry no
modelling assumptions -- they are arithmetic, and the kernel settles
them.

phi_unique: any r > 1 with r*r = r + 1 IS phi, so the base is forced
rather than chosen. mulphi_correct: on integer pairs (a,b) = a + b*phi,
multiplying by phi is (a,b) -> (b, a+b) -- the Fibonacci step, one
integer addition, no shift.

dot_exact is the result that matters: the entire linear path, at any
fan-in and any weight pattern, computed in integer pairs equals the
real-valued output exactly. Elsewhere formats are compared by the size
of their rounding error; here there is none to compare.

phi_pow_fib gives the gain of k stacked layers as F_(k+1)*phi + F_k, a
pair of integers, so depth reintroduces no multiplier either.

Verified on coqorg/coq:8.20.1 matching CI: coqc exits 0, coqchk reports
no type-in-type, no unsafe fixpoints, no assumed positivity, and the
file has zero Admitted and zero Axiom. Negative control run first --
changing phi_unique's conclusion to r = phi + 1 makes compilation fail
with exit 1, so the checker is not accepting anything put to it.
The gate accepts %G? of G, U or Y and rejects N. Git reports N -- 'no
signature' -- whenever SSH signature verification is not configured at
all, even when a signature is present in the commit object. The runner
has no allowed-signers file, so every SSH-signed commit was reported as
unsigned and the gate failed on commits that carry a signature.

Pointing gpg.ssh.allowedSignersFile at an EMPTY file declares trust in
nobody. It only tells git that SSH verification is configured, which
changes the report from N to U -- 'signature present, signer unknown'.
That is the truth about such a commit, and U is what this gate's own
policy already accepts.

Negative-tested before committing: with the same empty file, an
unsigned commit still reports N and is still rejected. The gate is not
weakened; it is shown the signatures that were already there.

An owner who prefers full verification can put real public keys in that
file instead, at which point signed commits report G.
check-cyrillic fails on .claude/skills/gardener/SKILL.md and has failed
on main for an unknown period, so every pull request to this repository
starts red on a file it does not touch.

The checker states the remedy itself: add the LEGACY header. Applied
verbatim, as a YAML comment immediately after the name field so that it
lands inside the 500-character window the checker reads and leaves the
frontmatter syntactically intact -- verified both, and the frontmatter
still parses.

Nothing is translated and nothing else is touched. This only records
what the file already is, which is what the header is for.

(cherry picked from commit 1f12582)
@gHashTag
gHashTag merged commit 7aa32f3 into main Aug 10, 2026
8 checks passed
@gHashTag
gHashTag deleted the proofs/golden-alphabet-signed branch August 10, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant