File size: 3,405 Bytes
74db60e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
license: agpl-3.0
tags:
- snapkitty
- october-2026-drop
- alloy
- formal-methods
- formal-verification
- model-checking
- counter-paper
- goldilocks-field
- research
---

> Mirrored from [https://github.com/AHMADALIPARR/PIRTM](https://github.com/AHMADALIPARR/PIRTM) at commit `784ed88`. Part of the **SnapKitty October 2026 main drop**.

<!--
  Copyright (C) 2026 Ahmad Ali Parr
  SPDX-License-Identifier: AGPL-3.0-only
-->

# PIRTM

[![License: AGPL-3.0](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](LICENSE)
[![Alloy 6.2.0](https://img.shields.io/badge/Alloy-6.2.0-orange.svg)](https://alloytools.org/)
[![Reproducible](https://img.shields.io/badge/reproducible-yes-green.svg)](paper/counter-paper.md#reproduction)

**Prime-Indexed Recursive Tensor Mathematics** — a compiler IR for tensor
programs lowering to Goldilocks field arithmetic circuits (`p = 2⁶⁴ − 2³² + 1`).

This repo hosts an Alloy counter-paper against the HCALC verification logs.

---

## The claim, in full

`github.com/AHMADALIPARR/hcalc` ships Alloy 6.2.0 logs reporting
`UNSAT (PASS)` for **A1–A7**, **P1–P8**, and ten **`INV_*`** invariants —
presented as verification of the sealed properties.

**Documented findings** (all reproduced, see
[`paper/counter-paper.md`](paper/counter-paper.md)):

1. **Every assertion is formula-identical to an enforced fact.** A1 asserts
   `declaredCard = 64`; the fact sets `declaredCard = 64`. P2 asserts
   `isDiagonal = 1 ∧ alphaLaw = SpecAlphaLaw`; the fact sets both. Same
   for A6, A7, P4, INV_converge, INV_evolution_total — see §2 of the paper.
2. **The model checks flags, not mathematics.** The 64 primes are an Int
   constant; the "Gershgorin bound" and "operator norm ≤ 1−ε" are Int
   flags (`opBoundOK = 1`); `αⱼ = 1/(1+log pⱼ)` is an uninterpreted atom
   `SpecAlphaLaw`. No prime value, logarithm, or norm is ever computed.
3. **The method cannot distinguish truth from falsehood.** Exhibit A
   (`alloy/vacuity-demo.als`) runs the identical pattern on a **false**
   claim — `Moon.madeOfCheese = 1` — and Alloy returns `UNSAT`.
4. **Falsifiability is what's missing.** Exhibit B
   (`alloy/hcalc-mirror.als`) mirrors the real A7/P2 pairs and adds a
   control check whose fact models a *generator*, not the conclusion —
   the shape a genuine verification takes.
5. **What is NOT disputed:** the HCALC definitions, the mathematics, or
   the Lean 4 formalization (1968 jobs, zero `sorry` — genuine proof,
   credited in full). Only what the *Alloy logs* are claimed to establish.

Until the checks can fail, every `UNSAT (PASS)` reads as
`TAUTOLOGY (UNINFORMATIVE)`.

---

## Reproduce

```sh
java -jar alloy.jar exec -f -t text alloy/vacuity-demo.als
java -jar alloy.jar exec -f -t text alloy/hcalc-mirror.als
```

Alloy 6.2.0 jar bundled. Full argument:
[`paper/counter-paper.md`](paper/counter-paper.md).

## License

[AGPL-3.0-only](LICENSE). Copyright (C) 2026 Ahmad Ali Parr.

### 💼 Commercial License

SnapKitty code is free and open under **AGPL-3.0** for open-source use. Building a commercial product or service? A **proprietary commercial license** from Snapkitty Collective LLC lets you ship this code without the AGPL's source-sharing and network-use obligations.

**[→ Get a commercial license](mailto:A.parr@belespritdaccord.uk?subject=Commercial%20license:%20PIRTM)** · A.parr@belespritdaccord.uk