# Rosario–Wang Consolidated Formalization

**Consolidated construction, proofs, worked examples, nonce entropy, burn state, and proof-of-knowledge requirements**

Research project: Franciscus Dylan Rosario — Rosario–Wang  
Edition: consolidated technical document, 16 September 2026  
Status: mathematical results under explicit assumptions; supplied formal audit reconciled; independent review pending

## Abstract

The Rosario–Wang construction represents an enrolled secret through membership decisions in public partitions. A private permutation names the selected cells, and fresh independent secret masks transform the responses before release. This document consolidates the core equations, their proofs and assumptions, authorized joint recovery of the string and dictionary, nonce-driven ring indexing, entropy and modulo-bias calculations, and one-time event state. It includes a four-symbol ring example and the twelve-key, four-color profile from the supplied journal manuscripts. It derives repeated-session posterior preservation, the resulting resistance to every frequency statistic of the permitted record, and the conditions for extending that guarantee to a complete physical observation. A separate review defines the statement–witness relation, universal extractor, malicious-verifier simulator, and active-session evidence required for a conventional proof-of-knowledge claim. A theorem crosswalk identifies what the supplied Lean package covers, and an embedded executable program makes the finite examples reproducible.

The central established statement is perfect passive privacy of the specified released transcript under fresh secret masking. Correct native verification and recovery with authorized masks are established alongside it. General knowledge soundness and malicious-verifier zero knowledge remain separately identified protocol-level proof obligations.

## Reader's guide and claim status

| Material | Location |
|---|---|
| Symbols, assumptions, primitive, verification, and compact proofs | Sections 1–5 |
| Complete ring example | Section 6 |
| Nonce entropy, projection entropy, mask entropy, and event consumption | Sections 7–8 |
| Repeated observations, frequency attacks, and physical observation closure | Section 9 |
| Twelve-key profile, shortened calibration, example, and resource bounds | Section 10 |
| Accepted recovery and universal proof-of-knowledge requirements | Section 11 |
| Dictionary extraction, public statements, malicious verifiers, and active security | Sections 12–13 |
| Academic and industry review, and fields of relevance | Section 14 |
| Lean theorem crosswalk, evidence, and build instructions | Section 15 |
| Fundamental contribution | Section 16 |
| Runnable verification and source reconciliation | Appendices A–B |

“Proved” in the mathematical text means derived under its stated hypotheses. “Lean” identifies a corresponding proposition in the supplied formal source. “Target” identifies an additional theorem or construction required for a stronger classification. The assumptions about fresh private resources, protected local handling, and durable state describe the environment; they are not conclusions obtained by proving modular arithmetic.

The base profile uses full calibration with $H$ responses. The optimized profile uses $H-1$ responses and infers the final permutation entry. Their mask costs differ accordingly. Both use fresh independent masking for every released coordinate.

## Introduction

An authentication exchange must give a verifier enough evidence to check a claim about an enrolled credential. At the same time, someone recording the exchange should gain no additional information about that credential. The Rosario–Wang construction approaches this problem through a sequence of membership decisions: the prover locates a secret character in a public arrangement of cells, translates the selected cell through a private dictionary, and releases a freshly masked response.

Consider Alice authenticating to Bob while Eve records their network traffic. Alice knows a secret string and a private dictionary. Her protected device and Bob privately share fresh masking material, and Bob holds the enrolled credential. Bob can reverse the transformations and check Alice’s answers. Eve sees the public challenges and transmitted responses. The mathematical question is whether those observations change Eve’s probabilities for the possible credentials.

An event nonce selects the modulo offsets of the projected alphabet rings. The event service binds those offsets, the requested action, and a private mask bundle to one authentication attempt. Its durable burn state prevents that event and its allocated masks from becoming eligible for another attempt. The nonce, the visible projection, and the secret masks each have an explicit entropy budget.

The formulation below establishes three precise properties: honest responses verify correctly; the specified public record contains zero information about the credential; and an authorized extractor with the masks can recover the credential from an accepting exchange when calibration and sufficiently distinguishing frames are included. It also gives a concrete nonce-to-ring rule and the state assumptions needed for one-time event consumption. A four-round example makes each operation explicit.

## 1. Parameters and assumptions

| Symbol | Plain-English meaning |
|---|---|
| $\mathcal L$ | The finite alphabet of possible secret characters. |
| $\ell$ | The number of characters in the secret string. |
| $k=(k_1,\ldots,k_\ell)$ | The secret string, with each character drawn from $\mathcal L$. |
| $H\ge 2$ | The number of cells and response values. |
| $\mathbb Z_H$ | The numbers $0,\ldots,H-1$, using arithmetic modulo $H$. |
| $T$ | The number of data rounds, excluding calibration. |
| $c_t:\mathcal L\to\mathbb Z_H$ | The public function identifying the cell containing each symbol in frame $t$. Every symbol occupies exactly one cell. |
| $r(t)$ | The secret-string position requested in round $t$. |
| $\varphi:\mathbb Z_H\to\mathbb Z_H$ | A private permutation: a dictionary assigning a distinct response value to every cell. |
| $m_t$ | The fresh secret masking value for data round $t$. |
| $w_t$, $z_t$ | The private dictionary response and the transmitted masked response. |
| $X=(k,\varphi)$ | The complete credential considered here. |
| $G$ | The public event nonce, ring specification, frames, schedule, and calibration requests; other public context is fixed for the secrecy experiment. |
| $Z=(z_1,\ldots,z_T)$ | The transmitted data responses. |
| $\nu_e$ | The full public nonce assigned to event $e$, interpreted as a nonnegative integer. |
| $b$ | The bit length of a uniformly sampled candidate nonce. |
| $\mathsf H(Y)$ | Shannon entropy of random variable $Y$, measured in bits; distinct from the cell count $H$. |
| $\mathsf H_\infty(Y)$ | Min-entropy, $-\log_2\max_y\Pr[Y=y]$, measuring the probability of the most likely value. |

The model uses these assumptions:

1. **Independent public challenges.** The frames and schedule are chosen independently of the credential. A fixed public schedule satisfies this condition.
2. **Fresh secret masks.** Each masking value is sampled independently and uniformly from $\mathbb Z_H$, independently of the credential and public challenges. Mask material remains hidden from the observer and is used for only one response.
3. **Protected local handling.** The prover’s device and verifier keep raw responses, masks, and private computation outside the observed channel. The secrecy theorem concerns the public challenges and released responses.
4. **Exact verification.** The verifier checks every required data and calibration response against the enrolled credential. The theorem describes completed honest exchanges; active attempts and their feedback require a separately specified security analysis.
5. **One-time event state.** An authenticated event record binds the full nonce, context, frames, and unique mask allocation. Durable atomic transitions prevent concurrent or subsequent reuse. Crashes and aborts do not return allocated masks to the unused pool. Section 8 specifies these added operational requirements.

Here, $\bmod H$ means taking the remainder modulo $H$; $\varphi^{-1}$ reverses the private dictionary; $\Pr$ denotes probability; and $I$ denotes mutual information, which measures how much observing one variable tells us about another.

## 2. How the nonce indexes the projected alphabet rings

Represent the alphabet as disjoint ordered rings $R_a$, indexed by $a=1,\ldots,J$. Ring $a$ has $n_a$ slots, each holding one symbol. Let $\operatorname{pos}_a(s)$ be the slot number of symbol $s$, beginning at zero. Require $H$ to divide each $n_a$, and write $d_a=n_a/H$ for the number of slots from that ring in each cell.

The following explicit selector extends the abstract frame function used in the compact proof. Choose public, fixed rotation increments $\delta_{a,t}$ independently of the credential. For event $e$ and data round $t$, calculate

$$
\boxed{
o_{e,a,t}=(\nu_e+\delta_{a,t})\bmod n_a,
\qquad
p_{e,a,t}(s)=\bigl(\operatorname{pos}_a(s)+o_{e,a,t}\bigr)\bmod n_a.
}
\tag{P1}
$$

Here $o$ is the ring’s rotation offset, and $p$ is the symbol’s resulting projected slot. The cell index is

$$
\boxed{
c_{e,t}(s)=\left\lfloor\frac{p_{e,a,t}(s)}{d_a}\right\rfloor,
\qquad s\in R_a.
}
\tag{P2}
$$

The floor brackets mean rounding down to an integer. Adding an offset rotates the ordered ring, reduction modulo $n_a$ wraps around its end, and division into blocks of $d_a$ slots determines the cell. A circular display can place each symbol at angle $2\pi(p+1/2)/n_a$; the half-slot displacement keeps symbols away from cell boundaries. The integer rule determines membership exactly.

**Balance lemma.** Every cell contains exactly $d_a$ symbols from ring $a$ in every frame. **Proof:** addition modulo $n_a$ permutes all slots, and each cell consists of exactly $d_a$ consecutive slots.

For a fixed event, abbreviate $c_{e,t}$ to $c_t$ in the response and extraction equations below. The public schedule must still satisfy the alphabet-separation condition in Section 5. A changing nonce alone does not establish that condition, especially when several rings are combined.

The event nonce is used throughout one exchange to derive its round offsets. The distinct round and ring indices identify those uses. The one-time rule applies to allocating and accepting the event again. NIST’s nonce terminology likewise defines uniqueness within a specified context and permits public or secret nonces. This profile publishes the nonce. [NIST nonce glossary](https://csrc.nist.gov/glossary/term/nonce)

## 3. The primitive and verification

In each data round, Alice locates the requested secret character, translates its cell through the dictionary, and masks the result:

$$
w_t=\varphi\bigl(c_t(k_{r(t)})\bigr),
\qquad
\boxed{z_t=(w_t+m_t)\bmod H.}
\tag{1}
$$

Bob accepts the data responses exactly when

$$
\boxed{
\forall t\in\{1,\ldots,T\},\qquad
\varphi^{-1}\bigl((z_t-m_t)\bmod H\bigr)
=c_t(k_{r(t)}).
}
\tag{2}
$$

The symbol $\forall$ means “for every.” Bob subtracts the mask, reverses the dictionary, and checks that the recovered cell contains the enrolled character.

A human realization must make the masking occur before any public secret-dependent action. A protected component can receive the raw cell choice through a confidential local input. Alternatively, Alice can receive a private round legend $L_t(c)=(\varphi(c)+m_t)\bmod H$ and publicly press only the already masked response. The legend, raw choice, and associated local signals must remain outside Eve's observed view. Publishing the legend changes the information available to Eve and invalidates that boundary.

**Correctness proof.** Substituting Equation (1) into Equation (2) first cancels $m_t$ and then cancels $\varphi$. The result is $c_t(k_{r(t)})=c_t(k_{r(t)})$ in every round. Therefore honest data responses always pass. The calibration checks introduced below have the same cancellation property.

## 4. Perfect secrecy of the released record

For every fixed credential $x$, public challenge sequence $g$ with positive probability, and possible released word $z$,

$$
\boxed{\Pr[Z=z\mid X=x,G=g]=H^{-T}.}
\tag{3}
$$

**Proof.** Once the credential and challenges are fixed, every raw response $w_t$ is fixed. Exactly one masking value produces any requested transmitted value:

$$
m_t=(z_t-w_t)\bmod H.
\tag{4}
$$

Each required mask has probability $1/H$. Independence across $T$ rounds gives $(1/H)^T=H^{-T}$. This calculation remains true when raw responses repeat.

The conditional distribution of $Z$ is therefore identical for every credential. Since $G$ is also independent of the credential,

$$
\boxed{I(X;G,Z)=0.}
\tag{5}
$$

In plain English, recording the specified public challenges and transmitted answers leaves Eve’s probabilities for the credential unchanged. The secret itself need not have a uniform distribution for this result to hold.

Every statistic or algorithm $f$ using only that record consequently satisfies

$$
\boxed{I\bigl(X;f(G,Z)\bigr)=0.}
\tag{6}
$$

**Proof.** Independence of $X$ and $(G,Z)$ implies independence of $X$ and every function of $(G,Z)$. A randomized analysis has the same property when its extra randomness is independent of the credential and record.

Frequency counts, repeated-pattern searches, correlations, and classifiers therefore supply no additional credential information from this record. This is an information-theoretic result for the specified classical record: it imposes no computational limit on the passive observer processing that record. Additional correlated side information requires the conditional model in Section 9.

## 5. Extracting the string and private dictionary

An extractor is an algorithm that recovers the credential using explicitly specified access. Here it receives the exchange and its masks, without initially receiving either $k$ or $\varphi$.

First add one calibration round for each public cell number $i$:

$$
\alpha_i=(\varphi(i)+u_i)\bmod H,
\qquad i=0,\ldots,H-1.
\tag{7}
$$

The public request identifies $i$; $\alpha_i$ is the transmitted calibration response; and $u_i$ is a fresh independent secret mask. Bob requires each unmasked calibration response to equal the enrolled dictionary value.

The extractor recovers the dictionary by computing

$$
\widehat\varphi(i)=(\alpha_i-u_i)\bmod H.
\tag{8}
$$

A hat marks a recovered value. The extractor checks that the recovered table is a permutation.

Next require the data frames for each secret position to **separate the alphabet**: for every two distinct symbols, at least one frame scheduled for that position places them in different cells. This condition can be checked directly against the chosen frame family.

The extractor then calculates

$$
\boxed{
\{\widehat k_j\}
=
\bigcap_{t:r(t)=j}
\left\{
s\in\mathcal L:
c_t(s)=\widehat\varphi^{-1}\bigl((z_t-m_t)\bmod H\bigr)
\right\}.
}
\tag{9}
$$

The intersection symbol $\cap$ means retaining only symbols present in every indicated set. The index $t:r(t)=j$ selects rounds asking about secret position $j$.

**Extraction proof.** On an accepting exchange, calibration recovers the exact enrolled dictionary. Each decoded data cell contains the enrolled character. Separation ensures that every other symbol is excluded by at least one frame. The intersection therefore contains exactly the enrolled character. Repeating this for every position recovers $(k,\varphi)$.

Calibration also preserves released-record secrecy. Write $A=(\alpha_0,\ldots,\alpha_{H-1})$. Applying the unique-mask proof to all $T+H$ responses gives

$$
\Pr[(A,Z)=(a,z)\mid X=x,G=g]=H^{-(T+H)},
\qquad
\boxed{I(X;G,A,Z)=0.}
\tag{10}
$$

This is extraction with authorized mask access. A conventional public proof of knowledge additionally specifies a public statement–witness relation, an extractor’s access and runtime, and a knowledge error. Those requirements have their own formal definitions; see [Bellare and Goldreich, *On Defining Proofs of Knowledge*](https://doi.org/10.1007/3-540-48071-4_28).

## 6. A complete four-round example

### Setup and public challenges

Alice’s secret is **C**, chosen from $\mathcal L=\{A,B,C,D\}$. Put these symbols on one ring in the order $(A,B,C,D)$, at positions $0,1,2,3$. There is one secret position and two cells, so $\ell=1$, $H=2$, $n_1=4$, and $d_1=2$. Bob holds the enrolled credential. Eve records the public challenges and transmitted responses. Alice’s device and Bob privately share the masking values.

Alice’s private dictionary swaps the two cell numbers:

$$
\varphi(0)=1,\qquad\varphi(1)=0.
$$

For this small arithmetic example, sample a four-bit candidate nonce and take the realized value $\nu_e=12$, written $1100$ in binary. Bob confirms that this full nonce has not already been allocated in the current epoch, meaning the current persistent namespace for event identifiers. Choose public increments $\delta_{1,1}=0$ and $\delta_{1,2}=3$. Then

$$
o_{e,1,1}=12\bmod4=0,
\qquad
o_{e,1,2}=(12+3)\bmod4=3.
\tag{P3}
$$

For Alice’s C, the projected slots are $(2+0)\bmod4=2$ and $(2+3)\bmod4=1$. Dividing by two and rounding down gives cell indices $1,0$.

The two public data frames are consequently:

| Challenge | Cell 0 | Cell 1 | Cell containing Alice’s C |
|---|---|---|---|
| Frame 1 | A, B | C, D | 1 |
| Frame 2 | B, C | D, A | 0 |

The last column explains Alice’s private choice. These frames distinguish every possible symbol:

| Symbol | Cell in Frame 1 | Cell in Frame 2 |
|---|---:|---:|
| A | 0 | 1 |
| B | 0 | 0 |
| C | 1 | 0 |
| D | 1 | 1 |

Every row has a different cell sequence, establishing the required separation condition.

### The exchange

Alice performs two calibration rounds followed by the two data rounds. The table exposes the private values to the reader so the arithmetic can be checked. Eve observes the public challenge and transmitted response columns during the protocol.

| Public challenge | Selected cell | Private response $w$ | Private mask | Transmitted response |
|---|---:|---:|---:|---:|
| Calibrate cell 0 | 0 | 1 | 1 | 0 |
| Calibrate cell 1 | 1 | 0 | 1 | 1 |
| Frame 1: locate secret | 1 | 0 | 0 | 0 |
| Frame 2: locate secret | 0 | 1 | 1 | 0 |

Each transmitted response is the sum of the private response and mask, modulo two. An even sum gives zero; an odd sum gives one. The masking bits are independent draws; independently drawn bits can have equal numerical values.

In calibration-then-data order, the combined released word $V$ and private mask vector $M$ are

$$
\boxed{V=(0,1,0,0)},\qquad M=(1,1,0,1).
\tag{11}
$$

### Bob’s verification

Bob subtracts the masks coordinate by coordinate, modulo two:

$$
(V-M)\bmod 2
=\bigl((0,1,0,0)-(1,1,0,1)\bigr)\bmod 2
=(1,0,0,1).
\tag{12}
$$

The first two values, $1,0$, match the enrolled dictionary’s responses for calibration cells $0,1$. The remaining values, $0,1$, decode through the dictionary to cells $1,0$. These are exactly the cells containing C in the two data frames. Every check succeeds, so Bob accepts.

### Authorized extraction

An extractor given the masks begins with the calibration values:

$$
\widehat\varphi(0)=(0-1)\bmod 2=1,
\qquad
\widehat\varphi(1)=(1-1)\bmod 2=0.
\tag{13}
$$

Using that recovered dictionary, the data responses identify cell 1 in Frame 1 and cell 0 in Frame 2. Their intersection is

$$
\boxed{\{C,D\}\cap\{B,C\}=\{C\}.}
\tag{14}
$$

The extractor has recovered both the dictionary and the secret without initially receiving either credential component.

### Eve’s observation

There are sixteen equally likely four-bit mask vectors. For every candidate secret and dictionary, exactly one of those masks produces the recorded word $(0,1,0,0)$. Consequently,

$$
\boxed{
\Pr[V=(0,1,0,0)\mid k,\varphi,G]=\frac1{16}
}
\tag{15}
$$

for every credential pair in this example. The same statement holds for every other four-bit released word. Eve’s recording therefore leaves her prior credential probabilities unchanged.

An exhaustive finite check across all sixteen candidate nonces, all four secrets, both dictionaries, and all sixteen mask vectors confirms that, for each fixed nonce and credential pair, every four-bit released word occurs exactly once. Each nonce also produces a separating pair of ring frames. This check illustrates the general proof in Equation (10).

### The nonce’s entropy and burn trace in this example

Before the first event is allocated, the candidate nonce has sixteen equally likely values, giving four bits of entropy. Its projection depends only on its residue modulo four:

| Candidate nonces | Ring offsets in the two data frames |
|---|---|
| 0, 4, 8, 12 | $(0,3)$ |
| 1, 5, 9, 13 | $(1,0)$ |
| 2, 6, 10, 14 | $(2,1)$ |
| 3, 7, 11, 15 | $(3,2)$ |

There are four equally likely offset sequences, giving two bits of projection entropy. The two offsets are correlated outputs of the same nonce. Publishing the full nonce makes its value known to Eve. The independently generated mask vector $M=(1,1,0,1)$ contributes four bits of fresh secret masking entropy before the response is released.

| Stage | State of event $(\text{epoch},12)$ | Treatment of its private mask bundle |
|---|---|---|
| Allocate | RESERVED | Assign four fresh masks exclusively to this event. |
| Release challenge | ISSUED | Alice’s device uses the assigned masks once, in the specified order. |
| First eligible response arrives | BURNED, result pending | Bob atomically consumes the event and retains protected working values for this verification. |
| Verification completes | BURNED, accepted | Retire the bundle and erase transient private copies. |
| Same event arrives again | BURNED; reject duplicate | No new verification or mask allocation occurs. |

A future event needs a new full nonce and a new mask bundle. Nonce 13 would produce offsets $(1,0)$. An unused nonce 0 would reproduce the geometry of nonce 12 while selecting a distinct event and fresh masks. Thus state is indexed by the full event identifier, never by the modulo residue alone.

## 7. Entropy accounting for the nonce, projection, and masks

### Nonce generation and modulo reduction

For an independently sampled uniform $b$-bit candidate nonce, before publication or duplicate filtering,

$$
\mathsf H(\nu)=\mathsf H_\infty(\nu)=b.
\tag{E1}
$$

For a discrete variable $Y$, Shannon entropy means $\mathsf H(Y)=-\sum_y\Pr[Y=y]\log_2\Pr[Y=y]$, with zero-probability terms omitted. All entropy quantities below are in bits. Once the full nonce is public, its remaining conditional entropy is $\mathsf H(\nu\mid\nu,G)=0$.

Let $O$ be the complete vector of ring offsets generated by Equation (P1), and let $L=\operatorname{lcm}(n_1,\ldots,n_J)$ be the least common multiple of the ring sizes. For this shared-nonce selector and fixed public increments,

$$
\boxed{
\mathsf H(O\mid\nu)=0,
\qquad
\mathsf H(O)\le\min\{b,\log_2L\}.
}
\tag{E2}
$$

**Proof.** The nonce determines every offset. Two nonce values produce identical offset vectors exactly when their difference is divisible by every ring size, equivalently by $L$. There are at most $L$ distinct vectors and at most $2^b$ candidate inputs. Entropy cannot exceed the logarithm of either count. Additional rounds derived from the same nonce do not supply additional independent randomness.

Modulo reduction need not be uniform. Write $2^b=QL+R$, where $Q$ is the integer quotient and $0\le R<L$ is the remainder. For residue $v\in\{0,\ldots,L-1\}$,

$$
\Pr[\nu\bmod L=v]=
\begin{cases}
(Q+1)/2^b,&v<R,\\
Q/2^b,&v\ge R.
\end{cases}
\tag{E3}
$$

**Proof.** Count integers of each residue in $0,\ldots,2^b-1$. The first $R$ residue classes have one additional representative. If $L$ divides $2^b$, the offset vector is uniform on its $L$ possibilities and has entropy $\log_2L$. If uniform projection sampling is required when divisibility fails, a separate sampler can draw a sufficiently wide integer, reject values outside a range whose size is a multiple of $L$, and then reduce modulo $L$. Its distribution and event-uniqueness filtering must be accounted for explicitly.

The worked example has $b=4$ and $L=4$. Its projection entropy is two bits, although its candidate nonce entropy is four bits. With a much larger public nonce and the same selector on the same ring, there would still be only four offset sequences. A more elaborate projection selector would require its own output-distribution calculation. The secrecy proof does not require uniform geometry; it requires credential-independent geometry and independent secret masks.

### Secret masking entropy

Let $M_e$ contain the $H$ calibration masks and $T$ data masks for event $e$. Before that event’s responses are released, the ideal provisioned distribution satisfies

$$
\boxed{
\mathsf H(M_e\mid\nu_e,G,X)=(T+H)\log_2H.
}
\tag{E4}
$$

**Proof.** The vector consists of $T+H$ independent uniform values, each with entropy $\log_2H$, independent of the conditioning information. These are the secret random resources used by Equation (10). Public nonce bits and visible ring rotations are not additional secret masking entropy.

If a finite secret seed $S$ deterministically generates a mask vector from public inputs, then

$$
\boxed{
M=F(S,\nu,G)
\quad\Longrightarrow\quad
\mathsf H(M\mid\nu,G)\le\mathsf H(S\mid\nu,G)\le\mathsf H(S).
}
\tag{E5}
$$

The function $F$ cannot create entropy. A pseudorandom generator can support a computational security argument under its stated assumptions; the independent-mask theorem requires its exact distribution. NIST SP 800-90A describes deterministic random-bit generation, which should be distinguished from fresh entropy collection. [NIST SP 800-90A Rev. 1](https://csrc.nist.gov/pubs/sp/800/90/a/r1/final)

If an implementation instead keeps the projection nonce secret and uses it as the sole source for masks, the relevant budget is its residual entropy after observing the projection, $\mathsf H(\nu\mid G)$. That implementation must establish mask independence conditional on the visible frames. In the four-bit example, the complete labelled projection alone identifies the nonce residue and leaves only two bits of nonce entropy; it cannot supply four independent secret mask bits conditional on that projection. Publishing the full nonce leaves none. The present example therefore provisions the four masking bits independently.

### Freshness probability and resource accounting

For $N$ independent uniform $b$-bit candidate nonce draws, a union bound gives

$$
\boxed{
\Pr[\text{any candidate collision}]
\le\min\!\left\{1,\frac{N(N-1)}{2^{b+1}}\right\}.
}
\tag{E6}
$$

There are $N(N-1)/2$ pairs, each equal with probability $2^{-b}$. The event service still checks the full identifier against its allocation ledger and rejects duplicates. After duplicate filtering, accepted nonces follow the distribution on the remaining eligible values; Equation (E1) describes the candidate source. Four-bit nonces make this example enumerable and permit at most sixteen distinct event identifiers in one epoch.

An event may also use a persistent counter with guaranteed uniqueness and no random unpredictability. Its security claims must match that choice. This document’s secrecy proof obtains its randomness from the masks, and its one-time acceptance property obtains its uniqueness from the event ledger.

When a whole mask bundle is allocated, the remaining available ideal masking-entropy budget is reduced by $(T+H)\log_2H$. This accounting conservatively retires the entire bundle on completion, cancellation, expiry, or uncertain crash recovery. An implementation may consume additional random-source bits to sample the required uniform values.

## 8. Nonce burn state and one-time acceptance

“Burning” means permanently removing an event and its allocated private material from future use. It is a state transition. It does not retroactively change the entropy of the random variable that was sampled or erase information already recorded by an observer.

The verifier maintains an authenticated event record

$$
\mathcal R_e=
(\text{namespace},\text{epoch},\nu_e,\mathrm{ctx},
\mathrm{frameSpec},\mathrm{maskRef},\mathrm{expiry},\mathrm{state},\mathrm{outcome}).
\tag{B1}
$$

The namespace identifies the issuing service. The epoch identifies a persistent allocation generation. The context $\mathrm{ctx}$ binds the account, intended verifier, intended action, endpoint or session, and protocol version. The frame specification includes the ordered rings, cell count, increments, and round schedule. The private reference $\mathrm{maskRef}$ selects a uniquely allocated mask bundle; it does not expose those masks. The expiry sets the event deadline. The outcome is initially pending.

The full uniqueness key is $(\text{namespace},\text{epoch},\nu_e)$. The service binds exactly one context and mask bundle to this key. It never selects a bundle solely by $\nu_e\bmod n_a$.

| Current state | Trigger | Required next state and action |
|---|---|---|
| Unallocated | Fresh full identifier passes the uniqueness check | Persist RESERVED with its context and exclusive mask allocation. |
| RESERVED | Release the canonical challenge | Persist ISSUED before externally releasing it. |
| RESERVED | Cancel, expire, or recover uncertain state | Persist BURNED and retire the allocated bundle. |
| ISSUED | First eligible complete response submission | Atomically change ISSUED to BURNED before verification; grant one worker access to the protected verification snapshot. |
| ISSUED | Cancel, expire, or recover uncertain state | Persist BURNED and retire the bundle. |
| BURNED | Any later submission or retry | Reject further verification; preserve the consumed identifier. |

For a response to be eligible, its authenticated envelope, context, nonce, ordering, and deadline must match the stored event. Its credential responses can still be wrong. The first eligible attempt consumes the event on either acceptance or rejection. Random traffic carrying an unknown nonce does not allocate or reopen an event.

Let $\beta_e$ be the burn flag: zero before consumption and one after the durable transition to BURNED. Let $\mathrm{Claim}_e=1$ only for the worker that atomically changes an eligible ISSUED event to BURNED and sets $\beta_e=1$. Then the complete acceptance rule is

$$
\boxed{
\mathrm{Accept}_e
=\mathbf1\{\mathrm{ContextValid}_e\}\,
\mathrm{Claim}_e\,
\mathbf1\{\mathrm{CalibrationValid}_e\}\,
\mathbf1\{\mathrm{DataValid}_e\}.
}
\tag{B4}
$$

Here $\mathbf1\{E\}$ is one when condition $E$ holds and zero otherwise; multiplication requires every factor to be one. Eligibility is checked before claiming the event. The data predicate is Equation (2), and the calibration predicate checks Equation (7) against the enrolled dictionary. A spent flag never returns to zero within the same event identity.

After the winning verification worker finishes, it records the outcome and erases transient mask copies. The prover’s device also records each assigned mask entry as spent before releasing its response, keeping it only in protected working memory for that computation. A crash during use retires the affected bundle. State updates must survive concurrent requests, retries, restarts, and rollback attempts. Consumed-identifier records remain until the entire epoch is permanently ineligible for future requests.

**One-time acceptance lemma.** Under those state and context-binding assumptions,

$$
\boxed{\#\{\text{new successful verifications for event }e\}\le1.}
\tag{B2}
$$

**Proof.** A verification worker must win the atomic ISSUED-to-BURNED transition. At most one worker can win, and there is no transition restoring the event to ISSUED. Every later attempt encounters a consumed identifier. This proves at-most-once verification for the issued event; authorization of its intended action depends on the authenticated context and surrounding enforcement.

Burning also prevents response masks from being applied to another exchange. The need is visible algebraically: reusing one mask for two raw responses exposes their difference,

$$
(z-z')\bmod H=(w-w')\bmod H.
\tag{B3}
$$

The mask cancels, potentially revealing equality and other credential-dependent relationships. Changing the public nonce or ring geometry does not remove this cancellation if the same secret mask is reused. Independent mask draws may coincide numerically; reusing the same random draw creates the dependence excluded by the theorem.

Repeated use therefore requires both new eligible event state and fresh secret mask allocations. The full observer model must still account for any private information exposed by cameras, microphones, logs, timing, or other channels. Live forwarding and malicious-verifier security retain their separate proof obligations.

## 9. Privacy across sessions and the complete observation boundary

### 9.1 Conditional public context and arbitrary prior knowledge

Let $B$ contain the observer's admitted prior information: for example, a public account handle, the credential policy, and protocol parameters. $B$ may already correlate with the credential. The correct generalization of Equation (5) is

$$
I(X;G,A,Z\mid B)=0,
\qquad
\Pr[X=x\mid B=b,G=g,A=a,Z=z]
=\Pr[X=x\mid B=b].
\tag{S1}
$$

The equality is asserted on supported conditioning events. It follows from the unique-mask argument when challenges are credential-independent **conditional on $B$**, and the entire mask vector is uniform and independent conditional on $X,B,G$. Bayes' rule cancels the common transcript likelihood. This preserves every prior, including a strongly nonuniform prior. It does not make a weak secret harder to guess than it was before observation.

### 9.2 Sequential privacy theorem

Write $\mathcal T_e=(G_e,A_e,Z_e)$ for event $e$ and $h_{e-1}$ for its preceding public history. Let $q_e$ be the total number of released responses in that event. Suppose each event satisfies

$$
\Pr[\mathcal T_e=(g,a,z)\mid X=x,B=b,h_{e-1}]
=Q_e(g\mid b,h_{e-1})H^{-q_e}.
\tag{S2}
$$

$Q_e$ is the public challenge-generation law. The response count is fixed by the permitted public controls. Fresh masks are independent of previous masks and credential-dependent state.

**Theorem: sequential posterior preservation.** For every finite $N$,

$$
\boxed{I(X;\mathcal T_1,\ldots,\mathcal T_N\mid B)=0.}
\tag{S3}
$$

**Proof.** Multiply the conditional probabilities in (S2) for the successive events. Every factor is independent of $x$. Therefore the full archive has the same likelihood for every credential admitted by $B$. Apply Bayes' rule. This proof uses conditional freshness; individual marginal privacy assertions alone would not suffice. $\square$

**Plain English.** A billion honest recordings are as uninformative about the credential as one recording, provided every event satisfies the same conditional assumptions and receives its required fresh secret resources. The claim concerns information, not the expense of recording or processing the archive.

For any deterministic statistic $f$, or any algorithm with independent private coins,

$$
I(X;f(B,\mathcal T_{1:N})\mid B)=0.
\tag{S4}
$$

This includes symbol histograms, repetition counts, cross-session coincidences, correlations, exhaustive searches, and learned classifiers. Each attack processes the same credential-independent input distribution. Its computational power cannot change that input's information content.

### 9.3 Cameras, microphones, timing, logs, and combined sensors

Let $L$ denote the **joint** additional observation: all relevant recordings, timing, error messages, packet lengths, local signals, and logs. A sufficient condition for extending privacy is

$$
\Pr[L=l\mid X=x,B=b,\mathcal T_{1:N}=t]
=Q_L(l\mid b,t).
\tag{S5}
$$

**Observation-extension lemma.** Under (S3) and (S5),

$$
I(X;\mathcal T_{1:N},L\mid B)=0.
\tag{S6}
$$

**Proof.** Factor the joint transcript-and-sensor likelihood into its transcript likelihood and its conditional sensor likelihood. Both factors are credential-independent. $\square$

**Plain English.** The entire added observation must depend only on information already allowed to be public. Testing each sensor independently is insufficient. For example, a uniform secret bit $X$ and independent uniform bit $R$ satisfy $I(X;R)=I(X;X\mathbin\oplus R)=0$, yet observing both reveals $X$ exactly by XOR. The symbol $\oplus$ denotes bitwise exclusive OR.

A public round legend lets Eve invert the released response and recover its selected cell. A camera that reads that legend, a microphone that records an unmasked spoken answer, or logs that retain masks crosses the stated private boundary. Such observations must be removed by the implementation or explicitly included in a different theorem.

The phrase **all frequency attacks** is justified for every computation of the declared private transcript. The phrase **all eavesdropping** requires a defined complete observation and a proof of (S5) for its realization. Completed error-free honest sessions have a constant acceptance bit; variable user errors and attacker-driven feedback require their own analysis.

## 10. A concrete twelve-key, four-color profile

The supplied journal manuscripts specify RW-12/4, a second realization of the general membership function. It uses a finite two-coordinate code. The four-symbol ring in Section 6 and this keypad profile have different frame-generation rules; their response and masking equations are the same.

### 10.1 The separating code and nonce rule

Use $H=4$ and the key order

$$
\mathcal K=(1,2,3,4,5,6,7,8,9,*,0,\#).
$$

Assign the twelve ordered pairs $(a,b)\in\mathbb Z_4^2$ with $a\ne b$ in lexicographic order. The color encoding is red $=0$, green $=1$, blue $=2$, gold $=3$.

| Key | First cell | Second cell |
|---|---:|---:|
| 1 | 0 | 1 |
| 2 | 0 | 2 |
| 3 | 0 | 3 |
| 4 | 1 | 0 |
| 5 | 1 | 2 |
| 6 | 1 | 3 |
| 7 | 2 | 0 |
| 8 | 2 | 1 |
| 9 | 2 | 3 |
| * | 3 | 0 |
| 0 | 3 | 1 |
| # | 3 | 2 |

Let $E(i)$ be the table entry at zero-based index $i$, and let $s_i$ be the corresponding key. Define

$$
E_\nu(s_i)=E((i+\nu)\bmod12),
\qquad c_{\nu,1}(s_i)=E_\nu(s_i)_1,
\qquad c_{\nu,2}(s_i)=E_\nu(s_i)_2.
\tag{K1}
$$

**Balance and separation lemma.** For every nonce, each frame contains three keys in each color, and each key has a unique two-cell signature.

**Proof.** For either coordinate, fixing a value leaves three possible values for the other coordinate. All twelve pairs are distinct. Adding the nonce modulo twelve permutes the assignment of keys to these pairs, preserving both properties. $\square$

Thus separation is proved for **every nonce** in this profile. For an $\ell$-symbol string, use both frames for each position: $r(2j-1)=r(2j)=j$, giving $T=2\ell$ data rounds.

### 10.2 Three-response calibration

A permutation of $H$ values is determined by any $H-1$ of its entries. The full calibration in Section 5 therefore has a valid shortened variant:

$$
\alpha_i=(\varphi(i)+u_i)\bmod H,
\quad 0\le i\le H-2.
\tag{K2}
$$

Unmask these $H-1$ entries, check that they are distinct, and assign the unique unused output value to the remaining input. Exact calibration verification must still bind them to the enrolled permutation.

**Proof.** A bijection uses every output exactly once. After $H-1$ distinct entries are recovered, precisely one output remains. $\square$

For RW-12/4 this uses three responses, so the calibrated total is $q=2\ell+3$. Each response uses a fresh uniform element of $\mathbb Z_4$, or two bits of mask entropy. The event consumes $4\ell+6$ bits. The compact Lean package implements the full $H$-response calibration; this shorter variant is a manuscript-level result and is checked by the finite program below.

### 10.3 Complete example: secret key 7

Alice remembers **7**. Bob holds her enrolled secret and dictionary. Eve sees the public keypad and released arrows. Alice's protected component and Bob have the actual masks. Set $\nu=12$, leaving the displayed table unchanged, and use

$$
\varphi=(2,0,3,1).
$$

This notation lists $\varphi(0),\varphi(1),\varphi(2),\varphi(3)$. Use arrow indices $0=\uparrow$, $1=\rightarrow$, $2=\downarrow$, $3=\leftarrow$.

| Round | Public task | Selected cell | Raw response | Mask | Released response |
|---|---|---:|---:|---:|---:|
| 1 | Calibrate cell 0 | 0 | 2 | 1 | 3 |
| 2 | Calibrate cell 1 | 1 | 0 | 2 | 2 |
| 3 | Calibrate cell 2 | 2 | 3 | 0 | 3 |
| 4 | First membership frame | 2 | 3 | 1 | 0 |
| 5 | Second membership frame | 0 | 2 | 3 | 1 |

The displayed private columns are instructional test values. They are excluded from Eve's protocol view. The released word is $(3,2,3,0,1)$, or left, down, left, up, right.

Bob subtracts $(1,2,0,1,3)$ modulo four to recover $(2,0,3,3,2)$. Calibration recovers map entries $(2,0,3)$ and then the missing value $1$. The final two values decode to cells $(2,0)$. Their key sets intersect as

$$
\{7,8,9\}\cap\{4,7,*\}=\{7\}.
\tag{K3}
$$

Every one of the $12\times24=288$ possible key-map pairs has exactly one compatible mask among $4^5=1,024$ equally likely masks for the recorded word. Thus each pair induces the same likelihood $1/1,024$. The recording preserves its prior probability.

The same construction handles a twelve-digit PIN with 24 data responses, three calibration responses, and 54 fresh mask bits. One billion such events require $54\times10^9$ ideal mask bits, or 6.75 billion packed bytes, before provisioning and integrity overhead. This is a resource calculation, not a reported billion-session experiment.

### 10.4 Exact constrained resource bounds

**Question-count lemma.** A fixed-length $r$-response membership signature with $H$ possible values per response distinguishes at most $H^r$ symbols. Therefore $r\ge\lceil\log_H |\mathcal L|\rceil$.

**Proof.** There are $H^r$ possible signatures. An injective assignment needs at least as many signatures as symbols. $\square$

RW-12/4 attains $r=2$. This bound assumes the dictionary is known or calibrated and concerns the per-symbol membership encoding.

For a finite abelian response group $\mathcal V$, let $p(x)$ be a raw signature and $\mu$ the probability mass function of an additive mask independent of the credential. Define the subgroup

$$
U=\langle p(x)-p(x'):x,x'\text{ admitted}\rangle\subseteq\mathcal V.
\tag{K4}
$$

Angle brackets denote the subgroup generated by all signature differences: all finite sums and inverses of those differences.

**Mask-law lemma.** The releases $p(x)+M$ have the same distribution for all admitted credentials exactly when

$$
\mu(v+u)=\mu(v)\quad\text{for every }v\in\mathcal V,\ u\in U.
\tag{K5}
$$

**Proof.** Equal released distributions give $\mu(y-p(x))=\mu(y-p(x'))$ for every $y$. These equations impose invariance under each generating difference, hence under its generated subgroup. The same equations follow immediately from subgroup invariance. $\square$

Let $J_M=M+U$ denote the coset containing the mask. Within each coset with positive probability, the mask must be uniform. Consequently

$$
\mathsf H(M)=\log_2|U|+\mathsf H(J_M),
\qquad\min\mathsf H(M)=\log_2|U|.
\tag{K6}
$$

The chain rule proves the entropy formula because $J_M$ is determined by $M$. Uniform sampling from a single coset attains the minimum.

**Difference-set lemma.** If $C\subseteq\mathcal V$ has more than half the group's elements, then $C-C=\mathcal V$.

**Proof.** For any $v$, the sets $C$ and $C+v$ must intersect. An intersection supplies $c-c'=v$. $\square$

For any fixed dictionary, the twelve raw keypad signatures occupy twelve distinct points of $\mathbb Z_4^2$, which has sixteen points. The difference-set lemma and (K5) force a uniform mask on all sixteen possibilities: exactly **four data-mask bits per symbol**. The ten-digit subset also has more than eight points and obeys the same bound. Product domains of $\ell$ independent symbol positions give $4\ell$ data-mask bits. Calibration adds the specified overhead.

These bounds concern the stated fixed encoding and independent additive masking. They establish the cost of this interface and model; a comparison with other authentication designs must use their own resource models.

## 11. Extraction, soundness, and the meaning of a perfect proof of knowledge

### 11.1 The properties must be stated individually

| Property | Mathematical requirement | Evidence in this consolidation |
|---|---|---|
| Perfect completeness | Honest executions always satisfy the native checks under their assumptions. | Cancellation proof; corresponding Lean theorems in the supplied package. |
| Perfect passive transcript privacy | Every admitted credential induces the same released-view distribution. | Unique-mask proof, posterior proof, and the package's finite privacy theorem. |
| Accepted-transcript recovery | Actual masks and an accepted calibrated separating transcript determine the credential. | Explicit decoder; `joint_extraction` for full calibration. |
| General knowledge soundness | One specified extractor works for every admissible cheating prover above a stated knowledge error. | A required connecting theorem, not established by the supplied package. |
| Perfect malicious-verifier zero knowledge | An efficient simulator exactly reproduces the malicious verifier's complete view from allowed inputs. | A target for an additional proof and model. |
| Active authentication | A quantified fresh-session impersonation bound in an explicit oracle and network model. | Restricted blind-injection theorem below; broader composition remains to be proved. |

### 11.2 Accepted-trial extraction with privileged access

Let $\mathsf{Store}[h]$ be the enrolled credential associated with handle $h$, and define

$$
R_{\mathrm{priv}}(h,x)=1\quad\Longleftrightarrow\quad\mathsf{Store}[h]=x.
\tag{Q1}
$$

An authorized extractor obtains each trial's public record, **actual** mask tape, and acceptance result. It receives neither the enrolled string nor dictionary directly. Assume it can initiate independent trials of the same prover experiment against the same enrollment, each accepting with probability $p>0$, and each satisfying exact calibrated verification and separation.

**Accepted-trial theorem.** Decode the first accepting trial. If $J$ is the number of trials taken, then

$$
\Pr[J>j]=(1-p)^j\le e^{-jp},\qquad
\mathbb E[J]=1/p.
\tag{Q2}
$$

**Proof.** Every accepted trial decodes correctly by Section 5. Independent failures have probability $(1-p)^j$, and the geometric waiting time has mean $1/p$. $\square$

If a trial costs at most $C$ steps and decoding costs $D$, expected work is at most $C/p+D$. For explicit frame tables, direct decoding takes polynomial time in the table size, with approximately $O(H+T|\mathcal L|)$ elementary membership comparisons. A fixed keypad inverse table reduces data decoding to $O(\ell)$ operations.

The assumptions about independent trials, protected mask access, and acceptance access are part of this theorem. A stateful prover that only participates once need not supply these trials. Reading the stored credential instead of extracting it would make the claim vacuous. Receiving private masks also differs from a public-input extractor's access.

### 11.3 The universal knowledge theorem to add

Choose a precise polynomially checkable relation $R(x,w)$, where $x$ is the statement and $w$ the witness. Declare whether the prover is Alice alone, her device, or their combined system. A device that supplies the dictionary or masks changes whose knowledge the protocol can demonstrate.

A conventional extraction target has one extractor $E$ and a knowledge error $\kappa(x)$ such that, for every admissible cheating prover $P^*$, if

$$
p=\Pr[\langle P^*,V\rangle(x)\text{ accepts}]>\kappa(x),
\tag{Q3}
$$

then the extractor obtains $w$ satisfying $R(x,w)=1$, with an expected-runtime guarantee of the form

$$
\mathbb E[\operatorname{Time}(E^{P^*}(x))]
\le\frac{\operatorname{poly}(|x|)}{p-\kappa(x)}.
\tag{Q4}
$$

Here $V$ is the verifier, $\langle P^*,V\rangle$ denotes interaction, $E^{P^*}$ denotes the specified oracle access, and $|x|$ is input encoding length. The full definition must fix setup, auxiliary inputs, success guarantees, and the permitted reset model. This is the Bellare–Goldreich extraction framework. [Bellare and Goldreich, *On Defining Proofs of Knowledge*](https://cseweb.ucsd.edu/~mihir/papers/pok.pdf)

For this construction, the missing bridge must derive (Q3)–(Q4) from the actual challenge schedule, verification implementation, and cheating-prover interface. A theorem that assumes an accepted privately decoded transcript is a component of that bridge. It does not by itself specify the universal interaction experiment.

If reset or rewinding is used, explain what happens to prover randomness, device state, event state, and the mask tape. Mathematical oracle resets must be defined without implying that deployed burned events can be reopened. If fresh executions are used instead, state their availability and conditional success guarantees.

Zero knowledge error means $\kappa=0$. Perfect completeness or perfect transcript privacy supplies no equation setting $\kappa$ to zero.

### 11.4 Separation for actual ring schedules

The binary example has a direct every-nonce separation check in the supplied Lean package. RW-12/4 has the all-nonce proof in Section 10. Arbitrary multi-ring schedules still need their own separation theorem.

A simple sufficient schedule exists for one ring of $n=Hd$ positions with $H\ge2$: ask every offset once for each secret position. For two positions separated by $\Delta\in\{1,\ldots,n-1\}$, move the first to slot zero. If $\Delta\ge d$, their cells already differ. If $0<\Delta<d$, instead move the first to $d-\Delta$, placing the second at $d$; these slots occupy cells zero and one. Thus at least one offset separates every pair. Adding any fixed nonce permutes the full offset schedule and preserves separation.

This is a sufficient manuscript-level construction, not an optimal-round claim or an additional theorem in the supplied Lean source. For several rings, symbols in different rings can have identical complete signatures. Such collisions require distinguishing challenges or a relation defined on the resulting equivalence classes.

## 12. The four extension questions and their formal targets

### 12.1 Extracting the private dictionary

Calibration provides a concrete native repair. Check the masked calibration answers against the enrolled dictionary, then let an authorized extractor recover the dictionary from their actual masks. Use all $H$ entries as in the Lean package or $H-1$ entries plus permutation completion as in RW-12/4. Separation then recovers the string.

Without an anchor, joint relabeling can make different credential pairs indistinguishable in raw responses. On a four-position ring with two cells, shifting every secret position by two changes its cell by one modulo two. Replacing the dictionary with $\varphi'(i)=\varphi(i-1\bmod2)$ cancels that change for every ring offset. Therefore raw data alone does not uniquely determine the pair. Verified calibration fixes the dictionary's labeled entries.

### 12.2 Public-statement extraction

A possible extension enrolls a commitment $C_X=\operatorname{Com}(\operatorname{enc}(k,\varphi);\rho_X)$. Here $\operatorname{enc}$ is an unambiguous encoding and $\rho_X$ is commitment-opening randomness. A public statement contains the authenticated enrollment handle, commitment, event context, frame specification, and any required transcript fields.

If the proof also attests to the native response equations, one proposed relation is

$$
\begin{aligned}
x&=(pp,h,C_X,e,\mathrm{ctx},G,Y,C_M,\mathrm{att}_M),\\
w&=(k,\varphi,\rho_X,M,\rho_M),\\
R(x,w)=1\ &\Longleftrightarrow
\begin{cases}
C_X=\operatorname{Com}(\operatorname{enc}(k,\varphi);\rho_X),\\
\varphi\text{ is a permutation and }k\text{ satisfies the credential domain},\\
C_M=\operatorname{Com}(M;\rho_M),\\
\mathrm{att}_M\text{ authenticates the allocation }(e,\mathrm{ctx},G,C_M),\\
Y=P_G(k,\varphi)+M\text{ in }\mathbb Z_H^q.
\end{cases}
\end{aligned}
\tag{Q5}
$$

$pp$ denotes public proof and commitment parameters; $Y$ is the combined calibration-and-data word; $P_G$ computes its unmasked word; $C_M$ binds the actual assigned mask tape; $\rho_M$ opens that commitment; $\mathrm{att}_M$ is verifiable enrollment/service evidence of allocation. Authenticated enrollment of $h,C_X$ is also required. This is a **relation design target**, not an instantiated public proof system.

The mask constraint matters: for every candidate credential and arbitrary $Y$, one can set $M=Y-P_G(k,\varphi)$. Freely existential masks make the response equation satisfiable without proving use of the event's actual masks. Binding the assigned tape addresses that relation issue, but introduces commitment, setup, and authenticity assumptions.

Adding commitments changes the public view. In particular, a binding public commitment to a tape can destroy the original exact conditional-uniformity premise for an unbounded observer. Privacy of the augmented view must be proved jointly under the chosen commitment and proof assumptions. The native one-time-mask theorem does not automatically transfer to this extension.

A complete public construction must instantiate the proof system, provide the extractor, and prove its access, runtime, and knowledge error. If security holds only against efficient provers under computational assumptions, use the corresponding argument-of-knowledge terminology. Earlier discussion of such a wrapper identifies a construction path; the supplied native Lean package does not certify that path.

### 12.3 Malicious-verifier zero knowledge

For the passive public record, an exact simulator already exists: sample permitted public controls and independent uniform released responses. Its output has precisely the honest observer's distribution.

A malicious-verifier target is stronger:

$$
\operatorname{View}_{V^*}(x,w,a)
\overset d= S_{V^*}(x,a).
\tag{Q6}
$$

$a$ is permitted auxiliary information; the view includes the verifier's random tape, received messages, choices, and aborts. The simulator receives no additional witness. Exact equality denotes perfect zero knowledge; statistical distance or computational indistinguishability gives a different guarantee. [Goldreich, *Zero-Knowledge: A Tutorial*](https://eccc.weizmann.ac.il/report/2002/063/)

The native designated verifier already possesses an enrolled reference and masks. A simulation claim must explicitly state what its auxiliary input includes and what additional information is being protected. Eve's uniform-record simulator cannot stand in for a simulator of Bob's more informative view.

For a public wrapper, name the commitment and proof constructions, specify standalone or concurrent execution, and prove the complete-view simulator in that setting. Its witness relation, extractor, and zero-knowledge simulator must describe the same protocol. Changing one component can change all three claims.

### 12.4 Active authentication

An active game must specify challenge manipulation, current-session access, release oracles, acceptance feedback, concurrency, corruptions, and fresh target contexts. A relay can forward an honest live response while learning nothing. A proof of knowledge and credential privacy therefore do not replace endpoint authentication and explicit authorization binding.

A complete reduction should identify each bad event—such as an unauthorized allocation, forged authenticated context, proof extraction failure, or state reuse—and bound it in the declared experiment. A sum of unspecified error symbols is only a proof plan. Concrete assumptions, reductions, and query budgets are required before it becomes a security bound.

## 13. Active experiments, failure cases, and acceptance feedback

### 13.1 Restricted blind injection

Fix a fresh event with $q$ independently uniform secret masks and exact full-word checking. Eve may know the credential and public context, but has no current masks, current honest response, or release oracle for that event. She chooses one well-formed response word.

**Blind-injection theorem.**

$$
\Pr[\text{accept}]=H^{-q},\qquad
\Pr[\text{any success in }Q\text{ fresh attempts}]
\le\min\{1,QH^{-q}\}.
\tag{A1}
$$

**Proof.** Exactly one equally likely mask tape makes her chosen word the expected word. The multi-event inequality follows by a union bound when the same conditional freshness and access restrictions hold at each attempt. $\square$

This bound measures inability to supply the masked word. An interface that masks an attacker's guessed credential on their behalf has a different guessing experiment.

If the verifier instead accepts Hamming distance at most $a$ from the expected word, with $0\le a\le q$, the same restricted game's probability is

$$
H^{-q}\sum_{i=0}^a\binom qi(H-1)^i.
\tag{A2}
$$

Hamming distance counts unequal coordinates. There are $\binom qi$ ways to choose $i$ error locations and $(H-1)^i$ wrong-value assignments. This equation makes the cost of that particular error tolerance explicit.

### 13.2 Repeated-position guessing needs its actual joint distribution

Consider an **unmasked-response** guessing game on the ring $(A,B,C,D)$ with two consecutive cells of size two. The secret is uniform. Three rounds use independent uniform ring rotations. The attacker knows the dictionary and always answers as though the secret were A.

If the secret is A, all rounds pass. If it is B or D, each round puts it with A with probability $1/2$. If it is C, it never shares A's cell. Thus

$$
\Pr[\text{all three pass}]
=\frac14\left(1+\left(\frac12\right)^3+0+\left(\frac12\right)^3\right)
=\frac5{16}>\frac18.
\tag{A3}
$$

Marginal success in a round is $1/2$, but the rounds share the same secret. Multiplying the marginal probabilities discards that dependence. This counterexample concerns the stated unmasked guessing interface; (A1) has different mask-access restrictions and a different proof.

### 13.3 State and feedback are additional observations

Burning stops a second native verification for the same event. It does not stop the first valid response being relayed, prevent denial of service, or ensure exactly-once execution of a downstream operation. The application needs its own atomic authorization or idempotence rule linking the accepted event to the intended operation.

Feedback also changes the observation experiment. An attacker submitting a guessed secret through a legitimate masking component can use acceptance or rejection to test that guess. The archive theorem concerns the specified honest released view. Information-theoretic authentication literature separately analyzes feedback and composition; Portmann provides a direct treatment of this distinction for key recycling. [Portmann, *Key Recycling in Authentication*](https://arxiv.org/abs/1202.1229)

## 14. Academic and industry evaluation

### 14.1 Review requirements and their evidence

The following is a proposed submission checklist derived from the formal goals. It is not a certification decision.

| Review item | Concrete evidence to supply |
|---|---|
| Primitive definition | Algorithms, interfaces, parameter families, public/private inputs, and the complete view of every participant. |
| Completeness | Actual execution implies every verification predicate for honest inputs. |
| Transcript privacy | Joint conditional likelihood equality, including calibration and repeated-session state. |
| Knowledge soundness | Relation, arbitrary-prover model, one extractor, knowledge error, success guarantee, and expected runtime. |
| Schedule adequacy | Separation for every permitted nonce or an explicit failure probability using the true joint schedule. |
| Zero knowledge | Simulator for the claimed verifier class, view, setup, and composition mode. |
| Active authentication | Fresh-context game, release-oracle model, replay and relay treatment, and feedback analysis. |
| Randomness | Exact mask distribution, provisioning mechanism, consumption accounting, and computational variant if applicable. |
| Deployment state | Durable unique allocation, concurrency behavior, rollback handling, erasure, and action binding. |
| Observation boundary | Physical and software analysis of private legends, inputs, timing, sensors, and logs jointly. |
| Human performance | Completion times, errors, accessibility, learning, and controlled comparisons using equivalent private resources. |
| Novelty | Specific new capability, theorem, interface result, or efficiency improvement relative to prior constructions. |
| Reproducibility | Versioned source, pinned toolchain, theorem-to-protocol crosswalk, and independent reconstruction. |

NIST SP 800-63B-4 addresses authenticator properties, replay and phishing resistance, authenticator management, and related lifecycle requirements. A mapping to those requirements concerns the whole implementation and assurance claim. A transcript-privacy theorem alone does not establish a NIST assurance level or approval. [NIST SP 800-63B-4](https://pages.nist.gov/800-63-4/sp800-63b.html)

The supplied JOC and IEEE TIT files are author review-draft manuscripts. Their filenames do not establish peer-review acceptance. Their stated contribution includes the human interface, constrained resource analysis, and separation of observation and authentication experiments. Classical additive perfect secrecy itself is an established mathematical mechanism.

### 14.2 Fields of mathematical and practical relevance

| Field | Connection and potential contribution |
|---|---|
| Information theory | Exact conditional independence, posterior preservation, mask entropy, and resource lower bounds. |
| Combinatorics and discrete geometry | Balanced partitions, separating signatures, code size, and nonce-dependent assignments. |
| Algebra | Permutations, modular addition, signature-difference subgroups, and credential symmetries. |
| Probability and statistics | Joint distributions, repeated trials, collision bounds, and the absence of informative frequency statistics. |
| Proof-of-knowledge theory | Public relations, arbitrary-prover extraction, knowledge error, and simulator obligations. |
| Formal methods | Verified finite algebra and probability, explicit hypotheses, and protocol-to-state-machine refinement. |
| Coding theory | Error-tolerant signatures and the accompanying increase in acceptance opportunities. |
| Usable security | Human membership decisions, private legends, accessibility, errors, and observation studies. |
| Identity and access management | Credential verification integrated with enrollment, recovery, session binding, and revocation. |
| Agent authorization | A credential ceremony can authorize a specified operation when an independent reference monitor enforces the bound permission. |

The present mathematics uses finite partition geometry. Claims about differential geometry, topology, or a physical manifold require results using those additional structures. The diamond analogy illustrates unequal access to information; the probability model determines the security claim.

Agent policy enforcement similarly requires an external enforcement mechanism. Knowledge of a credential associated with a policy does not by itself prove that software obeys the policy.

## 15. Lean evidence and reproducibility

### 15.1 Exact status of the supplied package

The attachment `ENI6MA_Lean4.zip` contains `RosarioWangENI6MA.lean`, `Audit.lean`, a Lake configuration, a toolchain pin, `README.md`, and `VERIFICATION.txt`.

The recorded audit reports compilation of **74 theorem declarations** under Lean 4.19.0 and Mathlib v4.19.0, without proof placeholders or custom axioms. Its listed dependencies are the standard foundations `propext`, `Classical.choice`, and `Quot.sound` where used.

For this consolidation, the source's 74 declarations and SHA-256 were checked against that record. The digest agrees:

```text
fb9bd8933bad0f7790ce98fa1a8af3a07772acacce7331cf665cf147b44af97a
```

Lean is not installed in the current consolidation environment. Therefore compilation and the printed axiom dependencies are **inherited recorded evidence**, not a newly executed compiler audit. The arithmetic program in Appendix A was executed for this edition.

### 15.2 Theorem-to-claim crosswalk

All theorem names below are under `RosarioWangENI6MA`.

| Claim | Lean declaration or declarations |
|---|---|
| Subtracting the mask recovers the raw word | `decode_release` |
| Unique compatible mask | `release_eq_iff`, `unique_mask` |
| Uniform released-word probability | `maskMass_uniform`, `exact_transcript_probability` |
| Finite public-view mutual information is zero | `public_mutual_information_zero` |
| Every statistic has a credential-independent law | `every_statistic_private` |
| Honest data verification | `honest_acceptance` |
| Full dictionary calibration | `calibration_recovery` |
| Accepted separating responses identify each symbol | `accepting_candidates_singleton`, `joint_extraction` |
| Full calibration preserves privacy | `calibrated_transcript_probability` |
| Ring cell sizes and modulo projection | `ringCell_lt`, `ring_balance` |
| Nonce and mask entropy | `nonce_entropy`, `nonce_min_entropy`, `calibrated_mask_entropy` |
| Projection entropy bound | `nonce_projection_entropy_bound` |
| Modulo bias | `residue_count`, `modulo_probability` |
| Finite seed cannot increase entropy | `seed_expansion_entropy`, `conditional_seed_expansion_entropy` |
| Candidate nonce collisions | `nonce_collision_bound` |
| Burned state prevents repeated acceptance | `burned_absorbing`, `at_most_one_acceptance` |
| Native state and credential gates | `native_event_acceptance_iff` |
| Mask reuse reveals raw differences | `reused_mask_reveals_difference` |
| Binary example separates for every candidate nonce | `Example.every_nonce_separates` |

The formal source treats full $H$-entry calibration, finite distributions, and the declared abstract state machine. The shortened keypad calibration, subgroup lower bound, public commitment relation, and general knowledge theorem are not silently included in the count of 74.

### 15.3 Minimal Lean excerpt

The following excerpt reproduces the core cancellation and unique-mask argument from the package, with its required import and namespace. `Fin T` indexes the rounds; `ZMod H` supplies arithmetic modulo $H$; a function from rounds to residues represents a response word. `∃!` means that exactly one value exists.

```lean
import Mathlib

namespace RosarioWangENI6MA

abbrev Word (H T : ℕ) := Fin T → ZMod H

def release {H T : ℕ} (raw mask : Word H T) : Word H T := raw + mask

theorem decode_release {H T : ℕ} (raw mask : Word H T) :
    release raw mask - mask = raw := by
  simp [release]

theorem release_eq_iff {H T : ℕ} (raw mask out : Word H T) :
    release raw mask = out ↔ mask = out - raw := by
  constructor
  · intro h
    calc
      mask = (raw + mask) - raw := by abel
      _ = out - raw := by rw [← release, h]
  · intro h
    rw [h]
    simp [release, add_comm]

theorem unique_mask {H T : ℕ} (raw out : Word H T) :
    ∃! mask, release raw mask = out := by
  refine ⟨out - raw, (release_eq_iff _ _ _).2 rfl, ?_⟩
  intro mask hm
  exact (release_eq_iff _ _ _).1 hm

end RosarioWangENI6MA
```

The general algebraic excerpt allows all natural moduli supported by `ZMod`; the authentication profiles require $H\ge2$. The package's finite uniform-probability statements add nonzero-modulus hypotheses.

To reproduce the supplied package's full build, use its pinned configuration and run from the extracted project directory:

```bash
lake update
lake exe cache get
lake build
lake env lean Audit.lean
```

Successful elaboration establishes the propositions as formalized. Academic review must also verify that their definitions and hypotheses describe the claimed protocol, including omitted sensors, oracle access, and deployed state.

## 16. Conclusion: the fundamental contribution

The Rosario–Wang construction makes a particular authentication objective mathematically explicit: **an authorized participant can verify or reconstruct the enrolled credential while the permitted released record leaves an observer's credential probabilities unchanged**.

The membership code supplies distinguishable human decisions. The private dictionary names their cells. Fresh secret masking gives every credential the same released-response law. Calibration and separation make authorized reconstruction exact. The nonce selects an event's public projection, while durable consumption state limits that event to one native verification. Each part has its own role, assumptions, and resource cost.

The twelve-key profile makes the interface especially concrete: two balanced four-color membership questions identify a key; three masked calibration responses identify the dictionary; four fresh data-mask bits per symbol are required by its independent additive encoding. The four-symbol ring example provides a smaller complete arithmetic demonstration, including the distinction between nonce entropy, projection diversity, and secret entropy.

The security benefit is exact within the observation model: frequency analysis, correlation, enumeration, and classifiers gain no new credential evidence from that record, regardless of the number of finite honest sessions supplied with fresh masks. Implementation security requires the protected observations, enrollment, mask allocation, and event binding to preserve the model.

The next decisive proof is the universal knowledge-soundness theorem for the chosen statement–witness relation and prover interface. A malicious-verifier simulator and an active-session composition proof establish additional properties when those are claimed. These results would support a precise proof-of-knowledge classification. Independent review and comparison with existing human-identification, masking, and authentication systems establish the construction's novelty and practical significance.

## Appendix A. Executable finite verification

The following Python program uses only the standard library. Copy its code block into a `.py` file and run it with Python 3. It checks the binary example over all sixteen candidate nonces, all credentials, and all masks; the keypad example over all twelve rotations, all key-map pairs, and all masks; the fixed-dictionary difference sets; the four-position separation schedule; and the repeated-position counterexample.

These are finite arithmetic checks. The general privacy and extraction statements are justified by their proofs above. The burn trace is an abstract single-event model; storage concurrency and rollback require implementation evidence.

```python
from collections import Counter
from fractions import Fraction
from itertools import permutations, product
import json


def add(raw, mask, modulus):
    return tuple((a + b) % modulus for a, b in zip(raw, mask))


def subtract(out, mask, modulus):
    return tuple((a - b) % modulus for a, b in zip(out, mask))


def binary_cells(nonce, symbol):
    return tuple(((symbol + nonce + offset) % 4) // 2
                 for offset in (0, 3))


binary_runs = 0
for nonce in range(16):
    signatures = [binary_cells(nonce, s) for s in range(4)]
    assert len(set(signatures)) == 4
    for phi in permutations(range(2)):
        inverse = {v: i for i, v in enumerate(phi)}
        for secret in range(4):
            raw = phi + tuple(phi[c] for c in signatures[secret])
            outputs = set()
            for mask in product(range(2), repeat=4):
                out = add(raw, mask, 2)
                outputs.add(out)
                decoded = subtract(out, mask, 2)
                assert decoded[:2] == phi
                recovered = tuple(inverse[v] for v in decoded[2:])
                assert signatures.index(recovered) == secret
                binary_runs += 1
            assert len(outputs) == 16

assert add((1, 0, 0, 1), (1, 1, 0, 1), 2) == (0, 1, 0, 0)
offset_law = Counter((n % 4, (n + 3) % 4) for n in range(16))
assert len(offset_law) == 4 and set(offset_law.values()) == {4}

keys = ('1', '2', '3', '4', '5', '6', '7', '8', '9', '*', '0', '#')
pairs = tuple((a, b) for a in range(4) for b in range(4) if a != b)
masks4 = tuple(product(range(4), repeat=5))
keypad_runs = 0
difference_checks = 0
for nonce in range(12):
    signatures = [pairs[(i + nonce) % 12] for i in range(12)]
    lookup = {s: i for i, s in enumerate(signatures)}
    assert len(lookup) == 12
    for coordinate in range(2):
        assert Counter(s[coordinate] for s in signatures) == Counter({i: 3 for i in range(4)})
    for phi in permutations(range(4)):
        for domain in (range(12), [i for i, key in enumerate(keys) if key.isdigit()]):
            raw_domain = [tuple(phi[c] for c in signatures[i]) for i in domain]
            differences = {subtract(a, b, 4) for a in raw_domain for b in raw_domain}
            assert len(differences) == 16
            difference_checks += 1
        for secret in range(12):
            raw = phi[:3] + tuple(phi[c] for c in signatures[secret])
            outputs = set()
            for mask in masks4:
                out = add(raw, mask, 4)
                outputs.add(out)
                decoded = subtract(out, mask, 4)
                known = decoded[:3]
                remaining = set(range(4)) - set(known)
                assert len(set(known)) == 3 and len(remaining) == 1
                recovered_phi = known + (remaining.pop(),)
                assert recovered_phi == phi
                recovered_cells = tuple(recovered_phi.index(v) for v in decoded[3:])
                assert lookup[recovered_cells] == secret
                keypad_runs += 1
            assert len(outputs) == 1024

assert add((2, 0, 3, 3, 2), (1, 2, 0, 1, 3), 4) == (3, 2, 3, 0, 1)

# Exact Bayes calculation: equal likelihoods preserve a nonuniform prior.
prior = {'7': Fraction(2, 5)}
prior.update({k: Fraction(3, 55) for k in keys if k != '7'})
likelihood = Fraction(1, 1024)
evidence = sum(prior[k] * likelihood for k in keys)
posterior = {k: prior[k] * likelihood / evidence for k in keys}
assert posterior == prior

# Three independent rotations, one fixed uniformly sampled secret.
guess_successes = 0
for secret in range(4):
    for offsets in product(range(4), repeat=3):
        guess_successes += all(((secret + o) % 4) // 2 == o // 2 for o in offsets)
guess_probability = Fraction(guess_successes, 4 * 4**3)
assert guess_probability == Fraction(5, 16)

# The one-ring full-offset schedule separates every tested slot pair.
full_offset_profiles = 0
for cells in range(2, 7):
    for width in range(1, 6):
        size = cells * width
        signatures = {tuple(((s + o) % size) // width for o in range(size))
                      for s in range(size)}
        assert len(signatures) == size
        full_offset_profiles += 1

# Abstract worked burn trace: the second submission cannot claim the event.
state = 'unallocated'
grants = 0
trace = []
for action in ('reserve', 'issue', 'submit_valid', 'submit_valid'):
    if state == 'unallocated' and action == 'reserve':
        state = 'reserved'
    elif state == 'reserved' and action == 'issue':
        state = 'issued'
    elif state == 'issued' and action == 'submit_valid':
        state = 'burned'
        grants += 1
    trace.append(state)
assert trace == ['reserved', 'issued', 'burned', 'burned'] and grants == 1

print(json.dumps({
    'binary_complete_executions': binary_runs,
    'keypad_complete_executions': keypad_runs,
    'signature_difference_checks': difference_checks,
    'full_offset_ring_profiles': full_offset_profiles,
    'binary_transcript': [0, 1, 0, 0],
    'keypad_transcript': [3, 2, 3, 0, 1],
    'nonuniform_prior_and_posterior_for_key_7': str(posterior['7']),
    'repeated_position_guessing_probability': str(guess_probability),
    'binary_candidate_nonce_entropy_bits': 4,
    'binary_projection_entropy_bits': 2,
    'binary_mask_entropy_bits': 4,
    'burn_trace_acceptances': grants,
    'status': 'all assertions passed'
}, indent=2))
```

The execution results for this edition are:

```json
{
  "binary_complete_executions": 2048,
  "keypad_complete_executions": 3538944,
  "signature_difference_checks": 576,
  "full_offset_ring_profiles": 25,
  "binary_transcript": [
    0,
    1,
    0,
    0
  ],
  "keypad_transcript": [
    3,
    2,
    3,
    0,
    1
  ],
  "nonuniform_prior_and_posterior_for_key_7": "2/5",
  "repeated_position_guessing_probability": "5/16",
  "binary_candidate_nonce_entropy_bits": 4,
  "binary_projection_entropy_bits": 2,
  "binary_mask_entropy_bits": 4,
  "burn_trace_acceptances": 1,
  "status": "all assertions passed"
}
```

## Appendix B. Sources and reconciliation

| Supplied source | Role in this consolidation |
|---|---|
| `Rosario_Wang_ENI6MA_Compact_Proof_and_Worked_Example.md` | Core notation, response and verification equations, binary ring example, entropy, and burn-state formulation. |
| `ENI6MA_Lean4.zip` | Exact Lean source, theorem names, pinned versions, and inherited audit evidence. |
| `The_End_of_Passwords_Rosario_Wang_ENI6MA.md` and its PDF | RW-12/4 code, three-response calibration, sequential privacy, constrained mask lower bound, and explicit access experiments. |
| `ENI6MA_JOC_Review.pdf` | Author manuscript with theorem dependencies and review scope. |
| `ENI6MA_IEEE_TIT_Review.pdf` | Author manuscript emphasizing randomness costs and the limits of novelty and empirical evidence. |
| `THE-DIAMOND-ANALOGY.md` | Context for unequal participant views; translated here into explicit observation boundaries. |
| `MAKING-PASSWORDS-OBSOLETE-BOLD-CLAIM.md` | Application objective: replace observable reusable-secret submission when the complete account lifecycle supports it. |
| `ROSARIO-WANG-UNIFIED-WHITEPAPER-FINAL-v2.0.md` | Related finite private-reference encoding and a separate conditional SAT research program. The authentication proofs here do not assume its universal SAT postulate. |
| Supplied conversation through the proof-of-knowledge review | Relation, arbitrary-prover extraction, simulation, actual-schedule separation, and active-security completion requirements. |

This edition harmonizes claims rather than concatenating promotional language or duplicating manuscript layouts. Full and shortened calibration are labeled separately. The two frame-generation profiles remain explicit. No inherited statement of a completed public proof system is promoted into a theorem without its instantiated construction and evidence.

The SAT manuscript's universal complexity implications depend on a separately specified uniform polynomial construction. The existence of private masking and authorized decoding supplies no such construction by itself. The subject belongs to its own proof obligations.

The external references linked at their points of use supply definitions, prior art, or assessment criteria. They do not endorse the construction described here. The mathematical consolidation and arithmetic checks were assisted by OpenAI ChatGPT; independent peer review and deployment certification remain distinct evidence.
