Bugs and issues ledger
Every bug, gap or review finding, with severity, status, the commit that fixed it and its test.
| ID | Where | Severity | Finding | Status | Fix / test |
|---|---|---|---|---|---|
| B1 | Mojo layout library: composition (max/kernels/src/layout/layout.mojo:1501-1506, 1618-1672 at bbc13a71) |
medium (upstream) | composition(A, B) with A = (6,2):(1,6), B = (3):(4) returns (3):(6) (offsets 0,6,12); the true composite has offsets 0,4,8. _shape_div returns 1 when neither size divides the other. |
open, filed as modular/modular #7738 | reproducer tests/upstream/layout/laws1.mojo (compiles, so the asserts hold), control ctl.mojo fails as expected; MojoProofTest/LayoutLaws.lean:170-178, by decide on the transcription (fd84226, c77da73, b0d0bc3); the input fails the premise composeDiv (line 173), under which the law holds for a single-mode B, MojoProof.Layout.Lay.compose_call (b0d0bc3); the compiler gives offsets 0, 6, 12, conformance case 36, MojoProofTest/LayoutConformance.lean:185 (68e11ac) |
| B2 | Mojo layout library: blocked_product (layout.mojo:1907-1908 doc, 1975-1978 and 2000-2006 code) |
medium (upstream) | The doc says the outer stride is the block's cosize times the tiler stride; the code uses the block's size. A non-compact block (2):(2) gives overlapping offsets. | open, not reported | tests/upstream/layout/laws1.mojo; MojoProofTest/LayoutLaws.lean:190-198 (fd84226); conformance case 28 (offsets 0, 2, 2, 4), LayoutConformance.lean:153 (68e11ac); the law for what the code computes, MojoProof.Layout.Lay.blockedProduct_call (3def600) |
| B3 | Mojo layout library: idx2crd (layout.mojo:546-549, Mojo/stdlib/std/utils/coord.mojo:973-975) |
medium (upstream) | Documented as the inverse of the layout; for the injective (2,2):(3,1) it maps offset 3 to (1,1), not (1,0). | open, not reported | tests/upstream/layout/laws2.mojo; MojoProofTest/LayoutLaws.lean:200-205 (fd84226); conformance case 13 (idx2crd(3) = (1, 1)), LayoutConformance.lean:86 (68e11ac); the inverse for modes nested in order or in reverse order, MojoProof.Layout.idx2crd_call, idx2crd_call_reverse (8963b19) |
| B4 | Mojo layout library: zipped_divide (layout.mojo:1407-1486, coord.mojo:1906-1913) |
medium (upstream) | Shape (5) by tile (2) floors to 2 tiles with no divisibility check: element 4 is dropped silently. | open, not reported | tests/upstream/layout/laws1.mojo; MojoProofTest/LayoutLaws.lean:207-211 (fd84226); conformance case 25 (size 4), LayoutConformance.lean:138, and case 23 (a tile extent above the extent gives size 0), :129 (68e11ac); the size law when every tile extent divides its extent, MojoProof.Layout.Lay.zippedDivide_size (3def600) |
| B5 | Mojo layout library: Swizzle (max/kernels/src/layout/swizzle.mojo:327-332) |
low (upstream) | The assert message says "shift should be less than bits", the opposite of the condition; the check is skipped at compile time, where Swizzle(2,0,1) is accepted and is not self-inverse at x = 6. |
open, not reported | tests/upstream/layout/laws2.mojo; MojoProofTest/LayoutLaws.lean:213-215 (fd84226); conformance case 33: the compiler accepts Swizzle(2, 0, 1) at compile time and maps 6 to 5 and 5 to 7, LayoutConformance.lean:174 (68e11ac); the involution when bits ≤ |
| B6 | vector_addition (max/examples/gpu-functions/vector_addition.mojo; corpus vadd/) |
low (proof obligation) | The i64 global thread index is truncated to i32 before indexing (trunc i64 %19 to i32). Harmless at the example's size; a bounds proof needs the index to fit in i32. |
open | to be a premise of the vector_addition theorem |
| B7 | the design notes (vocabulary) | low (spec) | The design notes said getelementptr inbounds everywhere. The corpus has 596 GEPs without inbounds (374 in layernorm, 222 in mgemm, all into the kernel-argument structs) and 327 with inbounds nuw. |
open | the AST keeps the flags (GepFlags); the semantics gives a GEP without inbounds LLVM's wrapping address arithmetic with no bounds obligation |
| B8 | importer coverage (corpus mgemm/) |
gap (tensor cores) | 7 files use inline PTX the importer refuses by name: the fp8 cvt.rn.f16x2.e4m3x2 (4 split_k_reduce files) and cvt.rn.satfinite.e4m3x2.f32 (the float8 naive file and 2 float8 multistage files); the cp.async.cg.shared.global copies are accepted (MojoProof/LLVM/Asm.lean, 393078f) and not executed (exec faults at them). |
open, listed in tests/corpus/REFUSALS.tsv (7 rows); the e4m3 conversions are refused because AsmCall needs sideeffect and a void result (B1128); a patch is checked and waits on AsmCall's freeze |
lake test checks the refusals are exactly the listed ones; the semantics of the copies is MojoProof.Sem.AsyncOp.copy (MojoProof/Sem/Async.lean, B1047), not yet dispatched |
| B9 | semantics coverage (MojoProof/Sem/Eval.lean, Op.lean) |
gap (semantics) | fptoui, fptosi, inttoptr and frem are unsupported (a run that reaches one stops as unsupported); none occurs in the corpus today. |
open | a run reaching one ends in Fault.unsupported |
| B10 | semantics coverage (MojoProof/Sem/Value.lean) |
gap (semantics) | Vectors of elements narrower than a byte (<N x i1>) cannot be stored or loaded; the corpus has 36 such vector types, none loaded or stored. |
open | Layout.encode / decode return none |
| B11 | getelementptr ... nuw (MojoProof.Sem.gepPtr) |
low (stricter than LangRef) | A negative index under nuw gives poison here; LangRef only requires the unsigned sums not to wrap. More poison removes behaviors, so a theorem stays sound; a correct kernel with such a GEP could fail to be proved. The 327 inbounds nuw GEPs of the corpus will show whether this matters. |
open | docstring of MojoProof/Sem/Eval.lean |
| B12 | semantics coverage (MojoProof/Sem/Thread.lean) |
gap (semantics) | addrspacecast of a null-based pointer, and byval arguments of calls to defined functions are unsupported (float atomics are unsupported by decision, B38). |
open | Fault.unsupported |
| B13 | soundness gap (TRUST T12) | high | !invariant.load, willreturn, nosync, nofree, norecurse, memory(...) and non-byval nonnull added undefined behavior that the semantics did not check. |
fixed | norecurse recursion is undefined behavior; nonnull makes a null pointer poison (withAttrs); !invariant.load is recorded in the trace and Grid.Sound includes Grid.Kept; the other attributes are refused on defined functions (Func.check); trace_examples; tests "invariant load written", "norecurse recursion", "willreturn", "nonnull null"; every small kernel's and vector_addition's run keeps !invariant.load |
| B14 | semantics of cp.async (MojoProof.Sem.intrinsic) |
gap (semantics) | cp.async commit and wait groups do nothing: the importer accepts the inline-asm copies (MojoProof/LLVM/Asm.lean) but exec faults at them, so no run without a fault issues an asynchronous copy. Supporting mgemm needs a model of pending copies. |
partly fixed (b92a2bb): MojoProof/Sem/Async.lean models pending copies, commit_group and wait_group n (Async.wait_run, Async.visible, Async.visible_bytes); the grid does not use it yet (B1048); 131ef30: the completion is the ISA's (Async.Step, Async.Run: any copy may land at any time; B1074); 13853c6: tests/gpu/cp-async/record.txt, one A100 run agreeing with the lazy run; 6a4bcee: every run of the model gives the words it reads after either wait (wait1_bytes, wait0_bytes) |
MojoProofTest/Async.lean; MojoProofTest/AsyncGpu.lean |
| B15 | grid layer (MojoProof/Sem/Grid.lean) |
gap (semantics) | ldmatrix and mma have no grid semantics (a run reaching one stops as unsupported). The aligned barrier with a returned thread is undefined behavior here, where PTX lets the other threads go on (stricter: sound, but may refuse a correct kernel). Determinism of race-free runs is not yet proved. |
partly fixed (27616ec, da8abc0, a1f6c97, ab33fea): MojoProof/Sem/TensorCore.lean gives ldmatrix and mma their semantics as warp-collective steps (ldmatrix_gather, mmaStep_gather, mma_exact, mma_contract) with the obligation Grid.warpReady; Grid.fire runs mma for a whole warp with bf16 or f16 inputs and an f32 accumulator (Grid.fire_mma, ab33fea); ldmatrix is still unsupported (B1325). The barrier with a returned thread and determinism are unchanged: open |
Grid.fire; MojoProofTest/TensorCore.lean, MojoProofTest/TensorCoreGrid.lean |
| B16 | rsqrt.approx fallback (MojoProof.Sem.rsqrt) |
gap (layer norm) | When the oracle's word misses the contract, rsqrt falls back to a FloatLib word. Before 5fff152 the fallback was 1 / sqrt x, which met the contract only for positive normal x (rsqrtOk_div_sqrt), so NaN, zero, subnormal, negative and infinite operands had no proved word |
fixed (5fff152) | the fallback is FloatLib's Model.rSqrt; rsqrtOk_rSqrt (MojoProof/Sem/Float.lean:319) proves it meets rsqrtOk on every operand (toReal_rSqrt_eq_roundAt, rSqrt_of_isZero) and replaces rsqrtOk_div_sqrt, so every value of rsqrt meets the contract (rsqrtOk_of_rsqrt); since 3241315 rsqrt returns a word, not an option (B350) |
| B17 | MojoProof.Sem.scalarOf |
low | A load of a scalar whose stored bits exceed its width gave undef; LangRef ("load") makes a nonzero padding bit poison. |
fixed | the result is poison (the whole scalar, coarser than LangRef's byte) |
| B18 | MojoProof.Sem.Grid.fire |
medium | A barrier number outside 0-15 completed; PTX ISA 9.5, section 9.7.15.1, has 16 barriers per block. | fixed | it is undefined behavior |
| B19 | MojoProof.Sem.Layout.parse |
high | Unknown or unimplemented data layout specifications were skipped: E was recorded but values stayed little-endian, a:N was ignored, and a pointer whose index width is below its size wrapped GEP offsets at the index width but checked nusw / nuw at the pointer width (LangRef: the offset wraps in the low index-width bits and leaves the others). |
fixed | parse returns an error naming the first unimplemented specification and the importer refuses the module; the index width is the pointer size; refusal tests for E, p:64:64:64:32, a:64 |
| B20 | memory model (MojoProof.Sem.Grid.Step) |
high (open) | Steps interleave over one memory and atomicrmw ignored its ordering and scope: two monotonic exchanges and adds on two locations can both read 0 under LLVM, which no interleaving gives. |
fixed in the statements: atomics other than seq_cst without syncscope are refused (the corpus has one atomic, seq_cst); the memory records every access (byte range, thread, read or write, atomic or not) and every barrier completion in a ghost trace, and Grid.Sound includes race freedom under scoped happens-before (Grid.RaceFree), so a sound grid's runs are LLVM's (TRUST T13). Open: a race-freedom proof for a real kernel (vector addition). The full tiled_matmul launch's trace (about 600,000 accesses, too long for the quadratic racy) is checked by fast (MojoProof/Sem/Race.lean, fast_sound: fast tr = false → racy tr = false, for every trace) |
exec refuses the other atomics; trace_examples; tests "race in a block", "barrier in a block", "race across blocks", "shuffle in a warp" (a shuffle orders no access, by design), "atomics"; every small kernel's, vector_addition's and one block of tiled_matmul's run has a race-free trace |
| B21 | nsz (MojoProof.Sem.withFlags, maxnum) |
high | nsz flipped the sign of a zero result; LangRef lets it flip zero operands, so fdiv nsz 1.0, -0.0 may be either infinity. fneg ignored it, and maxnum nsz (+0, -0) could not give -0 (LangRef: either operand). |
fixed by refusal: nsz on any instruction or call is unsupported (FastMath.check; the corpus has none), maxnum orders -0 below +0 as LangRef and PTX's max do; open gap: nsz's operand-sign choices |
floatBin, fnegV, fcmpV call FastMath.check |
| B22 | call flags (MojoProof.Sem.exec, intrinsic) |
high | rsqrt.approx ignored its call's nnan / ninf (a NaN or infinity instead of poison), and calls to defined functions dropped their flags. |
fixed | nnan / ninf on maxnum, minnum, rsqrt.approx give poison as withFlags says; any other flag on a call is unsupported |
| B23 | noundef (MojoProof.Sem.exec, launchArgs, Grid.fire) |
high | Only the callee's noundef parameters were checked: a call-site noundef on a poison argument, a kernel's noundef parameter at the launch, a load with !noundef and the results of collective calls (which bypassed retAttrs) were not. |
fixed | each is undefined behavior when the value is not defined; a waiting thread keeps its callee's return attributes and resumeAll applies them; call-site attributes other than noundef and metadata other than !invariant.load / !noundef are unsupported (the corpus has none) |
| B24 | memory ownership (MojoProof.Sem.Mem.check) |
high | Blocks had no owner and accesses no accessor: a thread could publish a pointer to its live alloca, synchronize, and another thread read it, although PTX makes local memory private to each thread (PTX ISA 9.5, 5.1.5); the same held for another block's shared memory (5.1.7). |
fixed | a block has an Owner (every thread, one block of threads, one thread), every access names its thread (Who), and an access the owner does not admit is undefined behavior; lifetime markers on memory the thread does not own are unsupported; test "another thread's alloca" (and "own alloca" as the control) |
| B25 | byval kernel arguments (MojoProof.Sem.Grid.start, launchArgs) |
high | launchArgs ran once per launch, so all threads shared each byval copy, writable unless readonly: thread 0's write was visible to thread 1 after a barrier. The Grid docstring said the copies were always read-only. |
fixed | each thread gets its own copies, owned by it (oracle numbers Nat.pair 0 (Nat.pair n i)), read-only exactly when the parameter is readonly; test "byval copy per thread" |
| B26 | mojo_import (MojoProof/LLVM/Quote.lean) |
low (test gap) | That the command refuses a corpus file whose SHA-256 is not its manifest row's had no end-to-end test: every corpus file matches its row (the gate's corpus step), and a test needs a second, mismatching manifest. | fixed | the option mojo_import.root names the directory of the files and the manifest; tests/stale/k.ll was changed after its row in tests/stale/MANIFEST.tsv was written, and importing it gives "the file changed" (MojoProofTest/Import.lean, #guard_msgs; altered artifact bytes) |
| B27 | shfl.sync (MojoProof.Sem.Grid.fire) |
medium | Partial member masks were accepted, a returned lane counted as giving poison, and a lane waiting at another shfl.sync (other position, mode or mask) only delayed completion: partial participation and divergence had a semantics that PTX does not give them. |
fixed by refusal: the mask must be all 32 bits, every lane of the warp must wait at the same instruction with the same mode and mask; another mask, a returned lane, a lane at another collective call are unsupported, with the reason. Open: lanes are matched on position, not position plus a generation count; under whole-warp participation every completion includes every lane, so their counts agree, but nothing proves it | tests "shuffle" (bfly of two lanes gives [1, 0]), "partial shuffle mask", "shuffle with a returned lane", "divergent shuffles" |
| B28 | lexer and parser (MojoProof.LLVM.Lexer.lexName, parse) |
high | %0 and %"0" lexed to the same name string, although LLVM tells the unnamed %0 from the named %"0": in define void @f(i32 %0, i32 %"0") both parameters were "0" and Thread.start bound both to the first argument; printDiff, on the same lexer, could not see it. More generally no name was checked to be defined once. |
fixed | the lexer refuses a quoted all-digit name; parse refuses a name defined twice (Module.twice: @, #n, !n, !name, and % within a function); refusal tests %"0", @"1", %a twice, label 0: after parameter %0, @f twice (function and global), !0 twice |
| B29 | withAttrs (MojoProof/Sem/Thread.lean) |
high | range was applied to integer scalars only; on a vector it was ignored, so <2 x i32> noundef range(i32 0, 1) accepted <0, 2>. |
fixed | range, nonnull, align apply element by element to vectors (LangRef: "applies element-wise"); a range of another width, an empty range other than 0, 0 and range on a non-integer are unsupported; tests "vector range" and its control |
| B30 | withAttrs |
high | nonnull recognized only the null block: a pointer into a block whose address is 0 passed, although LangRef defines nonnull by the address bits. |
fixed | nonnull and align n read the address (Mem.addr, in the parameter type's space); tests "nonnull at address 0", "align 64 at address 16" and controls |
| B31 | intrinsic declarations (Func.check, exec) |
high | The attributes of an intrinsic declaration were not checked: declare void @llvm.lifetime.start.p0(ptr noundef align 16) was accepted and its align not enforced; T12 called the declarations' promises met by construction without a list. |
fixed (whitelist incomplete: B41) | Func.check runs on the declaration at each call with a whitelist of declaration attributes (TRUST T12 names the trusted ones); align is enforced; an immarg argument must be a constant; tests "intrinsic align" (and control), "intrinsic dereferenceable", "intrinsic function attribute", "immarg" (and control) |
| B32 | shared (MojoProof/Sem/Grid.lean) |
high | A constant shared global was allocated writable. |
fixed | an internal constant shared global is read-only (a store is undefined behavior); an external constant one (it would name the writable dynamic shared memory) is unsupported; tests "constant shared global" (and control), "external constant shared global" |
| B33 | metadata (Stmt.checkMd, enter, the parser) |
medium | phis were evaluated in enter without looking at their metadata, so !noundef on a phi was ignored; a terminator's attachments were dropped by the parser. |
fixed | Stmt.checkMd (metadata only !invariant.load and !noundef on a load) runs in exec and on every phi in enter; the parser refuses attachments on a terminator; tests "phi metadata" (and control), refusal br ..., !llvm.loop !0 |
| B34 | TRUST T4 (mojo_import) |
medium (documentation) | T4 called the step from the importer's program to the Lean term untrusted; the check is evalConst and an executable comparison, not a kernel-checked equality. |
fixed (documented) | T4 and the Quote.lean docstring list Lean's compiled evaluation and the comparison code as trusted for that step; a kernel-checked certificate is open |
| B35 | Grid.fire docstring |
low | It said a participant waiting elsewhere gives none; the code faults (undefined behavior at a barrier, unsupported at a shuffle). |
fixed (incomplete: B42) | docstring |
| B36 | determinism (Kernel.Sound, Grid.Determinate) |
gap (proof) | Kernel.Sound assumes determinacy; it is not proved. Race freedom does not give it: two seq_cst atomicrmw xchg of different values to one location do not race (Access.conflict) but leave different final values, so the confluence theorem must treat atomics (commuting operations only, or a premise). xchg is now unsupported (B38); two admitted atomics with different operations or sizes on one location now race (B38). Kernel.Sound allows any admissibility predicate and does not include launch validity or argument well-formedness: each certificate must state them. A shfl.sync whose source lane is past the block gets poison; a partial-warp proof must account for it. Determinacy is now proved from one run: Grid.confluent (T2, abd0233; atomics by RmwOp.commutes and rmw_comm) and Grid.start_sound (MojoProof/Sem/Determinism.lean) give every field of Grid.Sound, determinate included, from one run to a grid in which every thread has returned that is not bad, for every program and every observation that reads only the blocks; so a Kernel.Sound certificate needs one such run per admitted choice and oracle. The notes on what Kernel.Sound does not include stand. |
fixed (determinacy; the notes stand) | MojoProofTest/Determinism.lean: sound2 and final2 (two threads' alloca and store: every done grid reachable observes the bytes of 7), twins racy_twin (a done grid with a racy trace: sound for no observation) and trace_twin (an observation of the trace, which two schedules make differ: sound for no relation) |
| B37 | Access.overlaps (MojoProof/Sem/Spec.lean) |
low (spec) | Its docstring says two accesses touch a common byte, but it compared intervals only: an access of no bytes (a store of an empty structure) strictly inside another overlapped it, so racy and kept saw a race or a broken !invariant.load promise on no byte. Found while proving fast_sound (a race must share a byte). |
fixed | overlaps requires both lengths positive; trace_examples has a zero-length write inside a 4-byte write that does not race |
| B38 | atomics (Stmt.checkAtomic, rmw, exec) |
gap (semantics) | atomicrmw took every operation, float ones with an oracle choice, and its result could be used, so the order of two atomics on one location could change the memory or a register. Now only integer add, and, or, xor, max, min, umax, umin with an unused result are admitted; float atomics, xchg, sub, nand and used results are unsupported, each with its reason. racy exempted every pair of atomic accesses, but add and or (or two sizes) on one location do not commute. Now each access records the operation of its atomicrmw (Access.atomic : Option RmwOp), and Access.conflict exempts two atomic accesses only if they have the same operation, pointer and size; the width of an admitted atomicrmw must be a power of two of at least 8 (LangRef, atomicrmw, Arguments), so the size determines the type (an i31 and an i32 add on one word would not commute). This is stricter than LangRef's data race (atomics never race there), so race freedom here still implies LLVM's. The commutation lemma (two exempt updates in either order give the same memory) is T2's L10: its part about values is rmw_comm (MojoProof/Sem/Rmw.lean, every operation in RmwOp.commutes's list, every width, all scalars); its part about memory is Mem.update_comm (MojoProof/Sem/Confluence.lean: two updates of one operation at one pointer and type .int n, 0 < n, that each succeed from a memory succeed in both orders and give the same blocks, next and trace up to swaps), through Mem.load_store (a load after a store by any thread whose check succeeds), rmw_comm_of_ok (for all operands, since an operand need not be a scalar of the width), Mem.load_scalar (the loaded value is one), rmw_scalar and Layout.scalar_round (a scalar of a positive width round-trips through its bytes); in the diamond, Grid.advance_atomic_comm, and Grid.advance_comm now takes that no two pending accesses conflict. |
fixed | Stmt.checkAtomic at each atomicrmw; rmw takes no oracle number; trace_examples (two adds do not race, an or and an add race, two sizes race); Eval atomics (three adds give 6), atomics, twice (two adds per thread give 12), atomics of two operations (an add then an or per thread: data race), atomic i24, atomic xchg, atomic sub, float atomic, atomic result used; atomicTests on tests/corpus/reduction/ (admitted) and its xchg and used-result twins (refused); MojoProofTest/Atomics.lean: rmw_comm on umax, poison and undef, and the twin add_or (an add and an or give 3 and 2); MojoProofTest/Confluence.lean update_comm (two adds on one word commute in memory), atomic_comm and atomic_diamond (two threads' atomicrmw adds at one word in one grid: the writes overlap, do not conflict, and both orders give the same grid) |
| B39 | allocation numbers (Mem.alloc, Mem.fresh, exec) |
gap (semantics) | An alloca took the next number of one counter in Mem, which every thread's alloca increased, so the block numbers depended on the order of the threads' steps: two schedules reached memories equal only up to a renaming of blocks, and the commutation of two threads' steps (T2′) needed that renaming. Now an alloca at step k of thread n makes block m.next + Nat.pair n k (Mem.fresh), and no step changes m.next. Open: Mem.compact tabulates the blocks below next, so alloca blocks are not compacted (performance); the numbers were fresh only if no pointer of the launch named them and no block was there, which the start did not ensure (B46: the "performance only" qualification was premature). |
fixed with B46 | Eval alloca numbers: two threads publish their allocas, run in both orders (runText with rev); the numbers are equal across orders and differ between threads. With the old numbering restored the test fails |
| B40 | allocation addresses (Ctx.addr, exec, Grid.start) |
gap (semantics) | An alloca read its two addresses from the step's oracle numbers 0 and 1, the numbers float operations read their NaN, contraction, maxnum and rsqrt choices from. A statement that varies the float oracle and keeps the addresses (T3) could not be stated on the oracle: varying it moved alloca addresses, which ptrtoint and every alignment check read. Now Ctx has skeleton choices addr, which Grid.start takes from ch (ch (Nat.pair 1 (Nat.pair n j)) for thread n; shared memory moved to Nat.pair (b + 2) i), and an alloca at step k reads addr (Nat.pair k 0) and addr (Nat.pair k 1); the oracle holds float choices only. |
fixed | Eval alloca addresses: the ptrtoint of an alloca is the same under oracles 0 and 7 and changes when ch does. With the old addresses restored both checks fail |
| B41 | intrinsic declarations (Func.check, Intrinsic.effects, exec) |
high | B31's whitelist took nosync, willreturn, speculatable, memory(...) and nocreateundeforpoison on every intrinsic declaration, so declare void @llvm.nvvm.barrier.cta.sync.aligned.all(i32) nosync was accepted although the barrier synchronizes (LangRef nosync: undefined behavior; PTX ISA 9.5, 9.7.15.1), and memory(none) on the barrier or memory(argmem: read) on a lifetime marker was accepted. |
fixed | Intrinsic.effects says what each member does; Func.check takes the member and accepts a promise only if the member keeps it (TRUST T12); memAccess reads memory(...) by LangRef's location and access kinds; the barrier and a shuffle must be convergent; a nocreateundeforpoison call with defined arguments and an undefined result is undefined behavior. Eval intrinsicAttrTests (20 checks): nosync, willreturn, memory(none), memory(argmem: readwrite) and missing convergent on the barrier; nosync, speculatable and missing convergent on a shuffle; speculatable, memory(argmem: read), memory(none) and readonly on a lifetime marker; an unknown location kind; nocreateundeforpoison on an out-of-range vector.extract; each with an accepted control (the corpus declarations' attributes) |
| B42 | Grid.fire docstring |
low (documentation) | B35's text still said a participant at an incompatible call faults and a running one gives none; at a barrier a participant waiting at a shuffle gives none, and a running participant gives none only if no other participant faults (every participant is looked at). |
fixed | docstring with the barrier and the shuffle described separately |
| B43 | pdf_norm (scripts/deps.py) |
low (gate) | The PDF comparison blanked every number outside streams, so a changed object reference or font box compared equal and the gate's "exactly what the tree generates" did not hold of the PDFs. | fixed | only /CreationDate, the stream lengths (objects a /Length refers to), the cross-reference stream's /Length and /W and offsets, and startxref are blanked (CONTRIBUTING step 7 says so). Checked on two renderings of packages.dot (equal) and three changed copies (font box, object reference, MediaBox inside the object stream; each differs) |
| B44 | TRUST T11 | low (documentation) | T11 said alloca addresses come from the oracle; since B40 they come from the skeleton choices ch through Ctx.addr. |
fixed | T11 |
| B45 | contiguous-tile arithmetic (MojoProof/Sem/Trace.lean, MojoProof/Sem/Buffer.lean) |
low (duplication) | The stride argument that contiguous tiles are disjoint is proved twice (Trace.lean, Tiling.strided; Buffer.lean, apart_rowMajor); the duplicate counts do not see repeated arguments. |
fixed | stride_lt (MojoProof/Sem/Buffer.lean) is the one stride argument: apart_stride, with Apart.comp, gives apart_rowMajor and Tiling.strided's disjointness (now Tiling.ofApart, Trace.lean), and stride_lt gives rowMajor_inb (used by Mem.holds_alloc) and Tiling.strided's bound |
| B46 | the start memory and T2′ (Grid.start, Mem.close, exec; docs/proofs/schedule-owned.md) |
high | T2′'s proof plan relied on W1 (every block number a thread holds is allocated), which the start did not establish, and its statement was false: two threads %a = alloca i32; %x = ptrtoint ptr %p to i64 with %p naming block 5, the number thread 1's alloca took, fault if thread 0 goes first and run if thread 1 does (Mem.addr checks existence, not provenance). Blocks at or above next in the caller's memory could also be overwritten by an alloca (Mem.alloc with a number). |
fixed (semantics and proof plan; Lean of T2′ not started) | Grid.start first closes the caller's memory (Mem.close: at first the blocks from 1 to below next only, next raised past every number the arguments and the bytes name, Val.bounds; since B51 a memory that names a block from next on is refused instead); an alloca whose number is in use is unsupported. schedule-owned.md replaces W1 by Grid.Closed, established by the start and kept by every step, with consequences C1 (a pointer to no block keeps pointing to no block) and C2 (no thread names another's new block), and records the counterexample. Eval startMemTests: the counterexample faults in both orders, a pointer to a block above next faults, an alloca at a number in use is refused, control runs; without Mem.close the first two run |
| B47 | the null block (Grid.start, Mem.check) |
medium | Block 0 is the null pointer's number for Mem.addr, but Mem.check looks it up like any other: a caller's memory with a block 0 made a load through null succeed, and one with next = 0 gave the first shared block number 0. |
fixed | Mem.close dropped block 0 and raised next to at least 1 before the launch allocates (since B51 such a memory is refused); Eval "load through null with a block 0" is undefined behavior (it ran without Mem.close) |
| B48 | the result of an admitted atomicrmw (exec, MojoProof/Sem/Thread.lean; found writing docs/proofs/schedule.md) |
low (proof obstacle) | An admitted atomicrmw set its result register to the old value, which depends on the order of the atomics on one location. Stmt.checkAtomic refuses a used result, so no instruction read it, but two orders of two exempt atomics gave threads that differ in a dead register, so the diamond of T2 could not close with threads compared by equality. |
fixed | the step leaves the register unset (change S2, docs/proofs/schedule.md); Eval regsAfter: two threads that run their atomicrmw add in either order and then wait at a barrier have the same registers. Negative run: with the old value kept, lake test fails with only "atomics, both orders: the threads differ" |
| B49 | the refusal of atomicrmw sub (Stmt.checkAtomic; found proving rmw_comm) |
low (message) | sub was refused because "two updates do not commute", but (v - x) - y = (v - y) - x: two subs of one location commute. It is refused because the admitted operations are only add, and, or, xor, max, min, umax, umin; admitting it is a design decision. |
fixed | the refusal says "atomicrmw sub (not in the admitted operations)"; RmwOp.commutes is that list, used by Stmt.checkAtomic and rmw_comm; Eval atomic sub |
| B50 | sizes of encodings (Layout.encode, MojoProof/Sem/Value.lean; the type parser; found planning Thread.pending, which needs a store's logged length to be l.stored t) |
medium | A store writes and logs the bytes Layout.encode makes, a load reads l.stored t bytes, and they differed: a vector whose elements are structs or vectors (scalarBits 0 passed the % 8 = 0 guard) encoded to 8 or 4 bytes where its store size is 0, and the parser accepted such types and <0 x T>, which LangRef ("Vector Type") does not admit (elements are integers, floats or pointers; at least one); a pointer of a size that is not a multiple of 8 (p:12:16, which LangRef admits) was encoded in size / 8 bytes (1) and loaded from (size + 7) / 8 (2), so it read back undef. Measured before the fix |
fixed | the parser refuses <n x T> unless 0 < n and T is a scalar (Ty.scalar); encode and decode admit vectors of scalars only; a pointer is encoded in its store size. Layout.encode_length (MojoProof/Sem/Buffer.lean): every encoding of a value of type t has l.stored t bytes, for every layout, type and value. MojoProofTest/Bytes.lean: a 12-bit pointer in 2 bytes and <2 x i32> in 8 (instances), a vector of structs and one of vectors not encoded (twins); Main refusals: the three vector types |
| B51 | the caller's memory at the start (Mem.close, Grid.start, MojoProof/Sem/Grid.lean) |
high | B46's Mem.close deleted every block from the caller's next on and then raised next past the numbers the arguments named: with next = 1, a live caller block 40 and a pointer argument to it, a ret void kernel returned with block 40 gone, a change to an input that no kernel operation made. No total fix exists (a memory is a function, so the blocks from next on can form an unbounded chain of pointers). |
fixed in part: the deletion of the blocks nothing names stayed (B55) | Mem.close m vs refuses (unsupported) a memory with next = 0 or a block 0, and one in which an argument or a pointer byte of a block below next names a number from next on (Mem.namesBelow); otherwise it drops the blocks from next on, which nothing reaches. Mem.Closed m vs states the invariant; Mem.close_of_closed: a closed memory is returned unchanged, and Mem.closed_of_close: a memory that close returns is closed, with the same next and blocks below it. Kernel.sound_ret_launch, start_ret and Grid.not_safe_unreachable take m.Closed []. MojoProofTest/Close.lean: a closed memory kept (kept), an unreachable block dropped (dropped), the review's memory and one with a block 0 refused (twin, twin_null), ret void sound from the empty memory (ret_empty); Eval "pointer argument to a block above next" is the review's example and is unsupported |
| B52 | L1b in the T2 proofs (docs/proofs/schedule-owned.md, schedule.md) | medium (proof plan) | L1b listed what a step changes as the bytes of its pending writes, the liveness of its own blocks, a new block and the trace, but lifetime.start (Mem.setLive) also makes the bytes of a block undefined, with no pending write: alloca; lifetime.start; store 7; lifetime.start changes a byte from 7 to undef. LangRef (llvm.lifetime.start) lets a live object be started again and resets its contents. No Lean theorem used L1b. |
fixed (proof plan; L1b not yet in Lean) | L1b also lists the bytes of blocks with owner .thread n, which lifetime.start makes undefined; the frame lemma L2, the disjointness argument, the diamond and bad_step of both documents say that another thread's access to such a block faults in every state (Mem.check, live or dead), so the reset is invisible to it |
| B53 | nocreateundeforpoison and call flags (exec, ownUndef, MojoProof/Sem/Thread.lean) |
medium | The check of a nocreateundeforpoison result read the call's result after its nnan / ninf: maxnum(+inf, 1.0) called with ninf gives poison, which LangRef's fast-math flags allow, and the check made the call undefined behavior. LangRef speaks of the result "prior to application of return attributes/metadata". |
fixed | ownUndef evaluates the intrinsic without the call's flags, and only that result is checked; TRUST T12. Eval callAttrTests: the ninf call stores poison and is not undefined behavior, without ninf it stores +inf; a vector.extract out of range is still undefined behavior |
| B54 | memory(...) access kinds (memAccess, MojoProof/Sem/Thread.lean) |
low | memAccess read the access kind only of the location it was asked about, so memory(argmem: none, inaccessiblemem: bogus) on a pure intrinsic passed Func.check. LangRef allows none, read, write and readwrite. |
fixed | every item's kind is read, and an unknown one is unsupported; Eval callAttrTests: inaccessiblemem: bogus is unsupported, inaccessiblemem: none runs |
| B55 | the caller's memory at the start (Mem.close, Grid.start, shared, launchArgs, Mem.alloc; MojoProof/Sem/Grid.lean, Thread.lean, Value.lean) |
high | B51's Mem.close still deleted every block from the caller's next on when nothing named it, and reported success: a memory with next = 2, blocks 1 and 5 and no arguments was accepted and block 5 was gone (Close.dropped), which an observation of Kernel.Sound can see. Mem.closed_of_close proved the output closed, not the input, so schedule.md and schedule-owned.md were wrong to say a launch that starts had a closed input. |
fixed | The start deletes nothing: Mem.checkClosed m vs is Mem.close's check and changes nothing, and every allocation of the start is Mem.allocNext, unsupported if its number has a block, so a caller's block from next on stays and is never replaced. Grid.start_blocks: for every program, kernel, launch, arguments, memory and choices, a start that succeeds keeps every block of the caller's memory (from Mem.allocNext_blocks, shared_blocks, launchArgs_blocks, foldlM_inv). Kernel theorems keep the hypothesis m.Closed vs (Mem.checkClosed_of_closed: a closed memory passes the check, and its allocations find their numbers free); Mem.closed_of_close is removed. MojoProofTest/Close.lean: blocks 1 and 5 with next = 2 start ret void with block 5 kept (kept_above), with block 2 instead of 5 the start is refused (twin_next); Eval: a caller block 40 above next is there after the run of ret void, a caller block at 2, the launch's first number, makes the launch unsupported ("launch block number in use") |
| B56 | trace-independence lemmas (withAttrs_retrace, MojoProof/Sem/Schedule.lean) |
low | withAttrs_retrace_apply restated withAttrs_retrace applied to a value, a duplicate by function extensionality that the audit's equivalence check does not see. |
fixed | withAttrs_retrace_apply removed; simp uses withAttrs_retrace on the applied term (exec_retrace, step_retrace) |
| B57 | the start's check (Mem.checkClosed and Mem.Closed docstrings, MojoProof/Sem/Grid.lean; docs/proofs/schedule.md, schedule-owned.md) |
low | The docstrings and the proof documents said the start checks all of Mem.Closed but above. Mem.namesBelow reads the pointer bytes of the blocks below next only, while Mem.Closed.bytes is about every block: a memory with next = 2 and one block 5 whose byte 0 points to block 100 passes the check, the launch of ret void on it starts, and its grid is not closed. |
fixed | The wording says the check covers the pointer bytes below next, which is all of bytes under above. Grid.start_closed (MojoProof/Sem/Closed.lean): for every program, kernel, launch, arguments, choices and memory whose pointer bytes name numbers below next or with a block (Mem.BytesIn m m.Known; a closed memory has it, Mem.Closed.bytesIn), the start's grid is closed; Grid.start_reach_closed and Grid.start_pending give C1 and L1c from the start. MojoProofTest/Closed.lean: the launch of ret void on Close.mem (some 5) (start_closed, an instance) and a memory that passes the check and starts to a grid that is not closed (start_twin) |
| B58 | the launch instances of W5's other part and L1b from the start (MojoProofTest/Closed.lean atCalls, MojoProofTest/Writes.lean changes) |
low (test coverage) | Both launch ret void, whose thread returns at once: no instance has a frame with a nonempty allocas, a thread that waits at a collective, or a resume, so a wrong Grid.Owns for allocas or a wrong Grid.AtCalls for waiting threads would pass them. |
fixed | MojoProofTest/Launch.lean: a kernel with alloca i32, a store to it, a convergent barrier call and ret void, launched on one thread, runs five steps (steps, the barrier among them); on that run the frame lists block 2 among its allocas while running and while waiting and thread 0 owns it (owns), the waiting thread is at its call (waits), and the store and the return are Mem.Changes, the return making block 2 dead (changes) |
| B59 | the start's check, wording (docs/proofs/README.md item 4, the module docstring of MojoProof/Sem/Grid.lean) | low | B57 fixed the Mem.checkClosed docstring and the proof documents, but the proofs README still said the start refuses a caller memory that is not closed and checks all of Mem.Closed but above, and Grid.lean's docstring said the check refuses a pointer in "the bytes" to a number from next on. Closed.start_twin is a memory that is not closed and passes. |
fixed | Both say what Mem.checkClosed checks (next = 0, a block 0, a pointer of the arguments or in a byte of a block below next to a number from next on), that the check reads no block from next on, and that the closed start grid takes the caller's hypothesis on the pointer bytes (Grid.start_closed) |
| B60 | the instances of L2 at a load (MojoProofTest/Frame.lean) | low (test coverage) | The L2 tests showed the hypothesis at a load (agree) but no successful load, and no twin showed that agreement at the bytes read is needed: a Mem.Agree that ignored the read bytes would pass them. |
fixed | MojoProofTest/Frame.lean: load_of (the load of an i32 at offset 0 of block 1, by the integer codec's scalarOf_leBytes and Mem.load_of_check); load: the load gives 7 from mem 7 0 [] and, by Mem.load_agree, from mem 7 1 [(5, _)]; load_twin: mem 7 0 [] and mem 8 0 [] agree at a read of bytes 4 to 7, not at the load's read of bytes 0 to 3, and the loads give 7 and 8 |
| B61 | the gate's text check (a word search, grep -rnwE "sorry\|admit\|…" MojoProof) |
low (gate) | The check matches words, not tactics, so the English verb in a docstring fails it: a gate run was red on "blocks of s.mem that admit the thread" (Frame.lean, exec_agree) and "which do not admit k" (Confluence.lean, Grid.advance_agree_other), with no admit tactic anywhere. |
worked around | both docstrings say "admits"; the check is kept as strict as it is (a false positive costs a rewording, while a check that skipped comments could miss an admit after one); the next gate run was green |
| B62 | coverage of CUDA C++ and CuTe DSL kernels (no front end) | gap (later stage, after the tensor-core model) | The external corpus of SOL-ExecBench references and Cursor's solution bundles has 193 CuTe DSL and 40 CUDA C++ bundles (tcgen05 and TMA in 144, mbarrier in 20, inline PTX in 19, FP8 in 130). No device LLVM of them could be produced on the box: clang 15 cannot compile them (texture templates), nvcc's -dlto output is an LTO container, not LLVM bitcode, and CuTe DSL dumps MLIR, PTX and cubin, not device LLVM. So none of them reaches the importer, and no statement here covers them. |
open, not now (owner) | a front end (a newer clang emitting NVPTX LLVM, or CuTe's MLIR lowered with the matching MLIR tools) is a later stage after the tensor-core model |
| B63 | the module docstring of MojoProof/Sem/Confluence.lean | low (docs) | It said the start's grid is closed and owns its allocas, with no premise, while Grid.start_closed needs every pointer byte of the caller's memory to name a known number (m.BytesIn m.Known); Closed.start_twin is a start whose grid is not closed. |
fixed | the docstring names the premise; Grid.start_reach_comm already carried it |
| B64 | L2 in docs/proofs/schedule-owned.md | low (docs) | It said "Not yet: L2 for fires and for grids, and its use in the diamond", which Grid.advance_agree, Grid.advance_agree_other and Grid.advance_comm had done, and its quotation of step_agree left out the Mem.Op.At conjunct. |
fixed | the quotation is the theorem as stated; the paragraph names the grid lemmas |
| B65 | Grid.fire_frame's docstring and the module docstring of MojoProof/Sem/Confluence.lean |
low (docs) | Both said the collective call "completes the same way" from every grid with the same statuses at n and at the threads it resumes, while the theorem gives only that its outcome is resumeAll of the same threads and results on that grid's threads and memory, which can fail there: a pointer result with a nonnull return attribute completes when its block exists, and withAttrs faults ("pointer to no block") in a grid with the same statuses where the block is gone. |
fixed | both docstrings describe the resumeAll computation and say it need not succeed; the theorem was already the weaker statement |
| B66 | the index of proofs, docs/proofs/README.md item 7 | low (docs) | It described Mem.load_store "for every memory, two threads, type and value", without the premise hc that the load's check succeeds before the store (ownership admission, alignment) or that the stored bytes decode; load_other (MojoProofTest/Confluence.lean) is a store by thread 0 into its own block after which thread 1's load at the same pointer faults. |
fixed | the item states both premises and names the twin load_other |
| B67 | exec's atomicrmw case (MojoProof/Sem/Thread.lean:489-499) and Grid.Step.bad's premise hX (MojoProof/Sem/Bad.lean) |
medium (gap in T2's bad_step) |
exec evaluates an atomicrmw's operand and passes it to rmw without checking that it is a scalar of the type's width (LLVM's verifier rejects such a program; the semantics admits it). Then whether rmw faults depends on the old value: max of a word by a pointer faults ("min/max of non-integers"), max of poison by a pointer is poison. So a thread's fault at such an atomicrmw need not persist after another thread's exempt update that stores poison, and bad_step fails without hX in a closed grid with one layout. The argument of docs/proofs/schedule.md (bad_step, the exempt pair) assumed the operand typed. Found while planning the hX case. |
fixed | exec checks that an atomicrmw's operand is Val.Scalar (l.scalarBits t) before the load (MojoProof/Sem/Thread.lean, the atomicrmw case), and exec_atomic, step_atomic and Grid.advance_atomic give that the operand is a scalar of width 8 * e.len. Then Mem.update_before (MojoProof/Sem/Confluence.lean: an update that succeeds after another at the same pointer and width, by a scalar operand, succeeds before it; by rmw_undef, rmw_ok, Lifts.ok, MojoProof/Sem/Rmw.lean) and Grid.advance_fault_atomic (MojoProof/Sem/Bad.lean) prove the exempt case, and hX is dropped from Grid.Step.advance_fault, Grid.Step.bad and Grid.start_reach_bad. Tests MojoProofTest/Bad.lean rmw_fault (on maxes thread 0's step faults at the check, before and after thread 1's exempt update, and the grid after is bad) and update_before (the instance of Mem.update_before, and the twin of its scalar premise: Mem.update by the pointer faults before thread 1's update and succeeds after it); the old twin rmw_fault_twin no longer holds and is replaced by these; MojoProofTest/Confluence.lean exec_rmw, step_rmw state both outcomes of the check, advance_rmw_fault the fault |
| B68 | hX of Grid.Step.advance_fault, Grid.Step.bad and Grid.start_reach_bad (MojoProof/Sem/Bad.lean) |
medium (premise too strong) | hX quantified over every pair of threads n, k, the same thread included. With k := n and a' := a, a pending access by an atomicrmw of positive length overlaps itself and is exempt with itself, so hX failed on every grid with a pending atomicrmw, though the docstrings say it compares accesses of another thread. |
fixed | each hX takes k ≠ n; Grid.Step.advance_fault already had it before using hX. Instance MojoProofTest/Bad.lean fault_atomic (on faultAdd: thread 0's store faults, thread 1's pending atomicrmw add is exempt with itself, every premise of Grid.Step.bad holds, and after thread 1's update the grid is bad). Superseded by B67's fix, which drops hX; fault_atomic and faultAdd were deleted with it |
| B69 | the list Op.Total of (O3) in docs/proofs/payload.md |
medium (statement too strong) | The list admitted or, fadd and the other float operations on payload without excluding the flags that make poison depend on the values: or disjoint on i8 gives 3 on (1, 2) and poison on (1, 1), and fadd nnan gives a word on (0, 0) and poison on (NaN, 0). So two payload-related runs could give a word in one and poison in the other, which Val.Skel does not relate. It also listed frem, which floatBin refuses (MojoProof/Sem/Op.lean), and said every listed operation "never faults" on data words, while shifts by at least the width give poison and udiv by 0 faults. |
fixed (docs; no Lean yet) | Op.Total lists the float operations with no fast-math flag but contract, maxnum and minnum with no call flag, the integer operations with no nsw, nuw, exact or disjoint, shifts with a skeleton amount and udiv and urem with a skeleton divisor; frem is gone; the defining property is "faults on both sides or neither, with Val.Skel results, for every two oracle numbers"; the flags go to T3c with the review's counterexamples |
| B70 | T5's statement SVal.eval_rel in docs/proofs/payload.md |
medium (statement false) | The proof used reflexivity of R for constants and skeleton atoms, but R is arbitrary: for R x y := x ≠ y and a constant term, the two evaluations are one value, which R does not relate. |
fixed (docs; no Lean yet) | the statement takes R (env₁ a) (env₂ a) for every atom a of the term and R v v for every constant v of it; the induction uses no reflexivity |
| B71 | T3b's relations and (O3) for ln64 |
medium (gap) | ln64 builds payload aggregates with insertvalue (ln_rowwise_block_t0_r1_ax0_w1_bs64_f6f88241.nvptx.ll:223), stores and loads the struct, and uses extractvalue (:245), while Val.Skel related aggregates only when equal and (O3) excluded aggregate payload results. So T3b could not cover ln64 even with T3c. |
fixed | Val.Skel x y is x.erase = y.erase, where Val.erase replaces every data word by the zero word of its width through vectors and aggregates (MojoProof/Sem/Skeleton.lean), and MemByte.Skel is MemByte.erase equality; Val.Word is deleted. docs/proofs/payload.md: data types include arrays and structs of data types, extractvalue and insertvalue are in Op.Total. Instance MojoProofTest/Skeleton.lean skel_vals (two aggregates holding a vector with a pointer lane and a word, whose data words differ, are related) |
| B72 | Layout.decode_skel in docs/proofs/payload.md |
low (statement too strong) | It said pointwise MemByte.Skel bytes decode to Val.Skel values for a data type, but [byte 0] and [byte 2] decoded as i1 give a word and poison, and [byte 1, byte 0] and [byte 1, byte 1] decoded as i8 give a word and poison. |
fixed (docs; no Lean yet) | the lemma takes integer widths that are multiples of 8 and at most l.stored t bytes, which a load and decode's slices meet |
| B73 | the T3c paragraph on rsqrt.approx in docs/proofs/payload.md |
low (docs) | It said rsqrt.approx has no admissible word for a NaN, zero, subnormal, negative or infinite operand, while rsqrtOk (MojoProof/Sem/Float.lean) admits PTX's results for each of them. What is not proved is that rsqrt gives a word there: its fallback 1 / sqrt x meets rsqrtOk only if FloatLib follows IEEE 754 at those inputs. |
fixed (docs) | the paragraph separates rsqrtOk's special results from rsqrtOk_div_sqrt (a word for every oracle number on a positive normal operand) and says the rest is unproved; since 5fff152 rsqrtOk_rSqrt gives a word on every operand (B16) |
| B74 | Status.Skel at a shuffle in docs/proofs/payload.md (found stating it in MojoProof/Sem/Skeleton.lean) |
low (statement too weak) | It related a waiting shuffle's exchanged value by Val.Skel whatever the label of the call's result register. Grid.fire copies that value to a lane's result register, so two runs could put different words into a skeleton register and the relation would not be kept by a step. |
fixed | Status.Skel relates the arguments by Labels.Rel on Thread.payRes (the label of the register Thread.resume sets): equal after Intrinsic.eraseArgs when it is payload, equal when it is not; skel_grid (MojoProofTest/Skeleton.lean) gives the instance and the twin under a skeleton result |
| B75 | MojoProofTest/Skeleton.lean at commit 9cf34ba | medium (lost twin) | 9cf34ba rewrote the test module and dropped c2', addr_eq and addr_twin, counterexample (iii) and the twin of T3b's premise of one address choice, while that module's docstring, MojoProof/Sem/Skeleton.lean's, docs/proofs/payload.md and the proofs README still named addr_twin. The gate passed: it checks no name that a docstring or document cites. |
fixed | c2' and addr_twin restored as they were; addr_eq (related blocks have one address) is replaced by Option.Rel.map_eq (MojoProof/Sem/Rel.lean), which Mem.SkelEq.sameShape uses too; the gate gains scripts/cited.py (step 4, CONTRIBUTING.md), which fails at 9cf34ba on the two docstrings that cite addr_twin and passes now |
| B76 | evalV_skel (MojoProof/Sem/Skeleton.lean) and docs/proofs/payload.md |
medium (gap) | payload.md concluded that an operand that mentions no register has one value in the two runs, but evalV_skel kept one Scope.ch for both scopes, while T3b's runs have two oracles (Ctx.scope). The parser accepted every cast in a constant expression, and fpext (half 0xH7E00 to float) mentions no register yet gives the NaN words 0x7fc00000 and 0x7fc00001 under two oracle numbers (floatCast, deliver). |
fixed | CastOp.const (MojoProof/LLVM/Syntax.lean): the casts LangRef admits in a constant expression ("Constant Expressions": trunc, ptrtoint, inttoptr, bitcast, addrspacecast; ptrtoaddr is not in the subset). The parser refuses the others by name ("unsupported constant expression 'fpext'", a refusal in MojoProofTest/Main.lean) and evalV refuses them too (MojoProof/Sem/Eval.lean). None of the admitted casts reads an oracle number (castV_ch, which covers every cast but fpext and fptrunc), so evalV_regs and evalV_skel now hold for two scopes with any two oracles; eval_skel is the instance with oracle numbers 0 and 1, fpext_twin (MojoProofTest/Skeleton.lean) the twin: the fpext instruction of that NaN gives the two words, and the constant expression is refused. The corpus's constant expressions are ptrtoint only, so tests/corpus/REFUSALS.tsv is unchanged. |
| B77 | scripts/cited.py |
low (check too weak) | It collected the last component of every declaration name in the library and the tests, so a deleted test load_skel (MojoProofTest/Skeleton.lean) would still satisfy its module docstrings' citations through the library lemma Mem.load_skel; store_skel and alloc_skel likewise. It also checked only all-lowercase names (addr_twin), not evalV_skel or Mem.load_skel. |
fixed | cited.py resolves each cited name as Lean would from the citing file: N.name for a namespace N the file declares or opens, or that a file the docstring names by path or module declares, or an enclosing one (it tracks namespace, section, mutual and end, and _root_.); fields stay bare. It now checks every name whose last component is snake_case, dotted ones included, with a PLANNED list for Grid.confluent_owned and Grid.skel_lockstep. Four citations that resolved only by their last name now give the namespace (Scope.retrace_mem, Scope.retrace_ch in MojoProof/Sem/Schedule.lean; Layout.encode_length, Layout.encodeFields_length in MojoProofTest/Bytes.lean). Renaming the test load_skel, store_skel, alloc_skel, addr_twin or fpext_twin in a copy of the tree makes the check fail on both docstrings that cite it. |
| B78 | the module docstrings of MojoProofTest/Skeleton.lean and MojoProof/Sem/Skeleton.lean | low (docs) | They called both decode_twins cases twins of Ty.data, but the i8 from two bytes is at a data type and breaks the other premise of Layout.decode_erase, at most l.stored t bytes; and the test module said the differing stores give memories "related for no payload block", where store_skel proves they are not related when no block is payload. |
fixed | both docstrings name the two premises (the i1 case not Ty.data, the i8 case more than l.stored t bytes) and say "not related when no block is payload", as the theorems' own docstrings do |
| B79 | scripts/cited.py:100 |
low (check too weak) | It exempted every cited name whose last component is a structure field before resolving its namespace, so the nonexistent Ghost.bad_step passed because bad_step is a field of Confluent (GPUProof/OneRun.lean:88; MojoProof/Sem/OneRun.lean until dfc811f). Its field list also took every two-space-indented name : line, where bodies of definitions and instances included. |
fixed | scan records the fields of each structure and class as declarations S.f (and as field names), so a qualified citation resolves like any other name, and only a bare name (no dot) that is a field needs nothing more. Citing Ghost.bad_step, Confluent.bad_step, Sem.Confluent.bad_eqv and bad_step in a module docstring of a copy of MojoProof/Sem/OneRun.lean makes the check fail on Ghost.bad_step only; the tree passes |
| B80 | elem_skel, shuffle_skel and value_skel (MojoProofTest/Skeleton.lean:498, 521, 543) |
low (ill-typed tests) | The instances built values no LLVM program has: <2 x i8> vectors with a pointer lane, an i8 vector shuffled with a pointer vector, and insertvalue of an integer into a pointer field and of a pointer into an integer field. The theorems hold for every value, so the tests proved what they say, on ill-typed values. |
fixed | the vectors are <2 x i8> and <1 x i8> with poison lanes (<1, poison>, <poison, poison>, <poison>), and the aggregates {i8, ptr} with an i8 inserted into the i8 field and {i8, i8} for the twin; each twin's two results are still not related (1 and poison, <1, poison> and <poison, 1>, <1> and <poison>, {1, poison} and {poison, 1}) |
| B81 | fcmpV_skel's docstring (MojoProof/Sem/Skeleton.lean:1181) |
low (docs) | It said "the other flags fault on both sides", but FastMath.check (MojoProof/Sem/Op.lean:119) accepts contract. |
fixed | the docstring names nsz, arcp, afn and reassoc (FastMath.check), as floatBin_skel's does |
| B82 | exec_twin (MojoProofTest/SkelExec.lean) |
low (test coverage) | The module docstring said the twin of Labels.stmtOk meets the other premises of exec_skel, but its context's program was kernel #[addSt], which contains the statement that fails Labels.stmtOk, so Labels.Ok failed too and the twin did not isolate the premise. |
fixed | exec_twin runs addSt in the context of the program of kernel #[], which passes Labels.Ok under labP false, and states that premise, Frame.Skel of the frames, Labels.MemAt and the failing Labels.stmtOk before the effects that Eff.Skel does not relate; add_eval holds for every context. The docstring says why the frames' function is not the program's: in a program that passes Labels.Ok, every function's statements pass Labels.stmtOk (Labels.funcOk) |
| B83 | calls through a pointer in the module docstring of MojoProof/Sem/Labels.lean and (O4) of docs/proofs/payload.md | low (docs) | Both said that a call through a pointer passes Labels.stmtOk and exec refuses it, but Callee (MojoProof/LLVM/Syntax.lean) has only .fn and .asm, and the parser (MojoProof/LLVM/Parser.lean) refuses a register callee, so no such statement exists. |
fixed | both say that a call of inline assembly passes and that a call through a pointer has no form in the AST, as the parser refuses it |
| B84 | citations in MojoProofTest/SkelExec.lean and the (O3) quotations of docs/proofs/payload.md | low (docs) | exec_mem_twin's docstring cited stAt_skel, which does not exist (the frames are related by at0_skel), and two passages of payload.md quoted (O3) as before B69's fix ("no fast-math flag but contract", "no call flag") while (O3) excludes nnan and ninf only. cited.py checks module docstrings, not theorem docstrings. |
fixed | the docstring cites at0_skel; the passages say "flags without nnan and ninf" and that FastMath.check refuses nsz, arcp, afn and reassoc on both sides |
| B85 | (O3)'s check of a shfl.sync (Labels.stmtOk, MojoProof/Sem/Labels.lean:109) |
medium (gap in T3b's premises) | Labels.stmtOk asks the declaration for no range attribute only when the exchanged value is payload. A call with a payload result and a skeleton exchanged value passes with range on the result. Status.Skel relates its waiting arguments only after Intrinsic.eraseArgs, so withAttrs in resumeAll at Grid.fire can give a word in one run and poison in the other (the pattern of attrs_skel), and Grid.fire_skel fails. exec_skel does not read the attribute, so it is not affected. Found while writing the PROOF of Grid.fire_skel (docs/proofs/payload.md). |
fixed | Labels.stmtOk asks a shfl.sync's declaration for no range attribute whenever the result is payload ((!pr \|\| noRange) && …); exec_call_skel reads the stricter check; twin shfl_range_twin (MojoProofTest/Labels.lean): the program of a payload shuffle passes Labels.Ok with no attribute and fails it with range on the result |
| B86 | Grid.fire's matching of lanes (t'.at = t.at, MojoProof/Sem/Grid.lean:477, 494) and T3b's statement |
medium (gap in T3b's premises) | Thread.at compares function names, but Thread.payRes reads the frame's Func. Grid.start takes any function as the kernel, and step refuses a call to a function already on the stack only if it is norecurse (MojoProof/Sem/Thread.lean:547). So a kernel can call a module function with its own name, two lanes at one Thread.at can run different functions, one lane's result can be payload while its source lane's exchanged value is not, and the resumed registers are not related. Grid.fire_skel needs every frame's function to be the module's find? of its name. Found while writing the PROOF of Grid.fire_skel. |
fixed | Labels.FramesOk asks every frame's function to be the module's find? of its name, Grid.FramesOk is kept by Grid.advance, Grid.fire and Grid.Step (calls take find?'s function, exec_call), and Grid.start_reach_framesOk gives it on every grid reachable from a start whose kernel is the module's find? of its name (MojoProof/Sem/SkelStep.lean; instance start_framesOk, twin start_framesOk_twin). Review-15, finding 2: Grid.FramesOk checked each lane against its own context's program, so two lanes of different programs at one Thread.at could still differ; Grid.FramesOk lab prog now names one program for every thread, and Grid.fire_skel takes ∀ n, (c₁ n).prog = prog (Grid.start gives every thread one program), with Thread.payRes_at; twin fire_prog_twin (MojoProofTest/SkelStep.lean): contexts of another program, whose declaration has range. Grid.skel_lockstep takes the premise on the kernel (hfn; its instance lockstep_inst, and the premise's twin start_framesOk_twin) |
| B87 | the parser's constants (value, MojoProof/LLVM/Parser.lean) and pending_twin's example |
low (parser accepted invalid IR; docs) | The parser accepted locals in aggregate constants (<i8 %0>), splat, and constant getelementptr and casts, which LangRef ("Constant Expressions", "Complex Constants") allows only constants in. pending_twin's docstring showed store i8 %0, ptr getelementptr (i8, ptr %1, i8 %0) as LLVM IR, but that is not valid LLVM; the theorem is a counterexample over the AST only. |
fixed | constant in the parser refuses a local in an aggregate constant or a constant expression ("local name in a constant"); two refusal tests in MojoProofTest/Main.lean (the store of pending_twin and the vector store of payOk_twin); the docstrings of storeGep, pending_twin, storeVec and payOk_twin and payload.md say that these are AST forms the parser refuses |
| B88 | Grid.fire_skel's premises: a waiting thread's saved declaration (Status.wait, resumeAll, MojoProof/Sem/Grid.lean:445) |
medium (gap in T3b's premises) | Grid.FramesOk reads only frames, but resumeAll applies the saved declaration's return attributes. Two grids of 32 lanes waiting at a checked payload shuffle with a saved declaration with range(i32 0, 8) that is not the module's are related by Grid.SkelRel and meet Grid.FramesOk, and the fires give 5 and poison. B85's check on the module's declaration does not reach the saved one. |
fixed | Thread.AtCall (MojoProof/Sem/Closed.lean) asks the saved declaration to be the module's find? of the callee's name with no blocks (exec_wait, step_wait), and Grid.AtCalls, kept by Grid.advance, Grid.fire and Grid.Step and given by Grid.start, is a premise of Grid.fire_skel; Thread.AtCall.noRange gives no range from (O3); instance fire_inst, twin fire_atCalls_twin (one lane; MojoProofTest/SkelStep.lean) |
| B89 | fire_inst (MojoProofTest/SkelStep.lean:443) and its declaration shflDecl (MojoProofTest/Labels.lean) |
low (test coverage) | fire_inst applies Grid.fire_skel to waiting threads built by hand, not reached by executing a program: shflDecl has no parameters and is not convergent though the call passes four arguments, so Func.check refuses the program before any thread waits there, and the instruction's constant is 5 where the second state has 6. The instance is valid for the theorem but does not connect execution to the collective proof. |
fixed (a20d43b, eba6d92); the remaining restriction is B100 | fire_inst (MojoProofTest/SkelStep.lean:675) now runs the kernel bflyKern (a load of byte 0 of block 1, then a butterfly shuffle of it, declared with four parameters and convergent) from Grid.start through advance to the waiting states and applies Grid.fire_skel there, for every two oracles and address choice 0; built at a20d43b and eba6d92 |
| B90 | the MojoProofTest/Lockstep.lean docstring | low (docs) | The docstring named lockstep_inst as the instance of Grid.payload_run between two payloads, but lockstep_inst gives one start and a Grid.Lockstep relation, with no second start, finished run or use of Grid.payload_run. |
fixed (70321d3) | The docstring cites lockstep_inst as the relation's instance and run_inst (Grid.skel_run on kernel #[] over memX 1 and memX 2, finished and not bad) as the run's |
| B91 | docs/proofs/payload.md, the proof of Grid.start_skel |
low (docs) | The informal proof said the start reads the caller's memory only through Mem.checkClosed, but launchArgs also applies withAttrs, whose nonnull and align cases read addresses. The Lean proof was right (withAttrs_shape). |
fixed (70321d3) | payload.md: withAttrs reads the memory's shape, which Mem.SkelEq keeps (Mem.SkelEq.sameShape, withAttrs_shape) |
| B92 | the gate's equivalences count at 25745d1 | low (library standards) | The audit counts 3 equivalences (limit 0): Grid.owned_bad (MojoProof/Sem/ScheduleOwned.lean:237, g.Bad L c ↔ g.Faults L c on reachable grids under the discipline), Sym.castV_int (MojoProof/Sym/Block.lean:294, castV … = lanes …) and Sym.SState.op_prods (Block.lean:345, valProd fi a = x.prods V): theorems whose two sides are headed by two library definitions. None is two definitions of one concept (Bad and Faults differ off the discipline; the other two are an unfolding and a simulation fact), but the count may not grow. |
fixed (77ea74b, 62f81fc) | Grid.owned_bad (MojoProof/Sem/ScheduleOwned.lean:238) states g.Bad L c → g.Faults L c, the converse taken at its uses; castV_int and SState.op_prods are inlined into SState.stmt_sound. The gate at the merge, 21dafc6, counts 0 equivalences |
| B93 | SState.op/SState.def (MojoProof/Sym/Checker.lean) and the quotation in sym_summary (MojoProof/Sym/Command.lean:52) |
medium (scaling) | SVal is a tree and a register's whole term is substituted into each use, so %r1 = add i32 %r0, %r0, %r2 = add i32 %r1, %r1, … has terms of size T(n+1) = 2T(n) + 1: the summary, its quotation and the kernel's comparison in covers are exponential in the block's length on blocks the fragment admits. The benchmark's chain uses each result once, so docs/automation.md's quadratic fit does not describe the fragment. |
fixed (996c32c) | Symbolic values are indices into a node table (SNode, MojoProof/Sym/Term.lean:61; vals, :154, evaluates each node once), so a repeated operand shares its node. Benchmark case twice 200 (a last value of 2^201 - 1 nodes as a tree) is checked in 2.3 s (docs/automation.md's table); the remaining growth is B103 |
| B94 | scripts/SymBench.lean:224 (rm67; :174 when written) and its run |
low (test harness) | The expected failure of rm67 (the elaborator's rfl on mm67) is an unguarded error, and the wrapper's last command is echo, so the run exits 0 after BENCH-EXIT 1: the process status cannot tell the intended failure from a regression. |
fixed (71890ad) | scripts/SymBench.lean: rm67 asserts by fail_if_success that the elaborator's rfl fails on mm67, rw100 asserts by #guard_msgs that rfl on wide 100 stops at the maximum recursion depth, and the run's exit status is Lean's |
| B95 | the module docstring of MojoProof/Sem/Determinism.lean:31 | low (docs) | It says no reachable grid has an enabled race under the discipline, while Grid.owned_race (MojoProof/Sem/ScheduleOwned.lean:215) proves only RaceEnabled → Faults: Stmt.pending records an access before it is checked, so a pending race whose access would fault the memory-owner check is possible. |
fixed (77ea74b) | The docstring of MojoProof/Sem/Determinism.lean states what Grid.owned_race proves: an enabled race under the discipline faults |
| B96 | MojoProofTest/ScheduleOwned.lean:142 and MojoProofTest/Sym.lean:68 (vadd21_sound) |
low (test coverage) | T2′'s instance takes T := none (accesses to the threads' own allocas), so no reachable-grid instance exercises the tiled arm Owned T own; and vadd21_sound assumes its premise hds (every condition holds at the entry), which no concrete entry memory and frame discharges. |
fixed (9ab424a, 1ad7a0e, 97f8fa6) | Tiled T2′ instance confluent_cells (MojoProofTest/ScheduleOwned.lean:274, block 1 tiled by Tiling.strided 0 2 2) and its twin cells_twin (:304); hds discharged on concrete entry memories and frames by vadd21_hds (MojoProofTest/SymRun.lean:111) and vadd4_hds (:188), with twins vadd21_hds_twins (:150) and vadd4_hds_twin (:195); since B345 they state Kernels.vadd.b1 and Kernels.vadd.b0 |
| B97 | Sym.bind_ok, Sym.bind_eq_ok (MojoProof/Sym/Term.lean:171, :178) and Sym.obind_some (MojoProof/Sym/Block.lean:276) |
low (duplicates) | The first two restate the directions of Except.bind_eq_ok (MojoProof/Sem/Confluence.lean:588), which the Sym modules do not import; obind_some restates the forward direction of core Lean's Option.bind_eq_some_iff. The audit's counts do not see them. |
fixed (77ea74b, 996c32c, 4d8acbc) | Except.bind_eq_ok moved to MojoProof/Sem/Thread.lean:604, below both import paths; Sym.obind_some replaced by Option.bind_eq_some_iff; Sym.bind_ok and Sym.bind_eq_ok deleted, their uses are the two directions of Except.bind_eq_ok |
| B98 | #mojo_info (MojoProof/Sym/Info.lean:65, :79) |
low (report) | It collects every direct named callee and prints them under intrinsics, so a call of an ordinary module function is reported as an intrinsic. |
fixed (3d7d114) | #mojo_info lists a callee as an intrinsic only when P.intrinsics has it and prints calls of module functions separately; test withHelper (MojoProofTest/SymInfo.lean: vector_addition with a call of a defined @helper prints calls: [@helper ×1]) |
| B99 | Layout.decode, decodeAll, decodeFields (MojoProof/Sem/Value.lean:212, :224, :232) |
low (automation) | The three are mutually recursive over Ty and the byte list and compile by well-founded recursion, which the kernel does not unfold, so decide +kernel alone cannot evaluate a Mem.load of a concrete memory; simp with Layout.decodeFields.eq_def loops. |
fixed (659f662) | Layout.decode and Layout.decodeFields by mutual structural recursion on the type and the field list, Layout.decodeAll by structural recursion over a decoder (MojoProof/Sem/Value.lean); test decode_eval (MojoProofTest/Frame.lean, rfl evaluates a decode) |
| B100 | fire_inst (MojoProofTest/SkelStep.lean:675) |
low (test coverage) | The instance holds for every two oracles but only for address choice 0 (bytes 1 and 2): with a variable address choice, lane 1's load after lane 0's steps and the fire exceed 200000 heartbeats under with_unfolding_all rfl, and with a variable byte the first load is stuck (the decoded BitVec is not syntactically the byte). |
fixed (03ce7d3) | fire_inst (MojoProofTest/SkelStep.lean) holds for every address choice ch and every two oracles: the contexts and grids are generalized before Grid.fire_skel and each step is closed by a kernel-checked Eq.refl; payload bytes are still 1 and 2 (B114). The meta-level cost found on the way is B115 |
| B101 | docs/proofs/payload.md, the maxnum row of T5 |
low (docs) | It said FloatLib had no lemma for the row; FloatLib has Model.isNaN_maximumNumber_eq_false_of_not_both and its minimumNumber counterpart. |
fixed (3af387c) | maxnum_of_not_nan (MojoProof/Sem/FloatRel.lean) uses them; payload.md corrected |
| B102 | Block.sound_pathI (MojoProof/Sym/Block.lean:1890), Block.sound_loop, Block.sound_loop_inv, Runs.of_loop (MojoProof/Sym/Loop.lean) |
gap (loops) | The checker accepted a branch only into a block that starts without a phi, so an edge into a phi block (a loop header, a join) was refused, and loops and ret to a caller frame were not composed. Paths of any length and ret from a kernel's one frame are composed since 7d1ebe4. Edges into phi blocks are accepted (Exit.phi, Ends.edge, Block.sound_pathI, Block.sound_retI, eb8e37d; Block.sound_path and Block.sound_ret are their corollaries) and loops are composed for every trip count, given as a premise (Block.sound_loop, 25382cb). Loops from an invariant (Round.of_inv, Block.sound_loop_inv) and a thread from its entry through a loop to ret (Runs.of_loop, 6f8a623), for every program, path, trip count and invariant; ret to a caller frame is still not composed. Then: ret void to a caller frame (Block.sound_retR, Block.sound_back, Block.sound_retI their corollary, ee02cf9), for every program, path and caller. Open: ret T %v (Exit.ret carries no value and no new Exit constructor was allowed) and a call into a module function (exec's .call with blocks is not summarized, so the callee's entry is a premise, t.frames = f :: g :: rest) |
open (ret with a value; calls into module functions) |
MojoProofTest/SymPhi.lean (trip0_cell), MojoProofTest/SymLoop.lean (cnt_run, the counting loop for every bound n ≤ 2 ^ 60 on every memory with n cells; twins cnt_twins, cnt_inv_twin); edge_back (MojoProofTest/SymPhi.lean) |
| B103 | covers and vals (MojoProof/Sym/Checker.lean, MojoProof/Sym/Term.lean) |
low (scaling) | After B93 the kernel's time still grows about with the square of the block (×2.7 to ×3.9 per doubling): SState.def appends each node at the end and takes the table's length, SState.get scans an association list, vals appends and SVal.eval looks nodes up by position. mm67 (191 statements) takes 7.6 s in the kernel; the elaborator's rfl on wide 100 hits the recursion limit. |
open | docs/automation.md (the findings after the table); fix: a table built by cons with its length carried and an indexed register table |
| B104 | the maxnum / minnum rows at the intrinsic (fminmax_of_not_nan, fminmax_nanEq, MojoProof/Sem/FloatRel.lean:349, :363) |
gap (T5) | Proved for scalar operands only; on vectors lane j reads oracle s.ch j, so the coupled row needs every lane's oracle number to share the parity of its partner's, which is not stated. |
fixed (e1eb0ae) | intrinsic_fminmax_vec, fminmax_vec_of_not_nan, fminmax_vec_nanEq (MojoProof/Sem/FloatRel.lean), lane j paired with oracle s.ch j; tests fminmax_vec_inst, fminmax_vec_coupled, fminmax_vec_twin (MojoProofTest/FloatRel.lean) |
| B105 | elaboration of a test instance | low (tooling) | An instance whose scope is { s with ch := fun _ => 0xff800003 } and whose parity goal is closed by show ...; rfl had not finished after 10 minutes, and the heartbeat limit did not stop it; the step that hangs was not found. |
open | The committed instances (MojoProofTest/FloatRel.lean) avoid the pattern; the jobs were killed by process group |
| B106 | Est (MojoProof/Sem/FloatRel.lean:68) (gate at 21dafc6) |
gap (T5) | The audit counted Est unused: only its own Est.Holds mentions it (a declaration's namespace is not a use) and the tests build its values anonymously, because no theorem states the error relation's row (THEORY section 4, rule 1) yet. |
fixed (8714e4a) | the row for one contracted fadd / fsub: Est.contract, contract_est, floatBin_contract_est (MojoProof/Sem/FloatRel.lean) state the bound with Est.Holds; MojoProof.Sem.Est removed from scripts/targets.txt |
| B107 | ctx4 (MojoProofTest/SymRun.lean:164) |
low (test) | The fixture sets tid.x = i and ntid.x = 4 and leaves ntid.y, ntid.z, every nctaid component and laneid 0, so it is not the environment of a valid launch (Launch.Valid needs positive dimensions, and Launch.env gives the four threads lane ids 0 to 3), while its docstring calls it a thread of a four-thread block. The hds proofs are still valid for the contexts they state. |
fixed (7d1ebe4) | ctx4 is { ctx0 with env := launch4.env i, who := ⟨i, i / 4⟩ } with launch4 grid (1,1,1), block (4,1,1) (MojoProofTest/SymRun.lean), and its docstring says so |
| B108 | the summaries of rsqrt_close (MojoProof/Sem/FloatRel.lean:34, docs/proofs/README.md:179) |
low (docs) | Both say a result is "within rsqrtErr of 1 / √x", an absolute error, while the relation (FloatRel.lean:82) bounds the absolute error by rsqrtErr / √x, a relative error: at x = 1/4 the contract admits w = 2 + 2⁻²², whose absolute error exceeds rsqrtErr. The theorem's own docstring and PTX ISA 9.5 section 9.7.3.16 use relative error. |
fixed (7762de7) | both summaries say "within relative error rsqrtErr" |
| B109 | docs/automation.md:43, :46 before its split | low (docs) | It says "the obligation check" is linear in the block's size; that holds for quotation, the structural comparison and the obligation-prefix comparison, not for evaluating concrete obligations (vals, MojoProof/Sym/Term.lean:154, appends; node evaluation looks up a list by position), and the benchmark table (:268) shows et 50/100/200 at 225/866/3340 ms. |
fixed (7d1ebe4) | docs/automation.md restricts the linear claim to quotation, the structural comparison and the obligation-prefix comparison, and points at B103 |
| B110 | docs/proofs/payload.md:723 and :47 | low (docs) | It describes T5's instances as one Respects lemma per row, but maxnum_nanEq (MojoProof/Sem/FloatRel.lean:315) and its intrinsic corollary compare identical operands under two oracles; they do not preserve NaNEq between different operands, and equal parity cannot give that: with q = 0x7fc00000, s = 0x7fa00000, second operand 1 and n = n' = 1, maxnum(q, 1, 1) = 1 while maxnum(s, 1, 1) is a NaN. Line 47 still says T3c, T4 and T5 have no Lean. |
fixed (7762de7) | docs/proofs/payload.md states the coupled maxnum/minnum row with equal operands, gives the counterexample, and the stale sentence at :47 is gone |
| B111 | IsProd premise of contract_est / floatBin_contract_est (MojoProof/Sem/FloatRel.lean:503, :550) |
low (test coverage) | No twin shows the row failing when an operand is not the rounded product of its recorded factors; the instance and twin cover only the validity flag | open | a twin with pa naming factors whose rounded product is another word |
| B112 | docs/kernel.md:15, :31 (docs/automation.md:185, :201 before its split) and the module docstring of MojoProofTest/SymRun.lean:42-50 (:64-68 now) | low (docs) | After B99 (659f662) Layout.decode is structural, but these texts still say it recurses by well-founded recursion, and the iterate 6 unfold they describe may no longer be needed. Not edited then |
fixed (fd60f55) | docs/automation.md, the docstrings of MojoProofTest/SymRun.lean and MojoProofTest/ScheduleOwned.lean say the unfolding step was written when decode recursed by well-founded recursion; whether SymRun's unfolds can go is not checked |
| B113 | decodeAll_namesIn, decodeFields_namesIn (MojoProof/Sem/Names.lean) |
low (docs) | Library declarations without docstrings, already so at 0798a30; 659f662 restated decodeAll_namesIn and did not add one. At that merge 37 of Closed.lean's 88 declarations had no docstring | fixed (fd60f55, 8c6b99d) | docstrings for decodeAll_namesIn and decodeFields_namesIn (fd60f55) and for the other 35 (8c6b99d) |
| B114 | fire_inst (MojoProofTest/SkelStep.lean:690) |
low (test coverage) | After B100 it holds for every address choice and two oracles, but only for payload bytes 1 and 2, not for every two bytes | open | state it for variable bytes x, x' with the generalize approach of 03ce7d3 |
| B115 | elaboration of statements over a free address choice or oracle (MojoProofTest/SkelStep.lean) | medium (automation) | Meta's whnf cache skips terms with free variables. So any elaborator defeq check on a launch term with a free ch re-evaluates Grid.start: 14,179 unfoldings in one Grid.fire_skel application, past 200000 heartbeats, and the timeout is reported at the declaration (col 0). Automation that states kernel results for every address choice hits this |
open (worked around in 03ce7d3) | generalize the contexts and grids into variables before applying library lemmas; close steps by kernel-checked Eq.refl (kernel_rfl) |
| B125 | omega (Lean v4.35.0) in mojo_bounds (MojoProof/Sym/Bounds.lean) |
low (automation) | omega stops at maximum recursion depth on some contexts it refutes when asked for False: constants near 2^63 and remainders by 2^32 / 2^64 from the lowering of sext / zext. |
open (worked around) | omegaCloses catches runtime exceptions (tryCatchRuntimeEx) and search asks for False before deciding conditions (Bounds.lean :210, :281) |
| B126 | scripts/cited.py | low (tooling) | It has no entry in OTHER for the tactic mojo_bounds and cannot resolve core or Mathlib lemma names (BitVec.toNat_add), so MojoProof/Sym/Bounds.lean's docstring writes the tactic's name without backticks and lists lemmas only inside a longer code span. |
open | add mojo_bounds to OTHER; resolve names against the imported environment or a list of allowed prefixes |
| B127 | Launch.env_index, Grid.not_bad_of_done (MojoProof/Sym/Sched.lean) |
low (duplicates) | Launch.env_index had the statement of Launch.index_oneDim (MojoProof/Sem/Index.lean), and Grid.not_bad_of_done was one direction of Grid.Done.bad_iff (MojoProof/Sem/Determinism.lean) with Grid.Done.not_raceEnabled's case analysis repeated; the lanes ran in parallel. |
fixed (410b7d4) | Launch.env_index deleted, its uses (MojoProofTest/SymBounds.lean vadd_index_1d) call Launch.index_oneDim; Grid.not_bad_of_done deleted, Seq.start_sound_inv uses Grid.Done.bad_iff |
| B128 | vector_addition for every thread of every valid 1-D launch |
gap (kernel theorem) | The composition is proved for every program, kernel, launch, memory, choice and oracle from one covered path per thread (Kernel.sound_of_paths, MojoProof/Sym/Kernel.lean:276) and at one choice and oracle by evaluation (Kernel.sound_eval); kernel22 is vector_addition's soundness at one launch, memory, choice and oracle. H-run's composition for every elementwise kernel (Kernel.sound_elem, MojoProof/Sym/Kernel.lean:691), mojo_kernel step 5 (n.args, n.starts, n.sound, e4c4f5b), and vadd.sound_start (MojoProof/Kernels/Vadd.lean:602 at dd81d72, deleted since): vector_addition is sound at every address choice and oracle for every valid 1-D launch, n < 2 ^ 31 and every caller's memory of Map2.Pre whose buffers fit (Mem.Fits, B235), its walks by mojo_obl (vadd.walks). Still open: the start facts hS (the registers %0 to %3 and the three byval struct loads that Grid.start makes, none of whose blocks is out) are a premise, not derived from launchArgs; and Vadd.lean has 498 hand-written per-kernel lines after the clauses (target 0). The start facts come from launchArgs for every program (B280), Kernel.sound_map2 (MojoProof/Sym/Kernel.lean:729) is the kernel theorem of every binary elementwise kernel whose parameters are %0 to %3, and mojo_kernel's map2 clause generates vadd.ret (by mojo_ret) and vadd.correct (MojoProof/Kernels/Vadd.lean:64): vector_addition is sound at every address choice and oracle for every valid 1-D launch and every caller's memory of Map2.Pre, with no start or fits premise and 0 hand-written lines after the clauses (B281, B308) |
fixed for vector_addition | vadd.correct; instance correct23 (MojoProofTest/Kernel.lean:228, 2 blocks of 3 threads, n = 5); open: B309 (the map2 clause's four parameters and one block row) |
| B130 | Grid.start (MojoProof/Sem/Grid.lean:233), launchArgs (MojoProof/Sem/Thread.lean:585), Thread.start (:599) |
low (semantics) | The start does not compare the number of arguments with the number of parameters: launchArgs and Thread.start's registers pair them by List.zip, so extra arguments are dropped and a parameter without an argument has no register. short_starts (MojoProofTest/SymLaunch.lean:87) starts vector_addition, which has 4 parameters, on 3 values; a launch passes one value per parameter, so such a launch should be refused (.unsupported). Then: on the command's side mojo_kernel refuses clause lists that do not name every parameter exactly once (clauseError, test short_clauses, MojoProofTest/KernelCmd.lean:27) |
open | in Grid.start refuse args.length ≠ fn.params.length; Sym.Grid.start_ok then gains the premise args.length = fn.params.length (rfl at vadd_starts) and short_starts becomes its twin |
| B131 | Mojo std.math exp_approx_f32 (math.mojo:596-713 at bbc13a71, unchanged on main cbd73433) |
medium (upstream) | The reduced argument is rounded to nearest, so r is in [-0.5, 0.5], but the cubic (1, 0.6951461434, 0.2275643945, 0.0771190897) is fitted on [0, 1): measured maximum relative error 1.051e-2 at r = -0.5 against the docstring's 1e-4 to 1e-3; the test's rtol 1.2e-2 (test_exp_approx_f32.mojo:78-79) hides it. Evidence is numerical, by a Python script, not Lean |
open (not reported) | a FloatLib/Lean bound for the shipped cubic and for the fix (round down, as the sm100 kernel does) |
| B132 | MAX legacy NVIDIA MLA split-K: mla_decoding_single_batch (mla.mojo:3575-4153 at bbc13a71) |
candidate (upstream) | The kernel takes exp_sum_ptr and qk_max_ptr and never writes them, while the reducer combines partitions with them when num_partitions > 1; the default is 1 partition, and whether any MAX caller passes more is unverified. Found by reading, not run |
open (not reported) | a reproducer (one run with num_partitions = 2 against the naive reference) before it counts |
| B140 | docs/proofs/index.md:86 | low (docs) | "the global index, injective by 3 or 4" overstates Launch.index_inj (MojoProof/Sem/Index.lean:189), which gives equal ctaid and tid in one dimension, not equal thread numbers; twin22 (MojoProofTest/Index.lean:104) is the counterexample on grid (1, 1, 1), block (2, 2, 1) |
fixed (7ab509c) | the ownership argument names Launch.index_oneDim's premises: a one-dimensional grid and block, threads in range |
| B141 | Sym.mul_lt_mul_of_lt (MojoProof/Sym/Bounds.lean:50) |
low (duplicate) | It restates core's Nat.mul_lt_mul_of_lt_of_lt (Init/Data/Nat/Lemmas.lean:627, same premises and conclusion up to binder names); DUPTHM compares only our declarations with each other, so it does not see the copy |
fixed (7acbfde) | deleted; bound (MojoProof/Sym/Bounds.lean) uses the core theorem, and the same for the second copy Sym.mod_lt_of_lt of core's Nat.mod_lt_of_lt (B195); tests MojoProofTest/SymBounds.lean unchanged |
| B142 | index24's docstring (MojoProofTest/Index.lean:49) |
low (docs) | It says "the five operations"; the conclusion is the final intBin .add alone, with the product computed inside BitVec.ofNat, and the multiplication flag fl does not occur in it. Launch.index_ops proves the five-operation statement |
fixed (7ab509c) | index24 states the five operations the IR runs, for all flags |
| B143 | rsqrtOk_rSqrt (MojoProof/Sem/Float.lean:319; formerly rsqrtOk_div_sqrt) (the move to Lean v4.36) |
low (build) | Mathlib v4.36.0 (mathlib4#45063) marks Real's operations @[no_expose] instead of irreducible_def; files outside the module system, as all of ours are, still see the bodies, so elaborating hypotheses about concrete reals (2 ^ 63, toReal (posMaxFinite binary32)) unfolds Real.mul and npowRec through Quotient.map₂ and exceeds maxRecDepth 512. TorchLean and FloatLib are module files and are not affected |
open (worked around) | set_option maxRecDepth 4096 in on two theorems (MojoProof/Sem/Float.lean:315 rsqrtOk_rSqrt, MojoProofTest/FloatStats.lean:125 softmax_ones, B1069); the fix is to move Float's real analysis into a module file, which Float.lean cannot be while it imports the non-module MojoProof.LLVM.Syntax |
| B144 | refuted_bool (MojoProofTest/Cert.lean:37) via prop_sound (MojoProof/Cert/Rup.lean:82) (the move to Lean v4.36) |
low (axioms) | On Lean v4.36.0 the RUP checker's soundness depends on Classical.choice (v4.35.0: propext and Quot.sound only). It is in the allowed set, so the audit passes; the guard in the test records the new list. The axiom comes in through the LawfulBEq Nat instance argument of core's List.lookup_eq_some_iff at Rup.lean:92 (a probe: destructuring that lemma alone depends on Classical.choice; the membership step after it does not) |
open (allowed axiom) | none needed; a lookup lemma for Nat keys without the instance would restore the old list |
| B145 | elaborated statements across R0 (3029 declarations) (the move to Lean v4.36) | low (statements) | 25 types differ. 3 change text by FloatLib v4.1.0's rename Model.isSNaN to Model.isSignaling, without an alias: maxnum_of_not_nan (MojoProof/Sem/FloatRel.lean:322), fminmax_of_not_nan and fminmax_vec_of_not_nan; the hypothesis is (x.isSignaling \|\| y.isSignaling) = false, same meaning. 22 change only the instance elaboration finds: core v4.36 gives String and BitVec an order package (Init/Data/Order/PackageFactories.lean:31), so BEq becomes Std.PreorderPackage.toBEq (a ≤ b ∧ b ≤ a, lawful by LawfulOrderBEq) instead of instBEqOfDecidableEq, and Option.instBEq is now instBEqOption: St.index, St.mk, Grid.skel_lockstep, Grid.skel_run, Grid.start_framesOk, Grid.start_reach_framesOk, Labels.FramesOk.fn/mk/push, Labels.Rel.params, exec_call, exec_wait, Sym.exec_load, Sym.exec_sreg, Sym.foldl_done_getElem? and the tests rmw_fault, eval24, ret_twin, shflG_atCalls, start_framesOk_twin, call_sreg, refusal_vadd |
fixed (recorded; no statement means something else) | none |
| B146 | Sem modules (the move to Lean v4.36) | low (lint) | On v4.36 the unused-tactic linter flags 25 tactics in Sem (try with no goal left, all_goals with one goal): Closed (10), Buffer (4), Skeleton (3), Frame (2), Confluence (2), Writes, SkelExec, Schedule, Bad; 8 warnings say the imports of Float, Grid, OneRun and Thread are Mathlib module files, which a non-module file may import |
fixed in part (b20c6a4) | 15 tactics deleted; the 10 in the mutual encode_length (Buffer.lean:176, 186, 196, 210) and encode_namesIn (Closed.lean:491, 499, 507, 517, 526, 529) are false positives (the linter sees one of several elaborations of a mutual structural definition's tactic block; the build fails without them) and stay; the 8 module-system warnings close with B143 |
| B147 | Exit.succs (MojoProof/Sym/KernelCmd.lean:78) |
low (build) | Exit.succs matched every Exit constructor but the new Exit.phi, so the merged tree did not build ("Missing cases: (phi …)"); the branch that added it checked for exhaustive matches on its own base only |
fixed (a merge) | .phi _ d e has the successors of .cond _ d e |
| B148 | Summary.oblivious (MojoProof/Sym/Payload.lean:140) |
medium (checker) | The check read the exit condition of a cond exit only (| _ => true), so after Exit.phi a branch into blocks with phis on a payload condition passed as oblivious. No proved claim used it (the two-run theorem is in the attic, B152) |
fixed (a merge) | .cond x _ _ \| .phi x _ _ => free x; twin exit_twins (MojoProofTest/Payload.lean) |
| B149 | coversEntry (MojoProof/Sym/Kernel.lean:259; :99 at filing), Kernel.sound_of_paths (:276; :116 at filing) and mojo_kernel (MojoProof/Sym/KernelCmd.lean) |
gap (matmul) | The kernel theorem and n.covers use the path checker without phis (coversPath), while summarize now gives branches into phi blocks an Exit.phi; so mojo_kernel on a loop-free kernel with a join (a phi) fails at n.covers's decide instead of covering it or refusing with a message |
fixed (2aadb7a) | Ret, Runs.of_ret and coversEntry use WalkI, Valuation.lastI and coversPathI; mojo_kernel summarizes from phiCount; the generated vadd.ret and vadd.correct go through them |
| B150 | byval argument loads (MojoProof/Sem/Precond.lean) | gap (high) | There was no pointer or struct codec, so the byval argument loads had no decode lemma | fixed (18612db) | Layout.Codec.ptr and Layout.Codec.ptrArg (MojoProof/Sem/Precond.lean:77); test byval_codec (MojoProofTest/Precond.lean); Grid.start on byval arguments is not done |
| B151 | T5's NaN row (MojoProof/Sem/FloatRel.lean) | gap (medium) | A NaN operand of fadd, fsub, fmul or fdiv giving a NaN result was not proved (only the weaker "both not finite") |
fixed (c97d0f7) | fbin_isNaN (MojoProof/Sem/FloatRel.lean:300), floatOp_isNaN (:353), every format; tests nan_row_inst, nan_row_twin; NaN equivalence under free oracles as a Respects statement, floatOp_nanEq (MojoProof/Sem/FloatRel.lean:390, 34a5836), instance and twin nanEq_row_inst |
| B152 | roles and obliviousness of block summaries (MojoProof/Sym/Payload.lean) | gap (medium) | There were no roles or obliviousness checks on block summaries, so T3's agreement of two runs at the skeleton had no checker | open, in part | a7291f6: roles, Summary.oblivious, Summary.agrees, tests vadd21_roles, vadd_oblivious, vadd_twins. 3b (vals_skel, Summary.oblivious_skel, fc0d380); T3c on terms (vals_rel, SEff.run_rel, Valuation.after_rel, enter_rel, Valuation.into_rel, with (O3) as Summary.payOk, 03282c3) and along a returning path (Block.sound_retI_rel, c93b804); 3c on one summary (vadd21_cellOk, 531c087). The second run's WalkI from the first (WalkI.rel, Cond.holds_rel, Cond.effsIn); LoadsOk/StoresOk from registers (SVal.baseIn, SVal.eval_baseIn, Valuation.loadsOk_of_regs, Valuation.storesOk_of_regs); vadd_runs without hW₂, h4, hs, from start facts (vadd4_reg6), 2cc302f; Block.sound_retI_rel on the returned memories (B283, 179624a); 3c's value statement on %21 (vadd21_store, eb50c36). Open: LoadsOk/StoresOk from Labels.MemOk (B290's remaining part), loops, the grid (T5 with Grid.skel_run) |
| B180 | SState.phiConds (MojoProof/Sym/Checker.lean) and floatLit (MojoProof/Sem/Eval.lean:101) |
low (coverage) | The kernel does not reduce floatLit, so a float constant cannot be a phi operand of an accepted edge; the naive kernel's %45 → %46 (%48 = 0.0) is refused. The one step the kernel does not reduce is core's String.toNat? on the literal's digits; String.toList, Rat, Model.ofRat, Model.cast and the .hex path reduce, and a structural digit parse decides 0.0, 1.5 and 0.1 equal to their .hex forms |
fixed: the Sem half by digits (374ad7e, merged at 102b941), the Sym half in b2f3f60: a float constant is a node SNode.flit of the table that SState.start builds; SState.op and SState.phiConds refer to it |
tests pre_covers, trip0_twins, entry_both (MojoProofTest/SymPhi.lean), naive_refusalsC (MojoProofTest/SymNaive.lean), naive_zero, dec_hex (MojoProofTest/Lit.lean) |
| B181 | refusal.go (MojoProof/Sym/Info.lean:41) |
low (report) | The verdict called SState.exit, not SState.exitAt, so #mojo_info called branches into phi blocks outside the fragment, which summarize accepts since eb8e37d |
fixed (a merge) | σ.exitAt fn b.label b.term; test naive_out_refusal (MojoProofTest/SymLoop.lean) |
| B182 | SState.phiExit (MojoProof/Sym/Checker.lean) |
low (completeness) | br i1 into blocks with phis needs the obligations of both edges, the untaken one's too: sound, not complete (a phi operand that faults on the untaken edge refuses the block) |
fixed (4a74995) | coversTo and SState.exitTo take only the obligations of the edge into the path's next block; coversPathI accepts covers or coversTo per block; Block.sound_to, Block.sound_pathI for every program; tests edge_covers, edge_walk, edge_run, edge_twins (MojoProofTest/SymPhi.lean); no corpus path uses it yet (the naive kernel's %45 → %46 is refused by B180) |
| B183 | Ends, Valuation.after, Rel (MojoProof/Sym/Block.lean) and SNode.eval (MojoProof/Sym/Term.lean) |
gap (matmul) | fmul contract is outside the fragment because Ends fixes the frame's prods to regProd; the naive kernel's latch %52 (also a select) needs it, so its loop is not covered by Block.sound_loop. Blocked by the interface freeze; the frozen Ends/Valuation.after pin the products to regProd, which is false after exec of fmul contract, and the frozen SNode.eval reads none as a node's products, so the frozen Block.sound cannot stay true with fmul contract in covers |
fixed: at block level (dff9159: coversC, EndsC, regProdIn and Rel.prods), on an edge (8ddf105: Ends.edgeC), and along paths and loops (e3c09f8, a50d41c: the With forms, B548); the kernel theorems do not take the flag yet (B606) |
test naive_latch_refusal: %52 is refused at the fmul contract (statement 12) by covers and accepted by coversC (latch_covers, latch_edge); the loop %46 → %50 → %52 → %46 is covered (naiveL_covers, loop_two, MojoProofTest/SymNaive.lean) |
| B184 | vadd21_hds, vadd21_cell, vadd21_hds_twins, vadd4_hds, vadd4_hds_twin, vadd_walk, vadd_walk_twin, vadd_cell (MojoProofTest/SymRun.lean) and trip0_walk, trip0_cell, trip0_twins (MojoProofTest/SymPhi.lean) |
low (tests) | They kept a simp only [vals, SNode.eval.eq_def, Mem.load, Layout.decode.eq_def] step before decide +kernel; it is not needed: the eleven proofs are decide +kernel alone, which saves 3.9 to 4.4 s of simp in SymRun and 1.2 to 1.5 s in SymPhi |
fixed (874f262) | profiles, two runs each |
| B195 | Sym.mod_lt_of_lt (MojoProof/Sym/Bounds.lean) |
low (duplicate) | It restated core's Nat.mod_lt_of_lt; DUPTHM does not see copies of core theorems (B196) |
fixed (7acbfde) | deleted; bound uses the core theorem; tests MojoProofTest/SymBounds.lean unchanged |
| B196 | DUPTHM (scripts/Audit.lean) |
low (tooling) | The check compares our declarations only with each other, never with core or Mathlib, so B141 and B195 were found by review, not by the audit | open | also compare each statement with the imported theorems' statements (up to binder names) |
| B198 | mojo_obl (MojoProof/Sym/Obl.lean) |
medium (automation) | The obligation tactic's three tests on vector_addition's block %4 stopped with "(deterministic) timeout at whnf, maximum number of heartbeats (200000)", and no maxHeartbeats override is allowed, so the tactic was not committed |
fixed (99754e5, 70a2c69) | the tactic builds each proof term from general lemmas and lets the kernel reduce (41,883 heartbeats, no option); MojoProofTest/Obl.lean vadd_walk_launch (every valid 1-D launch, thread and n < 2 ^ 31), open-goal twin vadd_walk_launch_open; the walk goal of vector_addition is inside mojo_ret (the generated vadd.ret) |
| B210 | module docstrings of MojoProof/Kernels/Vadd.lean, MojoProof/Sym/KernelCmd.lean, MojoProofTest/KernelCmd.lean, Kernel.lean and SymPhi.lean; scripts/cited.py | low (docs, tooling) | The gate's cited step failed at 3dd97f3 with 12 names: the command mojo_kernel, its generated vadd.sound_of and schematic n.sound_of, the refusal tests short_clauses, kind_twin and loop_refused (which are mojo_kernel invocations, not declarations), a corpus kernel's name, and Kernel.sound_eval/Kernel.sound_of_paths cited from a file that neither opens MojoProof.Sym nor names MojoProof/Sym/Kernel.lean. Branches do not run the gate, so this showed only at the merge |
fixed (a merge) | cited.py reads mojo_kernel N := … as the test N and, outside #guard_msgs, the declaration N.sound_of; mojo_kernel, n.sound_of and the kernel name are in its OTHER list; Vadd.lean's docstring names MojoProof/Sym/Kernel.lean |
| B211 | Summary.agrees (MojoProof/Sym/Payload.lean:150 at 5622c16) |
medium (checker) | agrees checked only S.regs. An edge into a block with phis also sets the target's phi results, which are in no summary's regs, so a payload value could reach a skeleton register through a phi and then a branch condition, with both blocks' checks passing |
fixed (37921ea; restated in 03282c3, B220) | Summary.agreesI (MojoProof/Sym/Payload.lean:238) is agrees and phiAgrees on each exit edge, reading the target's phis from the function (phisAt); the two-run theorem Valuation.into_rel takes agreesI; tests phi_agrees, phi_twin, phi_payload_branch, phi_payload_labels (MojoProofTest/Payload.lean) |
| B212 | MojoProof/Sem/Spec.lean:45 and docs/TRUST.md T11 at 5622c16 | low (docs) | They said kernel theorems take adm := fun _ _ => True, but Kernel.sound_eval and kernel22 admit one address choice and one oracle |
fixed (35dfce2, 54b68c2) | both say a theorem covers the executions its admission admits: Kernel.sound_ret_launch and ret_empty use fun _ _ => True, Kernel.sound_of_paths and n.sound_of take any adm, Kernel.sound_eval and kernel22 one choice and oracle, vadd.correct (formerly vadd.sound_start) every choice at one oracle; doc only |
| B213 | mojo_kernel's loop refusal (MojoProof/Sym/KernelCmd.lean:163 at 5622c16) and docs/proofs/kernel.md:106 |
low (docs, diagnostics) | They said there is no Block.sound_loop; MojoProof/Sym/Loop.lean has it. What is missing is its use by the kernel theorem and mojo_kernel, and the discharge of its rounds' premises from an invariant |
fixed (e4c4f5b) | the message (MojoProof/Sym/KernelCmd.lean:523) names the block and asks for a loop clause with its precondition, invariant, trip count and postcondition; test loop_refused (MojoProofTest/KernelCmd.lean, #guard_msgs); docs/kernel.md, docs/proofs/kernel.md |
| B220 | Summary.phiAgrees (MojoProof/Sym/Payload.lean as in 37921ea) (found before the merge) |
medium (checker) | B211's first phiAgrees read the edge's values by SState.op and counted every non-register, non-integer operand as payload, so it refused a float constant into a skeleton result. It also accepted a constant expression built on a payload register (a splat) into a payload result, and that value in two runs is related by no relation the proof has |
fixed (03282c3) | phiAgrees (MojoProof/Sym/Payload.lean:227) reads the end-of-block roles (Summary.endPay), refuses a payload-mentioning operand into a skeleton result, and accepts one into a payload result only as a plain register (TValue.payOk); test phi_operand_twin |
| B221 | MojoProof/Sem/Spec.lean, the B212 paragraph as in 35dfce2 | low (docs) | The paragraph contained "admit one", which the forbidden-term grep \badmit\b matches, and lines over 100 columns |
fixed (54b68c2) | reworded and rewrapped; the grep is empty |
| B222 | docs/proofs/payload.md:51, :993, :1020, :1026 and docs/proofs/README.md item 8 | low (docs) | T5's planned term statement was named SVal.eval_rel, which is now the name of T3c's Lean theorem on the skeleton relation (03282c3), so the status line "SVal.eval_rel is not [proved]" contradicted the library |
fixed (a4ebf92) | T5's statement is SVal.eval_respects (not stated); its paragraph notes that B70 called it SVal.eval_rel; doc only |
| B235 | Mem.Buffer, Mem.Closed and Map2.Pre (MojoProof/Sem/Buffer.lean, Precond.lean) |
medium (precondition) | They allow a buffer whose generic range wraps 2 ^ 64. vector_addition faults on it (getelementptr inbounds gives poison), so the vadd Walk goals are false without a no-wrap fact |
fixed (cf2d7db, 48fdffb; merged in 2dab0e8) | Mem.Fits is in MojoProof/Sem/Precond.lean, Map2.Pre has the field fits, and Map2.pre_mem proves it from hG : ∀ i, G i * al + n * l.size t ≤ 2 ^ (l.ptr 0).1; vadd.correct has no hFa, hFb, hFo; instance correct23 (MojoProofTest/Kernel.lean) |
| B236 | mojo_kernel's n.b<i> and n.paths (MojoProof/Sym/KernelCmd.lean) |
low (automation) | They had no equation-lemma realization, so simp could not unfold them in the module that runs the command |
fixed (41ba48c; 8e6e9d6 for sym_summary) |
enableRealizationsForConst (MojoProof/Sym/KernelCmd.lean, MojoProof/Sym/Command.lean); test MojoProofTest/Vals.lean (simp only [b21], then b21 = Kernels.vadd.b1; b31 was deleted by B345) |
| B265 | scripts/Audit.lean (unused) |
low (tooling) | Inside a mutual … partial def block, a member referenced only by other members is reported unused: the references go through _unsafe_rec, and the safe constants are opaque |
fixed | worked around with scripts/targets.txt (Obl's regOf, blocksOf, nodeVals, nodeEval, foldExact); the audit counts a mention by p._unsafe_rec as a mention by p (scripts/Audit.lean). With those targets removed it reports only the 14 command elaborators unused, so the 12 targets Obl.regOf, blocksOf, nodeVals, nodeEval, foldExact, Vals.numTy, ifStep, congrDep, norm, congr, Ops.eqn and Ops.ptrMk are not needed; they are removed |
| B266 | scripts/Audit.lean (axioms) | low (tooling) | The axiom check covers library declarations only. An open-goal test written as a theorem inside #guard_msgs enters the environment with sorryAx by error recovery and passes silently |
fixed (cee7ab6) | the twin is an example (MojoProofTest/Race.lean:107); the audit checks the axioms of every MojoProof.* and MojoProofTest.* declaration (13,252, of which 10,755 are the library's, 0 with axioms beyond the three) and reports the tests' duplicates apart (B345) |
| B267 | MojoProof/Sym/Obl.lean at 99754e5 | medium (duplicates) | 99754e5 gave the audit DUPTHM 1 (Valuation.stmt_at restated stmt_of_fn) and equivalences 4 (SNode.eval_extract, eval_cast, eval_bin, eval_gep_at equated SNode.eval with extractV, intCast, intBin, gep), so the gate's audit step would have been red; 99754e5 had been merged |
fixed (70a2c69, merged in 8da140a) | the audit: all 0 |
| B268 | MojoProofTest.Obl.Fits (MojoProofTest/Obl.lean:33) |
low (duplicate) | After the merge, the test-local Fits has the type and body of Mem.Fits (DUPDEF) |
fixed (a merge) | deleted; vadd_walk_launch states the premises with Mem.Fits (m.Fits), and docs/proofs/obl.md says so. The deletion moved the test's declarations up 7 lines, and 626dd99 left docs/proofs/obl.md citing :39 and :90; the next commit cites :32 and :83 |
| B269 | mojo_race (MojoProof/Sym/Race.lean) |
gap | It does not prove Grid.owned_sound's hO (Owned needs a Tiling of a bounded thread type), and it does not close goals whose cells are not linear in the thread (tid.x % B) or have symbolic strides other than base + k * s; those stay open and are logged. Then: Tiling.clip (the cells w bytes apart clipped to an extent are a tiling of the thread numbers) and Elem.Own.owned (MojoProof/Sym/Race.lean) give hO for every trace, launch, output block, cell width, cells apart and extent from two trace premises (every access owned, accesses to out end by the extent); mojo_race proves it (vadd_hO, MojoProofTest/Race.lean:90); hX needs no Launch.index_inj for that tile map |
fixed for hO (eae44b6) and for hX on one-dimensional launches (6dbf84a); open for other cells and tilings |
hX: Launch.thread_eq_of_index (MojoProof/Sym/Race.lean), on every valid launch whose grid and blocks are one-dimensional, the global index determines the thread, so mojo_race proves hX for the tile map through the index (test vadd_hX_index); open: hX for two- and three-dimensional launches, cells not linear in the thread (tid.x % B, symbolic strides other than base + k * s), another tiling or tile map, and the two trace premises from a run (next step 3) |
| B270 | MojoProof/LLVM/Quote.lean:51-104 | finding | The design assumption "the derive handler does not quote nested inductive types" is false on Lean v4.36: core's deriving ToExpr handles Ty, MD and Value/TValue and gives the same Expr as the hand quoters on all 70 importing corpus programs |
fixed (f8a0f3d) | MojoProof/LLVM/Quote.lean uses core's derived ToExpr instances, the hand quoters are deleted and MojoProofTest/ToExpr.lean with them; built with every importer |
| B280 | vadd.sound_start's premise hS (MojoProof/Kernels/Vadd.lean:612 at dd81d72) |
high (kernel theorem) | The all-launch vadd theorem assumed the start facts hS (argument registers, readable byval copies distinct from out) and three Mem.Fits premises outside Map2.Pre, and had no instance with every premise discharged, so it was not shown satisfiable |
fixed (2dab0e8, 8aa7a60, e90644d) | the start facts come from launchArgs for every program (MojoProof/Sym/Start.lean, MojoProof/Sym/Kernel.lean); vadd.correct (generated by mojo_kernel) has no start or fits premise; instance correct23 (MojoProofTest/Kernel.lean): 2 blocks of 3 threads, n = 5, nonconstant inputs, Map2.pre_mem's memory, every choice and oracle |
| B281 | MojoProof/Kernels/Vadd.lean and the tactics | high (hand lines) | vector_addition's correctness rested on 498 hand-written per-kernel lines after the clauses (319 tactic lines), vadd.vals0, vadd.vals1, vadd.elem0, vadd.elem1 and vadd.ret among them |
fixed (with B308, da9b07d: 0 hand-written lines after the clauses) | mojo_vals (f0838d5, MojoProof/Sym/Vals.lean) and mojo_ret (831eca2, MojoProof/Sym/Ops.lean), tests MojoProofTest/Vals.lean and Ops.lean with open-goal twins; merged in 9d8d0bb, b3577cf; Kernel.sound_map2 (8aa7a60) and mojo_kernel's map2 clause (f6467b9) generate n.argTy, n.argTail, n.ret and n.correct |
| B282 | cnt_run (MojoProofTest/SymLoop.lean:452 at dd81d72, :508 now) |
medium (docs vs. statement) | The docstring promised every output cell readable in the final memory, but the conclusion proved the loads on me, before cleanup f.allocas; with f.allocas = [b] the return kills the cell |
fixed (6b064a4) | cnt_run takes b ∉ f.allocas and proves the loads on the endpoint of Runs through Mem.foldl_setLive_load (MojoProof/Sym/Loop.lean, every memory, list and load outside the list); cnt_run_outC; docs/proofs/loop.md |
| B283 | Block.sound_retI_rel (MojoProof/Sym/Payload.lean:997 at dd81d72) |
medium (scope) | It related the memories before the return's cleanup, not the two .done memories; frames differing only in allocas ([] and [b]) break Block.SkelEq after the return |
fixed (179624a) | the premise ha : f₁.allocas = f₂.allocas and the conclusion on the returned memories, through Mem.foldl_setLive_skel (MojoProof/Sem/Skeleton.lean); twin allocasMem/allocas_twin; docs/proofs/payload.md |
| B284 | Valuation.after_mem_fold (MojoProof/Sym/Obl.lean:476) and vadd.rowMajor_k (MojoProof/Kernels/Vadd.lean:140) at dd81d72 |
low (duplicate reasoning) | after_mem_fold repeated Valuation.after_mem (MojoProof/Sym/Kernel.lean), and vadd.rowMajor_k repeated rowMajor_one's specialization |
fixed (a65314d; 7c5ee3d) | after_mem_fold is a one-line corollary of after_mem; vadd.rowMajor_k is deleted |
| B285 | MojoProofTest/Race.lean:6 and docs/proofs/race.md | low (docs) | They said every launch's thread k makes six accesses to element k, while vadd_owned proves ownership of a literal six-access list with no execution premise, count or 1-D restriction |
fixed (0065c9d) | the docs state the literal active-path template, for every launch and k, with no run, no k < n and no 1-D hypothesis (MojoProofTest/Race.lean) |
| B286 | Mem.Fits.addr (MojoProof/Sem/Precond.lean) |
low (unused, duplicate reasoning) | After a merge deleted Sym/Kernel.lean's copies, nothing used Mem.Fits.addr; the audit on the merged tree gave unused 1, and addr_buffer (MojoProof/Sym/Obl.lean) derives the same buffer addresses |
fixed (a merge) | Mem.Fits.addr deleted; Precond.lean's module docstring, docs/proofs/precond.md and docs/kernel.md no longer cite it; the gate's audit |
| B290 | Labels.MemOk (MojoProof/Sem/Labels.lean:161) against Valuation.LoadsOk/StoresOk |
gap (medium) | MemOk constrains the statement's pointer at each running thread of a reachable grid (Labels.MemAt), while LoadsOk and StoresOk constrain the summary term's pointer, so T3c's load and store facts had no bridge from the labels |
fixed (d8e5caa; 21323fe) | Ptrs.loadsOk (MojoProof/Sym/PtrMem.lean:67), Ptrs.storesOk (:91), Valuation.pathMem_of_ptrs (:117), Block.sound_pathMem (:141) and Labels.MemOk.steps (:158), for every program and path the checker accepts: LoadsOk and StoresOk along a path from Labels.MemNext at each step, and MemOk to MemNext along a thread's Steps; test store_pathMem. Before: Ptrs, PtrAt, SState.run_ptrs, Block.sound_ptrs, Block.sound_pathI_ptrs, Block.sound_path_ptrs (MojoProof/Sym/Block.lean): the pointer facts of every block and path the checker accepts; ptrs_loadsOk (MojoProofTest/SymRun.lean, now Ptrs.loadsOk) gave LoadsOk from Labels.MemNext; tests vadd21_ptrs, vadd21_memNext_twin |
| B305 | Elem.ret (MojoProof/Sym/Ops.lean:141) |
low (merge) | A proof unfolded Ret as Walk and Valuation.last; B149's restatement of Ret broke it on merge |
fixed (b3577cf) | the proof is Ret.of_walk hW hl hx hme (h _ _ hE hme), the statement unchanged |
| B306 | MojoProof/Kernels/Vadd.lean | low (counts) | Four set_option maxRecDepth 4000 in, two at dd81d72 (:177, :288) and two from merge b3577cf; none was needed |
fixed (184572b, 261ccae) | the repository's count is 1 (MojoProof/Sem/Float.lean:312, B143); see B336 |
| B307 | Elem.blocks_eq and vadd.vals0, vadd.vals1, vadd.elem0, vadd.elem1 |
low (unused) | Since b3577cf no library declaration used them; the four were named only in examples, which the audit does not see |
fixed (648cde3, da9b07d) | Elem.blocks_eq deleted (648cde3); the four deleted with the examples that named them (da9b07d); scripts/targets.txt drops them |
| B308 | vector_addition's hand-written per-kernel lines (MojoProof/Kernels/Vadd.lean) | gap (kernel theorem) | After B281's fix, 79 lines after the clauses (4 of them tactic lines) remained: vadd.vals0, vadd.vals1, vadd.elem0 and vadd.elem1, which neither vadd.ret nor vadd.correct uses; target 0 |
fixed (da9b07d) | after the clauses 0 lines and 0 tactic lines; the kernel-specific text is the 7-line specification vadd.bytes before the command and the command's five clauses (MojoProof/Kernels/Vadd.lean:64) |
| B309 | mojo_kernel's map2 clause and Kernel.sound_map2 (MojoProof/Sym/KernelCmd.lean, MojoProof/Sym/Kernel.lean) |
gap (scope) | They cover four parameters (%0 to %3, the count an i32) on launches with one block row and one thread row |
partly fixed (0f35073): Kernel.sound_mapN for any list of buffer inputs and any count width, Kernel.sound_map2 its corollary; open: the clause side (B527) and Launch.index_ops (B528) |
a list-of-buffers form, a count of any width, Launch.index_ops in place of index_oneDim (next step 2) |
| B320 | SState.stmt's call case (MojoProof/Sym/Checker.lean) |
gap (coverage) | call i64 @llvm.smax.i64 and @llvm.smin.i64 are refused (only calls with no arguments to a special register are admitted). This blocks the entry block of all 13 naive matmul kernels, all 34 layernorm kernels and 22 more of the 49 mgemm files: 378 smax and 71 smin calls, all scalar i64 |
fixed (db05496) | SNode.minmax, SState.stmt's two-argument call case for a declaration that P.intrinsics names minmax, the value by Sem's intMinMax, exec_minmax; tests SymSelect.entry_nodes, entry_covers, entry_twins, head_regs, head_unsigned, naive_refusals. The contraction-off family tests/corpus/mgemm_nocontract adds 10 naive kernels (23 in all) |
| B321 | SNode and SState.stmt (MojoProof/Sym/Term.lean, Checker.lean) |
gap (coverage) | There is no select node, so the naive latch %52's %55 = select i1 %53, i64 %16, i64 %54 is refused |
fixed (db05496) | SNode.select (integers), exec_select and the payload checks' arms (a payload condition makes a summary not oblivious); tests SymSelect.entry_*, head_*, head_payload, and naive_latch_refusal, now refused at statement 12 |
| B322 | docs/proofs/phi.md:75 and its Limits paragraph | low (docs) | :75 cited cnt_entry_covers, which 6b064a4 deleted, and the Limits paragraph said B182 is open; cited.py checks only Lean docstrings, so it reported 0 missing |
fixed (a merge) | :75 cites cnt_covers's entry path, and the Limits paragraph says coversTo (edge.md) needs only the taken edge's obligations; grep -n cnt_entry_covers docs/proofs/phi.md is empty |
| B323 | scripts/SymBench.lean and docs/automation.md's timing table | low (method) | SymBench's absolute times vary by up to about 2x with the box's load (mm67 14,553 ms against 7,571 ms), while a one-process A/B of the two checkers gave them equal within 4% | documented (ad8aad6) | rule: compare checker versions only inside one process |
| B324 | Runs.of_loop, Runs.of_loops (MojoProof/Sym/Loop.lean) |
gap (coverage) | One loop per thread: the exit path had to reach ret without another header, so loops in sequence and nested loops were not composed |
fixed (4c09ad8: loops in sequence; b4d3777 and c64e5e3: nested loops) | LoopSeg, LoopChain, coversChain, RetLs, Runs.of_chain, Runs.of_chains (every program, chain, trip counts and invariants), RetLs.of_rounds; Runs.of_loop and Runs.of_loops are one-line corollaries; tests cnt2_covers, cnt2_retLs, cnt2_run (n = 2, one memory), cnt2_twins (MojoProofTest/SymLoop.lean). Then: Chain (a run through loops in order to a last path, each loop's rounds a Chain through its nested loops), Block.sound_rounds (the one induction on the trip count), Chain.reach, Chain.of_iter and Chain.of_rounds (which replaces RetLs.of_rounds), for every program; Runs.of_chain, Runs.of_loop, Runs.of_chains and Runs.of_loops keep their statements and cover nested loops; tests nest_run (a function with two nested loops, built in the test) and nest_twins; open: loops in mojo_kernel (B383) |
| B325 | lines over 100 characters in the block checker's files (MojoProof/Sym/Block.lean:68, :299, :481, :632, :1923; Term.lean:205; MojoProofTest/Sym.lean:165, :170, :197; scripts/SymBench.lean :164 to :225; docs) | low (style) | The quality bar's line limit is 100 characters | fixed (84b79e1, 7aa13e6 for the prose; b6f2ec3 for the Lean files) | every Lean line of those files is at most 100 characters, wrapped with no statement change; the cited lines that moved are updated here and in docs/ |
| B335 | MojoProofTest/Vals.lean, Ops.lean and MojoProof/Sym/Vals.lean's module docs | low (gate) | cited.py reported 6 missing names (mojo_vals, mojo_ret, fn_0 twice, List.drop_eq_nil_of_le, List.drop_zero) from f0838d5 and 831eca2 on, so the gate's cited step would have been red |
fixed (4f74018; 261ccae) | python3 scripts/cited.py: 0 missing |
| B336 | MojoProofTest/Vals.lean, Ops.lean (5 options) and MojoProof/Kernels/Vadd.lean (4) | low (counts) | Nine set_option maxRecDepth 4000 in before the tactic calls were never needed; they were copied from the hand proofs |
fixed (4365774; 184572b) | built with no option and with all five at 128 |
| B337 | mojo_kernel (MojoProof/Sym/KernelCmd.lean) on a second kernel |
medium (counts) | Run in a library module on vector_multiply, mojo_kernel would add definitions equal to vector_addition's: vmul.b0, vmul.b2, vmul.b3 (= Kernels.vadd.b0, b2, b3, MojoProofTest/Vmul.lean), vmul.args (= Kernels.vadd.args) and the map2 clause's vmul.argTy, vmul.argTail: DUPDEF +6 |
fixed (eb319f7) | kernelDef (MojoProof/Sym/KernelCmd.lean): in a library module the command names an earlier definition of the same value (Quote.lean's share) instead of adding it; a test module still adds its own (MojoProofTest/Vmul.lean); vmul.correct (MojoProof/Kernels/Vmul.lean) uses vector_addition's six; the gate's audit (DUPDEF 0); since B345 (f298176) MojoProofTest/Vmul.lean declares none of them and uses the library's; aliases (vmul.b0 := vadd.b0) were rejected: they hide the duplicate from the audit |
| B338 | SState.stmt (MojoProof/Sym/Checker.lean) |
medium (coverage) | fmul contract, Mojo's default (contract=fast), is outside the fragment (if op == .fmul && fm.contract then none), so the default compile of vector_multiply's block %21, and every default-compiled float product, is refused by sym_summary and summarize |
fixed at block level (dff9159) | coversC admits fmul contract with its operand terms in the node (SNode.fbinP) and Block.soundC covers it; tests latch_covers, latch_twins, latch_prods (MojoProofTest/SymContract.lean); sym_summary and summarize still refuse it (B543); paths and loops are B548 |
| B339 | MojoProof/Sym/Obl.lean, Sym/Vals.lean, docs/tactics.md, docs/proofs/obl.md | low (docs) | They placed Mem.Fits in Sym/Kernel.lean (it is in Sem/Precond.lean, since cf2d7db); obl.md named the deleted Kernels.vadd.Walks; tactics.md presented vadd.ret as hand-written |
fixed (eae44b6) | cited.py 0 missing |
| B340 | MojoProof/Kernels/Vmul.lean and the gate's build step | low (gate) | The gate builds MojoProof MojoProofTest mojoproof_test, not the library MojoProofKernels, so a kernel module is built only when a test imports it; nothing imported Kernels/Vmul, and the audit on the merged tree stopped on its missing .olean |
fixed (a merge) | MojoProofTest/Vmul.lean imports MojoProof.Kernels.Vmul and checks b1 = Kernels.vmul.b1 and vmul.paths = Kernels.vmul.paths by rfl; the audit (10,757 declarations, all counts 0); a new kernel module needs a test that imports it |
| B341 | MojoProofTest/Vmul.lean (a test) (after the gate at 5393ae6) | low (duplicates) | The test defined vmul.argTy, vmul.argTail and vmul.bytes, equal to the library's Kernels.vadd.argTy, Kernels.vadd.argTail and Kernels.vmul.bytes (MojoProof/Kernels/Vmul.lean, written after the test); since B340 the module imports both. The audit does not see test modules, so DUPDEF stayed 0 |
fixed (after the gate) | the three are deleted and the tests use the library's; vmul_ret states Kernels.vmul.ret, and an example checks the two types equal by rfl, as MojoProofTest/Ops.lean does for vadd_ret (since B345, f298176, both are examples of type_of% @Kernels.vmul.ret and type_of% @Kernels.vadd.ret by mojo_ret); docs/tactics.md names Kernels.vmul.bytes, says vmul_ret's statement is checked, and its two test paragraphs are wrapped at 100 columns |
| B342 | Kernels.vadd.correct's instances (MojoProofTest/Kernel.lean) (after the gate at 5393ae6) |
low (instance) | The one instance correct23 has more threads than elements (6 threads, count 5), so the case of fewer threads than the count, where Elem.Out leaves the cells T ≤ i < n as the caller wrote them, had no instance |
fixed (after the gate) | correct12 (MojoProofTest/Kernel.lean): vadd.correct with every premise discharged on one block of 2 threads (L12, valid12) with count 5 and mem5, every address choice and oracle; README.md, docs/kernel.md, docs/proofs/README.md and docs/proofs/kernel.md name it |
| B343 | Ret (MojoProof/Sym/Kernel.lean:82) and RetI (MojoProof/Sym/Loop.lean:242), both at c5f682d |
medium (duplicates) | A merge left two definitions of one return predicate, with the same parameters and body (WalkI, a last exit .ret, the last block's effects succeed with a memory of Q). The audit's DUPDEF compared type and value, and each value names its own matcher (Ret.match_1, RetI.match_1), so DUPDEF stayed 0 |
fixed (cb86747) | Ret is in Sym/Block.lean after Block.sound_retI, the common dependency of Sym/Kernel.lean and Sym/Loop.lean, which use it; RetI is deleted. The audit's defKey (scripts/Audit.lean) renames the definition's own name and every auxiliary constant its value uses, directly or through another (constants under its name and matchers, which Lean shares between equal matches), before comparing. Probe: two copies of a match definition and two copies of a recursive one are found, copies that differ in one case are not |
| B344 | MojoProof/Sym/KernelCmd.lean:281 | low (command) | mojo_kernel returns before its map2 phase (:352) unless the function is a bare identifier and the program has no globals, so (Kernels.vadd.fn_0) or a program with globals skips a map2 clause with no error and no .ret or .correct. No false theorem |
fixed (772df8c) | mojo_kernel elaborates its kernel and takes the constant it denotes; with map2, a kernel that is not a constant or a program with globals is refused with an error that names the reason, and every check runs before anything is added, so a refused command declares nothing; tests (MojoProofTest/KernelCmd.lean, #guard_msgs): paren (a parenthesized kernel: its covers and correct), app_refused, globals_refused, and a check that refused commands declare nothing |
| B345 | the tests' declarations (MojoProofTest/*) (after B266) | low (duplicates) | Once the audit checks the tests too, 30 test definitions and 4 test theorems equal a library declaration or an earlier test's: Pending.w, Elementwise.l, Precond.f32, Precond.zV, Confluence.start_diamond; SymSched.launch2, KernelCmd.map2_twin.* (5), KernelCmd.loop_refused.b1; Sym.vadd4, vadd21, vadd30, vadd31, SymPhi.edgeB, SymPhi.done, SymLoop.c2X, cntX, c2E; Vals.b31, Vmul.* (9 definitions and vmul_ret), Obl.hand_nil, Ops.vadd_ret |
fixed (4e8597c; 772df8c; 6b5b308; f298176; B365) | the audit reports them apart as DUPDEF_tests and DUPTHM_tests, so the gate's DUPDEF and DUPTHM stay the library's (0, limit 0). Each lane's tests use the library's name or the earlier test's, or an example where they pin a statement, never an alias; B365 deletes the one duplicate the merge added. On the merged tree DUPDEF_tests is 0 and DUPTHM_tests 0 (30 and 4 at cb86747; 14,313 declarations, 11,570 of the library) |
| B346 | Kernel.map2_stable (MojoProof/Sym/Kernel.lean, abfcc80) (found by the gate at f4ae9f3) |
low (duplicates) | It repeated Kernel.map2_finEq's premises line for line (2 theorems, 37 lines, one near-duplicate cluster: the gate's near_dups count 1, limit 0), and its conclusion follows from map2_finEq's: a word FinEq to a finite word is equal to it |
fixed | deleted; the general FinEq.eq_of_isFinite (MojoProof/Sym/Kernel.lean) gives (iii) from (ii); vadd_stable and vmul_stable (MojoProofTest/Kernel.lean) keep their statements and are proved from vadd_finEq and vmul_finEq; near_dups.py: 0 clusters |
| B350 | Op.Total and Labels.stmtOk (MojoProof/Sem/Labels.lean) on rsqrt.approx |
gap (coverage) | rsqrt.approx had no Op.Total row: Labels.stmtOk returned false for it, so Grid.skel_six excluded every kernel with an rsqrt.approx call (82 calls in the corpus, none with fast-math flags), though rsqrt had a word on every operand |
fixed (3241315) | rsqrt (MojoProof/Sem/Float.lean) returns a word (the oracle's if it meets rsqrtOk, else FloatLib's Model.rSqrt of the flushed operand); rsqrtOk_of_rsqrt, rsqrt_toNatBits; rsqrt_skel (MojoProof/Sem/Skeleton.lean) and exec_call_skel's case; Labels.stmtOk's row is the maxnum row; tests approx_skel, rsqrt_ok and their twins |
| B351 | README.md:19, B16's row, scripts/targets.txt:14, docs/DEPENDENCIES.md, docs/deps/claims.tsv | low (docs) | After B350 they still named the deleted rsqrt_isSome |
fixed | README.md and B16 cite rsqrtOk_rSqrt and rsqrtOk_of_rsqrt; the target is deleted; the generated files are regenerated from the merged tree |
| B365 | MojoProofTest.Replay.mem4 (MojoProofTest/Replay.lean:122) (from merging 1690c0d) |
low (duplicates) | It equals MojoProofTest.Kernel.mem4 (MojoProofTest/Kernel.lean), which Replay.lean imports and opens: DUPDEF_tests +1 |
fixed | deleted; its uses resolve to Kernel.mem4 through the open; the audit: DUPDEF_tests 0 |
| B366 | MojoProofTest/Replay.lean's omit_cell, stale_out, swap_cells, zero_out, input_copy, short_unsafe |
low (overlap) | Not a syntactic duplicate: they refute the five canaries on the same launch as canaries_vadd (MojoProofTest/Kernel.lean, over Elem.canaries), and short_unsafe is twin_len's second conjunct on the same memory |
open | keep the checker's own tests, or derive them from canaries_vadd (List.mem of each probe) |
| B367 | Kernel.Sound.mono (MojoProof/Sym/Kernel.lean, a4a93ed) |
low (duplicates) | It was Kernel.Sound.map (MojoProof/Sem/Replay.lean) at f := some |
fixed (abfcc80) | deleted; Kernel.map2_min uses h.map (f := some) |
| B368 | vmul_real (MojoProofTest/Kernel.lean) |
low (spec) | It states each cell as Model.mul of the inputs' cells (x k * y k), not as TorchLean's tensor (x * y) k, as vadd_real does with (x + y) k: TorchLean's tensor * and Tensor.mul_apply are in TorchLean.Tensor.Arithmetic, which no module imports |
fixed (73fa83b) | vmul_real states each cell as TorchLean's (x * y) k, by Tensor.mul_apply (MojoProofTest/Kernel.lean imports TorchLean.Tensor.Arithmetic) |
| B380 | B102's row (docs/BUGS.md:109) | low (docs) | It cited Block.sound_pathI at MojoProof/Sym/Block.lean:1495; it was at :1833 at cb86747 and is at :1890 after B325 |
fixed | the row cites :1890 |
| B381 | Summary.oblivious (MojoProof/Sym/Payload.lean:206), SNode.payOk (:475) |
low (design hazard) | Their | _ => true arms accept every node kind not listed, so a new SNode constructor would pass the payload checks without being read (B147, B148) |
fixed (6d23147) | the node test of Summary.oblivious, SNode.payOk, SVal.baseIn and Cond.effsIn match every constructor, each with its reason; the other defaults are intended (SNode.factors) or match on types with no new constructor (SVal.prods, Exit.dest, Exit.pc, Valuation.into), and mojo_obl and mojo_vals throw on an unknown constructor; tests MojoProofTest/Payload.lean, PayloadRun.lean, SymSelect.head_payload |
| B382 | exitP (MojoProof/Sym/Obl.lean:1475-1498) |
gap (automation) | mojo_obl proves Exit.target only for br and cond; Exit.phi exits (every edge into a loop header) go to throwError, so it cannot discharge the Edge and WalkI premises of loop paths, and the loop tests use decide +kernel |
fixed for literal trip counts (53f6532) | exitP proves Exit.phi exits, so mojo_obl discharges the Edge and WalkI premises of loop paths; tests cnt_paths, cnt_entry, cnt_entry_open (MojoProofTest/Obl.lean). The loop clause's tactic does not call it yet, and a trip count that is a variable needs an induction |
| B383 | Chain.loop (MojoProof/Sym/Loop.lean) |
gap (automation) | A loop's invariant and trip count are data of Chain, so mojo_kernel cannot build RetLs without an invariant from the user; only hand-written invariants exist (cnt_retL) |
fixed (ebe4be9, b79345c) | the loop clause takes the invariant and trip count from the user and builds RetLs by Chain.loop; the kernel theorem is Kernel.sound_of_chains, with Kernel.sound_of_paths its corollary; tests cntk, loopK, loop_refused |
| B384 | docs/proofs/loop.md, docs/proofs/README.md, README.md, docs/kernel.md, docs/proofs/kernel.md | low (docs) | After B324 (b4d3777) they described RetLs as the recursive definition and cited RetLs.of_rounds (deleted, now Chain.of_rounds) and c2E (deleted, now cntE), with Loop.lean line numbers that moved |
fixed (bc5681b: docs/proofs/loop.md; the others in the merge) | |
| B385 | docs/proofs/ptrs.md, docs/proofs/README.md, B290's row | low (docs) | They cited ptrs_loadsOk (MojoProofTest/SymRun.lean:321), moved to Ptrs.loadsOk (MojoProof/Sym/PtrMem.lean:67) |
fixed (bc5681b: docs/proofs/ptrs.md; the others in the merge) | |
| B395 | admission (MojoProof/LLVM/Mutate.lean) |
low (harness) | Admission checks the import, the print and parse round trip and undefined locals, but not types or SSA dominance, so an ill-typed or non-dominating mutant can be admitted and then counts as unsupported or unclassified instead of malformed | open | |
| B396 | MojoProof/Kernels.lean's mojo_corpus line, MojoProofTest/SymPhi.lean:56 |
low (coverage) | The naive matmul is imported test-locally by MojoProofTest/SymPhi.lean, so it is not in Kernels.lean's mojo_corpus line (the test's copy would duplicate the library's, DUPDEF_tests); the full corpus is only checked by #mojo_corpus (MojoProofTest/Corpus.lean) |
open | add the naive matmul as naive to Kernels.lean's line, delete SymPhi.lean's mojo_import, and use Kernels.naive in MojoProofTest/SymPhi.lean, Kernel.lean and Payload.lean |
| B397 | mojo_rules_complete (MojoProof/Sym/RuleAttr.lean) |
low (check) | A rule's or refusal's case is text, so the check covers every constructor, not every case within a constructor (icmp on a float type) |
open | test MojoProofTest/Rule.lean |
| B398 | Ty's derived BEq (MojoProof/LLVM/Syntax.lean:27-37) |
low (automation) | The derived BEq of the nested inductive Ty (struct (fields : List Ty)) is compiled as partial, so the kernel cannot reduce Op equality, select or mutants; each certified kill therefore quotes its mutant with mojo_mutant |
open | a structural DecidableEq Ty, or BEq by recursion on the nested list; tests: MojoProofTest/Mutate.lean's mojo_mutant #guards |
| B399 | mojo_import … as … (MojoProof/LLVM/Quote.lean) |
low (syntax) | The command's syntax makes as a token in every module that imports Quote.lean, so as cannot be a binder name there (Mutate.lean's Op.atAttrs and Op.atHead name it ats) |
open | |
| B410 | the counts check of a release (scripts/counts.tsv) |
low (tooling) | The release check compared the audit's DUPDEF, DUPTHM, unused and equivalences counts with their limits, but not DUPDEF_tests and DUPTHM_tests, so a duplicate declaration in the tests could pass. | fixed (f234ffb) | scripts/counts.tsv lists DUPDEF_tests and DUPTHM_tests, both 0; the release check reads every row (the check script is not in this repository, B423) |
| B411 | docs/TRUST.md, items T3, T4, T6, T7, T13 | low (docs) | Five reasons were not true of the code: T3 said the corpus check compiles the sources again (scripts/corpus.py check only compares each file with its manifest row); T4 named the parser and printer but not the lexer, which the reading also trusts; T6 did not say what the digest is tested against; T7 did not say that block addresses go through the address choices and the float freedoms through Ctx.oracle, that a NaN result is any NaN, and that an operation on undef is unsupported rather than a choice; T13 did not say that the only admitted atomic is atomicrmw seq_cst at system scope (Stmt.checkAtomic) and that the parser refuses atomic loads and stores. |
fixed (73b39b4) | the item ids are unchanged |
| B412 | docs/proofs/README.md, the reading order | low (docs) | Items left out premises or scope: Confluent.one_run (its fourth conclusion), Grid.sound_of_one_run, sound_one, sound_returning, sound_ret_launch, Kernel.sound_of_paths, Kernel.sound_map2 (one oracle, every address choice), vadd.correct and its corollaries (their bounds), vadd_walk_launch, skel_lockstep (every reachable grid, not one run), skel_run (the pointer-byte premise) and skel_six (any payload with the trivial relation, not the unit payload). |
fixed (73b39b4) | each item checked against its statement and docstring |
| B413 | docs/proofs/README.md, docs/kernel.md, docs/proofs/kernel.md | low (docs) | The README cited "(a) to (d)" and "(i) to (iv)", labels docs/proofs/kernel.md no longer uses, and placed the checker in MojoProof/Sym without its module; docs/kernel.md and docs/proofs/kernel.md cited MojoProof/Sym/Obl.lean for lemmas now in OblLemmas.lean. |
fixed (73b39b4) | the checker's definitions point to MojoProof/Sym/Checker.lean and their proofs to Block.lean; the README says that the documents' own numbers (T2 to T5, W1 to W5) are not TRUST.md's items |
| B414 | docs/proofs/README.md, "Not proved" | low (docs) | The list lacked Labels.MemOk, the memory premise of Grid.skel_run and Grid.skel_six, which is not derived from the block checker's access terms. |
fixed (73b39b4) | |
| B415 | the docstring passes of MojoProof/Sem, MojoProof/LLVM and their tests | process | Part of the docstring pass of MojoProof/Sem was first drafted by unsupervised helper processes. Every such edit was checked against its declaration's statement before it was committed; the ones that misstated a premise or a scope were corrected (B425). Helper processes were also started for MojoProof/LLVM; they were stopped and none of their edits was committed. | closed | 5868709, 8abadd2 |
| B416 | the refusal of atomicrmw sub (Stmt.checkAtomic, MojoProof/Sem/Thread.lean) |
low (message) | The refusal a user sees named a plan decision ("not in decision 4's list"). | fixed (68ff08e) | it says "atomicrmw sub (not in the admitted operations)"; MojoProofTest/Eval.lean's atomic sub checks the text |
| B417 | MojoProofTest/Eval.lean, the labels of two vadd tile tests |
low (tests) | Two labels printed by lake test carried a bug id. |
fixed (5e545b7) | "vadd (written tiles)", "vadd (swapped tiles)" |
| B418 | docs/TRUST.md, T7 | low (docs) | T7 said the evaluator tests run the semantics on two kernels only. They run it on two corpus kernels (vector_addition, tiled_matmul) and on 93 small kernels written for single rules, and they compare with expected values, not with LLVM. |
fixed (919dff0) | T7 says so |
| B419 | the start's memory check (MojoProof/Sem/Grid.lean) | low (docs) | Its docstring did not parse. | fixed (68ff08e) | it says the check covers the fields of Mem.Closed except above and except the pointer bytes of blocks from next on |
| B420 | MojoProofTest/Eval.lean reviewTwoTests, reviewThreeTests, reviewFourTests; review_twin, review_labels |
low (names) | Test declaration names carry the word "review" from how the counterexamples were found; this release renames nothing. | fixed (6155a72, 6d23147) | paramAttrTests, intrinsicAttrTests, startMemTests, callAttrTests (MojoProofTest/Eval.lean); phi_payload_branch, phi_payload_labels (MojoProofTest/Payload.lean) |
| B421 | scripts/corpus.py, tests/corpus/MANIFEST.tsv |
low (docs) | A source kept in this repository was recorded with a prefix named after the project's internal workflow. | fixed (1fcf577) | the prefix is repo:<path>; CONTRIBUTING.md names it; python3 scripts/corpus.py check |
| B422 | README.md | low (docs) | The status line pointed at a file that is not in the repository. | fixed (4aca7f3) | the new README has no such line |
| B423 | scripts/counts.tsv, rows near_dups and width_families |
low (tooling) | They were counted by a near-duplicate checker that was not in this repository, so a clone could not check those two counts. | fixed | the checker is scripts/near_dups.py, and CONTRIBUTING.md gives its command; on this tree it prints 0 width families and 0 near-duplicate clusters |
| B424 | docs/proofs/kernel.md | low (docs) | It still had internal words after the docs/proofs pass. | fixed (c6d1a1f) | see B444 |
| B425 | MojoProof/Sem: Scope.retrace_ch, Replay.Found.broken, Confluence.lean's module docstring (bytes paragraph), phases_access, ofBitList_namesIn, floatLit_namesIn, Scope.ch |
low (docs) | The docstrings misstated what the declaration proves or holds: a premise left out, the wrong direction, or a scope wider than the statement. | fixed (5868709, 68ff08e) | each says what its statement says |
| B426 | docs/proofs: barrier-owned, layout-tiles, payload, schedule-owned, schedule | low (docs) | Headings and sentences were written as a plan ("Lemmas to prove first", "Still to give", "is to prove") over results that are proved, or over parts that are not. | fixed (a1396ac) | headings say what is there ("Lemmas used", "Instances and twins", "Not given here"); payload.md says T4 has no Lean statement and which steps are not proved |
| B427 | docs/proofs/README.md | low (docs) | Items claimed more than the theorems give: "for every kernel" where a result is for one program or a family, and T3c on the grid, which is proved on terms only. | fixed (8d41ce7) | the README is a reading order giving each result's scope, with a "Not proved" list |
| B428 | MojoProof/Sem/Buffer.lean, four try simp [← h]; MojoProof/Sem/Names.lean, six try (subst h; simp at hp) |
low (lint) | Ten linter.unusedTactic warnings, the same before and after the split of Closed.lean, which moved the six into Names.lean. |
fixed (c4724f8) | a closing tactic per case; the modules build with no unusedTactic warning |
| B429 | the internal-words check used for the release (outside this repository) | low (tooling) | It counts team, schedule and review words, bug ids, local paths and model names, not plan labels or history words, which the release also removes. | open | plan labels and history words were checked by a separate search |
| B430 | Elem.Out, Elem.cells (MojoProof/Sym/Kernel.lean) |
low (docs) | Elem.Out read as a description of every block; it constrains only the blocks the caller's memory m has. cells said block out holds the threads' bytes; it is m₀'s block with those bytes put in turn. |
fixed (06f67ab) | docstrings |
| B431 | Elem.Out.min (MojoProof/Sym/Kernel.lean) |
low (docs) | It said block out holds the bytes of all n threads, without "if m has it". |
fixed (06f67ab) | it says m's block with the bytes of threads 0 to n-1 put at their cells, if m has it |
| B432 | Kernel.map2_min (MojoProof/Sym/Kernel.lean) |
low (docs) | The heading was a plan label and spoke of a launch of T threads, while T is a free number in the statement; no scope. |
fixed (06f67ab) | the heading names the statement; it covers every kernel with such a theorem |
| B433 | Kernel.map2_real, Kernel.map2_finEq (MojoProof/Sym/Kernel.lean) |
low (docs) | Plan-label headings and no scope. | fixed (06f67ab) | plain headings; each covers every kernel with such a theorem |
| B434 | FinEq.eq_of_isFinite (MojoProof/Sym/Kernel.lean) |
low (docs) | Its heading claimed a fact about kernels for a lemma about two words. | fixed (06f67ab) | the heading states the lemma for every FloatLib format; the kernel consequence follows with Kernel.map2_finEq |
| B435 | Kernel.sound_elem (MojoProof/Sym/Kernel.lean) |
low (docs) | It said block out holds the bytes, without "if m has it", and gave no scope. |
fixed (06f67ab, 0a4ccf1) | it covers kernels whose threads each run one path without a cycle to ret; the per-thread Ret is the caller's premise |
| B436 | Kernel.sound_map2 (MojoProof/Sym/Kernel.lean) |
low (docs) | It did not say what it covers or which premises are left to the caller. | fixed (06f67ab, 0a4ccf1) | the family of kernels of this parameter shape at one NaN choice; H, the start at every choice and the codec are the caller's; mojo_kernel's map2 clause discharges them for one named kernel |
| B437 | Elem.mk (MojoProof/Sym/Kernel.lean), the option mojo_kernel.share (MojoProof/Sym/KernelCmd.lean) |
low (docs) | No docstrings. | fixed (06f67ab) | docstrings; the option's says when sharing applies |
| B438 | the docstrings mojo_kernel writes for n.ret and n.correct (MojoProof/Sym/KernelCmd.lean) |
low (docs) | They said "one block row and one thread row" (the premise is side 1 in y and z for grid and block), did not list Map2.Pre's premises, and did not say the theorem is about one kernel. |
fixed (06f67ab) | they list the premises and end "It covers this one kernel, at every launch and input that meet these premises" |
| B439 | the docstrings mojo_kernel writes for n.sound_of, n.starts, n.sound |
low (docs) | No scope; n.sound's list of remaining premises left out Mem.Closed. |
fixed (06f67ab) | each names its premises and says it covers this one kernel |
| B440 | MojoProof/Kernels/Vadd.lean, Vmul.lean (module docstrings) | low (docs) | Block out "holding" every thread's bytes; "valid one-dimensional launch" undefined; internal words and bug ids. |
fixed (06f67ab, 40edf82) | they say what the theorem covers, one kernel |
| B441 | MojoProof/Sym/KernelCmd.lean (module docstring) | low (docs) | History, "one block row and one thread row", and bug ids. | fixed (06f67ab, 40edf82) | it says what the command does and refuses |
| B442 | vmul_real, vadd_real (MojoProofTest/Kernel.lean) |
low (docs) | vmul_real's docstring did not say the theorem is cell by cell. |
fixed (466c5aa) | a finite output float at cell 4 k is the product of the inputs' cells k; vadd_real likewise for the sum |
| B443 | MojoProofTest/Kernel.lean, KernelCmd.lean, SymLaunch.lean (test docstrings) | low (docs) | twin_len claimed the complete precondition (mem4 fails one field of Map2.Pre); the module docstring called three corollaries "the general theorem"; plan labels in headings; paren.correct gave no scope. |
fixed (466c5aa) | docstrings |
| B444 | docs/kernel.md, docs/proofs/kernel.md | low (docs) | docs/proofs/kernel.md said vadd.correct holds for every program (it is about one kernel) and that the buffers are of n floats (at least n); docs/kernel.md had internal words, bug ids and history. |
fixed (c6d1a1f, 93a6d19, 9193e3b) | docs/kernel.md is the user's guide to mojo_kernel with the vector_addition example |
| B445 | Ptrs.loadsOk, Ptrs.storesOk (MojoProof/Sym/PtrMem.lean) |
low (docs) | The scope was "every program and block the checker accepts"; the theorems take the pointer facts Ptrs as a premise and hold for every valuation and summary whose pointer facts hold. |
fixed (523b712) | Block.sound_ptrs gives those facts for accepted blocks |
| B446 | docs/automation.md | low (docs) | It said Kernel.sound_of_paths takes Ret ∨ RetL per thread. It takes Ret, a loop-free path; a kernel with loops goes through Runs.of_loops or Runs.of_chains and Seq.start_sound_inv, and mojo_kernel refuses loops. |
fixed (cb23e7c) | |
| B447 | MojoProof/Sym/Loop.lean (module docstring) | low (docs) | It did not say what is left to hand proofs: the invariant and its preservation, termination (the trip count is a premise), and that the kernel theorem takes loop-free paths. | fixed (523b712) | |
| B448 | MojoProof/Sym/Term.lean (module docstring) | low (docs) | Its list of proved facts omitted vals_getElem?. |
fixed (523b712) | |
| B449 | scripts/SymBench.lean (header) | low (docs) | It gave a local build tool and log paths as the way to run the benchmark. | fixed (c2cf7a5) | lake env lean scripts/SymBench.lean from the repository root |
| B450 | Block.sound (MojoProof/Sym/Block.lean) |
low (docs) | The docstring sent the reader to the module docstring for its premises and scope. | fixed (523b712) | it states them: every program, block, position, conditions and summary that covers accepts, one thread, the conditions holding under the entry valuation |
| B451 | idx (MojoProofTest/SymPhi.lean) |
low (docs) | It did not say it gives a register number, or 0 for a name with none. | fixed (523b712) | |
| B452 | MojoProof/Sym/PtrMem.lean (title) | low (docs) | The title was a plan label. | fixed (523b712) | it says what the module gives: the memory premises of a path from the labelling's memory hypothesis |
| B453 | MojoProofTest/SymPhi.lean, the 19 declarations mojo_import adds |
gap (docs) | No docstrings. | fixed (7f9e30d) | mojo_import and mojo_corpus attach a docstring to what they declare |
| B454 | CONTRIBUTING.md, scripts/corpus.py (docstring) |
low (docs) | Both named a compile script that is not in the repository. | fixed (919dff0, 1fcf577) | they give mojo build --emit llvm --target-accelerator sm_80 |
| B455 | pointers to summarize, Summary, SState.stmt, SState.exitAt, SState.phiConds, SState.phiExit, coversTo |
low (docs) | After the checker's definitions moved from MojoProof/Sym/Block.lean to MojoProof/Sym/Checker.lean, several docstrings and docs/proofs pages still placed them in Block.lean. | fixed (b17acca, 55a0169) | Info.lean, Obl.lean, Rules.lean, Payload.lean, docs/proofs/payload.md, phi.md, edge.md |
| B456 | the statement dump used to check that a change keeps every statement (outside this repository) | low (tooling) | It prints types with binder names, and hygienic binder names carry the defining module, so moving a declaration with deriving DecidableEq or with structure-update notation to another module shows a change in a statement that is the same up to binder names. |
open | compare with the hygienic module names normalized (as done for this release), or with Expr.eqv |
| B457 | docs/proofs/back.md, edge.md, phi.md (first lines) | low (docs) | They cited test sections by bug id and carried internal words. | fixed (8d11bea, 55a0169) | they cite MojoProofTest/SymPhi.lean's sections by their headings |
| B458 | MojoProof/Sem/Spec.lean (module docstring); Grid.Sound.unit (MojoProof/Sem/Replay.lean) |
low (docs) | Spec said Grid.Sound is "the seven above" and the observation clause; it is the six predicates other than Grid.Faults and the observation clause. Grid.Sound.unit said it keeps "the first six fields"; it keeps safe, raceFree, kept, progress and terminates. |
fixed (d106839) | |
| B459 | MojoProof/Sem/Grid.lean (module docstring, shared, Grid.start, Grid.fire); MojoProof/Sem/Thread.lean (step, launchArgs) |
low (docs) | The fault cases were incomplete or out of order: an external constant shared global, a repeated block number, the order of the kernel check and the memory check, collective calls waiting at another call, which undefined operands are undefined behavior, ldmatrix, mma and ill-typed collective calls, step's faults, launchArgs' unsupported cases. |
fixed (d106839) | |
| B460 | addDef (MojoProof/LLVM/Quote.lean), behind mojo_import and mojo_corpus |
medium | The definitions the commands add had no equation lemmas enabled, so in the module that runs the command rw [n] and simp only [n] failed ("enableRealizationsForConst must be called"), and mojo_kernel on a kernel imported in the same file failed; the README's quick start hit it. The library's kernels were not affected, as their theorems are in other modules than the import. |
fixed (7f9e30d) | addDef calls enableRealizationsForConst; test in MojoProofTest/Corpus.lean |
| B461 | classify (MojoProof/LLVM/Mutate.lean) |
medium | A mutant counts as "killed, certified" when its index is in the caller's certified list, and nothing in the harness ties that list to a theorem. |
partly fixed (e182fef, 6613d79): mojo_kills checks, for each index it lists, a theorem whose type is that mutant's refutation; run and classify still accept a hand-written list (B558) |
mojo_kills and its five failing #guard_msgs cases (MojoProofTest/Mutate.lean) |
| B462 | admission, gepIdx, gepTy (MojoProof/LLVM/Mutate.lean); docs/tactics.md |
medium | Admission accepted a mutated getelementptr whose indices do not index its source type (a struct index past its fields), and docs/tactics.md said the operators preserve types. |
fixed (79bc305, 42592e8) | admission refuses such a getelementptr; test in MojoProofTest/Mutate.lean |
| B463 | corpusPlan (MojoProof/LLVM/Corpus.lean) |
low | as on a directory checked the refusal list against the directory argument, not the selected row's path, and then declared nothing. |
fixed (7f9e30d) | it checks the selected row; test in MojoProofTest/Corpus.lean |
| B464 | scripts/corpus.py add |
low | add records the pinned Mojo version (MOJO) in every row it adds, whatever compiler the user ran, so a row compiled with another Mojo gets a wrong provenance. The README says the corpus was compiled with the pinned version and that corpus.py records it. |
fixed (bcc49fd) | corpus.py add --mojo VERSION records the version given (default the pinned one); corpus.py check passes on the manifest |
| B465 | the statement dump used to check that a change keeps every statement (outside this repository) | low (tooling) | Moving a declaration to another module changes the hygienic binder names in its dumped type; same as B456. | open | as B456 |
| B466 | docs/kernel.md, docs/proofs/precond.md, docs/proofs/kernel.md, docs/proofs/obl.md, docs/tactics.md | low (docs) | After the general lemmas behind mojo_obl moved to MojoProof/Sym/OblLemmas.lean, these cited MojoProof/Sym/Obl.lean for addr_buffer, SNode.eval_sreg, gep_buffer, load_buffer, SVal.eval_reg and SVal.eval_node. |
fixed (0471c3e, b17acca, 73b39b4, f33cb0b) | |
| B467 | docs/UPSTREAM.md, the standard-library item on exp_approx_f32's cubic |
low (upstream) | Marked a duplicate of the open Mojo issue #2124, which the recheck describes as the unclamped ldexp fallback; whether #2124 also covers the cubic's error on its domain (B131) is not checked. |
open, before anything is filed | the entry says so |
| B475 | MojoProof/Sem/Trace.lean (sound_returning, sound_one); Buffer.holds_put; Elementwise.holds_writes, tensor_writes; Float.lean and SkelStep.lean module docstrings; Grid.skel_run |
low (docs) | Premises or relations were missing: the relation R and the race and !invariant.load premises of sound_returning, the codec premise Layout.Codec, contract_error's IsProd, rsqrtNear_iff's positive operand, Grid.advance_skel's premises; Grid.skel_run quantifies over every relation the observation satisfies. |
fixed (d106839) | |
| B476 | MojoProof/Sem/Bad.lean (RaceEnabled, Step.raceEnabled, Step.advance_fault, module docstring) |
low (docs) | RaceEnabled did not say it includes a trace already racy; "the race" for "a race"; "but for faults" for "without faults"; Step.advance_fault omitted the premise on the other threads' numbers; start_reach_bad* did not say the step is from every grid reachable from the start. |
fixed (d106839) | |
| B477 | GPUProof/OneRun.lean (module docstring; MojoProof/Sem/OneRun.lean until dfc811f); Spec.lean (Grid.RaceFree); SkelStep.lean (Grid.FramesOk, Grid.advance_framesOk) |
low (docs) | Wrong scopes: Path.lift gives a run of the same length of the steps between reachable states; the happens-before ordering follows from no race; Grid.FramesOk takes no contexts; Grid.advance_framesOk is about Grid.advance, not every grid step. |
fixed (d106839) | |
| B478 | Grid.Lockstep.step (MojoProof/Sem/Lockstep.lean) |
low (docs) | It said the matching step is of the same thread and kind; the statement gives only some step to a related grid (the proof does take one of the same thread and kind). | fixed (d106839) | |
| B479 | MojoProof/Sem/Eval.lean (module docstring), Access.races, Access.raceWith, Mem.alloc_addr, Mem.load, Frame.Skel.any_fn |
low (docs) | Smaller imprecisions: the nuw rule's truncation and partial sum, what sync records, "below the pointer widths", Mem.load's check and unsupported case, "one list's frames" for "some frame". |
fixed (d106839) | |
| B480 | MojoProof/Sem/Frame.lean (module docstring) | low (docs) | It said a step reads the memory only at the blocks it names and the bytes of its pending reads; step_agree's hypothesis also covers next, the alloca's number, and the existence, shape, read-only flag and owner of each named block. |
fixed (b4e2d8d) | |
| B481 | MojoProof/Sem/Frame.lean (module docstring) | low (docs) | It listed as not proved three results that MojoProof/Sem/Confluence.lean proves (Grid.advance_agree, Grid.advance_agree_other, Grid.advance_comm). |
fixed (b4e2d8d) | it points to them |
| B482 | MojoProof/Sem/Closed.lean (module docstring, Grid.start_reach_closed) |
low (docs) | They gave the start's premise as every pointer byte of a block; Mem.BytesIn is about the bytes below the block's size. |
fixed (8c6b99d) | |
| B483 | MojoProof/Sem/Closed.lean (module docstring) | low (docs) | "One lemma per operation", while the cast and getelementptr lemmas are in MojoProof/Sem/Schedule.lean. |
fixed (8c6b99d) | |
| B484 | MojoProof/Sem/Closed.lean, Frame.lean, Writes.lean | low (docs) | 81 public declarations had no docstring, and plan labels stood in docstrings without words. | fixed (9ab73e7, b4e2d8d, 8c6b99d) | every declaration has a docstring (B113) |
| B485 | Mem.load_namesIn (MojoProof/Sem/Names.lean) |
low (docs) | The docstring said the loaded value names only numbers of S "(and null)"; the statement has the premise S 0. |
fixed (3e0a103) | it states the premise |
| B486 | MojoProof/Sym/OblLemmas.lean | low (docs) | The buffer bound said 2 ^ w for 2 ^ (l.ptr 0).1, the generic pointer width; gep_buffer did not give its range premises; SEff.apply_store_ex said the effect is the semantics' store (it shows the effect succeeds when that store does); eval_fbin_ofFloat lacked its fast-math and fmul contract premises; eval_gep_at covers one index; Valuation.after_regs_some gives the register its operand's value. |
fixed (b17acca) | |
| B487 | the docstrings of mojo_obl, mojo_vals, mojo_ret, mojo_bounds |
low (docs) | They did not say which node kinds and exits mojo_obl handles and what stays open, when mojo_vals and mojo_ret fail, that mojo_ret skips at most one thread; mojo_bounds' search listed its steps in the wrong order and its lowering list lacked lt_def, le_def, decide_eq_true_eq. |
fixed (b17acca) | |
| B488 | Shfl (MojoProof/LLVM/Intrinsic.lean) |
low (docs) | The docstrings named the wrong operand: the lane or offset is b, the third argument, and c is the clamp and segment mask; idx reads lane b within the lane's segment (shflSource). |
fixed (b17acca) | |
| B489 | MojoProof/Sym/Vals.lean, MojoProof/Util/SHA256.lean, MojoProof/LLVM/Lexer.lean, MojoProof/Sym/RuleAttr.lean | low (docs) | Vals placed Elem.Steps and Ret in Kernel.lean (they are in Ops.lean and Block.lean); SHA256 said it is tested against sha256sum (the tests use three FIPS 180-4 digests and the corpus manifest's digests); the lexer and FloatLit.hex did not name the K, L and M prefixes; RuleAttr did not say it does not check what a rule's lemma states. |
fixed (b17acca) | |
| B490 | docs/tactics.md, mojo_bounds |
low (docs) | The lowering list named 9 of the tactic's 13 lemmas, and step 4 read as if the product facts were added after the conditions are decided; search adds them after the remainders are rewritten and before any refutation, decision or split. |
fixed (c166054) | |
| B491 | docs/tactics.md, mojo_obl and mojo_vals |
low (docs) | Their "Not covered" lists named statements the block checker refuses (fcmp, select, float casts, other calls, alloca, barriers), which never become nodes, and left out what does stay open: the integer operators other than add and mul and the comparisons other than slt and ult. mojo_obl's steps left out Launch.sreg_bound; the guide did not say when mojo_vals fails. |
fixed (c166054) | |
| B492 | docs/tactics.md, mojo_vals and mojo_ret |
low (docs) | They placed Ret and the Elem steps in Sym/Kernel.lean (they are in Block.lean and Ops.lean), described Elem and Ret incompletely, gave vadd.ret's second path as %4 → %31 (it is %4 → %30 → %31), called loops WalkI (loops are RetL; WalkI is the phi edges) and did not say when mojo_ret fails. |
fixed (c166054) | |
| B493 | docs/tactics.md, the introduction and the rule table | low (docs) | The guide named mojo_import and mojo_kernel without describing them, and the rule table's 19, 5 and 17 read as refusal counts; they are the constructor totals of Inst, Term and Intrinsic, of which the rules cover 9, 3 and 1. |
fixed (c166054) | a mojo_import section and a mojo_kernel section that points to docs/kernel.md |
| B494 | docs/tactics.md, the mutation harness | low (docs) | It said gepTy only leaves an index into a scalar (it can also name a field a struct lacks), and that mojo_mutant checks that the mutant evaluates back (it also checks the printed tokens). |
fixed (c166054) | the paragraph says why the other operators keep the types |
| B495 | mojo_mutant (MojoProof/LLVM/Mutate.lean), through quoteProgram (MojoProof/LLVM/Quote.lean) |
low (docs) | mojo_mutant passes s!"mutant {name}" as the file path, so the docstrings of the definitions it adds cite the corpus file tests/corpus/mutant <name>, which does not exist. Only the tests use the command. |
fixed (5022d69, 27ba0b2) | the definitions mojo_mutant adds cite the mutant (operator, index, the program it mutates, the printed program's digest); the corpus constants keep citing their file; the docstring #guard_msgs in MojoProofTest/Mutate.lean |
| B496 | scripts/trust.tsv, item T6 |
low (docs) | T6 (SHA-256) was anchored only at MojoProof.Util.SHA256, which the kernel theorems do not reach, so docs/DEPENDENCIES.md listed vadd.correct, vadd.sound, vmul.correct and vmul.sound without T6, while the link from the corpus file to the term they are about rests on mojo_import's digest check. |
fixed (519d80c) | the row T6 module MojoProof.Kernels, next to T2, T3 and T4's |
| B497 | docs/BUGS.md, older rows | low (docs) | Some rows still named plan labels that point into the plan rather than into the documents: milestones (A2, A3, A4, A8, G8) and priorities (P2 to P5). The labels of docs/proofs (T2 to T5, W1 to W5, L1b to L12) are explained there and stay. | fixed | each label is replaced by what it stood for (the semantics, tensor cores, layer norm, loops, the kernel theorem, matmul, vector addition, the proof); this row is the only one that names them |
| B498 | MojoProofTest.Mutate.astra (MojoProofTest/Mutate.lean:44), cited in the module docstring and docs/tactics.md |
low (names) | The test table of four operators is named after a reviewer; the internal-words check (outside this repository) matches model names case-sensitively, so it missed the lowercase name. The release renamed nothing. | fixed (a369374) | renamed fourOps, with its citations |
| B499 | MojoProof/Sem/Schedule.lean, MojoProofTest/Atomics.lean |
medium (interface) | When the tail of Schedule.lean was split out into Sem/Rmw.lean, Schedule.lean stopped importing it, so a file that imported Schedule for rmw_comm and the other declarations of that tail no longer had them, and the test imported Rmw.lean directly, so it did not test Schedule's interface. |
fixed (7f9aa9c) | Schedule.lean imports Rmw.lean; MojoProofTest/Atomics.lean imports only Schedule and builds |
| B500 | README.md, the skeleton-transfer line | medium (docs) | The line listed the premises of Grid.skel_six as no fault and no race, leaving out that the run breaks no !invariant.load promise (¬ z₁.Bad L c₁), so it claimed the result for runs the theorem does not cover. |
fixed (7f9aa9c) | the line states the premise |
| B509 | docs/BUGS.md rows B41, B46, B53, B54 | low (docs) | They cited the Eval test lists reviewThreeTests and reviewFourTests, which 6155a72 renamed; no declaration had these names. |
fixed | B41 cites intrinsicAttrTests, B46 startMemTests, B53 and B54 callAttrTests |
| B510 | FloatLib Model.cast |
low (upstream) | FloatLib proves that a same-format cast is the identity on finite words (Model.cast_self_of_finite), but has no lemma for every non-NaN word (an infinity needs Model.cast unfolded and Model.eq_nativeOverflow_of_isInfinite), nor one that a NaN casts to a NaN. |
worked around (b975335): cast_self_nanEq (MojoProof/Sem/Dot.lean) |
tests dot_inOrder_inst, dot_nan_twin; with such a FloatLib lemma cast_self_nanEq would be its corollary |
| B511 | Grid.Done (MojoProof/Sem/Spec.lean:158) used from another module |
low (proof usability) | Grid.Done is g.threads.all (· matches .done) = true; the same predicate written in another module elaborates to a different matcher, so simp cannot rewrite one into the other ("Dependent elimination failed"). |
worked around (909483d): definitional unfolding in kernel_six_twin |
test kernel_six_twin; a lemma Grid.Done ↔ ∀ t ∈ g.threads, t matches .done, or a Bool function that Done is defined from, would avoid it |
| B512 | TorchLean Tensor.get2_map (TorchLean/Tensor/Arithmetic.lean:111) |
low (upstream, proof usability) | get2_map is stated only for f : α → α, so an entry of Tensor.map Model.toReal A has no get2 lemma; the heterogeneous form exists only for one map of TorchLean's verification section (get2_map_toReal). |
worked around (d447a8f): matmul_cell_real and matVec_cell_real unfold Tensor.get2 and use Tensor.unstack_map and Tensor.getScalar_map |
test matmul_real_inst; a get2_map for f : α → β would make it one rewrite |
| B513 | scripts/cited.py | low (tooling) | It resolves a backticked name in a module docstring only against MojoProof/ and MojoProofTest/, so a docstring that cites a dependency's lemma (TorchLean's Tensor.get2_matmul) is reported as citing a missing name, and such a lemma can be cited only without backticks, unchecked. |
open (worked around in a29e6c3) | resolve against the dependencies' declarations too |
| B514 | Labels.MemOk and its decision procedure every (MojoProofTest/ScheduleOwned.lean:100); the H premise of Kernel.skel_sound (MojoProof/Sem/SkelStep.lean) |
medium (proof tooling) | Labels.MemOk quantifies over every grid reachable from the start, and every walks every interleaving with no merging (C(2n, n) paths for two threads of n steps), so MemOk cannot be closed by evaluation at the six-thread launch whose run g2_vadd evaluates. It is the one premise of Kernel.skel_sound missing for vector_addition there, so the skeleton route closes only at launches of few threads. |
fixed in 6b2c2be and af2b8f4: memOk23 is Labels.MemOk at L23 by Labels.MemOk.of_threads, with the invariant EqOff 3 (the memory agrees with mem5 off block 3) and each thread's run alone checked by the kernel (check23_ok); with the run to the end checked too (runCheck23_ok), Kernel.skel_sound gives skel_vadd23, skel_vadd's statement at L23 (six threads) for every memory that differs from mem5 only in the payload's data bytes. 38 declarations in the test module, no library change; lake build MojoProofTest.SkelVadd23 peaks at 4.27 GB |
MojoProofTest/SkelVadd23.lean memOk23, skel_vadd23; memCheck_ok (one thread); the counts that rule out every at L23: docs/proofs/skel-kernel.md |
| B515 | decide +kernel (Lean v4.36.0) on a Boolean whose definition failed to elaborate |
low (resource) | One decide +kernel over a combined memory and run check whose definition had failed to elaborate (unknown identifiers) ran 65 s and reached 21.5 GB peak RSS before the kernel reported "application type mismatch". With the names fixed and the check split in two, both decides take 3.3 GB; which change removed the growth was not isolated. |
worked around (35eda1a, two decides) | none; a decide +kernel over a definition with an error could be refused at elaboration |
| B516 | Elem.Out.outBelow (MojoProof/Sym/Kernel.lean:1202) and Elem.Out.of_outBelow (:1256) |
low (proof usability) | Only the direction from Elem.Out to Elem.outBelow exists. Elem.Out equates whole blocks, whose bytes are functions, so the kernel cannot decide it at a concrete run, and Kernel.Sound.of_blocks cannot reach vector_addition's Elem.Out from a run. |
fixed (aa83b5d): Elem.Out.of_outBelow, the converse, from outBelow over every block of the memory and agreement from offset K on |
out_rev (every premise closed) and out_rev_twin (the agreement premise is needed), MojoProofTest/Kernel.lean; out_of_outV (MojoProofTest/SkelVadd.lean) by it |
| B517 | lakefile.lean:31 (input_dir corpus, path := "tests/corpus", no filter), needs := #[corpus] of MojoProofKernels (:45) and MojoProofTest (:55) |
low (build cost) | Every file under tests/corpus is in the input trace of the kernel and test libraries, including the non-IR files NOTICE and LICENSE-APACHE-LLVM, so an edit of NOTICE rebuilds both libraries although no kernel file changed. | open | an input filter for *.ll and the two TSV files, or NOTICE and the license text moved out of the directory |
| B518 | tests/corpus/MANIFEST.tsv, column source |
low (provenance) | The column records only the compiled entry file, often a test file such as max/kernels/test/gpu/linalg/test_multistage_gemm_kernel.mojo; the library files that define the kernel code in the IR (e.g. matmul_kernel_naive in max/kernels/src/linalg/matmul/gpu/init.mojo) are not recorded. NOTICE covers them by tree and license, not per file. |
fixed (3011053): the manifest column lib, the library files that define the kernel, from the sources' imports (corpus.py add --lib) |
corpus.py check flags BADLIB; the gemv rows name max/kernels/src/linalg/gemv.mojo; how lib is read is B639 |
| B519 | scripts/corpus.py add |
low (license) | add does not read the source's license header, so CONTRIBUTING's rule that the corpus takes only Apache-LLVM sources is not enforced: a source under max/mojo/max/_driver/max_license/ would be accepted, and check would pass. |
fixed (3011053): add and import refuse a source without the Apache-LLVM line, and check flags it UNLICENSED |
python3 scripts/corpus.py check: 113 files, 0 problems; CONTRIBUTING.md, step 2 |
| B520 | docs/automation.md:250-252 and :303 | low (docs) | It said mojo_kernel refuses a kernel with a loop, naming the block, and sent the reader of a kernel with loops to Runs.of_loops; the command takes loop clauses and gives the kernel theorem through loops in sequence (Kernel.sound_of_chains). |
fixed (ed606b4, 376a6fc) | the kernel theorem section and the checklist's last step name Kernel.sound_of_chains and the loop clause |
| B524 | the loop clause's kernel theorem on the counting loop cnt (MojoProofTest/SymLoop.lean, MojoProofTest/KernelCmd.lean) |
gap (tests) | cntk.sound_loop had no kernel instance: cnt has no parameters, so no start frame holds %n and %p. |
fixed (3e91b1b) | mojo_kernel loopK on cntK (cnt with %n and %p as parameters) with the invariant lemmas invB_* (MojoProofTest/KernelLoop.lean); kernelK is a corollary of loopK.sound_loop |
| B525 | mojo_kernel's loop clause (MojoProof/Sym/KernelCmd.lean) |
gap (scope) | The clause covered one loop (one path in, one round, one path out); two loops in sequence (cnt2) or nested loops (nest, MojoProofTest/SymLoop.lean) were refused. |
loops in sequence fixed (40430f4); nested loops open | a clause per loop: tests cnt2k, order_twin, cnt2_open; nest is still refused |
| B526 | mojo_kernel's reads and writes clauses |
gap (automation) | They take only byval buffer structs, so a raw pointer parameter (ptr addrspace(1)) could not be named and no n.args or n.starts were generated for it. |
fixed (c243928) | the pointers clause (argument .ptr ⟨b, 0⟩), test ptr_twin; used by loopK (3e91b1b) |
| B527 | Kernel.sound_mapN (MojoProof/Sym/Kernel.lean) and the map2 clause |
gap (scope) | Kernel.sound_mapN has no instance besides the three-struct i32 case: the map2 clause generates only that shape, because its per-thread Ret comes from mojo_ret, which handles %0 to %3, and tests/corpus has no unary or ternary elementwise kernel. |
open | a mapN clause once mojo_ret takes a list of inputs, and a corpus kernel of another arity |
| B528 | the map2 clause's n.ret and n.correct (MojoProof/Sym/KernelCmd.lean) |
gap (scope) | They keep the premises that the grid and the block have side 1 in y and z, because mojo_obl uses Launch.index_oneDim. For vector_addition and vector_multiply the premise is likely needed (both index by x alone, so on a launch with two rows two threads store one cell), but no twin theorem shows it. |
fixed: dc08b39: twin_2d covers the four valid launches of rows2, each with two rows in one of grid y, grid z, block y and block z; on each, vector_addition races (Kernel.replay_unsafe), so each of vadd.correct's four launch premises is needed. The statement a 2-D clause would generate for the naive matmul (naive.correct) and its four blockers are in docs/proofs/kernel.md, "The 2-D clause of mojo_kernel, and what blocks it" (02e537f); Launch.apart_xy (dbedab9) gives its cell premise. The plan says where the side-1 premises enter mojo_obl (launchFacts, only the index equation of Launch.index_oneDim), why map2 needs them (twin_2d), and that a 2-D clause would use L.index k .x and .y with Launch.apart_xy (2c2d286); 18b3ad3: the library theorem the clause calls, Kernel.sound_mat (MojoProof/Sym/KernelMat.lean), the kernel theorem of every kernel with three byval structs and three i32 sizes, with 2-D cells, from the threads' runs in and out of bounds (docs/proofs/kernel.md, statement 13). 88abbe1: the 2-D clause mat paths chains of mojo_kernel (elabMat) generates n.names, n.starts on Mat.args and n.sound_mat, Kernel.sound_mat with every premise of the program discharged and the threads' runs as named premises; NaiveSound.naive_sound is naive.sound_mat, the mat clause's call, with the At repack (B765). The map2 clause's side-1 premises in y are needed (twin_2d), so they are not a gap; the clause generates a matmul thread's run out of bounds (n.out) and, with inv (acc25ff), its run in bounds from a loop invariant (n.runInv) and the kernel theorem from that invariant (n.sound_inv). The invariant's three premises for naive are B877, B852 and B731 |
Launch.index_ops in place of index_oneDim, and a two-row twin; MojoProofTest/NaiveSound.lean section Clause: the open-goal tests of naive.sound_mat and naive.sound_inv and the refusals |
| B529 | sym_summary (MojoProof/Sym/Command.lean, elabSymSummary) |
low (automation) | It does not record its definitions in MojoProof.LLVM.defs, so mojo_kernel cannot reuse them: on a kernel whose blocks sym_summary already summarized it adds second definitions of one value (DUPDEF_tests 4 at 0f35073). Two test run_cmds record them by hand (MojoProofTest/KernelCmd.lean, MojoProofTest/KernelLoop.lean). |
fixed (bcb972b, and the two run_cmds deleted in ea3f9b7) |
MojoProofTest/Vals.lean (b21 recorded, share names it); MojoProofTest/KernelCmd.lean and KernelLoop.lean build without the run_cmds, DUPDEF_tests 0 |
| B530 | scripts/cited.py, OTHER |
low (tooling) | It listed the schematic n.sound_of but not the loop clause's n.sound_loop and n.loop, so a module docstring citing them failed the check (MojoProof/Sym/KernelCmd.lean, MojoProofTest/KernelLoop.lean). |
fixed | n.sound_loop, n.loop (and the command mojo_kills) in OTHER; python3 scripts/cited.py |
| B531 | MojoProof/Sym/Loop.lean:105-107, README.md, docs/automation.md:236-238 | low (docs) | They said mojo_kernel refuses every loop; it takes loops in sequence, with a loop clause each, and refuses nested loops and a loop without a clause. |
fixed (ed606b4, 376a6fc) | the three texts say what the loop clause covers |
| B532 | the build traces of the pinned TorchLean | low (build) | A copied .lake directory had stale traces for 14 TorchLean modules, so the first build that imported TorchLean.Tensor.Arithmetic rebuilt them with no source change. |
noted | none |
| B533 | docs/DEPENDENCIES.md, docs/deps/claims.tsv | low (docs) | They listed the deleted Sem.Mem.Buffer.ne_owner under vadd.correct and vmul.correct. |
fixed (5381ff1, regenerated) | python3 scripts/deps.py check |
| B534 | MojoProofTest/SymLoop.lean (invN, invN_entry, invN_step, invN_exit, body_vals, cnt_enter) and MojoProofTest/KernelLoop.lean (invB, invB_entry, invB_step, invB_exit, body_blocks, enter_blocks) |
low (tests, duplication) | The KernelLoop lemmas state for every function with cnt's blocks, with the stores on the trace, what the SymLoop lemmas state for cnt itself. The audit does not flag them, since the statements differ. |
open | move the general lemmas into SymLoop and make invN_* their corollaries or delete them; then cntk's tests can be stated for loopK and cntk deleted |
| B535 | the pointers clause |
gap (scope) | No corpus kernel uses it: the 13 naive matmul kernels pass three byval structs and three i32, and only one of the corpus's 100 ptx_kernels has a plain pointer (reduction_sum_kernel_SIMD, address space 0). Its one user is the test program cntK. |
open | the naive matmul needs the loop clause with its k loop's invariant and Launch.index_ops (B528) |
| B536 | n.sound_loop, the loop clause's kernel theorem (MojoProof/Sym/KernelCmd.lean) |
gap (automation) | No generated theorem discharges its per-thread premise at a launch: kernelK takes 30 lines of evaluation (the thread's frame meets the precondition, the postcondition gives the end check), where n.sound does this for paths through n.starts. |
fixed (dd1f87c, b5f9ade): n.sound_loop is the kernel theorem on n.args from Mem.Closed and an invariant; each thread's precondition comes from the start's facts, among them the registers of the scalar and pointer parameters (Kernel.sound_entry) |
kernelK (MojoProofTest/KernelLoop.lean) keeps its statement; its proof is 9 lines with no evaluation of the start; the #guard_msgs example checks the open per-thread goal |
| B537 | cnt2k (MojoProofTest/KernelCmd.lean) |
gap (tests) | It has no kernel instance and its loop theorem covers one valuation: cnt2 has no parameters, so cnt2k.args is empty and no launch's start meets (· = V2); the clauses pin V2 because cnt2's blocks have no invariant lemmas. |
open | a cnt2K with %n, %p and %s as parameters, and invariant lemmas for its two loops |
| B538 | README.md, Quick start | low (docs) | It said corpus.py writes the pinned Mojo version in every row it adds, which is wrong since add --mojo, and its walk-through used a kernel the repository did not contain. |
fixed (a6b722e) | the Quick start is seven steps that match docs/new-kernel.md and name the repository's files (tests/corpus/vsub/, MojoProof/Kernels/Vsub.lean) |
| B539 | MojoProofTest/Mutate.lean, the tiled_matmul pin | high (build) | The pin named block %3 as the block checker's first refusal on tiled_matmul. With integer select in the fragment %3 is accepted and the first refusal is %40, so lake build MojoProofTest failed at Mutate on the branch that added select. |
fixed (25c0d0e) | the #guard_msgs itself |
| B540 | MojoProof/Sym/Rules.lean, MojoProofTest/Rule.lean | low (stale table) | The refusal table listed Inst.select and Intrinsic.minmax as refused and fmul contract with no mention of coversC, although SState.stmt takes integer select (exec_select) and two-argument min/max calls (exec_minmax) and coversC takes fmul contract (exec_fbinC); Rule.lean pinned the stale text. mojo_rules_complete checks that each constructor has a rule or a refusal, not that a refusal is still true. |
fixed (6da23a4) | mojo_rule attributes for exec_select (integers), exec_minmax and exec_fbinC; the refusals narrowed to what the block checker still refuses; MojoProofTest/Rule.lean repinned |
| B541 | docs/tactics.md:129-130 | low (docs) | It said the block checker refuses select and calls other than special registers; integer select and the llvm.smax, smin, umax and umin calls are in the fragment. |
fixed (6da23a4) | docs/tactics.md lists the checker's refusals as they now stand |
| B542 | SState.op (MojoProof/Sym/Checker.lean:101) |
low (coverage) | An operand that is a global (a shared-memory addrspace(3) global) has no entry, so a getelementptr or store on it is refused: tiled_matmul's %40 (statement 5) and %47 (statement 4), and layernorm's stores to its shared globals. |
fixed (c307ad0, 168cde0): SNode.globalAt is the pointer of the global named at a statement's operand, the context's address of the global (SNode.eval_globalAt); the checker takes a getelementptr, load or store on a global. B952 and B1003 are fixed; the residue in layernorm's %453 is the rsqrt.approx call at statement 16 |
the Mutate pin (tiled_matmul's %40 and %47 taken, B945); MojoProofTest/SymSeg.lean gevm_after_barrier, gevm_shared, ln_store, ln_load |
| B543 | sym_summary (MojoProof/Sym/Command.lean) |
low (tooling) | It writes summarize's summary only. A summary with fmul contract is a definition (summarizeC ...).getD default, which the kernel unfolds, so coversC computes the summary twice. |
open | a sym_summary form for summarizeC |
| B544 | Ends.edge, Valuation.into, WalkI, Block.sound_pathI (MojoProof/Sym/Path.lean since 470c1e6); LoopChain, Runs.of_chains (MojoProof/Sym/Loop.lean) |
gap (coverage) | The path and loop theorems take covers, Ends and Valuation.after, so a block with fmul contract was covered by Block.soundC alone, not along a path or a loop; the naive kernel's loop %46 → %50 → %52 → %46 is not covered. |
fixed with B548: Valuation.afterC, Valuation.intoC, Ends.edgeC and Block.sound_pathC (8ddf105), and the With forms of paths and loops (e3c09f8) |
tests latch_edge, latch_afterC, trip1_covers, trip1_latch, trip1_round; design in docs/proofs/contract.md, "Not done" |
| B545 | docs/BUGS.md rows B211 and B420 | low (docs) | They cited review_twin and review_labels, which 6d23147 renamed phi_payload_branch and phi_payload_labels; cited.py does not read BUGS.md. |
fixed | B211 cites the new names; B420 is fixed |
| B547 | SState.op and SState.phiConds (MojoProof/Sym/Checker.lean:101, :241) |
low (coverage) | SState.op takes a register or an integer constant only, so an edge into a phi whose operand for that edge is undef is refused at the terminator; it is the first refusal of 46 layernorm blocks, whose edges carry i64 undef. |
open | design: a node with Sem's value of undef (fill .undef t, MojoProof/Sem/Eval.lean:327), whose uses fault |
| B548 | coversPathI, WalkI, Valuation.lastI, blocksI (MojoProof/Sym/Path.lean); Chain, LoopChain, coversChains, Runs.of_chains, Runs.of_ret (MojoProof/Sym/Loop.lean, MojoProof/Sym/Kernel.lean) |
gap (coverage) | A block with fmul contract can only be the last block of a path. These definitions are recursive, so a contract version is not definitionally the old one; keeping the old statements as one-line instances needs equation theorems (which the equivalences count would report) or the old definitions restated as the instances, which changes the equations their uses rewrite with (lastI appears 9 times in Kernel.lean, 19 in Loop.lean and 13 in Payload.lean). |
fixed (e3c09f8, a50d41c): the With forms (coversPathWith, WalkWith, RetWith, RoundWith, ChainWith, coversChainsWith, Runs.of_chainsWith, Runs.of_retWith), with the old forms at contract = false (Chain.with_iff); the kernel theorems do not take the flag yet (B606) |
MojoProofTest/SymNaive.lean naiveL_covers, loop_rounds, loop_two |
| B549 | MojoProof/Sym/Block.lean and MojoProof/Sym/Path.lean (Valuation.intoWith, frameAtWith, EndsWith) |
low (duplication) | Valuation.intoWith repeats Valuation.into's body, frameAtWith repeats frameAt's, and EndsWith repeats Ends's and EndsC's. DUPDEF does not count these, and no proof is copied. |
fixed in 7aa44f2 and 84033b5: Valuation.frameAt, Valuation.into, EndsC and Ends are frameAtWith false, intoWith false, EndsWith true and EndsWith false, with their statements and every lemma's statement unchanged; the unfolds in Sym/ and MojoProofTest (KernelLoop, SymLoop, Payload, SymContract) unfold the With forms |
the three libraries and every module that unfolds Ends build with every statement unchanged; the naive modules' times unchanged |
| B550 | scripts/cited.py, scan |
low (tooling) | The index lists only N and N.sound_of for a mojo_kernel command: none of the other generated names (N.correct, N.covers, N.b<i>, the loop names) and no inductive constructors, so MojoProof.LLVM.Intrinsic.ldmatrix cannot be cited. scripts/roadmap_status.py adds the generated names itself, by clause. |
open | |
| B551 | tests/, docs/, roadmap/ | gap (evidence) | No tracked record of a GPU run exists, so no kernel card can pass L0 and no construct card can pass L1; roadmap/STATUS.md says so in its summary and per card. | open | |
| B552 | roadmap/gpu-model, roadmap/floats | low (traceability) | The repository has no copy of the PTX ISA, the LangRef or the NVPTX usage guide (docs/TRUST.md records their sha256), so the 15 gpu-model and floats cards have empty quotes and say "quote to be added"; their section numbers are the ones docs/TRUST.md and the docstrings cite. | open | |
| B553 | MojoProof.Sem.intrinsic, cp.async.commit.group and cp.async.wait.group |
low (latent) | Both run as no-ops. That is sound only because the copies arrive as inline asm, which the importer accepts (22 of the 24 multistage GEMM files import) but exec does not execute (a fault); once exec gives the copies a meaning, they must run as MojoProof.Sem.Async.Step (B1048), and the no-ops are wrong. |
open | |
| B554 | scripts/corpus.py add |
medium | add copied the new file into tests/corpus/, over a listed file of the same path, before it found the path in MANIFEST.tsv and stopped, so a refused add could change a listed file. |
fixed (bcc49fd) | the check runs before the copy; corpus.py has no test suite (checked by a scratch run) |
| B555 | Mutant.program (MojoProof/LLVM/Mutate.lean) |
low | A mutant's prog keeps the mutated program's sha256 field, which is the digest of the original's file, not of the mutant. |
documented (5022d69): the docstring says so | the docstring #guard_msgs in MojoProofTest/Mutate.lean pins the field and the printed mutant's own digest |
| B556 | MojoProofTest/SymInfo.lean | low | Importing a naive matmul kernel's default compile a second time duplicated 16 test definitions of MojoProofTest.SymPhi's naive (DUPDEF_tests 16); this never reached the main branch. |
fixed (a532d51) | the audit: DUPDEF_tests 0 |
| B557 | elabMojoKills (MojoProof/LLVM/Mutate.lean) |
low (tests) | Two of mojo_kills' checks have no failing test: a theorem for the right program but another function, and a theorem whose axioms go beyond the standard three. |
partly fixed (0678649): a theorem for the right program but another function is refused (bad6), and foreignAxiom is tested by removing allowed axioms. Open: an end-to-end test of the axiom refusal needs an axiom in a test module, which the audit counts |
|
| B558 | run and classify (MojoProof/LLVM/Mutate.lean) |
medium | They still take the certified list as a plain List Nat, so a hand-written list is counted as "killed, certified"; mojo_kills builds a checked list, but nothing forces its use. Closing this needs a public type change: a list type that only mojo_kills can build. |
fixed (0678649): run and classify take the checked list that only mojo_kills builds |
MojoProofTest/Mutate.lean: four hand-written kills refused, and a List Nat is a type mismatch |
| B559 | scripts/roadmap_status.py, scripts/cited.py scan |
low (tooling) | The declaration index has no inductive constructors (MojoProof.LLVM.Inst.bin, BinOp.add, ...), so a card's lean cannot name the Syntax constructor. The llvm-ir cards list the types, Parser.inst or Parser.terminator, Sem.exec or Sem.step, the helpers and the rule lemmas, and name the constructors in the body. |
open (request) | |
| B560 | Modular max/kernels/src/layout/swizzle.mojo:327-332 @bbc13a71 |
low (upstream, docs/check) | The assert is abs(shift) >= bits, but its message reads "shift should be less than bits", the opposite. Both asserts are under if not __is_run_in_comptime_interpreter:, so a swizzle built at compile time is not checked. |
duplicate of B5 | see B5; compiled and checked, tests/layout/record.txt (68e11ac) |
| B561 | Modular layout.mojo:1911 against :1815 and :2016 |
medium (upstream, docs vs code) | The blocked product docstring gives the outer stride as block.cosize * tiler.stride, but the code uses the block's shape product. They differ for blocks with gaps, where tiles can overlap. This is hand arithmetic from the lines, with no run. |
duplicate of B2 | see B2; compiled and checked, tests/layout/record.txt (68e11ac) |
| B562 | Modular layout.mojo:548-550 |
medium (upstream, docs) | idx2crd is documented as the inverse of __call__ with no precondition. By its formula, (2,2):(3,1) maps index 3 to (1,1), while crd2idx(1,1) = 4. This is hand arithmetic, with no run. |
duplicate of B3 | see B3; compiled and checked, tests/layout/record.txt (68e11ac) |
| B563 | Modular layout.mojo:1426-1434, coord.mojo:1906-1911 |
low (upstream, precondition) | zipped_divide's outer shape is _Divide, a floor division (static_value // static_value). There is no divisibility check, so a tile that does not divide the shape covers fewer elements than the layout has. This is a reading, with no run. |
duplicate of B4 | see B4; compiled and checked, tests/layout/record.txt (68e11ac) |
| B564 | Modular layout.mojo:1641-1669, :1501-1506 |
low (upstream, precondition) | composition's only checks are the two asserts at lines 1664-1669 (static, and B.static_cosize <= A.static_product). _shape_div returns 1 when b does not divide a. The divisibility conditions under which the result equals a after b are not stated. This was not run. |
duplicate of B1 | see B1; compiled and checked, tests/layout/record.txt (68e11ac) |
| B565 | tests/corpus/*.ll | low (provenance) | The corpus IR declares no LLVM version (no llvm.ident). The llvm-ir cards cite the LangRef and PTX ISA versions the semantics was read from (T7), not a version taken from the IR. |
noted, roadmap/llvm-ir/README.md | |
| B566 | the std-math cards | gap (traceability) | std.math.max and min are pop.max and pop.min (math.mojo:3304, 3358). Their lowering to llvm.maxnum, smax or smin is inside the compiler, and the IR does not name the source function. The std-math corpus lists are therefore lists of intrinsic calls, not of std.math calls. |
noted, roadmap/std-math/README.md | |
| B569 | MojoProofTest/Corpus.lean:25 | low (docs) | Adding a corpus row changes the counts #mojo_corpus's #guard_msgs expects (110 rows, 81 imported became 111 rows, 82 imported), and neither the tutorial nor CONTRIBUTING.md said so; the tutorial's build failed there as first written. |
fixed (556a5a8, 791ad65, 10eaf81) | Corpus.lean's count; docs/new-kernel.md step 3 and CONTRIBUTING.md's corpus steps say to update it |
| B570 | docs/tactics.md:534 | low (docs) | It gave the corpus test's count as 110 rows, 81 imported. | fixed (10eaf81) | 111 rows, 82 imported |
| B571 | docs/tactics.md, mojo_kernel section |
low (docs) | It said the command refuses a loop without naming the loop clause, did not list the pointers clause, and named only Vadd.lean and Vmul.lean as instances. |
fixed (10eaf81) | the section lists the pointers and loop clauses, kernelK and Vsub.lean |
| B572 | CONTRIBUTING.md, "Adding a kernel to the corpus" | low (docs) | Step 1 said to compile with the version corpus.py records, step 2's usage line had no --mojo, and neither mentioned the #mojo_corpus counts. |
fixed (10eaf81) | step 1 and step 2 give --mojo; step 3 the counts (B569) |
| B573 | TorchLean (read only) | note | TorchLean has no Tensor.sub_apply; the cellwise lemma is TorchLean.Tensor.Rep.hSub_apply, which vsub_real uses with FloatLib's Model.toReal_sub_eq_roundAt. |
noted | TorchLean not edited |
| B574 | MojoProof/Sym/KernelCmd.lean, docs/new-kernel.md | low (docs) | #mojo_info is in MojoProof.Sym.Info, which MojoProof.Sym.KernelCmd does not import, so a file with only the tutorial's other imports cannot run it. |
fixed (a6b722e) | the tutorial's MyKernel.lean lists import MojoProof.Sym.Info |
| B575 | tests/corpus/vsub/ | note | Mojo 1.3.0.dev2026112105's IR for vector_subtraction has the shape of the pinned 1.3.0.dev2026111705's for vector_addition: the same blocks and mangled-name suffix, fsub contract for fadd contract; with --fp-mode contract=off only the flag changes. |
noted | |
| B576 | docs/DEPENDENCIES.md, docs/deps/ | low (generated) | They did not include MojoProof.Kernels.Vsub after the merge. | fixed (regenerated after ffbece1) | python3 scripts/deps.py check |
| B577 | MojoProof/Kernels/Vsub.lean | note | mojo_kernel shares vector_addition's b0, b2, b3, args, argTy and argTail only when the module imports MojoProof/Kernels/Vadd.lean; without it the command declares them again and DUPDEF would grow (not tested). |
documented (a6b722e) | docs/new-kernel.md step 8 and Vsub.lean's docstring say so |
| B578 | docs/new-kernel.md, steps 2 and 3 | low (evidence) | Two commands were not run as written: the compile ran through the repository's Mojo wrapper (the same mojo build --emit llvm --target-accelerator sm_80 command, in a scratch directory), and corpus.py add read the IR from that directory, not from ../build-vsub; the mkdir, cp and cd lines were not run. |
fixed (15c9633): the opening of docs/new-kernel.md says which commands were not run as written | |
| B579 | MojoProof/LLVM/Mutate.lean:47, :719, :763 | low (check) | mojo_kills' docstrings and its error message used the word axiom, which the text check (no sorry, admit, native_decide, axiom, implemented_by or extern in MojoProof/, as whole words) refuses; no build or test runs that check. |
fixed | the docstrings say "no axioms but" and the error "its proof depends on {a}, which is not in killAxioms"; the text check passes |
| B580 | scripts/near_dups.py | medium (check) | The MinHash XORed 32-bit salts into 64-bit hashes, so all 48 signatures of a theorem had one minimum and the band buckets compared only that one value; buckets of 60 or more entries were skipped without a message. The near_dups: 0 it reported did not show that no near duplicates existed. |
fixed (15c9633) | exact Jaccard of the 5-token shingle sets over every pair of theorems of 15+ lines; it found B581 and B582, and reports 0 clusters after them |
| B581 | MojoProof/Sem/Grid.lean Grid.start_ctx, MojoProof/Sym/Start.lean Grid.start_env |
low (duplicate) | Grid.start_env proved the special registers and the oracle row of a started thread's context by the same proof as Grid.start_ctx, which gave the program and the number. |
fixed (15c9633) | Grid.start_ctx gives all four facts; Grid.start_env is deleted and its users read .2.2.1 and .2.2.2 |
| B582 | MojoProof/Sym/Block.lean Block.sound_retI |
low (duplicate) | Block.sound_retI was Block.sound_retR at rest = [], proved again. |
fixed (15c9633) | deleted; its users call Block.sound_retR, whose step result reduces to .done at rest = [] |
| B590 | floatLit and digits (MojoProof/Sem/Eval.lean:102, :109) |
low (documentation) | The .dec case follows core's String.toNat? rules: a _ between two digits is skipped, so .dec false "1_0" "5" 0 is 10.5. LLVM's decimal float syntax has no _; whether the lexer can produce one is not checked. The value matches the base behavior (floatLit_dec). |
fixed in 3c5c033: digits reads the characters 0-9 only, so every _ faults; digits_toList states agreement with String.toNat? on strings of 0-9 |
MojoProofTest/Lit.lean dec_faults (1_0.5, 1._), toNat_inst (1_000, _1, 1__0 refused) |
| B591 | MojoProof/Sem/Matmul.lean and docs/proofs/dot.md | low (documentation) | The naive kernel reads B transposed: its cell (r, c) is the dot product of row r of A and row c of B, entry (r, c) of A Bᵀ, not of A B; the docs said A B. |
fixed in 8bec01f | tests cell_inst, untransposed (MojoProofTest/Matmul.lean) |
| B592 | the oracle positions 54 + 18 j (fmul) and 55 + 18 j (fadd) (Sem/Matmul.lean module doc, docs/proofs/dot.md) |
low (proof plan) | The positions are counted from the IR, not proved. NaiveRun checks the fadd positions at j = 1 and 2 on one launch; the fmul's position is not checked (an fmul has no factors to contract, and its NaN choice n / 3 changes no word when the product is not NaN), and j = 0 is invisible. The kernel theorem must derive them from the checker's step count. |
open; the positions are proved from the step count for the naive thread: Valuation.roundWith_k (4831780) and NaiveThread.steps, oN (13fee31) give 54 + 18 j and 55 + 18 j; open until a kernel theorem uses them |
test fused_at, visible, off_by_one (MojoProofTest/NaiveRun.lean); MojoProofTest/NaiveThread.lean steps, thread0 (the oracle at steps 54 and 55), thread0_twin (one step later gives another word) |
| B593 | Mem.Changes.old (MojoProof/Sem/Writes.lean:67) |
low (proof usability) | Mem.Changes did not bound a write's byte by the block's size, so no run-level fact gave a block's bytes beyond its size, which Elem.Out compares (B516). |
fixed in 8fd5fd6 | Mem.Changes.above, Grid.start_reach_above; tests above_twin (MojoProofTest/Writes.lean), elem_vadd (MojoProofTest/SkelVadd.lean) |
| B594 | MojoProof/Sym/OblLemmas.lean:885 | low (build hygiene) | The build warns if_neg has been deprecated: Use ite_eq_right instead (present at the base). |
fixed in 21888ea (ite_eq_right) |
the build of MojoProof/Sym/OblLemmas.lean has no deprecation warning |
| B595 | MojoProofTest/Matmul.lean lD (8bec01f) |
low (duplicate) | lD repeated MojoProofTest.Tiles.l (DUPDEF_tests 1 in the audit). |
fixed in 4376afa | audit DUPDEF_tests 0 |
| B605 | Kernel.sound_cells, Elem.safe_on (MojoProof/Sym/Kernel.lean) |
gap (scope) | The cells need to be apart only on a set S of threads, but every access to the output block must be by a thread of S (Elem.Only). A kernel whose out-of-range threads load the output block (an accumulating C += … with a guard only on the store) is not covered. The naive matmul is covered: its threads outside the range touch only A and B. |
open | a form with S for stores and a read-only condition for the others, if a kernel needs it; test kernelC (MojoProofTest/KernelCells.lean) |
| B606 | Kernel.sound_of_chains, Kernel.sound_cells, Kernel.sound_entry |
gap (scope) | They take coversChains and RetLs, which have no contract flag. The naive matmul's loop needs coversChainsWith true and RetLsWith true, the With forms in Sym/Loop.lean. |
fixed in b264b90 for the theorems: Kernel.sound_of_chainsWith, sound_entryWith and sound_cellsWith take the contract flag, and the frozen sound_of_chains, sound_entry and sound_cells are their false cases. with mojo_kernel's flag contract, n.sound_loop is on sound_entryWith (3465930, B668) |
MojoProofTest/KernelContract.lean kernelF (six threads, a loop with fmul contract, every premise closed) and its twin (the same proof at false fails); kernelK (the generated kfK.sound_loop closed, 9f08643) |
| B607 | Kernel.sound_mapN |
gap (scope) | It covers parameters ps ++ [pc] (byval structs, then one count), loop-free paths, all-threads Apart and one oracle. The naive matmul has three structs, then three i32s and a loop, and stores only in range, so it is outside the theorem. B527 is about instances of sound_mapN; this row is about its statement. |
fixed in dbedab9: Kernel.sound_mapNWith, byval structs then any list of scalars, loops, cells apart on a set S of threads, every admitted oracle, both flags; sound_mapN keeps its statement, with a one-call proof |
MojoProofTest/KernelContract.lean kernelF (two scalars, a loop, contract = true); vadd, vmul, vsub through sound_mapN |
| B608 | Kernel.sound_entry, n.sound_loop |
gap (automation) | The per-thread premise gets register facts only for parameters without byval. A byval struct parameter gets no fact (that its register points to a fresh block holding the struct, Grid.start_buffer), so a precondition about the buffer pointer inside the struct cannot be discharged from the premise. All 13 naive matmul kernels pass three byval structs. |
fixed for the statements in b264b90 (the Grid.start_buffer facts for byval parameters in sound_entryWith's per-thread premise) and dbedab9 (in sound_mapNWith's); the naive matmul's kernel theorem uses sound_mapNWith's facts for its three structs (cb8eb1b). Open: with the flag contract, n.sound_loop is on Kernel.sound_entryWith, but the clause does not pass the byval fact on (3465930) |
vadd, vmul, vsub use sound_mapNWith's struct facts; MojoProofTest/NaiveSound.lean naive_sound |
| B609 | scripts/cited.py | low (tooling) | KERNEL declares N and N.sound_of for mojo_kernel N, but not the N.sound_loop a loop clause adds, and DECL does not see tactics declared by elab "name". So a module doc that cites loopK.sound_loop or the tactic kernel_check counts as missing. |
fixed in 4ec9e48 | cited.py declares N.sound_loop for an unguarded mojo_kernel N with a loop clause, and a tactic named in elab/syntax/macro "name" … : tactic; on a copy of the tree whose KernelLoop.lean doc cites loopK.sound_loop, cnt2k.sound_loop, kernel_check, mojo_obl and the refused order_twin.sound_loop (under #guard_msgs), cnt2_open.sound_of (no clause), no_such_tac: the new script reports the three refused names only, the old one seven names |
| B620 | MojoProof/Sym/Info.lean refusal |
low (diagnostics) | refusal ran from SState.init, while summarizeWith runs from SState.start (b2f3f60). So #mojo_info reported a float constant operand as refused although the checker accepts the block: on naive, %45 was reported refused. |
fixed in ea3f9b7 (refusal runs from SState.start, as summarizeWith does) |
MojoProofTest/SymNaive.lean naive_refusals: every block of naive has refusal none |
| B621 | MojoProofTest/SymPhi.lean, fixture edgeF |
low (tests) | The double constant 1.5 was written .hex "0x" 0x3FF8.... With that prefix string floatLit gives wrong (a fault), not 1.5. The twin passed for the wrong reason: the base refused every float constant anyway. |
fixed in b2f3f60 | entry_both (the block with both edges accepted, the literal .hex "") |
| B622 | MojoProof/Sem/Eval.lean floatLit, case .dec |
medium (gap) | Before 374ad7e the kernel did not reduce floatLit of a decimal literal (String.toNat?), so the obligation Cond.ok (.node j) of a .dec node could not be closed by decide +kernel. This blocks the naive thread's %45 → %46 edge in a WalkWith/EdgeWith premise. |
fixed: digits (374ad7e, merged at 102b941), and the edge %45 → %46 is closed at every valuation of the naive function by SymNaive.pre_edge (560b377) |
MojoProofTest/Lit.lean naive_zero, dec_hex (by decide +kernel); MojoProofTest/SymNaive.lean pre_edge |
| B623 | MojoProof/Sym/Loop.lean Chain.of_rounds |
low (proof engineering) | Chain and ChainWith false are equal through Chain.with_iff, and Valuation.round is definitionally roundWith false, but the elaborator could not unify the iterates (Valuation.round h S B)^[i] and (Valuation.roundWith false h S B)^[i] within 200000 heartbeats (a whnf timeout, also with smartUnfolding false). |
fixed in a50d41c (a funext rewrite, no heartbeat override) |
the module fails at the whnf timeout before a50d41c and builds after it |
| B635 | block checker on tests/corpus/gemv/ | low (coverage) | Both gemv kernels are outside the fragment in their entry block: gemv_kernel at an alloca [2 x ptr] (statement 0), gevm_kernel at llvm.nvvm.read.ptx.sreg.laneid (statement 5); their warp reductions (shfl) and gevm's shared-memory reduction are refused too. P3's gemv has no proof path on this branch. |
partly fixed: gevm_kernel's entry block is in the fragment, with the lane number (f780290, gevm_entry); the casts castV evaluates are in the fragment (bd35b78, 9dee627, castOk), the same-width scalar bitcast keeps the word (fe366d8, gemv_bitcast) and the vector bitcast gives its halves (castV_split, castV_join); both loops' fmul contract blocks have a summary by summarizeC (f82ad3b, loops_contract); both warp reductions are segments ending at their collective calls (c59d7cd, gemv_segments, six; c307ad0, gevm_segments, seven, with the shared global), a thread's steps over a segment reach the call's wait (Seg.sound; gemv_first_wait, gevm_after_barrier_wait), and a block's segments run in a row on one thread given the collectives' values (904462f, Seg.through; gevm_through); a segment's wait and resume are one line (02bff11, Seg.resume); loads after stores, for gemv_kernel's stack round trip (10fd3c1, SNode.loadAfter); lifetime markers end a segment (af1ef6e, Seg.lifetime, Seg.lifetime_ptr). a block through its collectives and lifetime markers (436fba0, Piece.through); stores of zeroinitializer, undef and poison (e0f5d14, SNode.constAt); insertvalue, extractelement and insertelement (51b05ea, SNode.insert, eltAt, insEltAt) and getelementptr with any number of indices on a base that is not a global (51b05ea, SNode.gepN), so gemv_kernel's %6 from statement 3 is in the fragment (gemv_segs). Open: gemv_kernel's three allocas (statements 0 to 2, gemv_segs_twin), the values of %6's loads (the [2 x ptr] element lemma and Mem.load_store_codec), the schedule that supplies the collectives' values, and the race freedom across gevm's barrier in a grid run; docs/proofs/gemv.md has the plan. The warp's dot product is specified apart from the kernels (Sem/WarpDot.lean, B656) |
428f467, #mojo_info on both kernels; MojoProofTest.SymLane, MojoProofTest.SymCast, MojoProofTest.SymSeg |
| B636 | MojoProof/Sym/Obl.lean, mojo_obl | low (tests) | A loop bound of the form smax(x, 0) is handled by the same universal-statement case as a variable bound, but no test reaches one: the naive matmul's obligations are refused before (refusal 12). |
fixed in 4e20822: mojo_obl discharges the header bound i < max K 0 for every i < max K 0 (naive_rounds) and evaluates %16 = smax(K, 0) as max K 0 (SNode.eval_smax_ofNat, naive_entry) |
MojoProofTest/OblMatmul.lean naive_rounds, naive_entry |
| B637 | MojoProof/Sym/OblLemmas.lean, buffer lemmas | low (coverage) | addr_buffer, gep_buffer, load_buffer, store_buffer cover address spaces 0 and 1 only (a = 0 ∨ a = 1); a buffer in shared memory (space 3) has no lemma. |
fixed in 4fbb07f: the buffer lemmas take a buffer of any address space and owner (Mem.BufferIn; global 1, shared 3, an alloca's), through the generic space 0 or the block's own |
MojoProofTest/OblShared.lean cnt3_rounds, cnt3_rounds_open, cnt3_covers (cnt on shared memory) |
| B638 | tests/gpu/Compare.lean | low (tooling) | It is in no library glob, so lake build does not compile it: a change of the evaluator's interface breaks it silently until someone reruns a record's compare command. |
fixed in 27976bc: the comparison is the module MojoProofTest/Gpu.lean, which lake build MojoProofTest compiles (the .submodules MojoProofTest glob, no lakefile change); tests/gpu/Compare.lean is a main that imports it |
every build of MojoProofTest since 27976bc |
| B639 | scripts/corpus.py, column lib | low (provenance) | lib is read by hand from the source's imports when a row is added (the IR has no debug info); check validates its form only, not that the files exist at the recorded commit or define the kernel. |
open | 3011053 |
| B640 | MojoProofTest/Modelled.lean | low (scope) | One form per construct: a returns row witnesses the form its test kernel runs (for example atomicrmw add seq_cst), and the L1 card covers that form only, as the card says. |
open (by design) | 75fda9d |
| B641 | roadmap_llvm.py, L2 of construct cards | low (scope) | A construct card is L2 when an agreeing record ran a kernel whose IR uses the construct; the record does not show that every use was executed in the run. For these three kernels every block runs in some launch (the guarded body for an index below n in every launch, the other branch for an index of n or more in the launches of n = 37, 100, 700 and 1100), checked by reading the IR, not by the script. | open | 6f19500 |
| B642 | tests/gpu/{vadd,vmul,vsub}/record.txt, line inputs: |
low (docs) | The records said the inputs include zeros; the run's 6644 input words hold 32 subnormals and no zero (the generator can give one, this seed did not). | fixed | 20a3648; the count over the tracked dumps' lhs and rhs lines |
| B643 | scripts/roadmap_llvm.py, L1 of construct cards (a review finding) | medium (overstatement) | A construct card was L1 ("modelled") whenever it had Lean declaration names, so the ldmatrix and mma cards said the semantics gives these calls their meaning while Grid.fire returns unsupported for both. |
fixed in 75fda9d: L1 needs a row of the pinned table in MojoProofTest/Modelled.lean whose test kernel runs; a construct whose run stops with unsupported is L0, "parsed, not modelled" |
MojoProofTest/Modelled.lean (every Intrinsic constructor has a row); roadmap_llvm.py --check exit 0; intrinsic-mma.md and intrinsic-ldmatrix.md are L0 |
| B644 | roadmap/README.md, the kernel ladder's L2 and L3 (a review finding) | medium (overstatement) | L2 said safety for every valid launch, while vadd.correct takes a one-dimensional launch and Kernel.twin_2d shows a two-dimensional one is unsafe; L3 said equality to TorchLean over the reals, while vadd_real states a rounded result where the output is finite. |
fixed in 1f271d6, 8b26c8c, da5fd4d: L2 is for the launch shape the theorem states and L3 is under its premises (finite outputs, rounded to binary32); STATUS.md has a scope column from the cited theorems' premises | python3 scripts/roadmap_status.py --check exit 0 |
| B645 | .github/workflows/ci.yml, the audit step (a review finding) | medium (enforcement) | CI ran the audit and relied on its exit status, which reflects axioms only: the counts it prints (DUPDEF, DUPTHM, DUPDEF_tests, DUPTHM_tests, unused, equivalences) were not compared with their limits in scripts/counts.tsv, and near_dups.py did not run, so a pull request adding a duplicate theorem passed CI. | fixed in 22483f9: scripts/counts.py compares every row of scripts/counts.tsv with the audit's and near_dups.py's output and exits 1 when a count exceeds its limit or is missing; CI saves both outputs and runs it, and runs the text check and roadmap_llvm.py --check too |
counts.py on the outputs of the audit and near_dups.py at 039811b exits 0; with DUPTHM 1 in the audit's output, with near-duplicate clusters 2, and on empty outputs, it exits 1. The workflow itself has not run (no runner here) |
| B646 | tests/gpu/Compare.lean, the GPU-run comparison (a review finding) | low (enforcement) | A dump with no launch (metadata and blank lines only) gave an empty case list, so the comparison compared nothing and exited 0, and the records did not say how many launches a run must have. | fixed in 27976bc: MojoProofTest.Gpu.dumpCases refuses a dump with no case and one whose case count differs from the expected count, the third argument of Compare.lean; each record's compare: line passes 6; roadmap_llvm.py counts a record only if its launch: and evaluator: lines agree in number and launch and every evaluator line says agree |
the vadd, vmul and vsub dumps exit 0; an empty dump, a metadata-only dump and a dump with five of six cases each exit 1; roadmap_llvm.py --check: 9 cases, 0 wrong |
| B650 | floatLit, case .dec (MojoProof/Sem/Eval.lean) (a review finding) |
medium (semantics) | The body rounded a decimal literal to binary64 and then required the cast to the operand's type to be exact, so float 0.1 and most decimal literals at half, bfloat and float faulted, while LangRef ("Simple Constants") rounds once to the destination type, nearest with ties to even. |
fixed in 3c5c033: floatLit.near rounds the rational d · 10^(e - |f|) once by Model.ofRat t.fmt; the legacy 0x double form keeps its exactness check |
MojoProofTest/Lit.lean tenth (0.1 at float, half, bfloat against their hex forms), once (1 + 2^-24 + 10^-34 at float is 0x3F800001, through double 0x3F800000), range, dec_faults, agree |
| B651 | floatLit, case .dec |
low (semantics) | The body read a decimal literal whose double rounding overflows or underflows: 1e400 as +inf and 1e-400 as +0, at every type; LangRef does not permit either. |
fixed in 3c5c033: a literal that rounds to infinity, or a nonzero one that rounds to zero, faults (.unsupported, with the reason) |
MojoProofTest/Lit.lean refused, dec_faults (3.4028236e38, 1e39 at float, 65520.0 at half, 7e-46, 1e-50) |
| B652 | MojoProofTest/Lit.lean agree |
low (gap) | That every literal the old body read to a finite value that is not a rounded-to-zero underflow keeps its value under the new one is checked on 84 literal-type pairs, not proved. Without the restriction the statement is false: Lit.refused (MojoProofTest/Lit.lean) shows old reads 1e400 (to +inf) and 1e-400 (to +0) where floatLit faults. The proof needs a FloatLib lemma: Model.ofRat as the nearest value, or Model.cast g f ∘ Model.ofRat g = Model.ofRat f when the cast is exact. |
open (a FloatLib request); statement restricted (a review finding) | agree: 21 literals at 4 types; refused: the two literals outside the restriction |
| B653 | docs/proofs/phi.md, docs/automation.md | low (docs) | They said floatLit reads a decimal literal's digits with String.toNat?, which the kernel does not reduce, so decide +kernel cannot decide a float constant's obligation; since 374ad7e it reads them with digits, which the kernel reduces, and since 3c5c033 digits reads 0-9 only. |
fixed in f0832df | the site check; SymNaive.pre_edge decides %45's constant by decide +kernel |
| B654 | MojoProofTest/SkelVadd.lean module doc, docs/proofs/skel-kernel.md | low (docs) | They said every decides Labels.MemOk for a launch of a few threads; at 2 threads it visits 3.0e16 nodes, so it closes one thread only. |
fixed in 3a5b8ec | the measurement (B655) |
| B655 | Labels.MemOk at L23 (MojoProofTest/ScheduleOwned.lean) |
medium (proof tooling) | Neither every nor a check that merges equal grids can close MemOk at the six-thread launch by evaluation: 2.7e118 nodes unmerged, 4.1e8 grids merged at 9 ms or more each. |
fixed: the thread-modular lemma is in Lean, Labels.MemOk.of_threads (MojoProof/Sem/Labels.lean; ecb4a1f, 8ccc2bc); its instance at L23, memOk23, is in Lean since 6b2c2be (B514) |
the counts at 1, 2, 3 threads and L23 (docs/proofs/skel-kernel.md); MojoProofTest/Labels.lean store3_ok; MojoProofTest/SkelVadd23.lean memOk23 |
| B656 | MojoProof/Sem/Bfly.lean | low (gap) | bfly_add_error bounds the error of bflyRounds, a function of the lanes' values; that a grid run of gemv_kernel or gevm_kernel computes it is not proved (both are outside the block checker's fragment, B635), nor the row's error against the exact dot product, nor NaN and infinite sums. |
partly fixed: the error against the exact dot product and TorchLean's real entries is bounded at the level of the rounds as a function of the lanes (bfly_stride_error, warpDot_error, warpDot_matVec, warpDot_vecMat, Sem/WarpDot.lean), NaNs are covered with the contraction off (warpDot_nanEq, warpDot_eq), and the semantics' deliver with an oracle number per round and lane is Model.add up to NaNs, with the rounds' bound at a finite value (bflyDeliver_nanEq, bflyDeliver_error, 2720836; bflyRounds_nanEq is its one-oracle case). The width premise of bfly_warp_error and bfly_add_error holds at every width 2 ^ k and every order of the offsets (leaves_bfly, Sem/Bfly.lean:97), and both are corollaries of MojoProof.Float.eval_error and sum_error. The dot product and the butterfly over every group of 2 ^ k lanes (groupDot_error, groupDot_matVec, groupDot_vecMat, groupDot_nanEq, groupDot_eq, leaves_offsets, shflSource_group at every width's clamp, 127ef39), the warp\'s statements their cases at k = 5. WarpDot\'s error theorems are treeDot_error (MojoProof/Sem/Dot.lean:905) at the butterfly\'s tree, at GPUProof.laneGrade\'s error (0616bda, B1499), and groupDot_approx (MojoProof/Tile/MatVec.lean:241) proves the word finite and within that error together whenever the grade\'s magnitude is at most the largest finite value, so NaN and infinite sums are excluded at such inputs, at every IEEE format and contraction (cbeb86a, 7f4178b). Open: the grid run of gemv_kernel and gevm_kernel |
MojoProofTest/Bfly.lean bfly_sum, bfly_twin, leaves_mixed, add_mixed; MojoProofTest/WarpDot.lean error40, eq40, deliver5; MojoProofTest/WarpDot.lean deliverAt5, deliverAt_ones; MojoProofTest/WarpDot.lean eq8, error8; MojoProofTest/Bfly.lean leaves8, shfl8, shfl32; MojoProofTest/TileLanes.lean group_4x10, depth_mutant; MojoProofTest/WarpDot.lean mutant_exact |
| B665 | docs/new-kernel.md | low (docs) | Its opening cited a ledger row id, which the text rules keep to docs/BUGS.md. | fixed in 0376a30 | jargon.py: no row id outside the ledger |
| B666 | Kernel.sound_entryWith (MojoProof/Sym/Kernel.lean) |
medium (gap) | The row said a thread's path loads its byval struct's first field, so the per-thread premise's whole-struct load could not be used. Wrong (a review finding): the naive matmul's IR loads each whole struct (load { ptr, ... }, ptr %0) and then takes its field with extractvalue, and OblMatmul.naive_entry (MojoProofTest/OblMatmul.lean) takes exactly the whole-struct loads hv0-hv2, the byval fact's form. No field-load lemma is needed. |
withdrawn: not a gap (a review finding) | OblMatmul.naive_entry by mojo_obl from the whole-struct loads |
| B667 | MojoProofTest/KernelContract.lean, the macro kernelF_proof |
low (rules) | The test macro ran under set_option hygiene false so that its rfl patterns stayed patterns. |
fixed in 1c42d24: subst on named equations, and the option removed |
kernelF and its twin build |
| B668 | mojo_kernel's loop clause (MojoProof/Sym/KernelCmd.lean) |
medium (gap) | The clause checks loops without fmul contract (summarize), so a kernel with a contracted loop (the naive matmul) cannot use it, and n.sound_loop stays on Kernel.sound_entry; a flag needs new clause syntax. |
fixed in 3465930: mojo_kernel's flag contract (the checker with the flag, coversEntryWith true and coversChainsWith true, obligations over EdgeWith, RoundWith and RetWith true; n.loop a RetLsWith true, n.sound_of by Kernel.sound_of_chainsWith, n.sound_loop by Kernel.sound_entryWith (contract := true) with V.ctx.oracle = oracle k). B715 fixed in 9859ffe and 2b95c1e, B716 fixed in 9f08643 (kernelK) |
MojoProofTest/KernelContract.lean kfK, kfK_retLs, kernelK, the twins kf_twin, kf_noloop, kf_open, and the open goal of kfK.sound_loop; chainF_refused (the checker without the flag refuses such a loop) |
| B680 | NaiveThread.thread_run (MojoProofTest/NaiveThread.lean) |
low (gap) | thread_run keeps the values of %47 and %48 after a round as premises (hR), though Valuation.intoWith_regs_phi (MojoProof/Sym/OblLemmas.lean) gives the registers after a phi edge with fmul contract; the row first said no such lemma exists, which is wrong (a review finding). What is missing is its use at the latch's edge into the header, from the round's summary, so that hR's register conjuncts are proved once. |
fixed for the naive kernel in 0458a7a: NaiveIn.acc_round applies Valuation.intoWith_regs_phi at the latch edge %52 → %46 (%48 after a round, from the round's summary), round_in proves every register conjunct of hR, and runIn discharges it; thread_run keeps hR as a premise, since it is stated for every predicate on the heads |
MojoProofTest/NaiveIn.lean round_in, runIn |
| B681 | NaiveRun.bufArg (MojoProofTest/Eval.lean) |
low (test infrastructure) | It is defined by well-founded recursion, so decide +kernel and rfl cannot evaluate Grid.start on arguments built with it. |
open; NaiveThread.tens passes the literal arguments instead; measured again: bufArg ⟨1,0⟩ (.struct [.ptr 0, .int 32]) = .agg [.ptr ⟨1,0⟩, .agg []] fails by rfl (a type mismatch), and decide +kernel cannot be tried, since Val has no DecidableEq (B732) |
NaiveThread.startN |
| B682 | Mem.compact in Grid.start (MojoProof/Sem/Grid.lean) |
medium (scale) | It rebuilds each block with Array.ofFn, which is quadratic in the kernel, so a launch whose output block has about 200 KB (C at the corpus stride 50257, 2 × 2) does not reduce; concrete launch tests are limited to tiny blocks. |
fixed in 2a3ef86: Mem.compact m := m, and compiled code runs the old tabulation Mem.tabulate (private) by the @[csimp] theorem Mem.compact_csimp, whose proof is the old compact_eq proof; compact_eq is rfl. Reading the last byte of one compacted block by decide +kernel: 1,024 bytes 26.1 s → 1.3 ms, 16,384 bytes deep recursion → 10.4 ms, 201,028 bytes deep recursion → 1.66 ms. GPU compare (vadd, 6 launches): 35.39 s user before, 31.62 s after (68.11 s without the csimp theorem). The start of a launch of At's sizes evaluates with its check in place since 82da34f (B780, B833) |
NaiveStart.start12; Mem.compact_csimp |
| B683 | rfl on registers of valuations from Grid.start |
low (usability) | rfl at elaboration fails on W.regs r = some v for such a W, while the kernel decides the same closed equation. |
worked around: NaiveThread.reg_of_float, reg_of_bits by decide +kernel |
thread0_chain |
| B684 | Decidable of an equation between Model .binary32 and Model FloatTy.float.fmt |
low (usability) | No instance is found although both sides reduce to the same format. | worked around: stated at FloatTy.float.fmt |
NaiveThread.reg_of_float |
| B685 | MojoProofTest/NaiveThread.lean, thread_run's docstring |
low (docs) | It cited Kernel.sound_cellsWith before that theorem was on its branch; cited.py checks module docs only, so it did not flag the name. |
fixed by the merge da154f9 (the theorem is MojoProof/Sym/Kernel.lean's) | cited.py on the merged tree |
| B686 | roadmap/kernels/cards/naive-matmul.md | low (scope) | thread_run and thread_skip are not Kernel.Sound theorems and their premises are open, so they are not roadmap evidence: the card stays L0 and says what they cover in its prose. |
fixed: the card cites NaiveKernel.correct (L2), NaiveKernel.matmul_nanEq (L3) and NaiveKernel.matmul_error (L4), the corollaries for naive itself (6b5b414), with the GPU record tests/gpu/naive/record.txt (L1, 4062812), so its level is L4; its prose states the L3 equality's premise that no round is fused (B747) |
roadmap_status.py --check |
| B695 | MojoProofTest/OblShared.lean | low (duplicate) | Its summaries cnt3H, cnt3B were the same definitions as SymLoop's cntH, cntB (a summary does not record a pointer's address space). |
fixed in 248cf6b: OblShared uses cntH, cntB, and cnt3_covers checks that cnt's loop paths cover cnt3 |
the audit's DUPDEF_tests 0 |
| B696 | the naive matmul's entry block (%26, %27, %37, %38, %40) |
info (kernel) | The index arithmetic is mul/add without nuw/nsw and %40 is a getelementptr inbounds into C, both computed before the range test, so for a thread out of range the words wrap and %40 may be poison in the semantics. No path of such a thread uses %40, so this is not a kernel bug; the skip path's obligation on %40 is only that it evaluates. |
documented (docs/proofs/obl.md) | MojoProofTest/OblMatmul.lean naive_skip_row, naive_skip_col |
| B700 | take_pairs, matmul_take_nanEq, matmul_take_eq, matmul_take_error (MojoProof/Sem/Matmul.lean) |
low (scope) | The prefix lemmas take one row length s for both A and B, while Mat.Pre allows row strides sA ≠ sB. The naive kernel has sA = sB = 768; a kernel with two strides needs get2_cols with cell_of_floatBin over Fin K directly. |
fixed in a9a6f81 and ca92587: cols_pairs, matmul_cols_nanEq, matmul_cols_eq and matmul_cols_error take row strides sA, sB with K ≤ sA, K ≤ sB; the one-stride take_pairs, matmul_take_nanEq, _eq and _error are one-line corollaries at sA = sB = s, with their statements unchanged; matmul_take_nanEq deleted when its last use became an instance of the family's theorem (B1205, 37f9de0) |
MojoProofTest.Matmul.cols_inst (strides 3 and 2); NaiveSound builds unchanged |
| B701 | Mem.Buffer.of_block, Mem.Fits.of_block, Mem.Holds.of_block |
low (placement) | Sem facts placed in MojoProof/Sym/Kernel.lean; in Sem/Precond.lean the store forms Mem.Buffer.store, Mem.Fits.store and Mem.Holds.store are their one-line corollaries. |
fixed in a5e6fe2: moved to Sem/Precond.lean with the same names; the store forms are their corollaries | MojoProofTest/Precond.lean store_x |
| B702 | Grid.advance_other, Grid.fire_wait (added in ecb4a1f) |
low (duplicate) | They restated Grid.advance_set (Sem/Confluence.lean) and Grid.fire_trace (Sem/Schedule.lean) in other words, which near_dups does not flag. |
fixed in 8ccc2bc: deleted; Labels.MemOk.of_threads uses the originals |
MojoProofTest/Labels.lean store3_ok |
| B715 | mojo_kernel's flag contract (MojoProof/Sym/KernelCmd.lean) |
low (scope) | The flag needs a loop clause: a loop-free kernel with fmul contract, and map2 with the flag, were refused ("contract needs a loop clause"). |
fixed in 9859ffe and 2b95c1e: with map2, the flag gives n.ret as a RetWith true (mojo_ret's Ret moved by RetWith.exists_true_of_ret, MojoProof/Sym/RetFlag.lean, on paths whose summaries record no fmul contract product, pathNoProds by decide +kernel) and n.correct by Kernel.sound_map2With (contract := true); earlier, 2daa0fa (a loop-free kernel takes the flag). A map2 kernel whose paths record an fmul contract product is not covered (n.ret fails) |
MojoProofTest/KernelContract.lean kgK, kg_twin, map2_contract (positive, on contractProg), kf_noloop (refused at its loop, which has no clause) |
| B716 | n.sound_loop with the flag contract |
low (instance) | It has no closed instance. Closing kfK.sound_loop needs a memory invariant over the six threads of L23 and a precondition true of every start valuation, while the clause's pre is · = VF, one valuation. |
fixed in 9f08643: the clause's pre is preF, the start facts of some thread k of L23 (program, identity, special registers, oracle, function, %0, %1) with a memory of the invariant memF k. The generated premise's facts imply it for every admitted thread. The invariant memF is Elem and Elem.Only from a memory with outF's blocks (memF_zero, memF_end). The post is memF (thread + 1). kernelK is kfK.sound_loop with every premise closed: six threads, every address choice, the oracle ω₁. The generator is unchanged |
MojoProofTest/KernelContract.lean kernelK, kfK_retLs (thread 0); the open-goal #guard_msgs test of kfK.sound_loop is kept |
| B717 | the loop clause's terms (MojoProof/Sym/KernelCmd.lean) | low (usability) | A term with field notation on a binder without a type (fun V i W => invF V.ctx V.mem 0 i W) does not elaborate in the generated statement; fun (V : Valuation) i W => … does. |
fixed in ff60666: each of the loop clause's four terms is elaborated at its type, so binders without a type elaborate (documented in docs/kernel.md since dd36e50) | kfK with binders without a type (MojoProofTest/KernelContract.lean) |
| B718 | kernel evaluation of a postcondition over a loaded float | low (proof engineering) | Deciding a postcondition that decodes a loaded float (Val.ofFloat of the loaded bytes) exhausts the kernel's memory (runs killed); comparing the bytes takes 7.6 s and 3.9 GB. |
worked around: the invariant memF compares bytes through Elem with bsF; postF deleted in 9f08643 |
MojoProofTest/KernelContract.lean memF, kfK, kernelK |
| B719 | mojo_kernel with a loop clause, its proof of n.starts |
low (usability) | It used unseal Array.anyM.loop in, which fails ("failed to set [local semireducible]") in a file that unsealed Array.anyM.loop at file level. |
fixed in 00be0b8: unseal only when Array.anyM.loop is sealed |
MojoProofTest/KernelContract.lean keeps its file-level unseal and builds kfK |
| B720 | mojo_kernel's share (MojoProof/Sym/KernelCmd.lean) |
low (audit) | It shares only with definitions in the current module's imports, so a test that does not import the module of an equal earlier definition adds a duplicate (kfK.paths = cntk.paths until KernelContract imported MojoProofTest.KernelCmd); and a test with mojo_kernel off share duplicates its own sym_summary definitions (kfE, kfH, kfS). |
fixed: KernelContract imports MojoProofTest.KernelCmd and shares (e03f99c, 3cf76aa); without mojo_kernel.share a module's mojo_kernel shares with the module's own earlier definitions and records its new ones, so no module has two definitions of one value (72e5c8e). Sharing only with what the module imports is by design: a module can name only what it imports, and DUPDEF_tests catches the rest |
the audit's DUPDEF_tests 0; MojoProofTest/KernelContract.lean kgK (its #guard_msgs that kgK.args is unknown) |
| B730 | mojo_obl's phi evaluator (MojoProof/Sym/Obl.lean) |
low (tactic gap) | It accepts only Value.loc and non-negative Value.int operands and otherwise throws "mojo_obl: phi operand", so Obl.regOf gives no register after the edge %45 → %46, whose %48 operand is the float literal 0.0. |
fixed in 4b90a80: Obl.flitOf evaluates floatLit ft lit, and evalV_float is the operand's lemma; NaiveIn.head_in gets %47 and %48 from obl_have and no longer applies Valuation.intoWith_regs_phi (its prods field: by mojo_inv through Obl.prodOf, B797) |
MojoProofTest/Inv.lean naive_head, naive_head_open |
| B731 | mojo_obl's evaluator, case SNode.fbinP (MojoProof/Sym/Obl.lean) |
low (tactic gap) | It computes floatBin on the operands' values in the kernel, so it needs closed operands and gives no value for the latch's contracted fadd (%66) on a symbolic accumulator. |
fixed (0464405): the evaluator's SNode.fbinP case gives the node a value on ofFloat operand values with their fmul contract products (SNode.eval_fbinP_ofFloat, floatBin_contract_ofFloat, floatBin_ofFloat_factors); round_in's obl_have gives %48 after the round directly and NaiveIn.acc_fadd is deleted |
MojoProofTest/OblNaive.lean dotS_vals, with the open-goal twin dotS_open; MojoProofTest/NaiveIn.lean round_in |
| B732 | Val (MojoProof/Sem/Value.lean) and Value (MojoProof/LLVM/Syntax.lean) |
low (usability) | They have no DecidableEq, so decide +kernel cannot decide equations of values, of phi operand lists or of statements ("failed to synthesize Decidable"). |
worked around: the tactic kernel_rfl (Obl.krfl) |
kernel_rfl (MojoProofTest/KernelRfl.lean, e607406); its uses in NaiveIn.lean's head_in, exit_in and in MojoProofTest/SymColl.lean |
| B733 | Obl.findHyp (MojoProof/Sym/Obl.lean) |
low (tactic gap) | It matches whole hypotheses only, so a fact inside a conjunction is not found; each proof of NaiveIn first takes At, Head and the invariant apart with obtain. |
fixed in 4b90a80: Obl.parts, withParts, withFacts split every hypothesis into its conjuncts and the Prop fields of a structure, recursively, for every tactic of Obl's method (mojo_obl, mojo_inv, mojo_ret); NaiveIn's obtains of At, Head and the invariant are gone |
MojoProofTest/Obl.lean cnt_rounds_struct, cnt_rounds_struct_open |
| B734 | elaboration of (V.ctx.scope m (V.frameAtWith c l S) k).regs r |
low (elaboration) | The elaborator's definitional check of it against (V.after S).regs r at a concrete summary unfolds the summary. |
open (elaboration), with no user in the tree: the workaround scope_regs is deleted (bd29c87), since obl_have now proves NaiveIn's %48 and that term is no longer elaborated |
none |
| B735 | MojoProofTest/NaiveIn.lean, the facts after a round | low (duplication) | One obl_have on round W costs about 3.4 s and 20,000 heartbeats, so round_in in one piece passed 200,000; the facts are split into four private lemmas (regs_a, regs_b, mem_in, acc_in), and the split repeats a 6-line setup (obtain of At, Head, the invariant; pairs_length; j < max K 0; W.ctx.prog) in five proofs, copied text the audit does not count. |
fixed in 4b90a80 and 9808157: the library tactic obl_have h₁ : e₁, …, hₙ : eₙ normalizes the valuation once for all items; round_in is one piece with one 12-item obl_have, within 200,000 heartbeats; regs_a, regs_b, mem_in, acc_in deleted |
MojoProofTest/Obl.lean cnt_have and the error example; round_in |
| B745 | NaiveThread's launch memN (MojoProofTest/NaiveThread.lean) |
low (test infrastructure) | It does not meet NaiveSpec.At: its C block has 4 bytes where At.bufC asks for m * 50257 * 4, its A and B blocks 8 bytes where At.bufA and At.bufB ask for 768 * 4, and A and B are writable where At asks for read-only. So runIn and runOut have no instance there, and skip_threads and thread0 are not their corollaries. |
fixed in 72b2e6d: MojoProofTest/NaiveStart.lean evaluates the start of naive on one block of 2 × 2 threads at m = 1, n = 2, every A, B, K ≤ 768 and oracle, C 50257 * 4 bytes writable, A and B read-only (start12), proves At at every thread (at12), and runs threads 0 and 2 by runIn and threads 1 and 3 by runOut (runs12, first12). thread0, thread0_twin and skip_threads stay: memN does not meet At, and their conclusions are concrete words |
MojoProofTest/NaiveStart.lean runs12, first12 |
| B746 | mojo_inv (MojoProof/Sym/Inv.lean) |
low (tactic gap) | It proves %47 at the latch's entry but leaves (latchAt W).regs (idx "49") = some (.bits 1 1) open: %49 = icmp slt %47, %16 is Val.ofBool of a signed comparison of words of naturals, which Vals.conv (syntax, congruence, defeq, local equations, omega) does not decide from i < max K 0 and K ≤ 768. |
fixed in 4b90a80: Vals.decStep rewrites a closed decide p to true or false when omega proves p or ¬ p from the local and launch facts, before Vals.norm |
MojoProofTest/Inv.lean naive_path (states %49), naive_path_open |
| B747 | scripts/roadmap_status.py, a kernel card's scope column | low (scope) | The scope it reads off a cited theorem's premises is the launch shape and finiteness; it does not show an oracle premise, so the naive matmul card's L3 row does not say that NaiveKernel.matmul_nanEq needs a thread whose oracle fuses no round. |
fixed in 421a898: the scope column reads the premise % 3 ≠ 2 of a cited theorem above L2; naive-matmul's L3 reads NaiveKernel.matmul_nanEq only for a thread whose oracle fuses no round (no oracle number 2 modulo 3) |
roadmap_status.py --check; the naive-matmul row of roadmap/STATUS.md |
| B750 | scripts/Audit.lean, unused |
low (audit) | A @[simp] lemma proved by rfl that only simp/dsimp use counts as unused: definitional rewrites leave no constant in the proof term (20 at a05ef90: the field lemmas of the contraction-off map and TValue.mentions_none). |
worked around in 32b0f7a: the field lemmas are proved by cases x; rfl, so simp uses them as propositional rewrites; the three Eff.contractOff_* lemmas are deleted for Eff.contractOff's equations; evalTV_ch is proved through evalTV_regs. Open: count a name of a used proof's simp only list as used, or say that rfl simp lemmas need a targets line |
MojoProof/Sem/ContractOff.lean, section "Fields the map keeps" |
| B751 | scripts/Audit.lean, equivalences |
low (audit) | A commutation lemma f (g x) = g (f x) has sides headed by two different library definitions, so it is counted as two definitions of one concept (Thread.resume_contractOff). |
worked around in 32b0f7a: stated as Function.Commute, as Frame.contractOff_set is Function.Semiconj |
Thread.resume_contractOff |
| B752 | the unused-tactic linter, MojoProof/Sem/ContractOff.lean:437 | low (build) | It reports all_goals rfl in the none branch of exec_contractOff_call as unused, but removing it leaves goals unsolved (logs s34a-b5): a false positive, one warning in the build. |
fixed in 5b366f5: the case is simp only [exec, bind, Except.bind, hG, hQ, hF, evalTV_ch, throw, throwThe, MonadExceptOf.throw]; repeat' split; all_goals simp only [Except.map, *]. The case ran under <;> over cases h : exec …, and the rfl was needed in the ok branch only, so the linter saw a no-op in the error branch |
the build: no unused-tactic warning in MojoProof/Sem/ContractOff.lean |
| B765 | MojoProofTest/NaiveSpec.lean, At, RunIn, RunOut |
low (proof engineering) | naive_sound is not one call of naive.sound_mat: RunIn and RunOut take the thread facts bundled in At (registers as f.regs (idx "j")), while Kernel.sound_mat's Hin and Hout take them flat (f.regs j), so naive_sound builds At from them, once per premise, with six idx "j" = j facts by decide +kernel. |
fixed in fa24708: Kernel.sound_mat's per-thread premises take Mat.Entry; naive_sound is one call of naive.sound_mat with NaiveSpec.At.of_entry, no repack and no idx facts |
naive_sound's body (MojoProofTest/NaiveSound.lean), NaiveKernel.correct; NaiveIn.lean and NaiveStart.lean build unchanged |
| B766 | Kernel.sound_mat's implicit arguments (MojoProof/Sym/KernelMat.lean) |
low (usability) | At a call whose buffer sizes are numerals (m * 768 * 4) the elaborator does not solve prog.layout.size ?t, ?al or ?sC from hbuf ("Application type mismatch"), so the caller names t, enc, al, sA, sB, sC. |
worked around in 18b3ad3 (the named arguments in naive_sound); 88abbe1: n.sound_mat's binders carry those names |
logs s34b-b4, s34b-b5 |
| B767 | keep11 (MojoProofTest/NaiveKernel.lean) |
low (proof engineering) | omega on cell L11 0 + 4 ≤ i, with cell L11 0 a closed term over Launch.index, hits the maximum recursion depth. |
worked around in 6b5b414: (show cell L11 0 + 4 = 4 by decide +kernel).trans_le hi |
keep11 |
| B768 | MojoProof/Sym/KernelMat.lean, its imports | low (build) | Field notation L.index k .x and Launch.apart_xy need import MojoProof.Sem.Index, which MojoProof.Sym.Kernel does not export; the error is "Invalid field index". |
fixed in 18b3ad3 (the import) | logs s34b-b3, s34b-b4 |
| B769 | mojo_kernel's clause mat (MojoProof/Sym/KernelCmd.lean, elabMat) |
low (usability) | mat [] chains and mat paths [] were accepted, since the path checker's cover of an empty list is vacuous (coversEntryWith c P fn [] = true): the theorem then covers only launches with no thread out of bounds (no paths) or in bounds (no chains). |
fixed in a4f4b8a: mat refuses an empty paths or chains, evaluated (List.isEmpty by evalExpr) before the path checker ("mat needs a path; …", "mat needs a chain; …", naming fn); 1ed0412 keeps n.sound_mat's hygienic names as before the check |
MojoProofTest/NaiveSound.lean naiveP (mat [] [chainN]), naiveC (mat [skipN] []) |
| B770 | elabMojoKernel (MojoProof/Sym/KernelCmd.lean) |
low (build) | Adding the mat dispatch inside its do block failed with "(deterministic) timeout at «LCNF simp»": the function is at the compiler's heartbeat limit. |
fixed in a209653, a21359a and 5330086: steps 5 and 6 are elabArgs and elabMap2 (elabMojoKernel is about 252 lines); elabMat resets nextMacroScope once, after its checks (the empty lists, a Nat and a Bool, and inv's chain, an error text), none of which returns a name. A later evalExpr may mint an earlier check's temporary _tmp name again, which is harmless: evalExprCore runs under withoutModifyingEnv, so the earlier declaration is gone, and the value is the later term's; the comment says so. Step 3 could be split further |
every mojo_kernel test module; naiveA, naiveB, naiveV (the path checker's refusals after the reset); the statement dump |
| B771 | scripts/cited.py, its model of mojo_kernel |
low (tooling) | It declared N.sound_of for every unrefused mojo_kernel N :=, while with mat the command declares N.names, N.starts and N.sound_mat and no N.sound_of, so a docstring citing naive.sound_mat was reported missing and one citing naive.sound_of passed. |
fixed in 2501615: with a mat clause scan declares N.names, N.starts, N.sound_mat and not N.sound_of, and n.sound_mat is in OTHER |
cited.py on MojoProofTest/NaiveSound.lean |
| B780 | Mem.namesBelow, Mem.checkClosed (the start's check, MojoProof/Sem/Grid.lean) |
medium (scale) | The check reads every byte of every block (b.bytes i); an allocated block's bytes are init.getD i .undef, which List.getD walks from the head, so the kernel's cost is quadratic in the block size. At At's sizes (m = n = 1, C 201,028 bytes, A and B 3,072 bytes, from Mat.mem) the check alone, and the start with it, run out of 24 GB, by decide +kernel on concrete tensors and by kernel_rfl on variable ones. |
fixed in 82da34f, with 9583ffc (B781) and B833: the check reads each byte of an allocated block in about log₂ n steps. NaiveStart.start12 evaluates the start with its check in place for every K (it had K ≤ 768): 25.4 s of type checking, NaiveStart 55 s in the build. The start on memT Z0 Z0 with the check: 16.1 s and 6,041,736 KB (before: out of 24 GB). check12 stays, so that trace12 and facts12 do not read the bytes again |
NaiveStart.start12; logs s34c-q-, s34c-a2-, s35c-q3-TA2, s35c-v4-S12, s35c-final4 |
| B781 | Mem.namesBelow (MojoProof/Sem/Grid.lean) |
low (scale) | namesBelow of one allocated block of 201,028 undefined bytes takes 35.7 s of kernel checking and 8,888,620 KB (decide +kernel). |
fixed in 9583ffc: namesBelow's loops are allBelow (a Nat.rec): 201,028 undefined bytes 39.3 s and 8,991,212 KB → 21.1 s and 6,737,380 KB, 100,514 bytes 10.3 s (linear); compiled code runs the old body (allBelow_csimp, whose right-hand side is private; GPU compare 0 differ) |
logs s34c-q-Q3, s35c-p2-N0, s35c-a3-A0, s35c-a3-A1, s35c-g1-run |
| B782 | evaluated starts in tests (MojoProofTest/NaiveStart.lean) | low (test infrastructure) | A definition for the start's grid (run12 := match Grid.start … with …, irreducible or not) cannot be unfolded in a proof: unfold, rw and delta all run out of 24 GB. The inferred cause, not measured, is that the elaborator or the kernel reduces Grid.start with its check in place (B780). |
fixed in 72b2e6d: theorems take hs : Grid.start … = .ok (g, c) and of_start evaluates the start's own value after eval12 rewrites the check |
logs s34c-n-* (exit 143) |
| B783 | scripts/Audit.lean, equivalences |
low (audit) | It counted a @[csimp] theorem, whose form @f = @g the compiler requires, as two definitions of one concept, so Mem.compact_csimp made the count 1. |
fixed in 91e8f5e: @[csimp] theorems (Compiler.hasCSimpAttribute, the imported extensions being loaded) are not counted; the docstring says so |
the merged tree's audit: equivalences 0 with Mem.compact_csimp |
| B795 | Obl.prove (MojoProof/Sym/Obl.lean), Inv.prove (Inv.lean), Ops.run (Ops.lean) |
low (tactic gap) | A goal after have or show is wrapped in an mdata annotation and the tactics matched on the annotated head, so mojo_obl, mojo_inv and mojo_ret left such a goal open although they prove it without the annotation. |
fixed in 4b90a80 (consumeMData) |
MojoProofTest/Obl.lean cnt_rounds_struct_open (its second mojo_obl runs after have) |
| B796 | tests/gpu/Compare.lean | low (tooling) | The interpreted compare (lake env lean --run tests/gpu/Compare.lean naive …) does not finish one naive launch with K = 768 (more than 5:28; 8 s for K = 1). |
worked around in 4062812: the compiled test executable runs the same Gpu.main (.lake/build/bin/mojoproof_test gpu naive <dump> <launches>), 3:16 for all 8 launches; the record's compare: lines name it |
logs s34d-e2, s34d-e4 |
| B797 | the method's register values (MojoProof/Sym/Obl.lean) | low (tactic gap) | It has no rule for Valuation.prods (the fmul contract operands a register carries), so head_in proves Head's prods field after the edge %45 → %46 by NaiveIn's private prods_phi, enter_prods and evalOps_cons, and acc_round still rewrites with Valuation.intoWith_regs_phi for the latch's fadd contract value. |
fixed in bd29c87: a rule for Valuation.prods (Obl.prodOf), so obl_have and mojo_inv give the fmul contract operands of a register; NaiveIn's head_in and round_in have no prods lemma of their own |
MojoProofTest/Obl.lean hand_prods, hand_node, cnt_prods and the #guard_msgs twin; NaiveIn head_in, round_in |
| B798 | scripts/cited.py, TACTIC |
low (tooling) | The regex for a tactic's quoted name, "([a-z][A-Za-z0-9_]*)", did not accept the usual trailing space of a leading atom (syntax "obl_have " …), so the tactic counted as missing. |
fixed in 2501615: TACTIC accepts one trailing space (fbd4a8a had worked around it with the atom "obl_have") |
cited.py |
| B799 | NaiveKernel.pre12, NaiveStart.pre12, NaiveKernel.valid12 (MojoProofTest) |
low (duplicate) | Two lanes each proved that mem12 A B meets Mat.Pre: NaiveKernel.pre12 at K = 768, NaiveStart.pre12 at every K ≤ 768, so the first was an instance of the second. NaiveKernel.valid12 : L12.Valid was NaiveOut.validZ : (launch2 1 1 2 2).Valid, since L12 is that launch (an abbrev). The audit counted neither (DUPTHM_tests 0). |
fixed in c683284: one pre12 in NaiveKernel at every K ≤ 768, which NaiveStart uses; valid12 deleted, its users take NaiveOut.validZ. Since 0f76643 the audit's DUPTHM and DUPTHM_tests also compare statements after unfolding reducible definitions that are not instances (statementKey, scripts/Audit.lean) and mark such a pair (up to reducible unfolding); the key pairs the old valid12 with NaiveOut.validZ, and the duplicates probe (pairAbbrev_lt, pair_lt in MojoProofTest/AuditProbe.lean) makes the audit exit 1 without it |
MojoProofTest/NaiveKernel.lean, NaiveStart.lean; the audit: duplicates probe: ok, DUPTHM 0 |
| B800 | scripts/Audit.lean, equivalences |
medium (audit) | A review finding: the fix of B783 exempted every @[csimp] theorem, so a @[csimp] equality @f = @g between two public definitions, two names of one concept, went uncounted, and nothing tested the exemption. |
fixed: isEquiv exempts a @[csimp] theorem only when its right-hand side is a private definition (isPrivateName), the code compiled for the left-hand side; the test module MojoProofTest.AuditProbe plants a public-to-public @[csimp] equality and one with a private right-hand side, and the audit prints equivalences probe: ok and exits 1 unless it counts the first and not the second |
isEquiv; MojoProofTest.AuditProbe.addZero_csimp, zeroAdd_csimp; the audit: equivalences probe: ok, equivalences 0 |
| B801 | NaiveKernel.L11, valid11 (MojoProofTest/NaiveKernel.lean) |
low (duplicate) | A review finding: L11 := launch2 1 1 1 1 and its proof of validity restated the one-thread launch Launch.one and Launch.valid_one (MojoProof/Sem/Spec.lean) under another expression, so the audit's duplicate counts missed them. |
fixed in b80b34e: keep11 is stated at Launch.one with Launch.valid_one; L11 and valid11 are deleted; launch2_valid (MojoProof/Sem/Spec.lean since fb82378, every launch2 with positive sides in range) gives NaiveOut.validZ and KernelXY.valid2x3 in one line each |
keep11, launch2_valid |
| B802 | Vals.decStep (MojoProof/Sym/Vals.lean) |
low (tactic gap) | A review finding: it took the first closed decide subterm (e.find?) and returned none when omega settled neither it nor its negation, so an undecided decide P before a provable decide (i < n) hid the second, while the docstring promised the first that omega settles. |
fixed in 63b97c1: decStep tries each closed decide subterm in order until omega settles one |
MojoProofTest/Vals.lean, the example on (decide P, decide (i < n)) |
| B803 | roadmap card bodies; scripts/cited.py | low (documentation tooling) | Card text cited the deleted MojoProofTest.NaiveOff.obs_contractOff (naive-matmul.md:88), and no check saw it: cited.py read only module docstrings, roadmap_status.py only the evidence key. |
fixed in 1ced82d: cited.py also checks the backticked fully qualified names of card bodies against the declarations and modules, with the names mojo_kernel's clauses generate; it fails on the old card text |
python3 scripts/cited.py: 0 missing |
| B804 | NaiveOff.obs_contractOff (MojoProofTest/NaiveOff.lean) |
low (placement) | A review finding: the observation transfer for every program of the fragment Program.fbinOracle had no dependency on the naive kernel but sat in the tests, so reusing it meant importing kernel fixtures. |
fixed in 82f0504: Kernel.Obs.contractOff and both directions, Kernel.Obs.contractOff_iff, in MojoProof/Sym/ContractOff.lean; NaiveOff's matmul_nanEq and matmul_error use it |
NaiveOff.matmul_nanEq, NaiveOff.matmul_error |
| B818 | MojoProofTest/OblMatmul.lean naive_skip_row, naive_skip_col |
low (duplication) | NaiveOut.runOut no longer uses them: the mat clause's naive.out proves the same path premises by mojo_obl at the 2-D index facts. They remain tests of mojo_obl only. |
fixed (6764d90): kept as tests of mojo_obl (the out-of-bounds path's wrapped index arithmetic, the poison-or-pointer %40 and the select's low bit; B696's evidence cites them); their docstrings say no proof uses them and that the kernel theorem's out-of-bounds run is NaiveSound.naive.out |
git grep -w naive_skip_row gives OblMatmul.lean only |
| B819 | MojoProofTest/NaiveThread.lean thread_skip |
low (duplication) | Its proof repeats RetWith.of_first's argument at skipN (the two later blocks have no effects and the obligation .mem []); it could be a short corollary of RetWith.of_first. |
fixed (627238c): thread_skip is RetWith.of_first at skipN (41 to 9 proof lines), and thread_run is RetLsWith.of_inv with round_inv (03b14a2), both with their statements unchanged |
skip_threads, thread0 |
| B820 | MojoProof/Sym/KernelCmd.lean, elabMat's n.out |
low (test gap) | No refusal test covers the error "n.out does not elaborate: no path of the clause is discharged": every mat test either succeeds or is refused earlier. A test needs a path list whose paths the checker accepts but whose out-of-bounds run the tactics cannot prove. |
fixed (acc25ff): naiveO is mat with a path list that the checker accepts (skipN's first path, then chainN's entry edge and exit path) but whose run out of bounds the tactics cannot prove; it is refused with "naiveO.out does not elaborate: no path of the clause is discharged for a thread out of bounds …" |
MojoProofTest/NaiveSound.lean naiveO |
| B821 | scripts/roadmap_status.py GENERATED |
low (tooling) | It lists no names of the mat clause (names, starts, out, sound_mat), so a card's front matter cannot cite them as generated names; its base detection uses .sound_of. scripts/cited.py (card bodies) accepts them. |
fixed (db26db9): the generated names include names, starts, out, sound_mat, runInv and sound_inv, and a kernel's full name comes from the namespaces open at its command, so a mat kernel (with no sound_of) gets its generated names |
roadmap_status.py --check |
| B822 | MojoProof/Sym/KernelCmd.lean, the loop clause's terms (ff60666) | low (audit noise) | The ascription ($t : T) adds macro expansions, which renumbers the _hyg.N binders inside the generated loop statements: the raw statement dump lists KernelLoop.cnt2k.loop, cnt2k.sound_loop and KernelContract.kfK.* as changed although they are alpha-equivalent (0 differences with every hygienic number normalized). A pin on raw statements would flag them. |
open (by design; the normalized dump is the check) | the statement dump's normalized diff |
| B833 | Mem.alloc (MojoProof/Sem/Value.lean), the bytes of a block allocated from an init list |
medium (scale) | bytes := fun i => init.getD i .undef: reading byte i walks i conses, so a kernel evaluation that reads every byte of such a block (the start's namesBelow) is quadratic: 1,536 bytes took 69.2 s and 15.1 GB, and 3,072 ran out of 24 GB. |
fixed in 82da34f: bytes := ByteTree.bytesOf init, a Braun tree of init that the kernel reads in about log₂ n steps a byte; ByteTree.bytesOf_eq gives the old body and every Mem.alloc lemma keeps its statement; compiled code runs the old body (ByteTree.bytesOf_csimp, private right-hand side; GPU compare: 8 launches, 0 differ). namesBelow by decide +kernel on init lists of N zero bytes: 1,536 in 1.7 s, 3,072 in 3.98 s and 4,472,120 KB, 6,144 in 8.1 s |
logs s35c-q3-T1536, -T3072, -T6144, s35c-final4, s35c-final4-cmp; NaiveStart.start12 |
| B834 | MojoProofTest/Gpu.lean:20-22 (module doc) | low (doc) | It said the vector kernels' only float operation is "one fadd, fmul or fsub without contract", but vadd's IR has fadd contract float and vsub's fsub contract float; only vmul's fmul has no flag. The conclusion (no oracle choice reaches the output) held, since no operand carries an fmul contract product. |
fixed in cd162f9: the doc names fadd contract, fmul and fsub contract and says their operands carry no fmul contract product |
grep -h "fadd\|fsub\|fmul" tests/corpus/{vadd,vsub,vmul}/*.ll |
| B848 | mojo_inv's register goals (MojoProof/Sym/Inv.lean Inv.prove, through Obl.attempt) |
low (tactic cost) | Obl.attempt kernel-checked each field's proof, so a Head whose registers mojo_inv re-evaluates after the round went over the default 200000 heartbeats: in round_in, 116973 with a 10-item obl_have, 234057 with %47 and %48 only. |
fixed in a9b8f24: mojo_inv builds its proof unchecked and has the kernel check it once, and checks each goal's proof on its own only when that fails (Inv.attemptIf, Inv.run), so the goals left open are the same; round_in's obl_have names %47 and %48 only, at 190845 heartbeats (B852) |
NaiveIn round_in |
| B849 | mojo_inv's memory facts (MojoProof/Sym/Inv.lean Inv.memFact) |
low (tactic gap) | There was no rule for a store, so Elem after k + 1 threads at the end of the naive thread's exit path (the store of %48 at %67) was Elem.apply_store and Elem.Only.apply by hand in NaiveIn's exit_in. |
fixed in 075faa3: a store rule for every program, Elem after one more thread by Elem.apply_store and Elem.Only by Elem.Only.apply, on the memory of an effect or of a block's run of one effect (SEff.run_one); exit_in has no hand store step |
MojoProofTest/Inv.lean naive_store; NaiveIn exit_in |
| B850 | docs/proofs/naive.md, the proof plan's items 2 to 4 | low (doc) | The plan of runIn still described the base proofs: it named acc_round and its rewrite with Valuation.intoWith_regs_phi, said "One obl_have of 12 items gives the registers and the memory after the round", left out mojo_inv and kept exit_in's hand store step. |
fixed at the merge: items 2 to 4 say what head_in, round_in and exit_in use (obl_have for %47 and %48, Obl.nodeHyp with acc_fadd, mojo_inv for Head and the store) |
docs/proofs/naive.md against MojoProofTest/NaiveIn.lean |
| B851 | MojoProof/Sym/Obl.lean (mojo_obl's syntax docstring), MojoProofTest/Vals.lean (the decStep example's docstring) | low (style) | Two lines over 100 characters, 121 and 101. | fixed in 95f11eb | the line-length check of the touched files |
| B852 | MojoProof/Sym/Inv.lean Inv.reg, Inv.pathV |
low (tactic cost) | round_in uses 190845 of the default 200000 heartbeats, a 4.6% margin: mojo_inv normalizes V (pathV, Obl.normV) and evaluates each register (Obl.regOf) once per field of Head, sharing nothing between fields, so a later change to Head, the evaluator or round_in can go over the limit. |
fixed (0464405): round_in uses 114,261 heartbeats (#count_heartbeats; 192,128 before). mojo_obl's state caches each phi edge's operands and which phis set a register, so the registers no phi sets pass an edge by Valuation.intoWith_regs_phi_ne and intoWith_prods_phi_none with no operand evaluated (161,860), and round_in's obl_have names the memory after the round, which shares %48's evaluation of the latch (114,261). docs/proofs/obl.md gives the history |
NaiveIn round_in |
| B853 | README.md, the schedule-independence bullet | medium (doc) | A review finding: the short README said that one fault-free, race-free run shows every schedule terminates with the same result. Grid.start_sound (MojoProof/Sem/Determinism.lean) needs a completed run, ¬ Bad (which includes the !invariant.load promises, not implied by race freedom), a fixed address choice and oracle, and an observation that reads only the memory's blocks; the traces of two schedules may differ. |
fixed: the bullet states the completed run, the three conditions, the fixed choices, and that only observations of the blocks agree | README.md; docs/proved.md keeps the long form |
| B854 | scripts/roadmap_llvm.py, the L3 rule | medium (roadmap tooling) | A review finding: a construct card is raised to L3 when its construct occurs in any corpus file that an L2 kernel card cites, but a kernel card cites more files than its theorems are about (naive-matmul cites every specialization; its theorems are about the float32 file and its contraction-off build), so a construct used only by an unproved sibling could be raised once it has GPU evidence. No generated L3 card is known to be wrong. | fixed (3913b7a): a construct card is L3 only when an L2 theorem of a kernel card is about a program whose corpus file uses it; roadmap_llvm.py reads each theorem's program from the code (the program of the mojo_kernel command that adds it, or Kernel.Sound's first argument) and its file from mojo_import or mojo_corpus with the manifest's sha256; an unbound program, a name no command or theorem adds, a statement with no Kernel.Sound, a sha256 mismatch and a card that does not cite its theorem's file are errors. No level changed (20 L3 cards before and after); with a GPU record of the unproved bf16 sibling, the old rule raised fpext and fptrunc to L3 and the new rule keeps them at L2 |
python3 scripts/roadmap_llvm.py --check |
| B855 | SkelVadd23.allocNext_above (MojoProofTest/SkelVadd23.lean) |
low (duplicate) | A review finding: it unfolds Mem.allocNext and reproves that allocation keeps Mem.FreeAbove, which allocNext_res (MojoProof/Sym/Start.lean) already gives at .ok (m', d); the duplicate counts miss an instance of a stronger statement. |
fixed (ddab909): allocNext_above is deleted; its three uses, in shared_above and launchArgs_above, are Sym.allocNext_res, and those two statements are unchanged. The audit's instances search (B867) finds instances of stronger statements, but not this one |
SkelVadd23.shared_above, SkelVadd23.launchArgs_above |
| B856 | docs/proved.md, the loop and "not proved" items | low (doc) | A review finding: the loop item said the kernel theorems through a loop are at one memory and choice, and the "not proved" list named launches other than one-dimensional ones for every kernel above it, both contrary to the naive entry and NaiveKernel.correct (every memory, input and valid launch with side 1 in z). |
fixed: both items name the examples they describe | docs/proved.md |
| B860 | start_ret (MojoProof/Sem/Trace.lean), its foldlM_ok call |
low (duplicate) | A review of the duplicate search: the call with the invariant ∀ c, b.1.next ≤ c → b.1.blocks c = none reproves inline what Sym.allocNext_res and Sym.shared_res (MojoProof/Sym/Start.lean) give at gs = []. Sem cannot import Sym, and Mem.FreeAbove is defined in Sym/Start.lean. |
fixed (2d01029, 1d62205): Mem.FreeAbove, Sym.allocNext_res and Sym.shared_res are in MojoProof/Sem/Grid.lean with their names, and start_ret and Sym.Grid.start_ok use Sym.sharedFold_res, built on them |
the audit's instances 0; start_ret |
| B861 | foldlM_ok (MojoProof/Sem/Trace.lean), foldlM_inv (MojoProof/Sem/Grid.lean), foldlM_res (MojoProof/Sym/Start.lean) |
low (duplicate concept) | Three invariant lemmas for List.foldlM in Except: indexed, plain, and the "every result" form. The duplicate probes do not catch them, because the statements differ. The uses in start_ret do not use the index (P := fun _ …), so foldlM_ok could be foldlM_res at Q := fun _ => True once that is in Sem. |
fixed (2d01029, 11ff2ab): foldlM_ok is deleted and foldlM_res is in Sem; foldlM_inv is kept, a one-line instance of foldlM_mem_inv: it assumes the fold succeeded and gives the invariant, while foldlM_res assumes every step succeeds and proves that the fold does, so neither is an instance of the other; the indexed forms are instances of foldlM_idx_inv; since bc00f1c foldlM_idx_inv and foldlM_res are both cases of foldlM_idx (MojoProof/Sem/Grid.lean), whose steps keep an indexed invariant or fail with an error of a property E (E true and false) |
the audit's instances 0 |
| B862 | scripts/cited.py | low (doc tooling) | It counted a name in a module docstring as a citation and reported it missing when it belongs to a dependency (Mathlib's Fin.ofFn_take_eq_take_ofFn in Sem/Matmul's module docstring). |
fixed (ff09d51): it falls back to the package declarations, as roadmap_status.py's package() does per root |
python3 scripts/cited.py |
| B863 | Sym.vals_fold, vals_length, vals_snoc, vals_append, vals_getElem? (MojoProof/Sym/Term.lean) |
low (duplicate) | Found by the audit's instances search: vals_fold reproved scanSnoc_fold at f := fun vs nd => nd.eval V vs, line for line, and the other four reproved scanSnoc's four lemmas, which the search cannot see. Payload imports Path, which is above Term, so Term could not use them. |
fixed (4e451ea): section scan (scanSnoc and its five lemmas) is in Term.lean; the five vals_* lemmas are one-line instances, with their statements unchanged, and vals is scanSnoc (fun vs nd => nd.eval V vs) by definition |
the audit's instances 0 |
| B864 | Race.vadd_apart (MojoProofTest/Race.lean) |
low (a tactic test) | vadd_apart : Apart (fun k => 4 * k) 4 is apart_mul 4 (MojoProof/Sem/Buffer.lean), proved by mojo_race because it tests the tactic. |
kept: vadd_apart is named by vadd_hO's statement (Tiling.clip … vadd_apart), by Race.lean's docstrings, docs/proofs/race.md, docs/proofs/README.md and docs/tactics.md, so it stays a theorem and instances_tests stays at 1; vadd_hO stating Tiling.clip … (Sem.apart_mul 4) would free it |
the audit's instances_tests 1 |
| B865 | NaiveStart.trace12 (MojoProofTest/NaiveStart.lean) |
low (duplicate) | It evaluated the start again to show an empty trace. | fixed (aed6058): it is Grid.start_trace (MojoProof/Sem/ScheduleOwned.lean) |
trace12 |
| B866 | Sem.enter_allocas (MojoProof/Sem/Writes.lean), Sym.enter_fields (MojoProof/Sym/Block.lean) |
low (duplicate) | enter_allocas is the fourth conjunct of enter_fields, proved separately; found only by extending the instances search to conjuncts, which was not adopted. |
fixed (4e451ea): enter_fields' fourth conjunct is enter_allocas h, with its statement unchanged |
the library builds; the statement dump |
| B867 | scripts/Audit.lean, the instances search (isInstanceOf) |
low (audit) | The search misses B855's pattern: x = .ok (m', d) → m'.FreeAbove is a consequence of ∃ r, x = .ok r ∧ r.1.FreeAbove (Sym.allocNext_res), not an instance of it. |
open (limitation): finding it would mean matching a statement's conclusion under ∃ and ∧ against another's hypotheses |
none |
| B875 | scripts/cited.py scan, OTHER |
low (tooling) | It knew the mat clause's generated names (names, starts, out, sound_mat) but not those of mat … inv (runInv, sound_inv), so correct citations in module docs (KernelCmd, NaiveKernel, NaiveSound) and in the naive card counted as missing. |
fixed at the merge: with inv at the end of the mat clause's line it adds N.runInv and N.sound_inv |
python3 scripts/cited.py (0 missing) |
| B876 | NaiveKernel.correct (MojoProofTest/NaiveKernel.lean) |
low (proof size) | Each of n.sound_inv's three premises restated Hin's twelve per-thread facts as binders, so correct passed three lambdas with 11 to 20 binders each, applied At.of_entry three times, and grew from 2 lines to 16. |
fixed (03b14a2): n.runInv is per thread with one premise LoopInvWith, and n.sound_inv has one premise, LoopInvWith at each Mat.Thread; correct is 2 lines, and NaiveIn.runIn is naive.runInv at its three premises |
the open-goal test of naive.sound_inv (MojoProofTest/NaiveSound.lean) |
| B877 | elabMat's n.runInv, its premise for the round (MojoProof/Sym/KernelCmd.lean) |
low (gap) | The premise leaves the round's RoundWith to the user, besides the invariant's step; for naive that is OblMatmul.naive_rounds by mojo_obl at symbolic registers. The clause could try mojo_obl on it if the invariant names the registers mojo_obl reads (%11, %12, %16, %26, %37, %47, %48 for naive), which is docs/proofs/loop.md's steps 2 and 3. |
in part (1f4a993, d1ab4b3, 01b3fcd, b5df156): the clause proves Mat.Head (the function, the three buffers, Elem, Elem.Only) at every head of a round by mojo_inv and Mat.Head.iterate at LoopSeg.bases, n.runInv/n.sound_inv are over LoopIterWith, and n.kept gives each register of LoopSeg.kept at every head with its value at the loop head by obl_have (or that value itself, %40 at naive); the refusal names the goal of the failed attempt's first error. The round's RoundWith is still the user's; the design is in docs/proofs/kernel.md, "The heads of the rounds", "Not built". The twin of design step 4 is built: fnK (MojoProofTest/NaiveKeep.lean), whose loop loads through a register a block of its loop path sets; the clause refuses it at Mat.Head.iterate's premise LoopSeg.loadsFrom (44684b0, message 14520dd). Steps 2 and 4 are not built: step 2 changes what the user states, and step 4 needs K ≤ 768, m * 768 < 2 ^ 31 and n * 768 < 2 ^ 31 at naive, which are IR constants, not clause facts. How the clause would read them from the kept registers' mul nodes and state them as a premise hdim of n.runInv and n.sound_inv is in the same section (c97efbd). s39: the trip count of n.runInv and n.sound_inv is max K 0 (B1095, abc42e5), so the round's i < smax(K, 0) is round's premise; n.kept is added before n.runInv and used in its proof (3f92ed1). Left: the phis as clause terms, hdim, and mojo_obl on RoundWith with its refusal; docs/proofs/kernel.md NaiveIn.lean's hand-written proof lines went from 77 to 16 (21ab41e): its theorems are instances of the family's, whose run is hand-written in MojoProofTest/NaiveFamRun.lean (B1302). |
NaiveSound's open-goal #guard_msgs of naive.sound_inv's premise and its example of naive.kept; naiveE's refusal with the goal; naive_bases; NaiveIn.runIn; naiveK's refusal (NaiveKeep) |
| B878 | matInvChain (MojoProof/Sym/KernelCmd.lean) |
low (by design) | It checks one chain, one loop and no nested loop by whnf at the default transparency, so a chain given by an irreducible definition, or one whose loops is not a literal after whnf, is refused ("… do not reduce …") even when it has one loop. The message names the check, so the user can unfold the term. |
open (by design) | naiveN, naiveT (MojoProofTest/NaiveSound.lean) |
| B879 | NaiveIn.entry_in (MojoProofTest/NaiveIn.lean), NaiveThread.thread_run |
low (dead code) | Once runIn is naive.runInv, the clause discharges the edge into the loop, so entry_in had no use; thread_run's only use is thread0_chain, and NaiveIn's module doc and runIn's docstring described the old proof. |
fixed at the merge: entry_in is deleted; OblMatmul.naive_entry stays as a test of mojo_obl whose docstring says no proof uses it; thread_run stays as the test thread0's run; the docs describe naive.runInv |
git grep -nw entry_in |
| B880 | the audit at the merge of four branches into 743f0b0 | low (audit) | Three non-zero counts at the merge: DUPDEF_tests 2 (MojoProofTest/SymLane.lean's gemv blocks b_1 and b_14 equal SymInfo's mgemm_nocontract blocks), instances 1 (Sym.vals_fold of Sym.scanSnoc_fold), instances_tests 1 (Race.vadd_apart of Sem.apart_mul). |
fixed: DUPDEF_tests 0 by B890 and instances 0 by B863 (both 4e451ea); instances_tests 1 is B864, kept |
the audit, against scripts/counts.tsv |
| B890 | MojoProofTest/SymLane.lean | low (duplicate) | Its mojo_import of gemv_kernel defined two blocks again that SymInfo's import of mgemm_nocontract already defines, because SymLane did not import SymInfo; DUPDEF_tests went to 2, which the gate caught. |
fixed (4e451ea): SymLane imports SymInfo, so mojo_import names the shared blocks by SymInfo's constants |
the audit's DUPDEF_tests 0 |
| B891 | exec_laneid (MojoProof/Sym/Block.lean) |
low (duplicate) | It repeated exec_sreg's proof, a near_dups cluster of 2. |
fixed (b3e6703): exec_nullary is the one proof; exec_sreg and exec_laneid are one-line instances with their statements unchanged |
near_dups.py: 0 clusters |
| B892 | the module docstrings of MojoProof/Sym/LoopFacts.lean, MojoProofTest/SymLane.lean, MojoProofTest/SymCast.lean | low (doc) | 4 backticked names that cited.py could not resolve: short forms of of_block lemmas, and the kernel names gemv_kernel and gevm_kernel. |
fixed (fe366d8, b3e6703) | python3 scripts/cited.py (0 missing) |
| B893 | the block checker's rule table (MojoProof/Sym/Rules.lean), MojoProofTest/Rule.lean | low (doc, stale table) | After f780290 and bd35b78 the table still said that Inst.cast covers "trunc, zext and sext" and refuses "the other casts", and that Intrinsic.laneid is refused, so #mojo_rules and the generated llvm-ir cards (the cast cards, inst-call, intrinsic-laneid) misstated the checker; the build does not catch it, because the table is text. |
fixed (a89aa71): the table takes exec_laneid and every cast, and the llvm-ir cards are regenerated |
MojoProofTest/Rule.lean's #guard_msgs; python3 scripts/roadmap_llvm.py --check |
| B905 | Obl.memOf, Obl.nodeVals (MojoProof/Sym/Obl.lean) |
low (tactic cost) | The memory after a block was computed from every node value of the block, so mojo_inv's first memory field in round_in cost about 50,000 heartbeats, repeating obl_have's evaluation of the latch. |
fixed (5fe83d4): mojo_obl evaluates a node only when it is read, once (Obl.nodeVal, cached in St.node), so Obl.memOf evaluates only the nodes a block's effects read and nodeVals is deleted. round_in without the memory in obl_have: 162,079 to 119,566 heartbeats; as committed, naming it: 114,261 to 114,268; head_in 39,726 to 37,855 (#count_heartbeats on copies) |
NaiveIn.round_in, NaiveIn.head_in |
| B906 | NaiveIn.round_in (MojoProofTest/NaiveIn.lean) |
low (tactic cost) | simp only [pairs, List.length_take, List.length_ofFn] on the hypothesis hj (j < (pairs …).length) took 1,069,036 heartbeats, while the same simp on a local equation hlen is cheap. The simp itself takes 354 to 861 heartbeats. The cost is obl_have on a context without a length equation (850,305 heartbeats up to obl_have, 72,408 with hlen): the earlier form ran the simp inside have hi := by, so no hlen reached obl_have. See B960. |
fixed: the local hlen before obl_have, and on the tactic side fdcc825 (B960) |
round_in |
| B907 | KernelContract.kg (MojoProofTest/KernelContract.lean) |
info (test data) | kg's names gives local 0 the name "entry", but local 0 is both parameter %0 (some 0) and block label 0, which share one index space, so its names do not describe its locals. |
fixed (5adea22, 91189bf): kf's names are n, p, then the blocks entry, hdr, body, st (labels 2 to 5), then the results; kg's block is label 9, after its results, and is named "entry" |
MojoProofTest/KernelContract.lean builds, with chainF_covers, chainF_refused and kfK |
| B908 | mojo_ret on RetWith (MojoProof/Sym/Ops.lean) |
low (test gap) | No test had a RetWith path through phi edges. |
fixed (ecc21a7): MojoProofTest/OpsWith.lean's kq_ret tests mojo_ret on a RetWith path through a phi edge (two phis, an add of a phi-set register) for every flag and every valuation of kq's function; its open-goal twin, with V.fn = kq behind an irreducible definition, leaves the add's obligation open, and mojo_obl closes it. Ret goals through phi edges remain untested |
OpsWith.kq_ret and its twin |
| B909 | SState.stmt's cast case (MojoProof/Sym/Checker.lean), the rule text of exec_cast (MojoProof/Sym/Rules.lean) |
medium (coverage) | A review finding: the checker takes fptosi, fptoui and inttoptr as SNode.castAt nodes, but castV (MojoProof/Sem/Eval.lean) returns unsupported for all three, so the node's success obligation holds at no valuation, and the rule text "every cast" claims coverage that proves no run. No corpus file uses the three. Not a false theorem. |
fixed (9dee627): the checker takes a cast only where castOk admits its operator and types, and castOk is false exactly where castV faults on every operand (castOk_iff, for every layout, memory and choice); the rule text and Rule.lean's pin are narrowed. The residue within taken cases is B951 |
MojoProofTest/SymCastOk.lean casts_refused, sitofp_taken, fptosi_faults and the five pins of the checker's block line |
| B910 | program_file, bindings (scripts/roadmap_llvm.py) |
medium (tooling) | A review finding: the L3 reader resolves x.prog against the mojo_import/mojo_corpus bindings only, so an ordinary declaration that shadows an imported program (an imported Outer.p.prog and a def Outer.Inner.p.prog, with a theorem in Outer.Inner about p.prog) is resolved to the imported one, and the theorem's L3 evidence is credited to a program it is not about. No current card is known to be misclassified. |
fixed (958433d, 3c1d4a3): the L3 rule reads each L2 theorem's program from its elaborated statement (roadmap/llvm-ir/programs.tsv, written by scripts/L3Programs.lean), so a shadowing declaration resolves as Lean resolves it; the text resolver is deleted | lake env lean --run scripts/L3Programs.lean --self-test (the nested-namespace case resolves to the inner definition), python3 scripts/roadmap_llvm.py --self-test |
| B911 | roadmap/kernels/cards/naive-matmul.md, Open. | low (docs) | A review finding: the card listed generating the run of an in-bounds thread as open, though naive.runInv is generated by the mat … inv clause; what is open is the invariant's three facts. |
fixed (16d701d): the item names the invariant's facts at the head, each round and the exit | the roadmap check |
| B915 | roadmap/kernels/cards/gemv.md (title "(TorchLean.Tensor.matVecLoop)") | low (spec) | "Bit-exact against the fixed-order fold with contraction off" cannot mean the sequential fold for gemv. Both corpus kernels add 32 strided loop sums by a butterfly. At 40 binary32 pairs (2^24, then 39 ones) the warp's word is 2^24 + 38 and the in-order dot product is 2^24. The bit-exact reference is FloatLib's Model.reduceAlong along bflyTree warpOffsets 0 of the 32 in-order strided dot products (warpDot_eq). |
fixed: the gemv card names the tree order | MojoProofTest/WarpDot.lean vals40, eq40 |
| B916 | bfly_warp_add (MojoProof/Sem/Bfly.lean:179) |
low (premise stronger than needed) | Its premise asked for a finite Model.add at every node of lane l's tree. The proof used only the root's (h.2.2), and bfly_add_error shows the root's finiteness implies every node's and every lane's. |
fixed (b94768c): bfly_warp_add is deleted; bfly_add_error is its statement at the root's finiteness |
bfly_add_error's users in Sem/WarpDot.lean |
| B930 | MojoProof/Sym/Inv.lean:245 (reg, the iterate case) |
low (tactic gap) | mojo_inv reads the function of an iterate f^[i] W by Obl.fnOf W, without pathV. When W is a valuation after a path (here head (Valuation.entry c 0 m' f)), it finds no function. A proof must first state W.fn = naive.fn_0 by mojo_inv (NaiveIn.kept's hf line). Line 481 uses fnOf (← pathV V). |
fixed (16e8fbd): the iterate case reads the function by Obl.fnOf (← pathV W); the mat … inv clause's have hf line in n.kept (MojoProof/Sym/KernelCmd.lean) is no longer needed |
MojoProofTest/Inv.lean naive_iter and its open twin naive_iter_open |
| B931 | MojoProofTest/NaiveIn.lean:78 (NaiveIn.Head), MojoProofTest/LoopFacts.lean:99-112 (naive_head) |
low (superseded code) | NaiveIn.Head was no longer in the invariant. Its one user was LoopFacts.naive_head, which proved that it is kept by every round: the same facts as Mat.Head.iterate plus NaiveIn.kept's registers. |
fixed (f6fe192): NaiveIn.Head and LoopFacts.naive_head are deleted (restated at Mat.Head, naive_head would be Mat.Head.iterate at naive); LoopFacts.naive_blocks keeps Valuation.iterate_blocks' test at naive's loop |
the audit's unused 0 and instances_tests 1 |
| B932 | MojoProofTest/ContractOff.lean:49 (fmaK's function), MojoProofTest/Bad.lean:407 (kernP) |
info (test data) | B907's issue in two more test kernels: local 0 is parameter %0 (some 0) and block label 0 in one index space, but names calls it "entry". |
open | as B907's fix in 5adea22: number the blocks after the parameters |
| B933 | MojoProof/Sym/KernelCmd.lean:1112 (the refusal of n.runInv), MojoProofTest/NaiveSound.lean:494 |
low (test gap) | The refusal has three causes: the edge, Mat.Head at the loop head, and a load through a register the loop does not keep. Only the first has a test (naiveE). A test of the others needs a kernel whose loop loads through a register it does not keep, or a loop head where an input pointer is unknown. |
fixed (44684b0): naiveW (fnO, the latch's address in the output's pointer %10, which the loop keeps: the register of LoopSeg.bases at the loop head is not an input pointer, the second cause) and naiveK (fnK, a load through a register the loop does not keep, the third), each a #guard_msgs of the refusal; the refusals name the cause since 14520dd |
naiveE, naiveW, naiveK (MojoProofTest/NaiveKeep.lean) |
| B934 | scripts/Audit.lean, the unused rule |
info (tool) | A definition named only in an elaborator's mkConst (here LoopSeg.bases in elabMat) counts as unused, because the generated declarations' values are not scanned for it. |
worked around in d0aef95: the test naive_bases cites it, and it is a concrete instance |
the audit's unused 0 |
| B935 | a statement-comparison script outside the repository | info (tool) | The script listed the first 20 names of the changed lines of two declaration dumps together. It did not say which were added, deleted or changed, and it truncated, which mixed added and changed names. | worked around: a replacement prints the three lists with counts | none |
| B936 | scripts/cited.py:18 and :122 | low (tool) | cited.py listed the declarations that mat … inv generates as runInv and sound_inv, without kept, so a card that cites MojoProofTest.NaiveSound.naive.kept was reported missing. |
fixed (8822127): cited.py knows N.kept |
python3 scripts/cited.py: 0 missing |
| B945 | MojoProofTest/Mutate.lean:452-453, :460 | medium (build) | Since c307ad0 the checker takes tiled_matmul's %40 and %47, each with a getelementptr on the shared-memory global. The pin still named %40 as the refused block; the first refused block is now %67, at its barrier call (statement 0), and lake build MojoProofTest failed at Mutate.lean:462. |
fixed (7903896) | the pin's own #guard_msgs |
| B946 | roadmap/llvm-ir/cards/inst-{addrspacecast,bitcast,fpext,fptrunc,ptrtoint,sext,sitofp,trunc,zext}.md, roadmap/status.yaml (generated) | low (docs, stale generated files) | roadmap_llvm.py generates the cards' checker sentence from Rules.lean's rule text. The text changed at 9dee627, so the 9 cast cards still said "every cast, ptrtoint before any store". status.yaml was stale because the gpu-model cards' lean: lines changed. |
fixed (95584bd) | python3 scripts/roadmap_llvm.py --check, python3 scripts/roadmap_status.py --check |
| B947 | docs/proved.md:24, docs/proofs/README.md:221, MojoProofTest/SymCast.lean:8 | low (docs) | These three still said the checker takes "every cast". | fixed (3546899) | git grep -n "every cast" lists only Sem/Skeleton.lean (about intCast) and BUGS.md |
| B948 | SState.stmt's load and store cases (MojoProof/Sym/Checker.lean) |
low (coverage) | A load or store whose pointer operand is the global itself, with no getelementptr, is still refused, because SState.op has no entry for a global. Each of layernorm's 25 specializations with shared memory has one such store and one such load (@…_gpu_shared_mem). |
fixed (168cde0): the load and store cases take a global pointer operand as the global's node at that operand (0 for a load, 1 for a store), then the load or store on it; B952 and B1003 are fixed; the residue in layernorm's %453 is the rsqrt.approx call at statement 16 |
MojoProofTest/SymSeg.lean ln_store, ln_store_ends, ln_load, ln_shared |
| B949 | SNode.pay (MojoProof/Sym/Payload.lean:131), Summary.oblivious (:172) |
low (design, coverage) | SNode.globalAt is payload, because Valuation.Skel lets two valuations' globals differ. So Summary.oblivious refuses a summary with a getelementptr on a global (gevm's %59 after the barrier), and the skeleton route does not take it; SNode.payOk (Valuation.Rel, which has the same globals) does. Two runs of one launch get their globals from Grid.start, so Skel could perhaps require equal globals. |
fixed (160a0c0): a global's pointer is skeleton (SNode.pay); SNode.eval_skel, vals_skel and Summary.oblivious_skel take hg : V₁.ctx.globals = V₂.ctx.globals, which Valuation.Rel supplies; B1001 records what the row understated |
MojoProofTest/SymSeg.lean ln_store_oblivious |
| B950 | MojoProofTest/SymSeg.lean:154 and :185 | low (test duplication) | gemv_first_wait and gevm_after_barrier_wait share a 12-line proof (Seg.sound and Thread.resume_at at the segment's collective and length). A corollary of Seg.sound with the resume position would make each one line. |
fixed (02bff11): Seg.resume (MojoProof/Sym/Segment.lean), Seg.sound with the resumed position |
gemv_first_wait and gevm_after_barrier_wait (MojoProofTest/SymSeg.lean), one line each |
| B951 | castOk (MojoProof/Sym/Checker.lean:140) |
low (coverage) | castOk matches castV's case split exactly (castOk_iff), but not the operand checks inside a case. The checker takes a bitcast between types whose sizes differ, where castV faults on every operand, poison included (bitcast_sizes), so the node's obligation cannot hold and Block.sound is vacuous there; and ill-typed IR inside a taken case (e.g. sitofp of a float operand). The LLVM verifier rejects both, and no corpus file has one. |
closed, sound as is (82b5099): castOk stays castV's case split, because Val is untyped |
MojoProofTest/SymCastOk.lean bitcast_sizes |
| B952 | SState.stmt's load case (MojoProof/Sym/Checker.lean:188, if σ.stored then none) |
low (coverage) | The checker refuses a load after the segment's first store. Layernorm's %453 (barrier at 0, load of the shared global at 1, store to the stack slot %12 at 2, load %175 at 3) is refused at statement 3, so the block after the barrier is not in the fragment, even with B948 fixed. This is the same design limit as docs/proofs/gemv.md item 6 (loads after stores). |
fixed (ea8b10b, fe5c94f, 10fd3c1): SNode.loadAfter, SState.stmt's load case and its case of SState.stmt_sound, and the value lemmas in MojoProof/Sym/LoadAfter.lean; the residue in %453 was B1003 (fixed); what is left there is the rsqrt.approx call at statement 16 |
MojoProofTest/SymSeg.lean ln_after, ln_twin, ln_apart, ln_reload |
| B960 | MojoProof/Sym/Obl.lean findHyp (288), arith (249) |
low (tactic cost) | mojo_obl's arith gave omega the whole context, with At.ne's block disequalities bA ≠ bC and bB ≠ bC, which omega splits before the max K 0 a bound on j needs: round_in up to obl_have took 850,451 heartbeats without hlen : (pairs …).length = K and 72,311 with it. This is the mechanism behind B906. |
fixed (fdcc825): arith runs omega first without the context's disequalities (Obl.hasNe), then with them; 35,934 heartbeats without hlen and 34,109 with it |
none in the tree: #count_heartbeats on a copy of round_in |
| B961 | MojoProofTest/OblGevm.lean | low (test coverage) | intBin_udiv_ofNat, intBin_sub_wrap, intBin_xor_ofNat, intBin_ashr_xor_pos/_neg, SNode.eval_select_same/_word, SNode.eval_icmp_eq_mod and SVal.eval_int_negSucc have no open-goal twin of their own. In gevm_kernel their premises are constants (divisor 32, the shift amount 63, k < 2^w of a literal) or follow from K < 2^31 through %7 = sext %5. A twin per lemma needs a hand-built function where only that lemma's premise fails. |
fixed (0d65c4a): MojoProofTest/OblInt.lean gives each listed lemma an open-goal twin of its own, on a hand-built block | lake build MojoProofTest.OblInt |
| B962 | scripts/roadmap_llvm.py, roadmap/llvm-ir/programs.tsv | low (tooling) | programs.tsv is generated from the built .olean files. roadmap_llvm.py --check catches a missing row or a row of no L2 evidence. It does not catch a new Kernel.Sound theorem in MojoProof.Kernels.* with no row, or a statement whose program changed: only lake env lean --run scripts/L3Programs.lean --check does, and it needs a build. |
fixed (f6e3660): CI runs L3Programs --check and --self-test after the tests |
lake env lean --run scripts/L3Programs.lean --check |
| B963 | MojoProof/Sym/OblLemmas.lean load_buffer2 |
info | load_buffer2's premise is now the whole tensor's bound (R S size_t ≤ size). A buffer that holds only up to element r S + k needs load_buffer_at directly. No in-tree use is affected. |
by design (b63467c) | the gevm and naive obligations' builds |
| B964 | roadmap/kernels/cards/gemv.md:43 and :48 | low (doc) | Review 33, low 4: the card gave warpDot's error bound for every format, but warpDot_matVec and warpDot_vecMat take fmt.isIEEE = true (FloatFormat has formats that are not IEEE); and as the evidence that the warp's word and the sequential fold's differ it cited eq40, which is the equality with the butterfly reduction, not vals40. |
fixed (516653a): the card says IEEE formats and cites vals40 |
MojoProofTest/WarpDot.lean vals40; python3 scripts/cited.py |
| B970 | MojoProof/Sem/Trace.lean racy_eq_false_of_phased |
medium (design) | The phased discipline asks every access to lie in its thread's tile, so a reduction's halving tree, where thread t reads cell t + s, cannot meet it. |
fixed (de84c08): the writer form racy_eq_false_of_writers, where a read may touch bytes nobody writes in its phase; racy_eq_false_of_phased is its instance |
MojoProofTest/Shared.lean racy_eq_false_tr, racy_trR |
| B971 | MojoProof/Sem/Trace.lean Owned, racy_eq_false_of_writers |
medium | Access.conflict exempts two atomics of one operation on the same bytes; Owned and the writer form do not, so a reduction's output word, updated by thread 0 of every block of threads, met no discipline with two or more blocks of threads. |
fixed (85b8ab4): racy_dropBlocks (MojoProof/Sem/Shared.lean), taken by Grid.sound_halving |
MojoProofTest/Shared.lean racy_trA and its twin |
| B972 | gevm_kernel, sum_kernel; MojoProof/Sym/Rules.lean (barrier refused) | info | That the kernels' traces meet the access-pattern premises of Grid.sound_cells and Grid.sound_halving is not derived from the IR: the block checker refuses barrier calls, so no summary of the phases between barriers exists. |
open | none |
| B973 | MojoProofTest | low (test coverage) | No test ran a grid with shared memory and a barrier to its end; the run-level theorems (Grid.sound_cells, Grid.sound_halving) were tested through their trace forms and the instance sound1024. |
fixed (a17e189, 62757b2): sh_sound, Grid.sound_cells on the evaluated run of a two-thread kernel that writes its cell of a shared global, waits at a barrier and reads the other thread's cell; red_sound, Grid.sound_halving on the evaluated run of a halving tree on two blocks of four threads with an atomicrmw add output word |
MojoProofTest/Shared.lean sh_sound, red_sound; twins sh_twin (no barrier) and red_twin (no second barrier): racy, sound for no observation |
| B974 | roadmap/kernels/cards/reduction.md | low (card text) | The card says the atomic add makes the sum's order depend on the schedule. The corpus file adds i32 words, and for them the output word is the same for every order of the blocks (rmw_add_perm). |
open: card text below | MojoProofTest/Shared.lean add_any_order |
| B975 | MojoProof/Sem/Race.lean phases |
low (test tooling) | phases counts barriers in a Std.HashMap, whose lookups at a block of threads other than 0 the kernel does not reduce, so decide +kernel about the phases of a trace with two blocks of threads gets stuck. |
fixed (48e5a7b): phasesF and phasesF_eq are in MojoProof/Sem/Race.lean next to phases, names and statements kept |
MojoProofTest/Shared.lean red_sound, red_twin |
| B985 | mojo_kernel … mat's n.starts and elabArgs's argument facts (MojoProof/Sym/KernelCmd.lean paramsConsts, paramsSimp) |
medium (bug) | For a kernel whose function is a constant c := { g with … }, simp only [c] unfolds c to have __src := g; Func.mk … __src.params …, so the parameters stayed g.params, not a list literal, and n.starts did not elaborate: the command failed before n.runInv. |
fixed (4952817): paramsConsts unfolds c and, while c's parameters are another constant's, that constant too; the elabArgs site (the map2 and loop clauses) changed alike and has no { g with … } test |
naiveK, naiveW (MojoProofTest/NaiveKeep.lean), whose refusals are at n.runInv, after n.starts |
| B986 | the refusal of n.runInv (MojoProof/Sym/KernelCmd.lean, elabMat's inv branch) |
low (gap, message) | The refusal listed three causes and showed the failed attempt's first error from ⊢ on; at fnO that was Type mismatch hne.right : bB ≠ bC … expected bC ≠ bC, the last alternative of its first over hne.1 and hne.2, which names neither the register (%10) nor the premise of Mat.Head.iterate. |
fixed (14520dd): the refusal names the blocks of the loop path at which LoopSeg.loadsFrom at LoopSeg.bases fails, or the register of LoopSeg.bases whose value at the loop head is not shown to name a block other than the output's; otherwise the edge or Mat.Head |
naiveK, naiveW (MojoProofTest/NaiveKeep.lean), naiveE (MojoProofTest/NaiveSound.lean) |
| B987 | the mojo_import and mojo_corpus syntax (MojoProof/LLVM/Quote.lean, MojoProof/LLVM/Corpus.lean) |
low (usability) | The atom " as " makes as a keyword in every module that imports these files, so a named argument (as := …) does not parse there and must be written («as» := …); two binders are named as (ToWait.of_runTo's and fminmax_vec_nanEq's, which FloatRel.lean uses without the import). |
open: the non-reserved atom &" as " at Quote.lean:151 and Corpus.lean:93, 97 would fix it; the patch is checked on a scratch copy of the two syntax shapes and their elaborators' index reads, and no #guard_msgs pin prints «as»; not applied while the syntax is frozen (B1126 is the same finding) |
MojoProofTest/SymWait.lean writes («as» := …) |
| B988 | MojoProof.Sym.Grid.fire_blocks (MojoProof/Sym/SchedWait.lean) |
low (naming) | It had the short name of MojoProof.Sem.Grid.fire_blocks (MojoProof/Sem/Schedule.lean: a fire keeps the memory's blocks) and another statement (the blocks of threads' barriers fired in turn). |
fixed (65c7abb): renamed Grid.fire_barriers; its uses, scripts/targets.txt and docs/proofs/kernel.md follow |
the build of MojoProofTest/SymWait.lean; git grep -n Grid.fire_blocks finds only Sem's |
| B989 | mat … inv's check of LoopSeg.loadsFrom (MojoProof/Sym/KernelCmd.lean, elabMat) |
low (hygiene) | The check elaborated, in the user's module, a term with (· matches .store ..), which left a private matcher on SEff there (one per module with a mat … inv command: NaiveSound, NaiveKeep), against the comment that the checks keep none of their names; the audit's checked count went from 18615 to 18619. |
fixed (114cd40): the command evaluates the LoopSeg and sorts its blocks in its own code |
the audit's checked count; the pins of NaiveKeep and NaiveSound unchanged |
| B1000 | SState.stmt's load case (MojoProof/Sym/Checker.lean:190) |
low (coverage) | With loads after stores through a register or a node taken (ea8b10b), a load whose pointer operand is a global, after the block's first store, was still refused: the .glob branch was only before a store. No corpus block has one; layernorm's %453 loads the global before its first store. |
fixed (10fd3c1): the global's SNode.globalAt node, then SNode.loadAfter on it |
MojoProofTest/SymSeg.lean ln_reload |
| B1001 | Summary.oblivious and pathOk (MojoProof/Sym/Payload.lean) |
low (coverage) | B949 says only the skeleton route refused a getelementptr on a global. But pathOk includes Summary.oblivious, so the Valuation.Rel route refused a summary with SNode.globalAt too, even though payOk passed it. |
fixed (160a0c0): globalAt is skeleton, and the two-run theorems take hg |
ln_store_oblivious |
| B1002 | MojoProof/Sym/Command.lean:28 and :30 | low (duplicate instances) | Since ea8b10b, Term.lean derives Lean.ToExpr for SVal and SEff, because Command.lean's deriving instance ToExpr for SNode needs SEff's first. Command.lean still derives both again, which makes instToExprSVal_1 and instToExprSEff_1. The audit does not count them; DocCount and the dump see them (library instances 225 → 227 undocumented). |
fixed (f40740a): Command.lean derives ToExpr for SNode only |
Command.lean: delete the two lines (Requests, item 1); test: DumpTypes lists no instToExpr…_1 |
| B1003 | the checker's calls (MojoProof/Sym/Checker.lean), the rule table's Intrinsic.lifetime refusal |
low (coverage) | Layernorm's %453 is now taken from statement 1 through statement 9, and refused at statement 10, the llvm.lifetime.end call. The checker has no node or effect for llvm.lifetime.start/end, and these calls also block gemv_kernel's entry block (gemv.md item 6). |
fixed (af1ef6e, a0b5cb5) as the end of a segment, not as a checker statement (B1007): SState.lifeAt, summarizeLife, Seg.lifetime and Seg.lifetime_ptr (MojoProof/Sym/Segment.lean), for every program; SState.stmt still refuses the call |
MojoProofTest/SymSeg.lean ln_life (to statement 10, then 11 to 15, refused at 16), ln_life_twin (four markers at %151), ln_life_end (the step at statement 10 on Mem.setLive's memory) |
| B1004 | MojoProof/Sym/Term.lean (SVal.below, SEff.below in ea8b10b) |
low (tooling) | The audit, DumpTypes and DocCount skip a name whose last part is below, which they take for Lean's auxiliary below. So the two new definitions were invisible to the duplicate checks, and SVal.eval_below near-duplicated SVal.eval_append. Found inside this branch. |
fixed (3e375bb): renamed to before, SVal.eval_append is a corollary |
final2: both names in the dump, DUPDEF 0 |
| B1005 | MojoProof/Sym/Term.lean bitcast_bits and the private sum_testBit; MojoProof/Sem/Op.lean:293 hsum |
low (duplicate proof) | Review 33, low 3: the local hsum in Op.lean and Term.lean's private sum_testBit proved the same weighted-bit identity by the same induction. The declaration-level duplicate checks miss local proofs. |
fixed (4787e52): bitcast_bits's word comes from ofBitList.scalar_slice w x 0, and sum_testBit is deleted |
bitcast_bits's users build (SNode.eval_bitcast, gemv_bitcast) |
| B1006 | SNode.payOk (MojoProof/Sym/Payload.lean:503) |
low (coverage) | SNode.loadAfter is always payload and fails payOk, so the two-run Valuation.Rel route (pathOk) refuses every summary with a load after a store. The relation of the memories the earlier effects make is not tracked per node. |
fixed (b8f60aa): SNode.payOk passes a load after a store whose pointer and effects' pointers are skeleton, with its SNode.eval_rel case from SEff.run_rel with every block payload |
payOk true when p and every effect's pointer is skeleton and the statement reads a data type. Its eval_rel case would use SEff.run_rel with a stores premise for the node's effects, given by Valuation.StoresOk and the checker's invariant that es is a prefix of the summary's effects; test: ln_after_rel (layernorm's %453 in two runs) and its twin with %12 payload |
| B1007 | SEff (MojoProof/Sym/Term.lean:91) and its exhaustive matches in MojoProof/Sym/Kernel.lean:907 (Elem.Only.apply) and MojoProof/Sym/KernelIter.lean:140 (LoopSeg.bases) |
low (design) | A summary's memory is only the replay of its load and store effects, and two modules outside the checker match on SEff's two constructors. So an effect with no value that changes the memory another way (a lifetime marker's Mem.setLive, and later an alloca's new block) cannot be a checker statement without a cross-module change. Found while doing B1003. |
partly fixed (48b775e, 9df0a1a, f054e72): the SEff.alloca constructor with its SEff.apply case and its arms in Elem.Only.apply (Sym/Kernel.lean) and LoopSeg.bases (Sym/KernelIter.lean); open: the Mem.setLive constructor for lifetime markers |
an SEff constructor for Mem.setLive, with its SEff.apply case, the two arms (Elem.Only.apply: Mem.setLive only sets a block, so the trace and Elem.Only are likely kept; LoopSeg.bases: false) and a case of SState.stmt_sound; test: refusal ln.prog ln.fn_0 ln.fn_0.b_42 1 moves past 10; MojoProofTest/SymAlloca.lean (alloca kernels, gemv_allocas) |
| B1008 | SState.op (MojoProof/Sym/Checker.lean:114) |
low (coverage) | SState.op takes registers, integer constants and float constants, and gives none on every other constant (zeroinitializer, null, undef, aggregates). So the store of zeroinitializer to %11 at layernorm's %151, statement 11, is refused. insertvalue on undef (%151 statements 3 to 5) is already in B635's open list. |
fixed (e0f5d14): SNode.constAt, tyConst, SNode.eval_constAt; ln_zero, and ln_life_twin's refusal moved to 13 |
a node for a constant whose type gives its value, SNode.constAt, evaluated by evalV; test: ln_life_twin's refusal … b_30 11 = some 11 moves |
| B1009 | foldlM_fix (MojoProof/Sym/OblLemmas.lean:494), withAttrs_args (MojoProof/Sym/Segment.lean:530) |
low (duplicate proof) | foldlM_fix is a general lemma about List.foldlM in Except, but it sits in OblLemmas.lean, which imports Kernel.lean. A module below Kernel.lean cannot cite it. The third audit found Segment.lean's foldlM_keep (af1ef6e) to be its instance. a0b5cb5 made it a have inside withAttrs_args, which is still a 9-line instance. |
fixed (f40740a): foldlM_fix is in MojoProof/Sym/Term.lean, and withAttrs_args rewrites with it in place of its own fold |
move foldlM_fix to MojoProof/Sym/Term.lean, which OblLemmas.lean imports through Block.lean, and use it in withAttrs_args (Requests, item 10); test: the audit's instances stays 0 with the have gone |
| B1015 | scripts/L3Programs.lean, roadmap_llvm.py | medium (tooling) | Review 33, medium 1: the L3 rule bound a theorem's program to a corpus file by the digest it records, so a program that keeps an imported digest with another module (Mutant.program) was credited to that file |
fixed (038affc): bound by the term to a progFiles constant |
lake env lean --run scripts/L3Programs.lean --self-test (mutant) |
| B1016 | scripts/L3Programs.lean, roadmap_status.py | medium (tooling) | Review 33, medium 2: programsIn searched the whole statement, premises and negations included, and the L2 check searched the text for Kernel.Sound |
fixed (038affc): conclusions only, after the binders; the L2 check reads the table | L3Programs.lean --self-test (premise, negated) |
| B1017 | soundProgs (scripts/L3Programs.lean:100) |
low (tooling, by design) | The resolver reads only a literal Kernel.Sound application: a theorem whose conclusion is a definition that abbreviates Kernel.Sound, or a Kernel.Obs theorem, credits no program. At the base Kernel.Obs was counted, but no row came from it (the eleven rows are unchanged) |
open; unfolding reducible heads would cover abbreviations | none |
| B1018 | quoteProgram (MojoProof/LLVM/Quote.lean) |
low | Quoting a program with a list of several thousand entries (the multistage GEMM functions) exceeds the default maxRecDepth | fixed (393078f): the limit is raised to 8 * longest + 512 while the definitions are added |
MojoProofTest/Corpus.lean (the multistage GEMM files import) |
| B1019 | roadmap/llvm-ir/cards/refused-asm-* | low (docs) | The refused-asm cards said "Parser.inst reads no asm callee". The parser reads it and Module.check refuses it |
fixed (393078f), text generated by roadmap_llvm.py | python3 scripts/roadmap_llvm.py --check |
| B1020 | MojoProofTest/Corpus.lean | low (CI cost) | With 22 more files imported and quoted, #mojo_corpus takes about 11 min (673 s in final, from about 5) and the build peaks at 7.5-8 GB |
open; a split of the corpus test by directory would parallelize it | none |
| B1021 | scripts/site.py | low (tooling) | site.py crashes with a traceback (FileNotFoundError) when status.yaml names a card file that does not exist, instead of reporting a problem. It does so on this branch until the shared roadmap files are regenerated |
open (site.py is shared) | none |
| B1022 | mojo_obl (.dec arguments, MojoProof/Sym/Obl.lean) |
low (tactic) | A lemma premise of kind .dec is decided by evaluation and never looked up in the context, so a hypothesis fl = {} or k = 31 is not used (OblInt sub_open, int_negSucc_open) |
open | MojoProofTest/OblInt.lean sub_open, int_negSucc_open |
| B1023 | mojo_obl (Obl.lean nodeEval) |
low (tactic) | No arm for SNode.castAt (a cast whose width is read from its statement), and the tactic matches only Summary.nodes, so a segment (SegSummary) must be wrapped as a Summary (toBarrier) |
partly fixed (4380e20): the bitcast arm (SNode.eval_bitcast_at, twin bitcast_open); other casts at castAt (fpext, fptrunc, …) have no arm, and segments are still wrapped (toShfl, shflRound) |
MojoProofTest/OblGevm.lean bitcast_open |
| B1024 | gevm_kernel %59 after the barrier (MojoProofTest/OblGevm.lean) |
low (coverage) | Statements 7 onward (the load of cell tid.x and the five shuffles) have no obligations proved, and no theorem joins the segment to the loop's exit |
partly fixed (4380e20): statements 7 to 27 (to_shfl, shfl_round, their Waits); statements 28 onward (the last bitcast and fadd, the lane test %88-%96 and the branch to the store into y) are not covered, and nothing joins the segments |
MojoProofTest/OblGevm.lean to_shfl, shfl_round |
| B1025 | mojo_obl's fbin arm (Obl.lean:1088), SNode.eval_fbin_ofFloat |
low (tactic) | At a frame that is a variable, an entry register's fmul contract factors (f.prods r) are not computed by the kernel, so an fadd of an entry register needs the hypothesis f.prods r = none (rflOrHyp). It holds in every run: exec records factors only for an fmul contract result (Sem/Thread.lean:459), and a load, an fadd and a resume record none. But nothing here derives it from the segment before |
open | shfl_round's premise hp; twin factors_open (MojoProofTest/OblGevm.lean) |
| B1026 | MojoProofTest/OblGevm.lean (to_shfl, shfl_round, their Waits) |
low (coverage) | Each segment after the barrier starts from a frame with premises: shared memory holding a vector A after the barrier, and binary32 values in the shuffle results %(69 + 4 j) and the sums %(67 + 4 j). None is derived: not A from the 1024 threads' stores before the barrier, not a result from the shuffle semantics (shflSource, shflSource_bfly in MojoProof/Sem/Bfly.lean), not a sum from the round before. So the Waits theorems (to_barrier_waits, to_shfl_waits, and shfl_round_waits for each j < 4) do not chain |
open | none |
| B1030 | Modular max/kernels/src/layout/layout.mojo:2218-2296 (upcast), :2094-2110 (_comptime_shape_div) @bbc13a71 |
low (upstream, edge case) | Upcast of a stride-0 mode gives the extent shape_div(s, shape_div(f, 0)) = 0, so upcast[2] of (4):(0) is (0):(0), a layout of size 0: a broadcast mode loses its elements. The docstring's signum(a * b) agrees. |
open, not reported | MojoProofTest/LayoutLaws.lean:132-133 (fd84226); conformance case 22, MojoProofTest/LayoutConformance.lean:125 (68e11ac) |
| B1031 | Modular layout.mojo:1501-1506 (_shape_div), :2094-2110, used by upcast |
low (upstream, precondition) | A stride the factor does not divide becomes 1 with no assert: upcast[2] of (2, 2):(2, 7) is (2, 2):(1, 1). The law holds when every stride is a positive multiple of the factor (MojoProof.Layout.Lay.upcast_call). The runtime path agrees: runtime case c5, upcast[2] of (3):(1), has size 1 (B1140). |
open, not reported | conformance case 20, MojoProofTest/LayoutConformance.lean:117 (68e11ac) |
| B1032 | MojoProof/Layout/Laws.lean Lay.upcast_call, Lay.upcast_modes |
low (proof gap) | The upcast law does not cover a positive stride that divides the factor (the extent is divided instead), such as the stride-1 mode of the docstring's example row_major[4, 8]. |
fixed (b6c70bd): Lay.upcast_fuse and Lay.upcast_scale cover a positive stride that divides the factor, when f / s divides the extent; Lay.upcast_call and Lay.upcast_modes are corollaries |
MojoProofTest/LayoutLaws.lean row_major[4, 8] instance; static case 40; runtime c4 |
| B1033 | tests/layout | low (test gap) | The layout conformance test covers static leaves only; layouts with runtime leaves (e.g. _runtime_shape_div, layout.mojo:2199) need a run of a compiled program and are untested. |
fixed as a CPU-run test (ff938ea), not a GPU run: 9 layouts with runtime leaves, 8 agree (79 values), and c8 differs past its size 0 (B1143) | MojoProofTest/LayoutRuntime.lean; tests/layout/runtime/record.txt |
| B1034 | MojoProof/Layout/Basic.lean idx2crd; tests/layout/gen.py:71 |
low (model gap) | With a stride 0 the model's idx2crd gives the coordinate 0 (division by 0 is 0); Mojo's value is unchecked, as the generator forces positive strides for idx2crd. | open | none |
| B1035 | Modular two_level_layout.mojo, bit_layout.mojo @bbc13a71; roadmap/layout/cards/two-level-swizzle.md, bit-layout.md |
low (model gap) | two_level_layout_from_swizzle and BitLayout are not modelled; the bit-layout card is L1 on Swizzle.call_xor alone and two-level-swizzle stays L0. |
fixed: BitLayout is modelled (1fce301, 9a2086a), with BitLayout.call_xor and placement_call; two_level_layout_from_swizzle is modelled (ca33461, 4b8a92e), with Swizzle.twoLevel_call: for every swizzle and every flat static layout that passes both asserts, the value is Swizzle(L(x)) at every coordinate inside the shape and every index below the size; two-level-swizzle goes to L1. Neither is in a conformance test. |
MojoProofTest/LayoutLaws.lean: the bit-layout instances and the twin (2, 2):(1, 1); the two-level instance Swizzle(3, 0, 3) on row_major(16, 8) (:251-265) and its three twins (:350-372, B1146, B1147) |
| B1036 | scripts/roadmap_status.py level rules; roadmap/layout/cards | low (process) | L2 needs a GPU run record; for static layouts the compiler folds the values, so the compile-time conformance test (tests/layout/record.txt) is the test against the compiled code, and it counts for no level. | open: a change to the level rules of scripts/roadmap_status.py | none |
| B1037 | MojoProof/Layout/Laws.lean:1012 Lay.compose_call, :1123 Lay.compose_all (scope); Modular max/kernels/src/layout/layout.mojo:1641 (composition) @bbc13a71 |
low (proof gap; source side unconfirmed) | The composition law is proved for a single-mode B only. For a B of more than one mode the composite adds A's offsets of B's modes, which is A after B only when A adds over them: A = (2, 2):(1, 10), B = (2, 2):(1, 1) meet the cosize assert and composeDiv mode by mode, and the composite maps 3 to 2 where A(B(3)) = 10. The premise for several modes is not stated. |
fixed: Lay.compose_sum for every B whose modes meet composeDiv, and Lay.compose_call under noCarry (b6c70bd); Lay.compose_all under carryFree, a premise on A and B alone that gives noCarry and B(v) < size(A) at every v (6813a10); the source side is confirmed by static cases 38-39 (B1141). Sufficiency only: B1250 |
MojoProofTest/LayoutLaws.lean:207-236 and :286-319; static cases 38-39 |
| B1038 | scripts/roadmap_status.py:97, :562, :583-584; roadmap/layout/cards | low (process) | A construct's L1 ("modelled in Lean") is computed from its lean names alone, so it does not say whether a law is proved, and a card cannot be set below it: upcast (B1032) and composition (B1037) no longer have an open law; bit-layout and two-level-swizzle (B1035) are now proved for flat layouts. The rule still computes L1 from the lean names alone. | open: a change to the level rules of scripts/roadmap_status.py | none |
| B1045 | cross-repository: GPUProof's PTX front end, its Target/PTX/TensorCore/{Mma,LdMatrix}.lean and MojoProof/Sem/TensorCore.lean |
low (duplication across repositories) | Two independent statements of the ISA's fragment tables. GPUProof's PTX front end cites PTX ISA 9.4, has lanes and registers as Fin and bit vectors, checks shapes one by one (exec_tileA at .x4, exec_tileBt at .x2) and has no theorem for .trans or tileAddressesB; MojoProof cites 9.5, uses bounded numbers, proves each family for every p, c, q, and covers .trans (ldm_inv q true, ldmatrix_fragB_cols, ldmatrix_fragB). No theorem connects the two, so a transcription error in either is not caught by the other. |
open (cross-repository; nothing posted upstream) | the conventions agree at the checked shapes (docs/proofs/tensor-core.md, "Where we differ"); a bridge theorem would need that repository as a dependency, which the lane rules forbid |
| B1046 | importer (MojoProof/LLVM/Intrinsic.lean, ldmatrix) |
low (coverage) | The importer recognises ldmatrix.m8n8.x4 (with and without .trans) only; .x1 and .x2 are modelled (ldm q t for every q) but a kernel using them does not import. The corpus uses only .x4: 564 plain and 26 .trans calls. |
open (importer entry requested from the importer's owner) | MojoProofTest.TensorCore.isa_inv covers the layouts of all three counts |
| B1047 | importer, cp.async copies |
medium (coverage) | The copies arrive as inline asm cp.async.cg.shared.global [$0], [$1], $2[, $3];. The corpus has 944 such calls: 686 with the src-size operand and 258 without. This row said the importer refuses them; since 393078f it accepts both forms (AsmCall, MojoProof/LLVM/Asm.lean), and the boundary is now execution: exec runs no inline asm (its last case faults, MojoProof/Sem/Thread.lean), which is what keeps B553's no-op commit_group and wait_group sound. AsyncOp.copy (AsyncCopy.mk dst src size srcSize, srcSize = size without the operand) is the semantics an execution case would dispatch to. |
fixed in its importer part (393078f); the execution part is B1048 | MojoProofTest.Async.bytes covers a copy with src-size; the importer's acceptance is in the corpus test |
| B1048 | grid layer (Grid.fire) |
gap (semantics) | Grid.fire does not dispatch ldmatrix and mma to ldmatrix / mmaStep under Grid.warpReady, and the grid has no per-thread Async state for cp.async, commit_group and wait_group. The models are stated and proved, but a grid run reaching these calls stops as unsupported (B15) or runs commit and wait as no-ops (B553). Wiring needs decoding the lanes' Val registers into the fragments and a field in the thread state. |
partly fixed: mma by ab33fea (Grid.fire's arm, Grid.fire_mma), the lanes' run-time registers by a6c6cd7 (mmaWarp_spec, ldmWarp_spec); open: ldmatrix in the grid (B1325) and cp.async's per-thread state (plan in docs/proofs/async-copy.md) |
MojoProofTest/TensorCoreGrid.lean (f16Grid, bf16k8Grid and three #guards), MojoProofTest/TensorCoreWarp.lean |
| B1049 | MojoProof.Sem.mmaFrags, mma.m8n8k4 .f64 |
low (coverage) | The corpus's 2 calls of mma.m8n8k4 .f64 had no layout: mmaFrags was none there (an 8-row A and C and 64-bit registers, outside the m16 families). |
fixed in a1f6c97: fragA h p c and fragC h p take the number h of 8-row blocks, so m8n8k4 .f64 is fragA 1 1 1, fragB 1 1, fragC 1 1, instances of fragA_inv, fragB_inv, fragC_inv with no second proof, and mmaFrags gives them (with the f64 m16n8k<k>) |
MojoProofTest.TensorCore.frags_f64, regs64 (the importer's Mma.regs is (1, 1, 2), from mmaFrags_inv), tableA64, tableB64, tableC64 against the table of PTX ISA 9.5 section 9.7.16.5.2 |
| B1050 | dependency: TorchLean's TorchLean.LinearAlgebra.Real, TorchLean.Reduce.Real |
low (build) | Their oleans in the pinned package are stale (built by Lean 4.35) and the lane rules forbid rebuilding them, so mma_exact links to TorchLean through TorchLean.Tensor.Arithmetic (Tensor.add_def, get2_zipWith, get2_matmul) rather than its real-matrix lemmas. |
open (the package's rebuild is the owner's) | — |
| B1051 | MojoProof.LLVM.Mma.ofName? |
low (test ergonomics) | Mma.ofName? on a string literal does not reduce under decide, so the importer's reading of an mma name is checked by #guard (evaluation), not by a theorem. |
open | the three #guards in MojoProofTest/TensorCore.lean |
| B1052 | MojoProof.Sem.Frag.Inv |
low | Frag.Inv has no Decidable instance (its quantifiers are over Nat bounded by fields), so the instances are by the family theorems, not by decide on Inv. |
open (not needed: every instance follows from a family theorem) | MojoProofTest.TensorCore.isa_inv |
| B1053 | docs/proofs/tensor-core.md, the corpus's ldmatrix.x4.trans |
low (evidence) | ldmatrix_fragB_cols states what .x4.trans loads for every address function, but which addresses the corpus's 26 .x4.trans calls use is not checked: that they load two n8 B operands of k16 side by side (the instance loadsB2) is the expected use, read from the kernels' source, not proved of the IR. |
open | MojoProofTest.TensorCore.loadsB2 |
| B1054 | importer (MojoProof/LLVM/Intrinsic.lean, Mma.regs, line 114) |
low (latent; unreachable today) | Mma.regs' C/D count is m n / 32, one accumulator per register. For f16 accumulators the ISA packs two to a .f16x2 register (sections 9.7.16.5.7-8: m16n8k16 C is two registers, not four); fragC 2 2 has 2 (fragC_inv, tableC16). No mma name with an f16 accumulator imports (Mma.suffix and Mma.ofName? read only f32 and f64 ones), so no value reaches it; an importer entry for .f16.f16 would need the count m n / 64 there. |
open (for the importer) | MojoProofTest.TensorCore.tableC16 (the layout the count should match) |
| B1060 | tests/corpus/layernorm (e.g. ln_rowwise_block_t0_r1_ax0_w1_bs128_847b1b53.nvptx.ll:233-269, the offset-16 round); MojoProof/Float/Stats.lean | medium (scope) | The corpus's layer norm kernels compute the mean and variance by Welford updates merged across lanes: each butterfly round shuffles the three 32-bit words of a { float, float, float } (count, mean, sum of squared deviations) by shfl.sync.bfly.i32 and merges them with n = maxnum(na + nb, 1), the means' difference δ, nb / n by fdiv, the sums of squares plus δ² · na · (nb / n) and the mean plus δ · (nb / n), all contract (31 shuffles, 13 fdivs in that file). mean_error and var_error are about the two-pass algorithm, so they are not these kernels' bound. |
fixed (245baae): Welford's merge as the corpus executes it, along any tree, every IEEE format, welford_error, wmean_error and wvar_error against 𝔼 and TorchLean.var (MojoProof/Float/Welford.lean); the two-pass mean_error and var_error stay as another algorithm's bounds. Its scope's limits are B1173. |
MojoProofTest/FloatWelford.lean welford_xs, wmean_xs, wvar_xs |
| B1061 | roadmap/kernels/cards/reduction.md | low (docs) | The card says the atomic add makes the sum's order depend on the schedule and an L4 statement needs a bound over every order. The corpus file sums i32 (add <4 x i32> at line 64, atomicrmw add ptr %0, i32 at line 164 of reduction_reduction_sum_kernel_SIMD_DTy6A6AcB6A6AcB_950d42eb4d93545d.nvptx.ll), a wrapping sum whose value does not depend on the order; no float bound applies. For a float specialization MojoProof.Float.sum_error bounds every order. |
open (text requested below) | the card |
| B1062 | TorchLean/Verify/RuntimeApprox/Roundoff/Softmax.lean TorchLean.Roundoff.softmax_error; MojoProof/Float/ExpSum.lean |
low (overlap) | TorchLean bounds the stable softmax of its configured tensors with left-fold reductions; softmax_error is about FloatLib words and any tree. Neither is a case of the other. |
by design | float-reductions.md, "Related results" |
| B1063 | TorchLean TorchLean.TransformerBlock.Arithmetic.sqrt_sum_sq_layerNorm_sub_le; MojoProof/Float/Stats.lean |
low (overlap) | TorchLean bounds the whole layer norm for an abstract rounding of reals whose sums are indexed by length; mean_error, var_error are about words along any trees and stop at the two statistics. |
by design | float-reductions.md, "Related results" |
| B1064 | TorchLean Roundoff/Rules/ReduceOrder.lean mixedError_ordered_sum, toReal_ordered_maximum; MojoProof/Float/Tree.lean, ExpSum.lean |
low (overlap) | TorchLean's ordered sum and maximum are about its configured values in a ReduceOrder; sum_mixedError and max_exact are about FloatLib words along any tree. |
by design | float-reductions.md, "Related results" |
| B1065 | TorchLean/Tensor/Layers/Normalization.lean:225 TorchLean.Tensor.rmsNorm; roadmap/kernels/cards/rms-norm.md |
medium (gap) | No float bound for RMS norm. TorchLean.Tensor.rmsNorm is defined over every scalar context, the reals included (it divides each fiber by its largest magnitude, then takes sqrt (mean of squares + eps / scale²)), but TorchLean proves no closed form of it over the reals (its docstring states x / sqrt (mean x ^ 2 + epsilon) · gamma), and TorchLean.TransformerBlock has no RMS norm. |
partly fixed (305cf72): msq_error (Float/Stats.lean) and rmsnorm_error (Float/Norm.lean, binary32, with the rsqrt.approx contract) against the real x j / √(𝔼 x² + ε) · g j. Open: TorchLean's closed form (upstream), Mojo's weight offset and casts (B1172). |
MojoProofTest/FloatNorm.lean rmsnorm_xs; lnorm_iota and rmsnorm_iota (at 1, …, 2 ^ k) with their instances at 4 and 8, lnorm_xs, lnorm8, rmsnorm_xs, rmsnorm8 (ec17489) |
| B1066 | MojoProof/Float/ExpSum.lean expSum_error, softmax_error |
low (scope) | The exponential of -∞ is +0, a finite word, so a finite sum does not make the differences finite; it is a premise. Masked softmax with -inf inputs (cf. modular#7741, logsoftmax) is outside the statements. |
partly fixed: masked inputs -∞ along any tree (expTerm_negInf, maskSum_error, maskSoftmax_error, e456306) and log-sum-exp and log-softmax with FloatLib's correctly rounded log (lse_error, logSoftmax_error, 72eec0d). Open: masked log-sum-exp and log-softmax, the maximum with -∞ leaves (B1177), the kernel's log-softmax order and Mojo's log (B1176). |
MojoProofTest/FloatStats.lean maskSum_masked, maskSoftmax_masked, lse_ones, logSoftmax_ones |
| B1067 | MojoProof/Float/Tree.lean, ExpSum.lean | low (FloatLib candidates) | General results FloatLib lacks: graft with eval_graft, leaves_graft, depth_graft; finiteEval_of_isFinite, isFinite_of_mem_leaves; sum_mixedError (the tree form of Model.mixedError_toReal_foldl_add_absolute); max_exact. Under the owner's rule "if its general move to floatlib" they are candidates for the FloatLib intake. |
open (request below) | MojoProofTest/FloatTree.lean, FloatStats.lean |
| B1069 | MojoProofTest/FloatStats.lean:125 softmax_ones |
low (build) | B143 recurs in a test: elaborating the premise A < 1 about concrete reals needs set_option maxRecDepth 4096 in; the tree's count goes from 1 to 2. |
open (worked around) | the same fix as B143 |
| B1070 | scripts/cited.py | low (tooling) | cited.py cannot see declarations made by TorchLean's roundoff … theorem command (e.g. TorchLean.Roundoff.softmax_error), so a doc citing one is checked only by hand. |
open | none |
| B1071 | scripts/Audit.lean, the equivalences rule |
low (tooling) | The rule counted roundsTree_cons, a recursion equation of one definition (roundsTree r (p :: ps) c = graft (roundsTree r ps c) (r p)), as an equivalence of two library definitions. Worked around in 22820f2 by making the equation the definition. |
open (worked around) | s38g-post1.log (equivalences 1) against s38g-final3.log (0) |
| B1072 | tests/corpus; MojoProof/Float/ExpSum.lean expTerm_error |
medium (gap) | The corpus has no exponential and no softmax file (grep -rl "ex2.approx\|llvm.exp\|__nv_exp" tests/corpus is empty). If the softmax kernel's exp lowers to an approximate instruction (e.g. PTX ex2.approx after a scale by log2 e), expTerm_error, which assumes FloatLib's correctly rounded exponential, does not apply; that instruction needs a contract like rsqrt.approx's. |
partly fixed (bdd65d2): Mojo's float32 exp lowers to ex2.approx.ftz.f32 of (x - m) · log2e (B1170); its contract Ex2Close (B1171, T17) and the sum's bound in expSum_error's form (ex2_error, ex2Sum_error). Open: the corpus still has no exp file; the entry under the contract (B1178). |
MojoProofTest/FloatEx2.lean |
| B1073 | roadmap/kernels/cards/layernorm.md, softmax.md, rms-norm.md (lean:); MojoProof/Float/ |
low (link) | The cards' lean: fields name TorchLean.Tensor.layerNorm, .softmax, .rmsNorm; the bounds target TorchLean.TransformerBlock.softmax, TorchLean.var and 𝔼 (the statistics of TorchLean.TransformerBlock.layerNorm). TorchLean's TorchLean.TransformerBlock.get2_softmax_forward and get2_layerNorm_forward (Verify/RuntimeApprox/TransformerBlock/Ops.lean:51, :37) equate the op table's row-wise forwards at the reals with those functions. Ops.lean imports TorchLean.Tensor.Reduce.Real, whose oleans are stale (B1050); not built here. |
fixed for layer norm (305cf72): lnorm_error is against TorchLean.TransformerBlock.layerNorm; the cards' lean: fields name the TransformerBlock functions and the bounds. TorchLean's get2_*_forward links stay unbuilt (B1050). |
MojoProofTest/FloatNorm.lean lnorm_xs |
| B1074 | MojoProof/Sem/Async.lean Async.step (now Async.lazy, one completion choice), MojoProofTest/Async.lean Async.bytes_twin (deleted); docs/TRUST.md T15 |
medium (model) | Review 34, medium 1: in the model a copy lands only at a wait_group that waits for its group, so a copy that is issued but not waited for never changes shared memory, and Async.bytes_twin proves that byte 32 is still 0xff after its copy is issued and the earlier groups are waited for. The cited contract (PTX ISA 9.5, section 9.7.10.28.3.3: at most the n most recent groups are pending) says which copies have landed after a wait, not that the others have not: the hardware may land a pending copy at any time. The theorems hold of the model, but the twin presents an artefact of the model as a guarantee. No kernel theorem is affected: the grid does not dispatch to Async (B1048). |
fixed (131ef30): Async.Step lets every pending copy, committed or not, land at any step, and Async.Run is every interleaving of landings with the operations. wait_run, visible and visible_bytes hold in every run. Run.within says that every run is the lazy run with some copies landed early. determined says that a byte no possibly pending copy writes is the lazy run's in every run. bytes_twin is replaced by boundary (both bytes are possible after wait_group 0). |
MojoProofTest/Async.lean boundary, own, reused, overlap, wait0, bytes; tests/gpu/cp-async/record.txt |
| B1075 | docs/proofs/async-copy.md, "Not proved" | low (doc) | Review 34, low 2: the page said the importer refuses the corpus's inline-asm cp.async copies; the importer accepts both forms since 393078f, and the boundary is execution (exec faults at inline asm), which is what keeps the no-op commit_group and wait_group sound (B553). B1047 said the same. |
fixed (bbf673a): the page and B1047 say where the boundary is | python3 scripts/cited.py; the site check |
| B1076 | docs/proofs/layout-laws.md, "Division by zero" | low (doc) | Review 34, low 3: the page said the model's a % 0 is 0; Lean's natural-number remainder gives a % 0 = a (Nat.mod_zero), so colex 5 [0] is [5]. The laws are not affected. |
fixed (bbf673a): the page gives a % 0 = a and the three places it matters |
— |
| B1080 | MojoProof/Sym/Segment.lean `Thread.resume_at`, `Seg.resume` | low (gap) | The resumed frame's registers are not stated: `Thread.resume_at` gives the function, block, position, `alloca` blocks and caller's register of the frame after a collective, not that every register other than the call's result keeps its value, so the segment after a collective cannot take its register premises from the segment before it. MojoProofTest/SegEvents.lean `resume_shfl` proves it by hand for gevm_kernel's barrier. | fixed (ad8b7e1): Thread.resume_regs, a resume keeps every register but the result of the call it resumes, and Seg.resume_regs, the resumed frame has the summary's value at every register but the call's result (MojoProof/Sym/Segment.lean) |
MojoProofTest/SymSeg.lean gevm_barrier_regs and its open twin; MojoProofTest/SegEvents.lean resume_shfl |
| B1095 | elabMat's n.runInv and n.sound_inv (MojoProof/Sym/KernelCmd.lean; was {$N : Nat} at :1153) |
low (gap; blocked B877 step 3) | The trip count N of LoopIterWith was a free binder of n.runInv, not tied to the loop's bound register (%16 = smax(K, 0) at naive, which the header's %49 compares the counter with). So i < smax(K, 0), which the round's obligations need, was not a clause fact; the user derived it (NaiveIn.lean:99-103 hK, hlen, hi and :158 h47 at 666f04e). |
fixed for loops over smax(K, 0) (abc42e5): the command states the trip count as max K 0 (K the clause's third size), and {N} is gone from both statements (old and new under "Declarations"). Not built: reading the trip count from the loop's bound register. A loop over another count (a tiled loop over K / t) cannot meet H, and the docstrings say so. |
MojoProofTest/NaiveSound.lean, naive.sound_inv's open-goal test (pinned ∀ i < max K 0, :314); NaiveIn.round_in (:90) takes j < max K 0 as it is |
| B1096 | concrete schedules (MojoProofTest/SymColl.lean, hw1-hs4, comment before hw1) |
low (automation cost) | Elaborating a phase's Seq.ToWait.of_runTo with its first memory unified with the previous phase's memory (memAt t m 0 =?= m3) times out: lazy delta unfolds the side of greater height, m3, and evaluates every earlier phase without sharing. That gave whnf timeouts at 200000 heartbeats in s39b-coll3.log and coll4.log. The kernel checks the same equations fast (kernel_rfl, about 3.8 s for a whole run). This is not B115's free-variable cache miss: these terms are closed. A command that generates schedules for a kernel will meet it. |
worked around (f7cfda9): the runs are stated over memAt and its first memory rewritten by memAt.eq_1; the equations are closed by kernel_rfl |
SymColl hw1-hs4, hf1-hf3 |
| B1110 | MojoProofTest/SymSched.lean:79, :85 | low (fragility) | simp only [..., vals, SNode.eval.eq_def, ...] unfolds every alternative of SNode.eval under the vals fold. With four more top-level alternatives, the proof at :89 ran out of 200000 heartbeats (s39c-ins2). So any constructor added to SNode.eval's match can break this test. |
worked around in 51b05ea: the new nodes are in SNode.evalMore, SNode.eval's last case. Fix for the file's owner: evaluate the walk without SNode.eval.eq_def, for example by vals_getElem? and decide +kernel on the closed table |
the build of MojoProofTest/SymSched.lean (its proof at :89) |
| B1111 | SNode.gep and SNode.gepN (MojoProof/Sym/Term.lean:177) |
low (design) | There are two nodes for getelementptr: gep with one index, and gepN with any number. SNode.gep's shape is fixed by the tactic modules, so gepN could not replace it. A getelementptr on a global with other than one index is still refused. |
open. Fix: one node with an index list once the tactics allow SNode.gep to change, and SNode.globalAt as its base. The uses of SNode.gep's shape (at 9df0a1a): the tactic's arm (``SNode.gep, #[lbl, pc, base, idx]) (MojoProof/Sym/Obl.lean:1093, through SNode.eval_gep_at, OblLemmas.lean:1122-1137), Checker.lean:231-246, Term.lean:130 and :375, LoopFacts.lean:56 and :66, 13 lines of Payload.lean and MojoProofTest/Payload.lean:465, 568, 570 and 574; after the unification the arm takes idxs with let some (_, [idx]) := idxs.listLit? \| failure, and eval_gep_at concludes about SNode.gep lbl pc base [idx] |
none |
| B1112 | SNode.eval_constAt (e0f5d14) |
low (audit) | The lemma stated eval = evalV, an equation between two library definitions, which the equivalences probe counts (audit1: equivalences 1). |
fixed in eda9202, an iff on values (audit2: 0) | the audit's equivalences count (0 after eda9202) |
| B1113 | Mem.store_shape (Block.lean:701, 8a82e3a) and the Sem store lemmas |
low (duplication) | Mem.store_shape repeated Mem.store_keeps' proof (near_dups cluster, 30 lines). The same cases l.encode t v; split; write lemma pattern is in Mem.store_keeps, Mem.store_blocks, Mem.store_changes and Mem.store_trace. |
fixed for store_shape in dc258d5, by split and Except.bind_eq_ok. Suggestion for the Sem owner: a lemma that a successful store is a write of the encoding followed by a log, which would leave each of those lemmas a short proof |
scripts/near_dups.py (0 clusters after dc258d5) |
| B1125 | MojoProof/Sym/Obl.lean, mojo_obl |
low (usability) | mojo_obl fails on a goal whose valuation or statement contains a let (it matches the valuation syntactically and does not zeta-reduce). In OblGevmThread the six-deep resumed valuation had to be an abbrev (resumed), not a let. |
open (Sym/Obl.lean) | MojoProofTest/OblGevmThread.lean resumed, an abbrev where a let fails |
| B1126 | MojoProof/LLVM/Quote.lean, MojoProof/LLVM/Corpus.lean (the as atom) |
low (usability) | Importing MojoProof.Sym.Command makes as a keyword token, so a binder or variable named as no longer parses in the importing module. The command syntax is frozen. |
duplicate of B987 | see B987 |
| B1127 | scripts/cited.py | low (tooling) | scripts/cited.py does not know the names sym_segs n := … generates (n_0…n_k), so a module doc citing seg_0 is reported missing (the docs were rephrased to cite sym_segs seg := …). Request below. |
open: sym_segs N := … defines N_0, N_1, …, which cited.py does not know; the docs cite sym_segs seg := … instead |
none |
| B1128 | MojoProof/LLVM/Asm.lean AsmCall.ofText?, AsmCall.checkCall |
low (gap) | The importer refuses the float8 kernels' e4m3 conversions: AsmCall.ofText? requires sideeffect and AsmCall.checkCall a void result, while cvt.rn.f16x2.e4m3x2 and cvt.rn.satfinite.e4m3x2.f32 are neither. Patch below. |
open: a patch that adds the two forms, a sideEffect and a result type per AsmCall, is checked on a copy of the module and not applied while AsmCall is frozen; accepting the forms gives them no meaning (exec faults at inline assembly) |
tests/corpus/REFUSALS.tsv (the 7 asm cvt rows) |
| B1129 | MojoProof/Sym/Obl.lean, mojo_obl's loadAfter case |
low (gap) | mojo_obl's loadAfter case leaves three cases open: no codec reading of a Val.bits word stored at a float type; pointers neither equal nor apart by omega (the twin apart_open pins it); and a store followed by a further store before the load. |
open | MojoProofTest/OblLoadAfter.lean apart_open |
| B1130 | MojoProofTest/OblGevmThread.lean thread |
low (gap) | thread is not joined to the kernel's entry and loop: there is no loop-run theorem over a symbolic trip count that gives %59's frame facts (%60 the loop's sum, %13, %11, %10, %29). |
partly fixed (a08c4c8): MojoProofTest/OblGevmRun.lean's loop runs the thread from the entry through the loop for every K with K % 32 = 0 and every N with K * N < 2 ^ 29, a symbolic trip count, and gives %59's frame facts (%60 the strided dot product, %13, %11, %10, %29); open: joining it to thread needs RunsVia.of_steps (B1237). Sched.start_sound_inv, Fires.barriers_at, Fires.bfly and Seg.Through.wait (MojoProof/Sym/SchedChain.lean, e74e720) build a schedule from per-phase invariants; the gevm %59 instance needs each thread's instruction from RunsVia (B1206) |
MojoProofTest/OblGevmRun.lean, the examples at K = N = 64 and 4096 |
| B1131 | MojoProofTest/OblGevmThread.lean thread |
low (gap) | The shuffles' delivered values are premises of thread. Composing the 32 lanes (shflSource_bfly, bflyRounds) into the warp's sum needs a grid-level theorem that delivers RunsVia's values. |
open: the grid half is stated (d₀ from Fires.barriers_at, zᵢ of thread n = sᵢ₋₁ of thread n − p + (p ^^^ oᵢ) from Fires.bfly, e74e720); lane 0's sum is bflyRoundsAt with deliver per round and lane (B1208); both prerequisites are now in the tree, lane 0's sum as bflyRoundsAt with deliver per round and lane (bflyRoundsAt_of_shfl, 06500dc, B1208) and the waits' instructions (0193d88, B1206); the grid-level theorem that delivers RunsVia's values is not built |
none |
| B1132 | MojoProof/LLVM/Intrinsic.lean Mma.regs, Intrinsic.ldmatrix |
low (gap) | Tensor-core importer forms. (a) mma with f16 accumulators: Mma.regs counts accumulator registers as m n / 32, but f16 accumulators pack two to a <2 x half>, so the count is m n / 64; the change also needs Mma.suffix, ofName? and the signature, and mmaFrags_inv (MojoProof/Sem/TensorCore.lean). (b) ldmatrix x1 and x2: Intrinsic.ldmatrix carries only .trans, so a count needs a constructor change (frozen) and updates at Sem/Thread.lean:343 and Sem/Grid.lean:732. |
open: both need constructor or signature changes in frozen files (Intrinsic.lean, and Sem/Thread.lean and Sem/Grid.lean for the count); the f16 count's TensorCore half is checked on a copy | MojoProofTest/IntrinsicForms.lean (the f16-accumulator and ldmatrix x1/x2 refusals) |
| B1140 | Modular layout.mojo:1501-1506 (_shape_div), used by upcast |
low (upstream, precondition) | upcast[2] of (3):(1) is (1):(1), of size 1, with no assert: the stride 1 divides 2, but 2 / 1 does not divide the extent 3, and shape_div(3, 2) is 1. The runtime path (_runtime_shape_div) gives the same. Lay.upcast_fuse requires f / s ∣ e. Related to B1031. |
open, not reported | static case 41 (7690e3b); runtime c5 (ff938ea); MojoProofTest/LayoutLaws.lean:173 |
| B1141 | Modular layout.mojo:1644-1645, the composition docstring @bbc13a71 |
low (upstream, docstring) | "the result maps B's coordinates through B, then through A" is false for a B of several modes whose terms carry against A's extents. composition((2, 2):(1, 10), (2, 2):(1, 1)) maps 3 to 2, where A(B(3)) = 10, and composition((6, 2):(1, 100), (3, 2):(2, 3)) maps 5 to 7, where A(B(5)) = 101. It holds under noCarry (Lay.compose_call). |
open, not reported | static cases 38-39 (7690e3b), compiled by Mojo; MojoProofTest/LayoutLaws.lean:261-293 |
| B1142 | Modular bit_layout.mojo:15, the module docstring |
low (upstream, docstring) | "A layout whose extents are powers of two is linear over F2" is false: (2, 2):(1, 1) maps 1 and 2 to 1 and 3 to 2, not to 1 ^ 1 = 0. Linearity needs is_bit_linear's stride conditions (placement_call). |
open, not reported; model only, not compiled | MojoProofTest/LayoutLaws.lean:322-330; docs/proofs/layout-laws.md section 3 |
| B1143 | MojoProof/Layout (the model's remainder by an extent 0) | low (model scope) | The model splits a scalar with Nat %, so v % 0 = v (Nat.mod_zero). Mojo's divmod and % by 0 give 0 (std/simd.mojo:1286, 1321-1352). At scalars 1 and 5 of (0, 2):(1, 10), past its size 0, the run gives 0 and 0, and the model gives 1 and 5. No law about a scalar's offset covers these points (Lay.call_scalar and the laws built on it ask for a scalar below the size). idx2crd_flat, which has no bound, describes the model and not Mojo at an extent 0: Mojo's _linear_idx_to_coord uses umod (coord.mojo:1966-1967), which gives 0. That part is read from the source, not run. |
open; documented in docs/proofs/layout-laws.md section 1 and the idx2crd card | MojoProofTest/LayoutRuntime.lean c8; tests/layout/runtime/record.txt |
| B1144 | MojoProof/Layout/Bits.lean | low (model scope) | Bits.lean computes on Nat where Mojo uses UInt64, so placement_call and BitLayout.call describe Mojo only while every image, span and offset lies below 2^64. placement_call states the bounds on extents, strides and size as premises; the images are not bounded. |
open; documented in the module and theorem docstrings and the bit-layout card | Bits.lean:3-16, :343-350 |
| B1145 | scripts/Audit.lean, the equivalences rule |
low (tooling) | The rule counted placement_call ((placement ms).call x = (flat ms).call (leaf x b)) as two definitions of one concept. It is the correctness of a transcription of one Mojo function (placement into BitLayout.__call__) against the model of another (Layout.__call__), as in B751 and B1071. Worked around in 27b2158: the statement is a conjunction that also gives the placement's domain mask. The rule reads only an Eq or Iff body, so it does not count a conjunction; a real duplicate inside a conjunction would also go uncounted. |
open (worked around) | s39e-audit.log (equivalences 1, at ff938ea) against s39e-all2.log and s39e-all3.log (0) |
| B1146 | Modular two_level_layout.mojo:1106-1109, the two_level_layout_from_swizzle docstring @bbc13a71 |
low (upstream, docstring) | "the result evaluates to Swizzle(L(x)) for every coordinate x" is false at a tuple coordinate past an extent. __call__'s tuple path (:656-665) passes the leaf values on unreduced, and each mode keeps value >> k as its outer coordinate. Example: (2, 2):(1, 2) passes both asserts for Swizzle(1, 0, 1). At (2, 0) the two-level layout gives 2, but Swizzle(L(2, 0)) = Swizzle(2) = 3. The equation holds at every coordinate inside the shape and every scalar below the size (Swizzle.twoLevel_call). |
open, not reported; model only, not compiled | MojoProofTest/LayoutLaws.lean:360-367 (ca33461) |
| B1147 | Modular two_level_layout.mojo:29, the module docstring @bbc13a71 |
low (upstream, docstring) | "Lambda is injective" fails for a swizzle that the integer overload of two_level_layout_from_swizzle (:1101) accepts. That overload does not check bits ≤ |shift|, and the Swizzle constructor's abs(shift) >= bits assert is skipped in the comptime interpreter (swizzle.mojo:325-335). With a zero shift, Swizzle(1, 0, 0) sends 1 to 0, so on (2):(1) the indices 0 and 1 both go to 0. |
open, not reported; model only, not compiled | MojoProofTest/LayoutLaws.lean:369-372 (ca33461) |
| B1155 | MojoProof.Sem.AccOk (now AccBy's case), mma_contract, castDot_ok, docs/TRUST.md T14; tests/gpu/mma/record.txt; MojoProof/Sem/TensorCoreAcc.lean |
medium (trust item) | The A100's mma.m16n8k16.row.col.f32.bf16.bf16.f32 does not meet AccOk (dotBound .binary32 16), the bound castDot_ok proves of a cast-then-dotLoop accumulator. Launch 7 (kind 3) has a D word at cell (11, 0), lane 12 register 2, 954914944, which is 18.937 u T from the exact sum (u = 2^-24), 1.113 times the bound. Of the 939 finite D words of the launches of kinds 1 to 5, the other 938 are within it, and on the two exact launches (kind 0) all 256 words are bfAcc's. The alignment probe is consistent with each addend truncated to a multiple of 2^-24 times the largest addend's leading power of two and the sum truncated toward zero. So a caller who instantiates mma_contract with dotBound .binary32 16 for this GPU has a false premise. No kernel theorem is affected: the grid does not dispatch mma (B1048). 73be3f7 and 86a3477: the accumulation is modelled over FloatLib's values by fuseAcc fi fc n p, which takes blocks of n products in order, with C in the first block; each addend is truncated toward zero to 2^(E - p), with E the largest addend's exponent and exponents raised to emin, and the sum is rounded toward zero by roundRat; between the largest finite magnitude and 2^(emax + 1) the result is that magnitude, and from there on an infinity. fuseAcc_ok proves that it meets AccBy with the magnitudes wt a · wt b and |c| + 2^emin and the bound fuseBound fc n p ⌈K / n⌉, for every format, block size, width and count. On the A100 all 2,560 D words of 20 launches (cancellation, wide exponent spreads, subnormal and mixed products, near-overflow sums, an alignment probe and an overflow-threshold probe) are fuseAcc .bfloat16 .binary32 8 24's, bit for bit, the cell-(11, 0) word among them; that word is still 1.113 times dotBound .binary32 16, so AccOk (dotBound …) stays false for this GPU and fuse16_ok is the contract to use. mma_contract now takes AccBy. |
fixed (73be3f7, 86a3477) | MojoProofTest/TensorCore.lean fuse16_ok, fuse8_ok, contractFuse, contract8, the fuseRound guards (ef3aa01); lake env lean --run tests/gpu/mma/Compare.lean tests/gpu/mma/dump.txt 20 (exit 0, "20 launches: 0 words differ from fuseAcc's, 0 kind-0 words differ from bfAcc's, 1 finite words outside dotBound, 0 words unwritten") |
| B1156 | scripts/roadmap_llvm.py:606, gpu_records |
low (tooling) | gpu_records reads f['kernel'] of every tests/gpu/*/record.txt, so a record of one instruction (no kernel: line, no corpus kernel) raises KeyError: 'kernel' and roadmap_llvm.py --check exits 1. It does so for tests/gpu/mma/, ldmatrix/ and cp-async/. |
fixed (5117877): gpu_records skips a record with no kernel: line |
python3 scripts/roadmap_llvm.py --check |
| B1157 | scripts/trust.tsv:25 (T15 const MojoProof.Sem.Async.step) |
low (tooling, merge) | 131ef30 renames Async.step to Async.lazy; the trusted reading is now Async.Step. Audit.lean --deps throws "T15: no constant MojoProof.Sem.Async.step" (Audit.lean:244) until the row changes. The plain audit is not affected (it exited 0). |
fixed (a51c855): the row is T15 const MojoProof.Sem.Async.Step |
lake env lean --run scripts/Audit.lean --deps <file> |
| B1170 | Mojo/stdlib/std/math/math.mojo:550-552 and std/_plugin/cuda/cuda_math.mojo:236 (modular bbc13a71); MojoProof/Float/Ex2.lean | medium (gap) | Mojo's exp on a GPU for float16 and float32 is exp2(x * log2e), and float32 exp2 is the inline assembly ex2.approx.ftz.f32 (constraints =f,f), not an intrinsic. For exp(a - b) on float32, sm_80, Mojo 1.3.0.dev2026111705 emits %28 = fsub contract float %25, %27, %29 = fmul contract float %28, f0x3FB8AA3B and %30 = call float asm "ex2.approx.ftz.f32 $0, $1;", "=f,f"(float %29), lines 33-35 of the IR of a scratch copy of the vector_multiply example whose kernel computes exp(lhs - rhs) (sha256 6373345d…9494444; not in the corpus). The semantics runs no inline asm (docs/proofs/async-copy.md:67), so no kernel theorem can reach a kernel that calls exp; the contract is stated as a premise on words. |
partly fixed: Ex2Close, ex2_error, ex2Sum_error (bdd65d2). Open: a semantics of this asm call with the contract (as rsqrt), a corpus file with exp |
MojoProofTest/FloatEx2.lean ex2_ones, ex2Sum_ones |
| B1171 | MojoProof/Float/Ex2.lean:53-64 ex2Err, ex2Tiny, Ex2Close |
low (trust) | The contract is derived by hand from PTX ISA 9.5 §9.7.3.21: "The maximum ulp error is 2 ulp from correctly rounded result across the full range of inputs" and "ex2.ftz.f32 flushes subnormal inputs and results to sign-preserving zero" (a text conversion of the document, lines 12626-12627 and 12633, sha256 eb7c8edc…cbd). Relative 3 · 2^-23 = 2 ulp of a normal result (at most 2^-22 of it) plus the correctly rounded result's own 2^-24, rounded up; absolute 2^-126 for flushed or near-subnormal results and the 1 of a flushed subnormal operand. It is not proved from a definition of ulp, and PTX does not say which ulp (of the exact or of the rounded result). |
open (trusted, T17) | none |
| B1172 | max/kernels/src/nn/normalization.mojo:339-345 (bbc13a71); MojoProof/Float/Norm.lean rmsOut, rmsnorm_error |
medium (scope) | Mojo's RMS norm output is (x * norm_factor * (gamma + weight_offset)) cast to the dtype when multiply_before_cast, else cast(x * norm_factor) * (gamma + weight_offset). rmsnorm_error takes the weight word the kernel multiplies by, so the addition of weight_offset (exact only at offset 0) and the casts of a narrower dtype are not covered. No RMS norm corpus file exists, so the lowering of its rsqrt to rsqrt.approx is assumed from layer norm's IR, not read. |
partly fixed (f858f37: rmsOff_error, rmsnormOff_error, the weight offset g + o and the dtype cast of the weighted value in both of the kernel's orders, for every IEEE dtype); open: inputs of a dtype narrower than binary32 cast to binary32 before the mean of squares (rmsnormOff_error takes binary32 inputs; the widening cast is exact but no theorem states it) |
MojoProofTest/FloatNorm.lean rmsnorm_xs (offset 0), rmsnormOff_bf16, rmsnormOff_f16 |
| B1173 | MojoProof/Float/Welford.lean; tests/corpus/layernorm/ln_rowwise_warp_t1_r1_ax0_w1_bs128_1a9a768a.nvptx.ll:149-156, :250-268 | low (scope) | welford_error covers the merge without fma (its two fadd contract of a product may fuse), states with a count of at least one (no thread without inputs) and not the loop's update instruction (lines 149-156: the merge with wsingle up to the maxnum and an addition of +0). |
partly fixed (da79e26: welfordC_error, the merge with fma; 245d281: wloop_error, the loop's update; b37eef5: welfordC_error and wloop_error for every choice of contraction at each node and each iteration, B1363); open: a merge with an empty state (count 0), and the composition of the loop, the merges and a grid run |
MojoProofTest/FloatWelford.lean welfordC_xs, welfordC8, wloop_xs, wloop8, welfordC_alt4, welfordC_alt8, wloop_alt4, wloop_alt8 |
| B1174 | TorchLean/Verify/RuntimeApprox/Roundoff/CrossEntropy.lean; MojoProof/Float/ExpSum.lean logSoftmax_error |
low (link) | TorchLean's log-softmax (TorchLean.Roundoff.CrossEntropy.log_probs_reference and the NN module's logSoftmax) is not built in the package copy, so logSoftmax_error is stated against x j - log Σ exp x written out; its docstring cites the reference as the same real form, which is not checked by Lean here. |
open | MojoProofTest/FloatStats.lean logSoftmax_ones |
| B1175 | scripts/cited.py | low (tooling) | cited.py reads only the first line of a multi-line open, so a name made reachable by a namespace opened on a continuation line is reported missing. Ex2.lean puts BinaryInterchange on the first line (06273f5). |
open; recurs at MojoProofTest/FloatWelford.lean, whose open spans two lines, worked around by naming MojoProofTest/FloatStats.lean in the docstring (bab4f23) |
none |
| B1176 | max/kernels/src/nn/softmax.mojo:692-702 (softmax_kernel, :539) and :190, :453-459 (_log_concrete, the CPU path); MojoProof/Float/ExpSum.lean |
low (gap) | The GPU kernel's log-softmax variant is log(e_j * (1 / s)) with Mojo's own log, not (x j - m) - log s with a correctly rounded log; logSoftmax models the CPU three-pass order (_softmax_3_pass_base with identity, _exp_concrete, _log_concrete and sub, :453-459). Mojo's log lowering was not compiled or read. |
open | none |
| B1177 | max/kernels/src/nn/softmax.mojo:656; Mojo/stdlib/std/simd.mojo:699; MojoProof/Float/ExpSum.lean max_exact |
low (gap) | The row maximum starts from Scalar[dtype].MIN, which is -inf for floats (_min_or_neg_inf), and masked rows have -inf inputs; max_exact needs finite inputs, so that the maximum is an input's value is not proved for these trees. maskSoftmax_error therefore takes m with a kept input's value as a premise. A row whose every input is masked (sum +0) is not covered. |
open | MojoProofTest/FloatStats.lean maskSoftmax_masked |
| B1178 | MojoProof/Float/Ex2.lean | low (gap) | Under the ex2.approx contract only the sum is stated (ex2Sum_error); the softmax entry, log-sum-exp and masked inputs (ex2.approx(-inf) = +0 is outside the contract, whose operand is finite) are not. |
open | none |
| B1179 | max/kernels/src/nn/softmax.mojo:693-698; MojoProof/Float/ExpSum.lean softmax_error, maskSoftmax_error |
low (scope) | The kernel's entry is e_j * (1 / s) (the reciprocal rounded, then the product; the CPU three-pass path, :461-467, uses reciprocal and mul too), while the bounds' entry is one Model.div e_j s. A bound in the kernel's order is one more FloatLib step and is not stated. |
fixed | a046bfe (softmaxRecip_error); MojoProofTest/FloatStats.lean softmaxRecip4, softmaxRecip8 |
| B1185 | MojoProof/Float/Norm.lean:156 and :250 (lnorm_error, rmsnorm_error); MojoProofTest/FloatNorm.lean:85 and :148 (lnorm_iota, rmsnorm_iota); MojoProofTest/FloatStats.lean:150, :167 and :227 |
low (build) | B143 and B1069 recur: elaborating premises about concrete binary32 reals (u, η, rsqrtErr, the instances' bounds) needs set_option maxRecDepth 4096 in. The float bounds add seven, and the tree's count goes from 2 to 9 (MojoProof/Sem/Float.lean:315 and MojoProofTest/FloatStats.lean:131 as before). Without the options the error is at the premise hδ passed to rsqrt_rel (MojoProof/Float/Norm.lean:209, :292): with pp.explicit the premise's type and the goal print the same, yet checking them equal exceeds the default recursion depth (the diagnostics count about 108 HMul.hMul/Real.mul unfoldings, 105 of Nat.rec and 100 of npowRec: the elaborator unfolds the real powers (1 + u) ^ d). Stating the premise by have … : T :=, by show or by a calc step fails the same way. |
open (worked around) | the same fix as B143 |
| B1186 | MojoProof/Sem/WarpDot.lean:369 bflyRoundsAt_const |
medium (counts, gate) | The audit counts bflyRoundsAt_const (bflyRoundsAt (fun _ _ => f) ms v = bflyRounds f ms v) as an equivalence: two definitions of the same rounds, bflyRounds (MojoProof/Sem/Bfly.lean) and the general bflyRoundsAt. The count is 1 against a limit of 0, so the gate (s39m-final, at 5ce9ea3) is red at its counts step; every other step exits 0. The lane's last commits were built but not audited. |
fixed (25ee846) | bflyRoundsAt moved to MojoProof/Sem/Bfly.lean and bflyRounds combine is defined as bflyRoundsAt (fun _ _ => combine); bflyRoundsAt_const and WarpDot.lean's copy of bflyRoundsAt are deleted, bflyRounds_nanEq is bflyRoundsAt_nanEq at one combination; MojoProof MojoProofKernels MojoProofTest built with the audit, equivalences 0 |
| B1187 | docs/TRUST.md T14 and docs/proved.md, the fused accumulation fuseAcc |
low (docs) | Both said the block sum is rounded toward zero by FloatLib's roundRat, and that fuseAcc_ok holds for every format and block size. fuseRound (MojoProof/Sem/TensorCoreAcc.lean) has three cases: roundRat toward zero up to the largest finite magnitude M, M with the sum's sign below 2^(emax + 1), and an infinity from there on (binary32's 2^128 gives +∞, pinned in MojoProofTest/TensorCore.lean), where toward-zero rounding saturates; and fuseAcc_ok assumes an IEEE accumulator format and a block size n ≥ 1. The implementation, the theorem and the tests agree; only the two descriptions were wrong. |
fixed (83b946b) | T14 and docs/proved.md name fuseRound and its three cases and state fuseAcc_ok's premises; docs/proofs/tensor-core.md and the mma card already did. |
| B1190 | MojoProof/Sym/Segment.lean:460 Seg.resume_regs |
low (gap) | Seg.resume_regs gives the resumed frame's registers for one run (∃ fe me, Steps …) but not that the run ends at a .wait, nor the frame's function, block and position (Seg.resume has those, also for one run); a caller that quantifies over every run to the collective (ToWait) needs both and ToWait.det, so resume_shfl could not be a one-liner of either. |
fixed (c5e0931): Waits.resume (MojoProof/Sym/SegTrace.lean) gives the wait, the frame facts and the registers at every ToWait run |
MojoProofTest/SegEvents.lean resume_shfl |
| B1191 | gevm_kernel float32 1308aaae (tests/corpus/gemv/gemv_f32_gevm_kernel_float32_float32_float32_1024_1308aaae.nvptx.ll), the output cell 32 ctaid.x + tid.x / 32 |
low (launch contract) | The output cell ignores ctaid.y and ctaid.z: on a grid with more than one block of threads in y or z, two warps store to one output cell (threads 0 and 1024 on a grid of two blocks in y), a write-write race; the kernel is race free only on grids of one block in y and z, which the launch contract must state. |
recorded: out_cell and gevm_after take L.grid .y = 1 and L.grid .z = 1 |
MojoProofTest/GevmTrace.lean out_cell, its twin, and the decided example after it |
| B1192 | MojoProof/Sem/Precond.lean:376 Mem.three |
low (duplication) | Mem.three is Mem.allocs at k = 3 unrolled, a second definition of the same memory; Mem.three_spec is Mem.allocs_spec at 3 by definitional unfolding, and no theorem equates them (the audit's equivalences stay 0). |
open: define Mem.three l al S R I A G := Mem.allocs l al 3 S R I A G when Sem definitions may change, then check NaiveStart's and the Map2/Mat start evaluations, which unfold it |
MojoProofTest/Precond.lean allocs5 |
| B1205 | MojoProof/Sem/Matmul.lean:476 matmul_take_nanEq |
low (audit count) | After 3fa4436, NaiveSound.naive_matmul is NaiveFam.matmul's instance, which reads the cells with the two-stride matmul_cols_nanEq. matmul_take_nanEq, the one-stride form, has no use left: the audit's unused count is 1 at 3cda4da, and the gate's counts step is red until the fix. Matmul.lean's module doc (:88-90), docs/proved.md:197-199, docs/proofs/README.md:338 and docs/proofs/dot.md:230-231 and :250-252 still say that the naive kernel uses the one-stride forms. |
fixed (37f9de0): matmul_take_nanEq deleted, with Matmul.lean's module doc, docs/proved.md, docs/proofs/README.md and docs/proofs/dot.md |
the audit's unused list (s40b-final1.log) |
| B1206 | MojoProof/Sym/OblSeg.lean:51 RunsVia (and OblGevmThread.thread, which concludes it) |
low (gap; blocks B1130 and B1131) | RunsVia's wait states the intrinsic, its arguments and the memory (P i xs m₁), but not the waiting thread's instruction u.at. Fires.barriers/Fires.shfls (and Grid.fire's matching) need every thread of a block or warp at one instruction, so thread cannot feed Sched.start_sound_inv's hf. Seg.Through.wait (e74e720) gives the instruction from the segments directly. |
fixed (0193d88): RunsVia's wait takes the waiting thread (P u i xs m₁), and RunsVia.of_through gives u.at = some (fn.name, lbl, p + S.len); OblGevmThread.thread, OblGevmWhole.whole and GevmTrace.thread_trace state statement 6 of %59 for the barrier and 11, 15, 19, 23 and 27 for the shuffles. It no longer blocks B1130 and B1131 |
0193d88; MojoProofTest/OblGevmThread.lean thread, by six mojo_segs, and the refusal pin at :226 |
| B1207 | MojoProofTest/NaiveSound.lean naive_sound, MojoProofTest/NaiveKernel.lean correct and its corollaries |
medium (generality) | The naive kernel's soundness is stated for the corpus program only (row strides 768, 768, 50257, frozen K ≤ 768). No Lean command builds the program at other strides. The run's summaries (sym_summary, mojo_obl) and decide work on the closed program, so they cannot run with free stride constants. |
fixed for the float32 family with fmul contract: 21ab41e (NaiveFam.sound at every sA sB sC, K ≤ min sA sB and sizes below 2 ^ 31) and dc1f22e (NaiveOff.soundF, matmul_nanEqF, matmul_errorF at every stride); the other mgemm specializations are B1303 |
NaiveFam.sound_512_512_256 and NaiveKernel.correct (one line each); NaiveFam.lean's reading-half tests at strides 16, 8 and 5 |
| B1208 | MojoProof/Sym/SchedWait.lean bflyRounds_of_shfl (base :753) |
low (gap; B1131) | bflyRounds_of_shfl takes one combining function for every round and lane. gevm's rounds combine through deliver, at each thread's own oracle numbers, a function of the round and the lane. That is bflyRoundsAt's F r l, which no _of_shfl theorem gives. |
fixed (06500dc): bflyRoundsAt_of_shfl (MojoProof/Sym/SchedWait.lean:727), for every F, replaces bflyRounds_of_shfl; its one use, SymColl.lanes, is its instance at F = fun _ _ => combine |
06500dc; MojoProofTest/SymColl.lean:270; the audit's instances count is 0 |
| B1209 | MojoProofTest/NaiveSound.lean:109, :145 and MojoProofTest/NaiveKernel.lean's four corollaries (applying NaiveFam's theorems at literal strides) |
low (elaboration) | Without the strides named, elaboration fails with "maximum recursion depth": unifying pairs' min ?sA ?sB with the literal 768 unfolds Nat.min on the literal. |
worked around: (sA := 768) (sB := 768) (sC := 50257) (3fa4436); in NaiveKernel (3cda4da), the tensors named, (A := A) (B := B) (read_cover), or the hypotheses hK hK before h, which fix sA and sB first (matmul_nanEq, matmul_error, nanEq_zero) |
naive_read, naive_matmul, NaiveKernel.read_cover, matmul_nanEq, matmul_error, nanEq_zero |
| B1220 | MojoProof/Sym/Rules.lean:62 and :66, MojoProof/Sym/Checker.lean:63 | medium (coverage) | After an alloca the block checker refuses icmp, getelementptr and ptrtoint, because they read the memory's shape. So gemv_kernel's %6 is refused at statement 30, summarizeAt true gives no summary of the block from 0, and the values of %6's loads have no summary. |
fixed in e5986f0: after an alloca, getelementptr, icmp and ptrtoint have nodes on the memory the block's effects make (SNode.gepAfter, gepNAfter, icmpAfter, castAfter), evaluated at SEff.run, with the checker's rules and Block.sound's cases, for every program. gemv's %6 now stops at statement 17 (B1222) |
MojoProofTest/SymAlloca.lean reads_covers, reads_sound, the mutant reads_mutant; gemv_allocas_twin records the stop at 17 |
| B1221 | MojoProof/Sym/Path.lean, Runs.of_ret and the path relation |
medium (coverage) | The path theorems thread fe.allocas = f.allocas (hal) and take Block.sound's summaries with the alloca flag off, so a path through a block with an alloca (gemv's %6) has no theorem. |
partly fixed in 9fef480, 3bf8360, a14d824, 9415a1b, 29de1ac: paths with the flag (coversPathAt, Block.sound_pathAt_ptrs) and the single-path kernel run (Runs.of_retAt), for every program. Chains and loops take the flag in place (b6c6478): coversChainAt, LoopSeg.coversRoundAt, coversChainsAt and Runs.of_chainsAt, for every program, their With forms the flag-off cases; gemv_kernel's %6 runs from statement 41 through %43 to ret with the path checker's flag on one context and memory (e2fa87b). %6 from statement 0 runs to ret on the %43 branch (538c80d, gemv_runs) and through its loop with no round and %78 (1778ef9, gemv_loop_runs). Open: the loop's rounds (B1490), and Runs.of_loop, Runs.of_loops and Runs.of_ret keep flag-off statements (one-line cases) |
MojoProofTest/SymAlloca.lean path_covers, path_runs, path_ret, the mutant path_mutant; MojoProofTest/SymLoopAlloca.lean loopK_covers, loopK_mutant, loopK_run (a loop whose body allocates, one program); MojoProofTest/SymGemvTail.lean tail_covers, tail_ret, tail_mutant, tail_runs; MojoProofTest/SymGemvTail.lean gemv_runs, gemv_loop_runs |
| B1222 | MojoProof/Sym/Segment.lean, summarizeSegs, summarizePieces and Seg.sound |
medium (coverage) | The segment checker has no alloca flag, so gemv_segs starts at statement 3, after the allocas, with %7, %8 and %9 as entry registers, unrelated to the blocks the allocas make. |
fixed in 2850b01: summarizeTo, summarizeLife, summarizePiece and summarizePieces take the alloca flag, with Seg.sound, Seg.life and Piece.through for either flag and every program; each segment starts from its own frame's valuation, so no effects need carrying across a marker. gemv's %6 is summarized from statement 0 to its branch at 47 (the paths: B1221) |
MojoProofTest/SymSeg.lean gemv_segs, gemv_segs_alloca, the mutant gemv_segs_alloca_mutant |
| B1223 | MojoProof/Sym/Rules.lean:66; scripts/roadmap_llvm.py | low (docs) | mojo_refuse Inst.cast "ptrtoint after an alloca" is keyed by the Inst constructor, so the generated card of every cast opcode (bitcast, sext, zext, trunc, fpext, fptrunc, sitofp, addrspacecast) shows "refused (ptrtoint after an alloca)", which belongs on ptrtoint's alone. |
fixed in e5986f0: the refusal ptrtoint after an alloca (Rules.lean:66) is removed, since the checker takes ptrtoint there (B1220) |
the cast cards of roadmap/llvm-ir |
| B1224 | MojoProof/Sym/SegTrace.lean Waits.events, EndsWith.events, SEff.apply_trace, SEff.foldlM_trace |
low (interface) | With the alloca effect a summary's effects can add blocks, so the trace lemmas hold only for effects without one: the frozen Waits.events and EndsWith.events need the premise SEff.allocates S.effs = false, as do SEff.apply_trace and SEff.foldlM_trace. |
fixed (f054e72): the four take the premise, and their callers in MojoProof/Sym/Kernel.lean, KernelIter.lean, MojoProofTest/GevmTrace.lean and SegEvents.lean give it | MojoProofTest/SegEvents.lean, MojoProofTest/GevmTrace.lean |
| B1225 | scripts/SymBench.lean:245-246, :261-262 and :264-265 (s21', sw10, sw25) |
low (style) | Every argument of the three simp (config := { decide := true }) [...] calls is unused: the decision procedure closes the goals alone. The run warns 33 times, 27 before 48b775e's coversAt and summarizeAt. |
open. Fix: drop the lemma lists; the proofs and the times measured do not change | the warnings of lake env lean --run scripts/SymBench.lean |
| B1235 | tests/corpus/gevm_t512/ (gevm_kernel at tile 512); MojoProofTest/OblGevm.lean, OblGevmThread.lean | low (gap; generality) | gevm_kernel's tile-512 specialization is a different program from the tile-1024 one (stride 16, four shuffles, a 512-float shared array; the blocks' statement counts differ), so mojo_family cannot make gevm's family over block sizes, and a theorem over both needs per-program summaries or a summarizer parametric in the loop's stride. OblGevm.lean's 12 statements and the thread's stay at tile 1024; the premise that fixes the size is hn : ntid.x = 1024. |
open | MojoProofTest/Family.lean (the last example: the two specializations' block statement counts) |
| B1236 | MojoProofTest/Inv.lean; MojoProofTest/OblMatmul.lean naive_rounds_open |
low (gap; generality) | The naive kernel's invariant and round statements cannot yet be stated over the row strides: the three constants are in the entry block %6 only, so the loop blocks %46, %50, %52 of NaiveFam.fn sA sB sC are the corpus's block constants, but mojo_inv and mojo_obl find the summaries through W.fn = naive.fn_0; and with a symbolic stride the addresses r * sA + i are nonlinear, so their omega needs r * sA + sA ≤ m * sA as a hypothesis (by Nat.mul_le_mul_right). |
fixed | 21ab41e, 0fba2e6: the entry summary is a function of the strides (NaiveFam.entryF, entryF_eq, by sym_summary_family), the loop blocks are shared (kept_eq, loads_eq), the summaries are found through W.fn = NaiveFam.fn sA sB sC, the addresses through r * sA + sA ≤ m * sA; tests: OblMatmul's naive_rounds_open, naive_entry, naive_skip_row, naive_skip_col at every stride, NaiveFamRun's missingF refusal (MojoProofTest/Inv.lean's tactic tests stay at the corpus program) |
| B1237 | MojoProof/Sym/OblSeg.lean (RunsVia); MojoProofTest/OblGevmThread.lean thread, MojoProofTest/OblGevmRun.lean loop |
low (gap; B1130) | gevm's whole-thread theorem (thread composed with loop) needs RunsVia.of_steps (steps before a run through collective calls), which OblSeg.lean does not have. The composition and the lemma are written and not built: their one check stopped at a parse error in the lemma (a variable named as, a keyword, since renamed), and the composition and its examples at K = N = 64 and 4096 elaborated against the lemma's statement. |
fixed | e716494 (RunsVia.of_steps, OblGevmWhole.whole); whole's examples at K = N = 64 and 4096 |
| B1238 | docs/new-kernel.md:130 and :136 | low (doc) | The corpus counts (114 files; 114 rows, 107 imported) are stale after 7f28591, which adds two specializations: 116 files and 116 rows, 109 imported. | fixed (4950c91) | none |
| B1239 | docs/proofs/README.md, item 17 | low (doc) | It said vadd_walk_launch is for every valid one-dimensional launch; after 4669094 the general theorem is vadd_walk, for every valid launch, and the one-dimensional theorems are its corollaries. |
fixed (4950c91) | none |
| B1240 | MojoProofTest/SymRun.lean:205 SymRun.vadd_walk; MojoProofTest/Obl.lean:60 Obl.vadd_walk |
low (naming) | The same short name for two statements, a closed 4-thread instance and the theorem for every launch, in different namespaces (no clash; neither file opens the other's namespace). | open | none |
| B1241 | scripts/cited.py; MojoProof/LLVM/Family.lean mojo_family |
low (tooling) | cited.py does not see the declarations a mojo_family command generates: a module doc that writes NaiveFam.prog_corpus alone is reported missing (see B1251 for tile_map2). |
fixed (1604e5d: cited.py reads the names mojo_family adds) |
python3 scripts/cited.py; the docstrings cite NaiveFam.prog_corpus alone (c2e5a22) |
| B1250 | MojoProof/Layout/Laws.lean:1038 carryFree, :1123 Lay.compose_all |
low (proof gap) | carryFree is shown sufficient for the composition law at every coordinate, not necessary: that every pair meeting noCarry and B(v) < size(A) at every v is carryFree is not proved, and the premise is not compared with a text of CuTe's own condition. |
open; documented in docs/proofs/layout-laws.md and the composition card | MojoProofTest/LayoutLaws.lean:207-236 (the two instances), :290-292 (carryFree true where composeDiv fails), :308-310 (carryFree false where noCarry fails) |
| B1251 | scripts/cited.py:79 (TACTIC) and the name resolution |
low (tooling) | cited.py resolves a syntax/macro/elab keyword only when the declaration ends in : tactic (and its regex wants the keyword string right after syntax (name := …)), and it resolves generated names only for mojo_kernel. A module docstring that cites the test command tile_map2 (syntax (name := tileMap2) docComment "tile_map2 " … : command) or the theorems it generates (vadd_tile, vmul_tile, vsub_tile) counts them as missing: 6 names at 1bc1c86, those and x_k, y_k of Map2.lean's text, which are not names. Fix: accept : (tactic\|command) and a docComment before the keyword, and resolve the names a test command generates (<ident>_tile). Worked around in fdbda98 by rewording the two module docstrings. |
fixed (1604e5d: : tactic or : command, a docComment before the keyword, and the names tile_map2 adds) |
python3 scripts/cited.py: 0 missing |
| B1252 | MojoProofTest/TileNaive.lean:67 (pairOracle fun t => o (ω t)), MojoProof/Tile/Mat.lean:67 matBytes |
low (proof scope) | The tile oracle of the naive kernel's loop is pairOracle of NaiveSpec.o, the oracle numbers of steps 54 + 18 j and 55 + 18 j as the kernel's spec states them. It is not computed from the kernel's paths, as oracle/siteStep? compute the step of a map2 kernel's one operation. mat_refines takes the oracle numbers o from the kernel theorem's bytes, so it is right for whatever o the kernel theorem proves; a wrong o in a spec would make the theorem unprovable, not wrong. |
deferred: the tile layer's remaining steps, this oracle's derivation among them, are planned as general theorems of a separate core library | docs/proofs/tile.md section 6 |
| B1253 | MojoProof/Tile/Mat.lean:137 mat_refines; MojoProofTest/NaiveSound.lean:46-47 (the mat clause's one kernel) |
low (coverage) | mat_refines has one kernel instance: the naive kernel is the only kernel of mojo_kernel's mat clause. A family whose only instance is the old case is not a generalization; here the family is the kernels that Kernel.sound_mat proves, which is one today. |
open; a second matmul kernel through the mat clause |
the uses of contract mat in MojoProofTest: NaiveSound.lean:47 (naive); the others (NaiveSound.lean:444-522, NaiveKeep.lean:93, :139) are the clause's refusals at naive's program and its twins |
| B1254 | MojoProofTest/TileNaive.lean:62 naive_tile, :37 bytes_eq |
low (specific statement) | naive_tile fixes the row strides 768 of A and B and 50257 of C (so n ≤ 50257) and K ≤ 768, because NaiveKernel.correct and its Mat.Pre do (the naive kernel's known specific item). It is a one-term corollary of mat_refines, which has none of these constants. The general statement is mat_refines (MojoProof/Tile/Mat.lean:137); when NaiveKernel.correct is generalized, bytes_eq and naive_tile follow by replacing 768 and 50257 with the new sizes. |
fixed | c2e5a22: naive_tile is mat_refines at NaiveFam.sound, for every row stride sA sB sC, K ≤ min sA sB and sizes below 2 ^ 31, and bytes_eq at every stride; its examples at K = 768 and K = 4 |
| B1265 | Mojo GPU library: mma at m8n8k4 (max/mojo/max/gpu/compute/arch/mma_nvidia.mojo:56-58 and :92-94, with Mojo 1.3.0.dev2026112105) |
medium (upstream) | The library's mma at m8n8k4 with f16 inputs does not compile for sm_80. It calls llvm.nvvm.mma.m8n8k4.row.col.f32.f32 with one f16 each for A and B and two f32 for C (operand shape (1, 1, 2, 2)), and declares a { float, float } result, where the intrinsic returns eight floats ("intrinsic call returns { float, float } but … actually returns { float, float, float, float, float, float, float, float }"). With an f16 accumulator it declares { half, half } where ….f16.f16 returns four <2 x half>. So no Mojo driver of m8n8k4 through the library exists, and no GPU record of it is possible that way. |
open, not reported | tools/mojoc.sh <out> <probe> sm_80 on a kernel calling mma at that shape (logs s40f-i2-m8-ir, s40f-i3-m8h-ir: "LLVM Translation failed for operation: llvm.call_intrinsic"); documented in docs/proofs/tensor-core.md "Not proved" and the mma card (68bdbd2) |
| B1266 | Mojo GPU library: 8-bit mma (mma_nvidia.mojo, the fp8 m16n8k32 inline PTX) |
low (upstream, coverage) | The library's only 8-bit mma is fp8 (e4m3, e5m2) at m16n8k32, written as inline PTX. ptxas rejects it for sm_80 ("Feature 'mma with FP8 floating point type' requires .target sm_89 or higher"; it also needs PTX ISA 8.4), so the A100 cannot run it. The library has no s8 or u8 mma, so there is no 8-bit mma to record on this GPU. The layouts of the 8-bit inputs stay checked against the ISA's tables only. |
open, not reported | mojo build of a kernel calling the fp8 mma (log s40f-g3-fp8-build, exit 1); docs/proofs/tensor-core.md "Not proved" and the mma card (68bdbd2) |
| B1280 | MojoProof/Float/Halve.lean:46 (25ee846) halvings; MojoProof/Sem/Bfly.lean bflyOffsets; scripts/Audit.lean DUPDEF |
low (duplicate) | halvings k := (List.range k).reverse.map (2 ^ ·) is bflyOffsets k := ((List.range k).map (2 ^ ·)).reverse: the same list for every k (List.map_reverse), defined twice. The audit's DUPDEF compares values up to names, so the two bodies, which differ in the order of map and reverse, are not paired; near_dups does not compare definitions. |
fixed by bab4f23: halvings and halvings_succ deleted, Halve.lean states bflyOffsets k |
MojoProofTest/FloatTree.lean block_halve, block_ones, block_ones8; MojoProofTest/FloatStats.lean leaves_halveFin |
| B1295 | MojoProof/Sym/Inv.lean:74-76 (module docstring, "Tests:") | low (doc) | The docstring named NaiveIn.lean's head_in, round_in and exit_in as mojo_inv's naive tests. Since 21ab41e they are instances of the family's theorems, and the mojo_inv calls are in MojoProofTest/NaiveFamRun.lean (head_inF, round_inF, exit_inF). |
fixed | c2e5a22: the docstring names NaiveFamRun's three theorems; python3 scripts/cited.py |
| B1296 | docs/tactics.md:614-618 | low (doc) | The same stale pointer: "MojoProofTest/NaiveIn.lean proves %48's fmul contract operands by it" and "NaiveIn's exit_in uses it". |
fixed | 62805a7 |
| B1297 | scripts/cited.py scan |
low (tooling) | cited.py did not know the names that the command sym_summary_family n adds (n, n_eq), and before 1604e5d those of mojo_family F (F.prog, F.fn, F.prog_corpus) and the command names themselves, so module docstrings cited them as "the command X", prog_corpus : … and entryF_eq sA sB sC (ab33029). |
fixed | c2e5a22 (SUMFAM; the docstrings of ab33029 in the plain form); python3 scripts/cited.py |
| B1300 | MojoProofTest/NaiveIn.lean:3-5 | low (hygiene) | import MojoProofTest.KernelRfl, MojoProof.Sym.OblHave and MojoProof.Sym.Inv were unused: NaiveIn calls none of kernel_rfl, obl_have and mojo_inv since 21ab41e. |
fixed | c2e5a22: the three imports dropped; the build |
| B1301 | MojoProof/LLVM/Family.lean mojo_family, MojoProof/Sym/Family.lean sym_summary_family |
low (gap; tooling) | No command generates a kernel theorem at a given specialization of a family: NaiveKernel.correct and NaiveFam.sound_512_512_256 are written by hand, one line each. |
open: a mojo_family clause that adds the instances, or mojo_kernel over a family |
— |
| B1302 | MojoProofTest/NaiveFamRun.lean (keptF, round_inF, exit_inF, runF, sound) |
low (gap; B877) | mojo_kernel's mat … inv clause works on one closed program, with no form for a family's parameters, so the family's run (240 lines) is written by hand on Kernel.sound_mat and RetLsWith.of_iter, not generated. |
open: a mat … inv clause over a family, its summaries from sym_summary_family |
— |
| B1303 | tests/corpus/mgemm/ (9 float32 naive files: 2219af54, 51a464b3, 5b4607bc, 7f042754, 9fb4f425, bf082016, ccfa9f7e, e97245b7, eb5dc95e) | low (coverage) | Only 16826c8c (NaiveFam.prog_corpus) and naive_k512's 50910765 (MojoProofTest/Family.lean, rfl) are checked to be members of NaiveFam. If the others differ only in the three stride constants, each one's kernel theorem is a one-line instance of NaiveFam.sound. |
open | — (an rfl check per file, as for naive512) |
| B1304 | scripts/cited.py scan, the refusal test |
low (tooling) | A command generated names unless the line before it was exactly #guard_msgs in. Under #guard_msgs (whitespace := lax) in (MojoProofTest/NaiveFamRun.lean:56, the refusal sym_summary_family missingF) the scan registered missingF and missingF_eq, which do not exist, so a docstring citing either would have passed. |
fixed | e98e7fc (GUARD: #guard_msgs with any options before in); python3 scripts/cited.py runs the self-checks CHECKS first, the missingF refusal among them, and fails under the old rule (5 failed checks) |
| B1325 | MojoProof/Sem/Grid.lean Grid.fire, the .ldmatrix arm |
medium (gap, semantics) | ldmatrix has no grid semantics: a run reaching it stops as unsupported: ldmatrix in a grid. Its rows are reads of shared memory. Every Grid.fire_* statement says a fire changes no memory and depends only on the waiting threads' statuses (Grid.fire_frame, Grid.mem_fired, Grid.advance_fire_comm), so the dispatch needs those statements changed: the result as a function of the memory, the reads logged as the lanes' accesses, and the 16-bit shared load as ldmWarp's reader. |
open | the pin MojoProofTest/Modelled.lean:236; the plan in docs/proofs/tensor-core.md, "Not proved" |
| B1326 | MojoProof/Sem/TensorCoreDef.lean gridAcc, used by mmaGrid, Grid.fire |
medium (trust) | The grid's mma computes D bit for bit as fuseAcc fi .binary32 8 24. That is a trusted model of the hardware (TRUST T14), measured only for m16n8k16 with bf16 inputs on one A100 (tests/gpu/mma/record.txt); f16 inputs and m16n8k8 (or any other k) are unmeasured. Unlike mma_contract, which takes AccBy as a hypothesis, every theorem through Grid.fire depends on this choice. |
fixed (a083a97): every theorem through Grid.fire holds for every accumulation policy L.acc (B1333); gridAcc is the default, and T14 trusts only that a GPU's accumulation is a policy that meets the caller's contract. f16 inputs and shapes other than m16n8k16 are still unmeasured, which matters only to a caller that picks gridAcc for them |
ab33fea; MojoProofTest/TensorCoreGrid.lean; TRUST T14 and its scripts/trust.tsv row; a083a97, T14's scripts/trust.tsv row T14 const MojoProof.Sem.mmaGrid |
| B1327 | MojoProofTest/Modelled.lean row Intrinsic.mma; scripts/roadmap_llvm.py (the intrinsic-mma card) |
low (process) | Modelled's kernel for mma runs a block smaller than a warp, so its row stops with unsupported: mma in a warp cut by its block of threads. The generated llvm-ir card reads that row and calls mma "parsed, not modelled", though the grid runs mma for whole warps with bf16 or f16 inputs (MojoProofTest/TensorCoreGrid.lean). |
open: Modelled's mma row needs a launch of 32 threads with finite bf16 or f16 arguments, or roadmap_llvm.py could read TensorCoreGrid.lean |
— |
| B1328 | docs/DEPENDENCIES.md, docs/deps/, roadmap/status.yaml, roadmap/llvm-ir/cards/intrinsic-{ldmatrix,mma}.md | low (docs) | These generated files were stale after the new modules MojoProof/Sem/TensorCoreDef.lean, TensorCoreWarp.lean, MojoProofTest/TensorCoreGrid.lean and TensorCoreWarp.lean, Grid.lean's import of TensorCoreDef in place of Thread, and the grid's new messages, which the two llvm-ir cards quote. | fixed (regenerated) | scripts/deps.py --check, scripts/roadmap_status.py --check, scripts/roadmap_llvm.py --check |
| B1329 | scripts/cited.py, TACTIC lookahead |
low (tooling) | A syntax/macro/elab declaration counts only if : tactic or : command is on its line or one of the next 5 indented, non-blank lines. A longer or unindented continuation is not seen, and a name cited from it is reported missing (a false alarm, never a false pass). |
open (documented in the script's docstring) | 1604e5d; python3 scripts/cited.py |
| B1330 | MojoProof/Float/Norm.lean rmsnormOff_error, premise hδ |
low (tooling) | Stated as … < 1, the theorem hit "maximum recursion depth has been reached" in its proof and in the linter Lean.Linter.constructorNameAsVariable. Stated as ¬ 1 ≤ …, which is equivalent by not_le, it builds without a maxRecDepth option. |
worked around | f858f37 |
| B1333 | MojoProof/Sem/TensorCoreDef.lean gridAcc (base :299), mmaGrid (base :314) |
high | The grid fixed one accumulation, fuseAcc fi .binary32 8 24, where PTX ISA 9.5 §9.7.16.5.14 leaves order, rounding and subnormals unspecified; an f16 m16n8k8 cell with C = 2^24 and products 1, −2^24 gives 1 under it and 0 under round-to-nearest sequential accumulation, both allowed |
fixed (a083a97) | a083a97: Launch.acc : MmaAcc (default gridAcc), seqAcc, gridAcc_ok, seqAcc_ok; mmaGrid, mmaRes, Grid.fire_mma take the policy; MojoProofTest/TensorCoreGrid.lean:198, :200; MojoProofTest/TensorCore.lean:525, :527 |
| B1334 | MojoProof/Sem/TensorCoreDef.lean mmaFrags (base :116), MojoProof/LLVM/Intrinsic.lean Mma.ok (base :119) |
medium | Both accepted every positive multiple of 8 for k with bf16/f16 inputs, so llvm.nvvm.mma.m16n8k24.row.col.bf16 imported and the grid ran it; the ISA lists only m16n8k8 and m16n8k16 for these types |
fixed (a083a97, c659c5d) | a083a97: Mma.table (Intrinsic.lean:126) gates Mma.ok (:133) and mmaFrags (TensorCoreDef.lean:121); c659c5d: the f16 grid test; MojoProofTest/IntrinsicForms.lean:48, :51, :53; MojoProofTest/TensorCore.lean:530, :532; MojoProofTest/TensorCoreGrid.lean:218, and the f16 pair :231, :234 |
| B1335 | MojoProof/Sem/TensorCoreWarp.lean Grid.fire_mma (base :398) |
medium | The conclusion equated fire with a computation containing resumeAll and never proved it .ok; with a waiting function whose aggregate return carries nonnull, both sides are errors |
fixed (a083a97) | a083a97: premise hd on the waiting functions' return attributes; conclusion ∃ y g', g.fire L c n = .ok (some g') ∧ … (TensorCoreWarp.lean:447); MojoProofTest/TensorCoreGrid.lean:193 (fire faults with nonnull); f16Grid, bf16k8Grid |
| B1336 | MojoProof/Sem/Sig.lean sig (pending, sig_advance_logs :413, sig_fire_logs :429); docs/proofs/theorem0.md, docs/proofs/sig.md |
low (design) | MojoProof's traces and Grid.pending are newest first (an atomicrmw logs its write in front of its read); the core's traces are oldest first and Local.advance_logs says trace s' = trace s ++ pending s a. So sig's pending events must be ((g.pending c n).map (Event.toCore L)).reverse; without the reversal advance_logs fails at every atomicrmw |
fixed (5316915): sig_advance_logs and sig_fire_logs prove trace s' = trace s ++ pending s (.thread n) and … ++ firePending s n at sig, with sig.pending reversed |
MojoProofTest/Sig.lean (vadd at 2x2 and 1x4: sig's trace is the evaluator's reversed) |
| B1337 | MojoProof/Float/Welford.lean MojoProof.Float.wmerge (after b37eef5) |
low (hygiene) | The audit's unused was 1 after b37eef5 and 0 before: wmerge has no use outside its namespace and no targets.txt line after b37eef5 |
fixed (c769c48: welford_eq_eval uses wmerge) |
c769c48; the audit's unused line (0 after c769c48) |
| B1363 | MojoProof/Float/Welford.lean welfordC, wloop, welfordC_error, wloop_error |
medium (scope) | The bounds covered the four uniform contraction policies only (one fm, fv at every node and every iteration), while LLVM's contract and the semantics' oracle choose per instruction. |
fixed (b37eef5; c769c48 gives wmerge its user back) |
MojoProofTest/FloatWelford.lean welfordC_alt4, welfordC_alt8, wloop_alt4, wloop_alt8, the #guards at :229 and :231, welford_eq_eval |
| B1364 | MojoProof/Sem/ScheduleOwned.lean Confluent.of_iff (:53 at dfc811f) and the proof of Grid.confluent_owned (:294 at dfc811f) |
low (structure) | Confluent.of_iff is a lemma about GPUProof.Confluent that stayed in namespace MojoProof.Sem. Generalized field notation on a GPUProof.Confluent looks for GPUProof.Confluent.of_iff, so (Grid.confluent h hm).of_iff … stopped resolving, and :294 was rewritten as Confluent.of_iff (Grid.confluent h hm) …. Every other front end that uses it hits the same thing. |
fixed (b7ce8aa): Confluent.of_iff is deleted; Grid.confluent_owned is Grid.confluent with the core's Confluent.transfer (GPUProof/Transfer.lean) along the identity, by field notation |
dfc811f (the workaround), b7ce8aa |
| B1365 | GPUProof/; docs/proofs/core.md "Where the Lean definitions depart from the design" item 8 | low (gap, planned) | Not in Lean: the law classes Local, Start, Machine, Rendezvous and the optional laws, Slot, ThreadStatus and RunsTo. Levels is in Lean (GPUProof/Laminar.lean, 6b15324) with its first instance at the toy machine (Levels toy, every launch), with Laminar and HB.laminar_iff, and at MojoProof (Levels sig, e2cda8b). OneRun, Sound, Kernel.Sound, Sound.of_one_run and Done.bad_iff are in Lean (GPUProof/Sound.lean, e2cda8b) with the instance OneRun sig. The toy's Same, Agree, Delta, apply, Closed, ArgsOk and StartOk are not checked by any law (the last three are True). The laws name 17 predicates that are not defined. |
open for the other classes (each enters with its first instance, MojoProof's sig); Levels fixed in 6b15324, OneRun in e2cda8b |
core.md "The laws"; MojoProofTest/GPUProof/Toy.lean instance : Levels toy, reach_laminar; MojoProofTest/GPUProof/Laminar.lean; MojoProofTest/Theorem0.lean |
| B1366 | GPUProof/Race.lean racy, ordered, kept; Sig.lean Access.locs |
low (cost, gap) | racy decides Racy (racy_iff) but runs one pass with a clock per position (5bebfc7), and checks each access against the earlier writes and, when it writes, the earlier other accesses (09902c6). Access.conflict compares the byte lists of two intervals. A large trace or a bulk copy is slow under decide. kept has the propositional form Kept, decided by kept_iff (153fd35). Its body collects the frozen bytes once and checks each byte written against them (239759c): W·ℓ·D comparisons of bytes, since S.Loc has only decidable equality. Measured: decide +kernel on racy fits traces of up to a few hundred events and runs out of memory at 24 GB at vector_addition's 684 (724cd70, core.md "racy in the kernel"; B1414; the clock pass too, 5bebfc7). |
fixed for racy and kept at the launch: the interval test under Place (66c9670: Sig.placeInj, Place, Sig.share, Sig.share_iff, Access.meets_iff; racy_iff unchanged), and kept by decide +kernel on the 684-event launch in 3.4 s of kernel time (8dbc9c7, vadd_sig_kept); the quadratic pair count is B1414's; the key on bytes is Sig.key (5a2a690, B1374); fewer pairs in 09902c6; the clock pass in 5bebfc7; kept_iff fixed in 153fd35; kept's body in 239759c |
MojoProofTest/GPUProof/Race.lean (#guards at 3 and 7; kept_next_Kept, kept_next, not_Kept_last; aliased_Racy, a machine without placeInj at 3 and 7 bytes); Toy.lean ring_racy_kernel; MojoProofTest/RacySig.lean vadd_sig_racy, vadd_sig_kept; logs/s48b-kept1.log |
| B1367 | scripts/deps.py (base :135, :151, :174); docs/DEPENDENCIES.md; docs/deps/ | low (docs, generated) | deps.py lists only MojoProof/ and MojoProofTest/ modules, so the generated files still show MojoProof.Sem.OneRun and the old Sem.Confluent.* names (DEPENDENCIES.md before bfbfae9 :92, :111, :144, :374, :781, …; claims.tsv; modules.dot/svg), and do not show the core's modules. |
fixed (e51b810: deps.py reads GPUProof/; bfbfae9: docs/DEPENDENCIES.md and docs/deps/ regenerated from the audit's --deps facts) |
deps.py check, exit 0 |
| B1368 | scripts/cited.py before fe90796 | low (tooling) | cited.py did not read GPUProof/: after dfc811f and fd5d920 it reported 7 names missing that exist (6 from the move, and racy_iff cited in MojoProofTest/GPUProof/Clean.lean). |
fixed (fe90796) | scripts/cited.py: 0 missing |
| B1369 | MojoProofTest/GPUProof/Imports.lean:147-155 | low (process) | By design, the test fails when a .lean file under GPUProof/ is not imported by it, and its #guard_msgs lists the core modules. A new core module, such as GPUProof/Transfer.lean, breaks it until the module is imported there and named in the expected message. |
fixed (b7ce8aa: the test imports GPUProof.Transfer and names it in the info: core modules: line) |
dfc811f, fd5d920, b7ce8aa |
| B1370 | docs/proofs/core.md, the law class Atomic (exempt_rmw, :215 before the fix :213; the design's text has the same law); GPUProof/Sig.lean Access.conflict (:319) |
medium (design, law) | Access.conflict trusts S.exempt as it is, and the planned law exempt_rmw did not require the exempt operation to commute (right_comm holds only under S.commutes op = true). A machine could exempt two unused-result exchanges of one byte (combine old v = some v, commutes false): both laws hold, the race check passes the pair, and the two orders leave different bytes. No compiled theorem is affected: the law classes are not in Lean. |
fixed (bdf7138): exempt_rmw concludes S.commutes op = true, and core.md's Atomic paragraph says why the race check needs it. The toy's commutes is true for its one operation, so it meets the corrected law |
docs/proofs/core.md :213-:216, :232-:237; the law enters Lean with its first instance |
| B1371 | MojoProofTest/FloatWelford.lean altNode (docstring :218-:221); docs/proofs/float-welford.md :94-:96 |
low (docs) | The docstring said altNode fuses the sum's pair "when the node is a right child (p starts with true)". Paths are root first (welfordC descends by c ∘ List.cons b), so p.head? = some true holds at every node of the root's right subtree: [false, true] is a right child and is not fused, [true, false] is a left child and is. The test's claim of a non-uniform choice, and the error theorem for every choice, are unaffected. |
fixed (bdf7138): both texts say "the nodes of the root's right subtree" | MojoProofTest/FloatWelford.lean welfordC_alt4, welfordC_alt8 and the #guards, unchanged |
| B1372 | MojoProofTest/GPUProof/Toy.lean final (:350 before the fix) and runFor |
low (test docs) | final's docstring promised "the state where the toy schedule stops", but it runs runFor (10 * n + 10), which also returns when the fuel runs out with a step still enabled: at n = 1, 21 one-byte writes get 20 steps. Every test that relied on a stopped run also checked allDone, so no test result was wrong. |
fixed (bdf7138): the docstring says the run is bounded; the new stopped (sched s = none) is checked beside allDone in the four run tests, and a new #guard shows final stopping short at 21 writes while runFor 30 stops |
MojoProofTest/GPUProof/Toy.lean :352 stopped, :356-:359, the #guard at :396-:398 |
| B1373 | docs/proofs/sig.md (15 ids), docs/proofs/theorem0.md (5 ids), as merged at 32ec189 | low (docs) | The proof documents cited bug ids (space (B1380), "B1336's reversal", "(B1387, B1388)" and the like), while bug ids stay only in docs/BUGS.md and the text says the point in words. |
fixed (83fdb43): each id is deleted or replaced by its point in words; docs/proofs/README.md's new entries carry none. The four older ids outside docs/BUGS.md (B1146 and B1147 in MojoProofTest/LayoutLaws.lean, docs/proofs/layout-laws.md and roadmap/layout/cards/two-level-swizzle.md, each after its point in words) are deleted in the commit that updates this row | git grep -nwE 'B1[0-9]{3}' -- . ':!docs/BUGS.md' lists none; docs/UPSTREAM.md still names rows B16, B131 and B132 of this ledger |
| B1374 | MojoProofTest/Eval.lean:184 runF32 (and :344 runText); GPUProof/Race.lean:653 kept |
medium (test cost) | Since a8817d2, runF32 and runText check a run's trace with the core's GPUProof.kept sig, which scans the whole trace for each access that writes and, at each frozen access, compares byte lists built for that pair. MojoProof's deleted kept collected the frozen accesses once and checked each write against them. On tiled_matmul's race-checked launch (matmulTests, launch2 4 4 16 16, 4,096 threads, about 600,000 accesses) the gate's test step went from 3:16.87 (gate-s44m-final, ab56042) to 43:52.60 (gate-s45m-final, fa919cb), and the whole gate took 48 minutes under the 50-minute timeout it ran with; stack samples of mojoproof_test showed GPUProof.kept under runF32 and matmulTests from 13:20Z to 14:03Z. Every test still passes; only the time grew. |
fixed (239759c, 5a2a690): kept walks the trace once (keptFrom), sorts the bytes written and the frozen bytes by the machine's new field Sig.key (default fun _ => 0; keySort, a structural merge sort) and walks the two sorted lists once (disjointSorted), with kept_iff's statement and Kept unchanged, proved for every numbering (keptFrom_iff, disjointSorted_iff); sig's key is Nat.pair of the block and the offset's number, injective by sig_key_inj (f09d059, B1431). The test step took 2:43.11 (peak 1.89 GB; logs/s47b-test.log), against 5:39.61 and 3:16.87; the decide +kernel evaluations of kept at the tests' sizes are 1.04 to 2.2 times slower, by at most 19 ms each |
the gate's test step time (logs/s47b-test.log); MojoProofTest/GPUProof/Race.lean (kept at 3 and 7 bytes by decide +kernel); the evaluations of kept by decide +kernel in MojoProofTest/ContractOff.lean, Determinism.lean, SkelStep.lean and ScheduleOwned.lean |
| B1375 | MojoProof/Sym/Path.lean:408 Walk, :426 Valuation.last, :401 coversPath; :451 WalkI, :471 Valuation.lastI, :441 coversPathI, :479 Valuation.blocksI; :500 WalkWith, :522 Valuation.lastWith, :488 coversPathWith, :530 Valuation.blocksWith; :562 Walk.toI; MojoProof/Sym/Kernel.lean:139 Walk.walkI |
medium (duplicate) | One family of path premises is written three times. WalkI, lastI, coversPathI and blocksI are WalkWith false, lastWith false, coversPathWith false and blocksWith false (definitionally, as their docstrings say), and Walk, last and coversPath are the case without phis, where every exit but the last has a target (Valuation.into is Valuation.after there, Exit.of_target). The conjunct rule (B1392) counts the two bridges: Walk.toI (… ∧ V.lastI l S ps = V.last l S ps) and Walk.walkI, which is Walk.toI without its coversPath conjunct, so the two are also one theorem stated twice. WalkI is named on 83 lines and Walk on 75 (MojoProof and MojoProofTest). |
fixed (c2f30be): the family is WalkWith, lastWith, coversPathWith and blocksWith, each fact proved once for every flag; the I forms, Walk, coversPath, Valuation.last's old form, Walk.toI and Walk.walkI are deleted, each use at the With false form (Exit.of_target went too: B1392). equivalences is 3 → 1 on that branch and 0 at the merge with B1389's step 5 (697af2a); the kernel theorems and mojo_kernel keep their statements and 0 hand-written per-kernel proof lines |
the audit's equivalences (0); MojoProofTest/SymPhi.lean, SymLoop.lean, Payload.lean (the path instances); logs/s47b-full3.log |
| B1376 | MojoProofTest/Pending.lean:98 launch, Embed.lean:38 one4, Confluence.lean:325 two, Phased.lean:22 L2, Transpose.lean:103 L4 |
low (duplicate, tests) | The launch of one block of k threads along x, one block in the grid, is defined five times in the tests, at sizes 2 and 4 or for every size; Phased.L2 and Transpose.L4 are new in c0826ca. The audit does not pair them: they differ in if against match, in the size, or in a structure instance against an anonymous constructor. |
fixed in fb82378: launch2 (MojoProof/Sem/Spec.lean:135) is the one definition, next to Launch.one; Pending.launch, Embed.one4, Phased.L2 and Transpose.L4 are deleted and their users write launch2 1 1 k 1; Confluence.two is launch2 1 1 2 1, kept for the SymWait.lean #guard_msgs pin and its users by name |
the touched tests' decide and #guard |
| B1377 | scripts/Audit.lean lawSplit, LawRow.holds, stmtHash, equivPairs (was :572, the isLaw filter); scripts/laws.tsv |
medium (audit) | A row of laws.tsv exempted every equivalence of the theorem it named: the audit first found the equivalences, then dropped a theorem whenever its name was in laws.tsv, and a row was stale only if the name named no equivalence or the kind was another. So a duplicate-definition equality added as a further conjunct of an exempted theorem was not counted (laws stayed 8 and laws_stale 0), and a reviewed statement could be replaced under the same exemption. |
fixed in 58a22a7. A row lists the pairs of definitions it exempts and the fingerprint of the reviewed statement (stmtHash, the hash of its type, which binder names do not change); a theorem is counted unless every pair its statement asserts is exempted by a row that holds (lawSplit), and a row whose theorem's statement or pairs differ is stale and printed with the current fingerprint and pairs. The eight rows exempt what they did (counts unchanged: equivalences 3, laws 8, laws_stale 0, logs/s47m-aud3.log) |
the audit's laws probe: double_twice (a law) and double_and (the law and addZero n = mulOne n) in MojoProofTest/AuditProbe.lean; with rows for both the audit must count double_and and not double_twice, and a row with double_and's fingerprint or the pair (addZero, mulOne) must be stale. The old rule fails it (scratch mutant, exit 1, logs/s47m-audmut.log) |
| B1378 | GPUProof/Chunks.lean:67 chunkStatesFrom, :77 chunkStates |
low (docs) | chunkStatesFrom's docstring says its last chunk ends at the trace's length, but for a two-event trace with m = 1, n = 1 and K = 0 its one endpoint is 1; chunkStates needs a positive chunk size for its endpoint (m = 0 gives no chunk). The tactic rejects 0 and supplies its own chunk count, so its proofs are not affected. |
fixed (73ab66f): both docstrings state where each chunk ends, when the last one ends at the trace's length (a positive chunk size, K + m * n covering it), and the cases m = 0 and n = 0 |
MojoProofTest/GPUProof/Chunks.lean:64, :70 (two #guards: two events with m = 1, n = 1, K = 0; m = 0) |
| B1379 | GPUProof/Sig.lean Sig.placeInj (:168), Place (:336); GPUProof/Race.lean Place.of_inj (:154), Access.meets_iff (:161), Sig.share_iff (:182); MojoProofTest/GPUProof/Toy.lean (:292, :350); MojoProof/Sem/SigDef.lean (:527) |
low (duplicate) | The law on place is stated twice. The field Sig.placeInj holds a proof of place b i = place b' j → b = b' ∧ i = j, and the class Place states the same law again as inj and disjoint. The two are equivalent: Place.of_inj proves one direction, and the other follows by cases on b = b'. No count sees this, because no theorem states the equivalence. Place is only the premise of Access.meets_iff, and Sig.share_iff reaches it by building the instance from the field. toy gives both the field and instance : Place toy, each proved by Prod.mk.inj, while sig gives only the field, so the two machines state the law differently. |
fixed in 7319b7f: the law is one definition, GPUProof.PlaceInj place (an abbrev); the field is Sig.placeInj : Option (PLift (PlaceInj place)), Access.meets_iff takes PlaceInj S.place, and the class Place, Place.inj, Place.disjoint, Place.of_inj and toy's instance are deleted, so toy proves the law once |
MojoProofTest/GPUProof/Race.lean and Toy.lean (the interval tests, aliased_Racy); the gate's audit |
| B1380 | MojoProof/Sem/Sig.lean sig, field space |
low (interface) | A MojoProof byte is (block, offset). Its address space is its block's (Block.space), which lives in the memory, so space : Loc → Space cannot read it; sig sets space _ := 0. |
open. Interface change: space : Bytes → Loc → Option Space, or Meta → Space through metaAt |
none (no law reads space yet) |
| B1381 | Sig.lean Access.kind; MojoProof/Sem/RaceSig.lean racy_sig_iff, racy_iff; MojoProof/Sem/Trace.lean kept_sig_iff |
low (design) | An atomicrmw is two MojoProof accesses (a read, then a write) but one core update, and Access.kind maps both to .rmw op. The core's racy at sig reads a race by phases on shaped traces (Trace.Shaped) by the launch's threads (racy_iff), which every reachable grid's trace is (Grid.start_reach_fits, c0826ca). .rmwRet never arises, because Stmt.checkAtomic admits only unused results. |
documented (c4dd08b, docs/proofs/sig.md) | MojoProofTest/Sig.lean |
| B1382 | MojoProof/Sem/SigDef.lean:433 sigExempt (was Sig.lean:228); MojoProof/Sem/Spec.lean:107 Access.conflict |
medium (law) | MojoProof exempts two updates by any one operation on the same bytes, while the core's Atomic.exempt_rmw (docs/proofs/core.md:300) needs commutes. On reachable traces only commuting operations occur (checkAtomic), but the law ranges over every pair of accesses. |
fixed (1eba422): the exemption needs RmwOp.commutes; on reachable grids every atomic commutes (Grid.start_reach_commutes); racy_dropBlocks and conflict_sig restated |
MojoProofTest/Sig.lean rmwRacy (xchg races for both racys, add for neither, at two offsets and widths); MojoProof/Sem/Spec.lean trace_examples; MojoProofTest/Bad.lean rmw_fault |
| B1383 | MojoProof/Sem/SigDef.lean:471 sigReads, :483 sigAgree |
low (interface) | reads lacks the blocks that the thread's registers name (Frame.NamesIn): a frame's registers are a function, with no list. So Agree is filled with Grid.advance_agree's premises directly. |
open. Fix: a finite register list in Frame, or an Agree stated over Frame.NamesIn |
none |
| B1384 | MojoProof/Sem/SigDef.lean:509 sig, field endLaunch |
low (interface) | MojoProof has no launch boundary. endLaunch keeps the caller's trace and takes the final blocks owned by every thread and the final next (2f3e189). No MojoProof theorem says what a caller sees after a launch. |
open | none |
| B1385 | MojoProof/Sem/SigDef.lean:509 sig, fields ArgsOk, StartOk |
low (interface) | ArgsOk is only Mem.checkClosed, and StartOk only Func.check. Grid.start checks the byval arguments and the parameter attributes (launchArgs) and the shared globals (shared) by faulting while it builds the grid. So StartOk reads no launch and ArgsOk no program. |
open | none |
| B1386 | GPUProof/Sound.lean:169 Done.bad_iff |
low (design) | The design states it without hrun, but OneRun does not give it: Done reads only the launch's threads, and a thread outside them could run without a step. At sig, hrun holds on reachable grids (Grid.start_reach_size, MojoProof/Sem/Determinism.lean:159). Since 37da428, MojoProof's statements about a done grid of any size take g.threads.size ≤ volume L.grid * volume L.block. |
open. Fix: a sixth OneRun field, or Done over every running thread |
none |
| B1387 | MojoProofTest/Theorem0.lean | medium (gate) | Grid.start_sound's exact statement (m.BytesIn m.Known) does not follow from Theorem 0 at sig, which needs S.Closed = m.Closed args. Mem.Closed.bytesIn gives BytesIn from Closed but not the converse: neither premise nor the start's checks give Closed's above. The gate is proved at m.Closed args. |
fixed (824a470): sig's Closed is m.BytesIn m.Known, Grid.confluent's premise; the example states Grid.start_sound's exact statement from Theorem 0 at sig (sound_sig, sound_of_sig) |
MojoProofTest/Theorem0.lean applies_one (the memory with next = 2 and a block 5), applies_six (next = 3, a block 7, 2 × 3 threads), the example |
| B1388 | MojoProofTest/Theorem0.lean | low (gate) | The gate uses bad_embed, sig_step_iff, sig_reach_iff, sig_obs, Grid.done_of_all and Grid.start_reach_size. Grid.Sound states its faults, done grids (post) and !invariant.load promise (Kept) as the core's Faults, Done and kept at sig (Grid.faults_iff, Grid.done_iff, kept_sig_iff); racy is the core's at sig too (racy_iff, MojoProof/Sem/RaceSig.lean), and bad_embed holds at every grid, launch and contexts (c0826ca). Nothing else of MojoProof enters, and its semantics does not change, so OneRun is not wrong. |
documented (c4dd08b, 37da428, a8817d2, c0826ca; docs/proofs/theorem0.md) | MojoProofTest/Theorem0.lean |
| B1389 | MojoProof/Sym/SigOneRun.lean kept_sig, racy_sig, bad_embed, sig_done_iff (sig_faults_iff went in 39bae9f); scripts/Audit.lean |
medium (audit) | The audit counted the five as equivalences (0 to 5): MojoProof's Grid.Faults, kept, racy, Grid.Bad and Grid.Done are second definitions of the core's at sig, agreeing only on shaped traces by the launch's threads or on grids with the launch's thread count. The design asks for bad_embed as such an equivalence, and the core's side, a definition for every machine, cannot go. |
fixed: e16b1f9 reverts b1cc85d, so the audit counts every equivalence as one again, with the limit 0; step 0 (29bfa81) moves sig and what it reaches into MojoProof/Sem/SigDef.lean below Spec.lean; step 1 (39bae9f) deletes Grid.Faults and sig_faults_iff (Grid.faults_iff), so the count is 4 (equivalences 4 against the limit 0: the gate's count step fails until they go); step 2 (37da428) deletes Grid.Done and sig_done_iff (Grid.done_iff, Grid.done_of_all, Grid.start_reach_size) and step 4 (a8817d2) deletes kept, kept_iff and kept_sig (kept_sig_iff at every launch), so the count is 3 at the merge (racy_sig, bad_embed, and sig_trace_agree, which a conjunction hid from the base's count: B1392); plan in docs/proofs/sig.md. Step 3 (c0826ca) deletes MojoProof's racy, racy_sig, sig_trace_agree and racy_iff_rev: every use reads the core's racy at sig (racy_iff, MojoProof/Sem/RaceSig.lean), under the premises hU (accesses by the launch's threads in their blocks), hs (Trace.Shaped) or Grid.Fits, which Grid.start_reach_fits gives at every grid reachable from the start; Grid.RaceEnabled takes the launch. The count is 1 (bad_embed, which holds at every grid now), and with the conjunct rule (B1392) 3 (Walk.toI and Walk.walkI, B1375). Lines naming racy (whole word, not GPUProof.racy): 166 in 18 library modules to 61 in 16 besides RaceSig.lean, and 125 in 23 test modules to 62 in 15, all of them docstrings. Step 5 (697af2a) deletes Grid.Bad, Grid.RaceEnabled and bad_embed: every use is at the core's Bad and RaceEnabled at sig, and Grid.raceEnabled_iff reads the core's RaceEnabled in the grid's terms (racy_barriers). The count is 2 on that branch and 0 at the merge with B1375 (c2f30be). Left: B1390 |
the audit's count; MojoProofTest/Pending.lean faults, MojoProofTest/Bad.lean fault_race |
| B1390 | GPUProof/Sound.lean; MojoProof/Sem/Trace.lean:434 Grid.sound_of_one_run, :488 Grid.sound_one (call at :549), :646 Grid.sound_returning (call at :720); MojoProof/Sem/Determinism.lean:115 Grid.start_sound (call at :123) |
low (gap) | Grid.sound_of_one_run and its three callers are still there, though Theorem 0 supersedes them. Grid.sound_one and Grid.sound_returning start at no Grid.start: moving them needs Sound.of_lift in GPUProof/Sound.lean (Theorem 0 through a surjection of runs, stated in docs/proofs/sig.md), sound_of_sig in the library, which holds at every grid and contexts since sig_trace_agree went (c0826ca), so it needs no start. Grid.start_sound also needs a module reorder, since Determinism.lean is below SigOneRun.lean. |
fixed in 0d49270: GPUProof.Clean.of_lift (GPUProof/Sound.lean:127) is the one-run argument once, for every machine and every observation of the states; Sound.of_lift (:168) is its case at an observation of the bytes, and Grid.sound_of_one_run (MojoProof/Sem/Trace.lean:433) its case at sig along x ↦ (π x, L, c) with the whole memory observed, carried back by sig_step_iff and Grid.Sound.of_clean (MojoProof/Sem/Spec.lean:321). Grid.sound_of_one_run stays as a 17-line corollary for its callers Grid.sound_returning and Grid.start_sound, their statements unchanged; Grid.sound_one is deleted (B1393) |
MojoProofTest/Close.lean sound_one_ret; MojoProofTest/Theorem0.lean (OneRun sig, sound_of_sig) |
| B1391 | GPUProof/Sig.lean:255 (field Closed's docstring); GPUProof/Run.lean:11; docs/proofs/core.md:95 (GoodStart) |
low (docs) | They said the caller's memory is "closed under the arguments". The field is any predicate of the memory and the arguments, and since 824a470 sig.Closed ignores the arguments (m.BytesIn m.Known). |
fixed (2196925): "what a good start assumes of the caller's memory and the arguments"; a memory that S.Closed accepts with the arguments |
none (documentation) |
| B1392 | scripts/Audit.lean:322 isEquiv, :310 sides; scripts/laws.tsv (the equivalences count) |
medium (audit) | The count does not see an equivalence or equation that is a conjunct. At ab56042, sig_trace_agree (MojoProof/Sym/SigOneRun.lean:637) stated GPUProof.racy sig (sig.trace (g, L, c)) = racy g.mem.trace ∧ GPUProof.kept sig (sig.trace (g, L, c)) = kept g.mem.trace, and the base's equivalences 4 did not list it; once a8817d2 dropped the kept conjunct, the audit listed it. A scratch audit that splits conjunctions under the binders (tmp/s45m/Audit3.lean, logs/s45m-aud3.log at ab56042: exit 0, 0:36, 6.5 GB) counts 16 at the base: the four, sig_trace_agree, and eleven conjuncts elsewhere: MojoProof.Sem.abForm_pack (deleted in 28a1850 with mmaPack), bflyDeliver_error, MojoProof.Sym.Walk.toI, Exit.of_target, Exit.of_targetWith, Walk.walkI, MojoProof.Layout.Lay.modes_size_call, xorBits_place, placement_call, Swizzle.twoLevel_parts, Swizzle.twoLevel_call. Each of the eleven is an equation between two library definitions inside a conjunction; whether it is a second definition of one concept or a computation lemma is not yet decided. |
fixed (7cd3668): isEquiv reads the equivalences and equations among the conclusion's conjuncts at any depth (sides), the probe's addZero_and must be counted, and scripts/laws.tsv lists the eight conjuncts that are laws between two concepts, each with its kind and reason (six law: Lay.modes_size_call, xorBits_place, placement_call, Swizzle.twoLevel_parts, Swizzle.twoLevel_call, bflyDeliver_error; two unfold: Exit.of_targetWith, Exit.of_target). The audit prints them as laws 8 and the rows that name no accepted theorem as laws_stale, both limited in scripts/counts.tsv (8 and 0), so a new law is a decision made in review. Of the other three, abForm_pack went with mmaPack (28a1850), sig_trace_agree with step 3 (c0826ca), and Walk.toI and Walk.walkI are counted: B1375; Exit.of_target went with B1375 (c2f30be) and its row with it, so the count and its limit are laws 7 |
MojoProofTest/AuditProbe.lean addZero_and; logs/s46m-audit.log (equivalences, laws 8, laws_stale 0); the merged tree's audit (laws 7); the gate's audit |
| B1393 | MojoProof/Sem/Trace.lean:488 Grid.sound_one |
low (gap) | Grid.sound_one has no caller, only scripts/targets.txt:41, as at the base. Its premise 1 ≤ volume L.grid * volume L.block, new in 37da428, has no instance, though it holds at Launch.one. |
fixed in 0d49270: Grid.sound_one is deleted; MojoProofTest.Close.sound_one_ret (MojoProofTest/Close.lean:87) is Grid.sound_returning at one thread on Launch.one, its premises by decide. Lost: one thread whose step changes the memory (B1404) |
MojoProofTest/Close.lean sound_one_ret |
| B1394 | MojoProofTest/Bad.lean fire_race_twin; MojoProof/Sem/Bad.lean Grid.Step.raceEnabled's hw |
low (test) | With the core's racy the old twin (Pending.launch 1, ctxOf) was false: the core takes a barrier's block of threads from the launch, so thread 1, outside the launch, is not ordered by barrier 0 and the race stays enabled. A twin that keeps Grid.Fits on both sides needs contexts that number a running grid thread as a thread of the waiting block. At reachable grids hw might follow from Grid.Fits and Grid.start_ctx, where Grid.start_reach_fired gives it now. |
fixed: the twin in c0826ca (on fires3 and ctx3, now at launch2 1 1 2 1, with Closed and both grids' Grid.Fits); the rest in 60dcb49 and df4a0bf: Grid.fired_run (MojoProof/Sem/Confluence.lean:1170) derives hw from contexts that put each running thread k in block k / volume L.block, Grid.start_reach_fired is its case at the start, and Grid.Step.raceEnabled_of_ctx (MojoProof/Sem/Bad.lean:492) takes that premise in place of hw; Grid.Step.raceEnabled keeps hw, which also holds when no call completes |
MojoProofTest/Bad.lean fire_race (of raceEnabled_of_ctx), fire_race_twin (with the conjunct that ctx3 puts thread 2 in another block of threads) |
| B1395 | MojoProofTest/Theorem0.lean sound_of_sig |
low (elaboration) | With the state left as _ (exact hS.raceFree _ (up hg)), unifying GPUProof.racy sig (sig.trace ?s) = false with the grid's trace unfolds GPUProof.racy and runs out of heartbeats at whnf. |
fixed (c0826ca): the state is named, (g, L, c) |
MojoProofTest/Theorem0.lean |
| B1396 | MojoProofTest/SymWait.lean (Seq.start_sound_bar's hk), Theorem0.lean applies_one and applies_six (hp), SymStart.lean sound2_seq (at 3fed8e1) |
low (frozen rule) | Besides the four from rfl, these tests evaluated the core's kept by rfl, against the rule that the core's racy and kept are reached through racy_iff, kept_iff and decide. No exhaustive search was made for rfl arguments of kept or racy type beyond the tests the build touched. |
fixed (c0826ca) for those named: decide +kernel |
MojoProofTest/SymWait.lean, Theorem0.lean, SymStart.lean |
| B1397 | MojoProofTest/Eval.lean:145 bufArg (at 1076ad4) |
low (tooling) | bufArg recursed through List.map, which Lean compiles as well-founded recursion, so the kernel could not evaluate a start that builds its arguments with it (decide stuck at Val.bounds argsV). |
fixed (b7d533c): structural recursion through bufArgs |
MojoProofTest/RacySigRun.lean trSig_run |
| B1398 | MojoProofTest/RacySigRun.lean | low (cost) | The module takes 91-92 s and peaks at 15.58 GB in lake build, 97% of the 16 GB a test job is allowed, and every lake build MojoProofTest builds it. |
open: kept in MojoProofTest, since the builds run under the 48 GB cap and lake test does not build it (3.3 GB). Fix: a smaller kernel term (the run by chunks) or a target of its own |
the build's peak RSS |
| B1399 | MojoProof/Sem/Trace.lean:488 Grid.sound_one, :646 Grid.sound_returning; Grid.Sound |
medium (design) | Grid.Sound observes the whole memory, and the core's Sound at sig observes the blocks. So the two theorems, which take every obs, are not corollaries of Sound.of_lift at sig unless they gain a premise that obs reads only the blocks, or Grid.Sound observes the blocks. This blocks the rest of B1390. |
fixed in 0d49270, without the rejected premise: the core theorem (Clean.of_lift) takes every observation of the states, so Grid.Sound keeps its whole-memory observation and the grid theorems gain no premise on obs; docs/proofs/sig.md and theorem0.md say so |
as B1390 |
| B1400 | MojoProofTest/Pending.lean:98, Embed.lean:38, Confluence.lean:325, Phased.lean:22, Transpose.lean:103, Kernel.lean:319, SymRun.lean:158, Spec.lean:142 | low (duplicate, tests) | B1376 is wider than its five copies: at least seven one-block launches in three forms, and about ten copies of launch2's x/y launch. |
fixed in fb82378 and 1a292d9: Confluence.twoBlocks, Index.L22 and L24, Kernel.L32, Shared.L28, Start.two2, SymRun.launch4, Theorem0.six, Transpose.L256 and L2k, and the trace_examples and GevmTrace copies are deleted. Kept: Kernel.L12 (= Confluence.two, for MojoProofTest/Tile.lean), Kernel.L23 (KernelCells, KernelContract, Tile), SymChain.L and SymColl.L (pins), Index.L2222 (29 uses) and the z launches Index.L112 and Kernel.lean:642-643. The recount grep went from 29 lines to 15 |
the touched tests' decide and #guard |
| B1401 | MojoProofTest/Gpu.lean:95, MojoProofTest/NaiveRun.lean:77 | low (duplication) | Both repeat the argument construction ((bs.zip tys).map … bufArg) that startF32 now holds once. |
fixed in 0b39c01: MojoProofTest.kernelArgs (MojoProofTest/Eval.lean:160) builds a launch's arguments once, for every function; startF32, Gpu.runCase (Gpu.lean:87) and NaiveRun.runNaive (NaiveRun.lean:62) use it. It is not startF32 itself, because runCase keeps word buffers with the output at any index and runNaive's kernel takes the output first |
MojoProofTest/Gpu.lean:245, NaiveRun.lean:124-126 and lake test's evaluator tests |
| B1402 | MojoProofTest/RacySig.lean vadd_sig_racy |
low (cost) | racy_by_chunks 57 took 396 s in the parallel build (283-304 s alone), over six minutes for one test module; this predates the range. |
fixed in 66c9670: vadd_sig_racy is one proof by decide +kernel (63.7 s of kernel time, 1:14 and 9.1 GB alone, s48b-vadd1-after), and RacySig.lean builds in 54 to 66 s in lake build, where it took 4:43 to 5:47 |
the build's per-module time (logs/s48b-place-full2.log, s48b-final.log, s48b-final2.log against s48b-chain-full2.log) |
| B1403 | scripts/Audit.lean (defKey, :144); MojoProofTest/Kernel.lean L12, Confluence.lean two, NaiveKernel.lean L12, Index.lean L22 |
low (tooling) | At fe40f5c, DUPDEF_tests did not pair Kernel.L12 with Confluence.two, though their bodies were the same literal (⟨fun _ => 1, fun \| .x => 2 \| _ => 1, 0, gridAcc⟩); once both became launch2 1 1 2 1, the lane's first audit run paired them. Cause: Lean shares a match with an earlier definition of the module that has the same patterns (Kernel.L12 used Kernel.L23.match_1, Kernel.lean:251), and a matcher's value calls a helper under its first owner (L23._sparseCasesOn_1). defKey's isAuxOf follows only constants under the definition's own name and matchers, so in L12's key the helper stays a named constant, while two, with its own two.match_1 and two._sparseCasesOn_1, has both as _aux.0 and _aux.1: the types and values are equal and the auxiliary lists differ (one entry against two). So two identical definitions with a match in one module are never paired (a probe of a and b, both ⟨fun _ => 1, fun \| .x => 2 \| _ => 1, 0, gridAcc⟩, gave lists of two and one); a copy in another module of a definition with its own matcher (Index.L112) gets its key, and DUPDEF and DUPDEF_tests may have missed other pairs. Also Index.L22 (a literal) and NaiveKernel.L12 (launch2 1 1 2 2) were one launch under two expressions, which no count catches. |
fixed (989e51a): defKey's isAuxOf also follows every generated definition (isGenerated, a .defnInfo) that the value or an auxiliary uses, whatever its owner, so a shared matcher's _sparseCasesOn helper is renamed in both keys. At 989e51a the fix reveals no pair: DUPDEF 0 and DUPDEF_tests 0 (the two pairs went in 1a292d9) |
the audit's duplicates probe: MojoProofTest/AuditProbe.lean plants pickA and pickB, one match that Lean shares, which the audit must pair (logs/s49m-audit1.log: ok, exit 0); the old isAuxOf with the new probe fails it (tmp/s49m/AuditMutAux.lean: duplicates probe: FAILED, exit 1) |
| B1404 | MojoProof/Sem/Trace.lean Grid.sound_returning (:552); the deleted Grid.sound_one |
low (scope) | With Grid.sound_one deleted (0d49270), no corollary covers a grid whose threads' steps write memory: sound_returning needs step (c n) (ts n) M = .ok (.done M). Such a grid is reached only through Grid.sound_of_one_run with the caller's own states. |
fixed in ac2ba84 for one-step threads: Grid.sound_commuting (MojoProof/Sem/Trace.lean) proves a grid sound when each thread returns in one step and the threads' changes of memory are maps that commute and keep the trace, for every program, launch and memory; Grid.sound_returning is its case with no change. Open: a thread that stores and then returns in more than one step |
MojoProofTest/Close.lean sound_dead (2 and 3 threads that end their allocas) |
| B1405 | MojoProof/Sem/Spec.lean Launch.one (:131), Launch.valid_one (:539) |
low (duplicate) | Launch.one and valid_one restate launch2 1 1 1 1 and launch2_valid at one thread. They are equal by funext and cases, not by rfl, so the audit does not pair them; 90 Lean lines use Launch.one. |
fixed in e33706b: Launch.one is launch2 1 1 1 1 and Launch.valid_one is launch2_valid at it |
none |
| B1410 | the design's Use (laminar plan); GPUProof/Uses.lean:27, :82 |
medium (design gap) | The design's Use names no proxy, so two accesses through different proxies to one byte, in one use, would count as separated with no fence. |
fixed (f40745b): each Use case has a proxy, and Use.Separated requires x.proxy = y.proxy |
MojoProofTest/GPUProof/Uses.lean crossProxy_not_admitted, proxySwap_not_separated |
| B1411 | MojoProofTest/GPUProof/Toy.lean at bdf7138, toy.members |
low (test machine) | members n (true, k) was the whole launch for every k while group gave (true, 0), so Levels.mem_members failed at (true, 1): the toy could have no Levels instance. |
fixed (6b15324): levels WithTop ℕ, groupOf, membersOf |
Toy.lean instance : Levels toy, reach_laminar |
| B1412 | the design's "told apart" (laminar plan); Uses.lean:60 isSyncOf, :82 |
medium (design gap) | Phases told apart by any instance's counter are not ordered: the instance must contain both agents, and a phase must count only rendezvous of exactly its members (a masked barrier is not one). | fixed (f40745b) | Uses.lean outside_not_separated |
| B1413 | docs/proofs/laminar.md (corollaries) | low (plan) | The MojoProof corollaries (racy_eq_false_of_writers and the like) are not one-line. They need a writersUse built from the trace, racy through sig, and the phase correspondence. racy_eq_false_of_uses needs no Levels or Laminar. |
open (planned in laminar.md; sig and bad_embed are now in the tree) |
none |
| B1414 | GPUProof/Race.lean:634 racy, :233 scan, :205 Scan.step, :193 Scan.races; GPUProof/Chunks.lean racy_by_chunks; docs/proofs/core.md "racy in the kernel", "Fewer pairs" (:570 racy, :214 scan at ab56042) |
medium (cost) | decide +kernel on racy costs about the square of the events: 170 s and 16 GB at 192 events, out of memory at 24 GB at vector_addition's 684. The cost is the pair loop (tr[i]? and Access.conflict per pair), not happens-before. The clock pass (5bebfc7) is the body of racy, hb and ordered, with racy_iff, hb_iff and ordered_iff unchanged: 1.4 to 6 times less kernel time and up to 3 times less memory on every trace but the largest hand-over (6.7 s at 96 events, 27 s and 5.0 GB at 192, 116 s and 16 GB at 384), and still out of memory at 24 GB at the 684-event launch (exit 143; the journal records the scope's oom-kill). The pass over fewer pairs (09902c6) is the body of racy, with racy_iff unchanged. Each access is checked against the earlier writes and, when it writes, the earlier others, with its bytes built once: of the launch's 233,586 pairs, 63,350 are visited. On the traces over 4 s that is 7 to 28% less kernel time than the clock pass: 4.9 s at 96 events, 24 s and 4.3 GB at 192, 90 s and 13 GB at 384. The toy launch at 684 events is still out of memory at 24 GB (exit 143; oom-kill in the journal after 3 min 28 s). Through sig the launch is kernel-checked in twelve chained proofs (270 s of kernel time, 9.3 GB, axioms propext, Classical.choice and Quot.sound) and is out of memory in one proof (2 min 21 s). The cost left is the byte comparisons, 1.6 million at the launch. |
fixed in part (09902c6; 2a531bd): the reduction in candidate pairs is proved (racy's body, racy_iff unchanged). The chunked certificate is maintained automation: racy_by_chunks m (GPUProof/Chunks.lean) proves racy S tr = false for every machine with ToExpr instances, the evaluator proposing the state after every m positions and the kernel checking each chunk in a lemma of its own (scan_add, scan_chunk); trace_literal% writes the evaluator's trace out as a literal. Tested on the toy ring at 11 and 37 threads with two #guard_msgs failures, and on vector_addition's launch through sig (MojoProofTest/RacySig.lean, 12 chunks, 283 s of kernel time, 4:43-5:47 in lake build, 8.5 GB). The finding-3 part is fixed (b7d533c): MojoProofTest.RacySig.trSig_run (MojoProofTest/RacySigRun.lean) proves by decide +kernel that the literal trace trSig is the run's trace through sig, and vadd_run_racy that the run succeeds and its trace through sig is race free, at one program (vector_addition) at one launch (91-92 s and 15.58 GB in lake build, B1398); vaddTrace is the run of gridF32 from startF32 (B1430). The finding-5 part is fixed (73ab66f): the chunk helpers' docstrings are exact (B1378). The interval part is fixed (66c9670): on a machine that proves its placement injective (Sig.placeInj, which gives the law Place), the pass decides whether two accesses share a byte by their buffers and intervals of offsets (Sig.share, Sig.share_iff, Access.meets_iff), with racy_iff unchanged for every machine; a machine without it compares bytes. vadd_sig_racy is one proof by decide +kernel (63.7 s of kernel time, 9.1 GB, where it ran out of memory at 24 GB); by chunks it takes 77 s, where it took 266 s. open: the pair count still grows with the square of the accesses (one block of tiled_matmul has 37,888), and a machine without placeInj still compares bytes. The clock pass in 5bebfc7; measured again (f03e97d, core.md "Checking the bytes first, measured and not taken"): bytes first cuts vadd_sig_racy from 45.3 s to 25.1 s but makes the small tests 1.13 to 1.68 times slower, and a buffer precheck gives 37.6 s at 1.2 to 1.22 times slower; neither is taken. The visit of the pairs sorted by Sig.key was measured and not taken (e01d737, core.md): 1.7 times faster at the 684-event launch, 1.19 to 13.2 times slower on the small tests; the kernel's sort alone exceeds the rule on twoBufs 7 |
Toy.lean ring_racy_kernel (small size); MojoProofTest/GPUProof/Chunks.lean (ring11_racy_chunks, ring37_racy_chunks, two #guard_msgs); MojoProofTest/RacySig.lean (vadd_sig_racy); MojoProofTest/RacySigRun.lean (trSig_run, vadd_run_racy); the toy tests of racy, hb, ordered (MojoProofTest/GPUProof/Toy, Race, Clean, Laminar, Uses) unchanged; logs/s46b-prof-racysig.log; MojoProofTest/GPUProof/Race.lean aliased_Racy; logs/s48b-vadd-before.log, s48b-vadd-after.log, s48b-vadd1-after.log; scratch tmp/s50b/RK.lean, RP.lean, logs/s50b-rk1.log, s50b-rk2.log, s50b-rp1.log |
| B1415 | the design's safeMax; GPUProof/Spec/Basic.lean:71 |
low (design text) | "The largest magnitude whose rounding is finite" does not exist under nearest-even rounding (the threshold rounds to infinity, everything below it is finite). | fixed (0b88c7a): safeMax := (posMaxFinite fmt).toReal (docs/proofs/spec.md departure 1) |
MojoProofTest/GPUProof/Spec.lean nan_approx, overflow_edge (a product between posMax and the threshold rounds to posMax; fma with a small addend overflows where mul-then-add does not), copy_meets_bfloat16 (bfloat16's safeMax is 255 · 2^120) |
| B1416 | the design's TorchLean.matVec_eq |
low (design text) | TorchLean v1.5 has no Tensor.toMatrix and no Tensor.toFun. The statement uses Matrix.of over Tensor.get2 and Tensor.getScalar. |
open (spec.md step 12, departure 10) | none |
| B1417 | lakefile.lean; MojoProofTest/GPUProof/Imports.lean | low (build) | The TorchLean importer cannot be a module of lean_lib GPUProof, because the imports test refuses TorchLean in the core's closure. It needs lean_lib GPUProofImport, with an imports test that allows only GPUProof.*, Mathlib.*, FloatLib.* and TorchLean.*. |
open (with the importer's commit) | none |
| B1418 | the design's exact rule; GPUProof/Spec/Basic.lean:209 FloatRule.Holds |
medium (design: rule false) | The design's exact is false on all of Dom for a 32-bit integer sum, since the words wrap. The rule needs the premise that some output word decodes to f σ A. |
fixed (0b88c7a) | MojoProofTest/GPUProof/Spec.lean sumInt_wraps |
| B1419 | GPUProof/NaN.lean:18; GPUProof/Spec/Basic.lean:139; MojoProof/Sem/FloatRel.lean:104 | low (duplication risk) | The core's NaN equivalence has MojoProof.Sem.NaNEq's body. The core cannot import MojoProof, so MojoProof's must become an abbreviation of the core's; FloatLib is the later home. |
fixed (c193430): GPUProof.UpToNaN (GPUProof/NaN.lean, importing nothing) is defined once with UpToNaN.equivalence; ScalarEnc.nanEq and MojoProof.Sem.NaNEq are its cases by definition; FloatLib v4.1.0 has no such relation |
MojoProofTest/GPUProof/Imports.lean (GPUProof.NaN pinned); MojoProofTest/GPUProof/Spec.lean neg_holds; MojoProofTest/FloatRel.lean, MojoProof/Sem/Dot.lean and WarpDot.lean build unchanged |
| B1420 | GPUProof/Spec/Basic.lean:47 NumFormat |
low (gap) | FloatLib's format sum is unreleased. NumFormat has a phase-0 form (ieee, int, bool), to be replaced in one change. |
open | none |
| B1421 | the design's Spec.matVec; GPUProof/Spec/Linear.lean:43 |
low (design) | One fixed grade either refuses gemv (warpBound) or is weaker than its proof. Spec.matVec g mono takes the grade and shares Dom and f. |
fixed (0b88c7a, spec.md departure 5) | MojoProofTest/GPUProof/Spec.lean matVec_f |
| B1422 | the design's FloatRule, Meets, Meets.comp |
medium for Meets.comp (design: rule false), low otherwise |
FloatRule must take Dom and f (its hw reads them). Meets takes the spec first, since k's type reads Sp's encodings. Meets.comp as designed is false without input magnitude at most output magnitude for each input an output reads. |
Dom, f and the order fixed in 0b88c7a; Meets.comp open (spec.md "Not in this layer") |
copy_meets |
| B1423 | MojoProofTest/GPUProof/Uses.lean:35 toyLaunch |
low (tooling) | Instance search does not unfold machine fields: Decidable (Use.Admits toy (n, ws) …) is not found at a launch written as a pair. Workaround: toyLaunch names the launch. |
worked around (f40745b) | handover_race_free |
| B1424 | GPUProof/Spec/Basic.lean:180 DecodesAs, :194 FloatRule.bitwise (:192 before the fix) |
medium (definition uninhabitable) | bitwise needed w : ∀ σ (E : Encodings …), E.inp.Words → E.out.Words at every encoding. At an encoding whose input words are Unit and output words Empty, no such w exists, so FloatRule.bitwise had no value at any spec with a nonempty size type. DecodesAs also failed at an encoding whose output decoder is always none. No spec used bitwise, so no theorem was wrong. |
fixed (0d5aa8d): bitwise E₀ w hw names its encodings, w and DecodesAs are stated at E₀ alone, and Holds at E is ∀ h : E = E₀ σ, (E₀ σ).out.nanEq (h ▸ W') (w σ (h ▸ W)); spec.md departure 13 |
MojoProofTest/GPUProof/Spec.lean neg_meets (FloatLib's Model.neg meets bitwise at binary32 at every input, NaNs included), neg_nan_finite (a finite output at a NaN input breaks it) |
| B1425 | GPUProof/Spec/Basic.lean at 09c268b: :109 ScalarEnc.nanEq, :153 Encoding.nanEq, :213 FloatRule.Holds at bitwise; at ab56042: :186 Encoding (:194 nanEq), :259 FloatRule.Holds |
medium (definition: a rule accepts wrong outputs) | nanEq was a free relation and bitwise accepts every output word that it relates to the word function's: the Boolean encoding with nanEq := fun _ _ => True lets every output meet the identity spec. Laws on a free relation are not enough either (a review's finding): binary32 at one entry with nanEq x y := x.toReal? = y.toReal? satisfies decode_eq and nanEq_equiv, and the bitwise identity then accepts -0 (0x80000000) for +0. |
fixed (c193430, c6bb0cd): a scalar encoding names its NaN words (isNaN, law decode_isNaN) and ScalarEnc.nanEq := UpToNaN e.isNaN; an Encoding names its word positions and the NaN words at each, Encoding.nanEq is UpToNaN at every position by definition and nanEq_equiv a theorem, with the laws decode_eq and decode_isNaN (a NaN leaves some entry with no value), proved for every supplied encoding; FloatRule.Holds.bitwise and FloatRule.Holds.bitwise_eq (spec.md departure 14) |
MojoProofTest/GPUProof/Spec.lean bool_total_refused, boolId_refuses, neg_words, neg_decode, zero_sign (:257) |
| B1426 | docs/proofs/core.md "The second measurement", step 2; MojoProof/Sym/Checker.lean:532 covers; MojoProof/Sym/Term.lean:620 Cond |
low (plan) | The plan's "state k21's obligations through sig's operations instead of MojoProof's" is not a measurement. covers checks MojoProof's symbolic terms structurally, and its obligations (Cond: ok, bool, mem) meet MojoProof's operations only when evaluated (Cond.Holds, through SNode.eval and SEff.run). sig's operations are on bytes, metadata, combination, placement and exemption, not on terms, so only a mem obligation has a counterpart (through sig.byteAt and metaAt). Stating k21 through sig needs an obligation type over sig's fields and a checker proved sound against SEff.run: a design step first. |
step 1 done (f03e97d, 4d217dc, 9f722d4, 3e8d370): SEff.runMeta (MojoProof/Sym/MetaRun.lean) runs a block's mem effects on sig.metaAt metadata only, and SEff.holds_iff_runMeta gives Cond.Holds V vs (.mem es) ↔ ∃ M, SEff.runMeta V vs es = .ok M for every valuation, node values and effects. Step 2 done for closed obligations (526ccfc): obl's mem case decides a closed obligation by the kernel on SEff.runMeta (SEff.holds_of_runMeta_toBool) before falling back to runEx. Step 3 done (9c17fb6, docs/proofs/core.md "Step 3, the measurement"): at k21 the mem obligation costs less than the valuation's spread through runMeta, SEff.run or Cond.Holds (5.5-5.9 s, 5.2-6.3 s and 5.6 s at MetaRun's launch, beside 4.8-5.0 s for the valuation alone); scaled to 600 effects runMeta costs about 0.15 s above the valuation and SEff.run about 0.55 s. Done: runMeta gains nothing measurable at k21, only with many stores |
MojoProofTest/MetaRun.lean: thread 5 of vector_addition at launch2 4 1 32 1, its first store block passes; a read-only mutant is refused by runMeta and run; scratch measurements tmp/s50b/K21*.lean, logs/s50b-k21a.log to s50b-k21d.log |
| B1427 | MojoProof/Sem/Dot.lean:82 NaNEq.symm, :86 NaNEq.trans; MojoProof/Sem/FloatRel.lean:104 FinEq |
low (duplication risk) | NaNEq.symm and NaNEq.trans re-proved, by cases, two laws of GPUProof.UpToNaN.equivalence, once NaNEq is UpToNaN Model.isNaN; FinEq (x = y ∨ (x.isFinite = false ∧ y.isFinite = false)) has UpToNaN's shape at the non-finite words, written apart. Not counted by the audit (no DUPTHM: different statements). |
fixed (2196925 NaNEq.symm and NaNEq.trans, one-line corollaries of UpToNaN.equivalence; 11eacf6 FinEq as GPUProof.UpToNaN at the words that are not finite, by definition, with UpToNaN.eq, mono and map₂; every statement unchanged) |
MojoProof/Sem/Dot.lean and its users build; MojoProofTest/FloatRel.lean finEq_inst, row1_inst; Kernel.lean and every other user of FinEq build unchanged |
| B1428 | docs/proofs/spec.md, the dotGrade plan (step 9) |
low (plan) | The plan's grade γₙ Σₖ \|aᵢₖ xₖ\| plus the inputs' propagated error has no allowance for results below the normal range, so no kernel that rounds meets it: at n = 1, a product below the normal range is rounded with an absolute error of up to half the subnormal spacing, which γ₁ \|a x\| does not bound when \|a x\| is small. |
fixed (plan only, 36e1613): the plan adds the allowance in FloatLib's Model.underflowErrorAt fmt (StandardModel.lean:65) and names MojoProof.Sem.dotBound (Dot.lean:76) and its allowance |
none (plan) |
| B1429 | scripts/Audit.lean:93 auxPart, :112 isGenerated, :124 isAux; tmp/s29/DumpTypes.lean, tmp/s29/DocCount.lean (deleted) |
low (tooling) | The filters treat a user declaration as generated when any name component after the first is a word on their list ("eq", "below", "inj", "ext", "ofNat", …) or starts with "eq_", "match_", "proof_" or "_". So DUPDEF/DUPTHM, unused, equivalences and the instance checks skipped 14 user declarations at the merge: GPUProof.UpToNaN.eq, MojoProof.Sem.eq_retGrid, Grid.Same.eq_retrace, Mem.Known.below, FinEq.eq_of_isFinite, MojoProof.Sym.ICmp.eq_ofNat_mod, ICmp.eq_ofNat, List.eq_of_rel, MojoProof.Sem.Labels.Rel.eq, Except.Rel.eq, Grid.Lockstep.eq, NaNEq.eq_isNaN, MojoProofTest.GPUProof.Clean.eq_of_mul_add, MojoProofTest.Lockstep.eq_run. The axiom check covers every declaration. With the narrower filter no count changes (scratch audits at the fix's branch and at ab56042), so nothing was hidden. |
fixed (a11a627, 7cd3668): a component that auxPart accepts marks a declaration as generated only when it has no source range; the statement dump and the docstring count are the audit's --types and --docs, which list every declaration that is neither private nor generated by the counts' classifier (isGenerated; constructors and projections are listed), and the scratch DumpTypes and DocCount are deleted. At the merged tree the two agree on the 7,742 names both list, kind and statement; the audit leaves out 248 definitions of derived instances (repr, default, toExpr, decEq, hash, beq and numbered ones), which were the scratch count's 246 undocumented library definitions and 2 test ones, and lists 9 declarations the scratch hid: the theorems UpToNaN.eq, Grid.Lockstep.eq, Labels.Rel.eq, Except.Rel.eq, Codec.inj, Mem.Known.below and Mem.Keeps.below, the constructor ICmp.eq and the field Tiling.ext |
logs/s45b-aud2.log, logs/s45m-aud3.log; the gate's audit; logs/s46m-types.tsv and logs/s46m-doc.tsv against the scratch tools' logs/s46m-old-types.tsv and s46m-old-doc.tsv at the same tree |
| B1430 | MojoProofTest/RacySig.lean vaddTrace; MojoProofTest/Eval.lean:184 runF32 |
low (duplication) | vaddTrace repeats the start that runF32 makes for vector_addition's launch (the inputs' allocation, the output block, the arguments, Grid.start and Grid.run), because runF32 returns the output values and not the run's trace. A change to runF32's start would not reach the trace that vadd_sig_racy is about; the #guards compare trSig with vaddTrace, not with runF32's run. |
fixed (b7d533c): startF32 (the start) and gridF32 (the run) in MojoProofTest/Eval.lean write the start once, and runF32 and RacySig.vaddTrace use them; the evaluator tests are unchanged (their #guards and #guard_msgs) |
MojoProofTest/RacySig.lean (#guards); lake test |
| B1431 | MojoProof/Sem/SigDef.lean:523 (sig's key); docs/proofs/core.md:104-106 |
low (gap) | sig's key gives different bytes different numbers (Nat.pair is a bijection and the offset's zigzag is injective), and core.md says so, but no theorem states it. kept_sig_iff does not need it; only kept's cost does (the 2:43 test step and core.md's comparison counts assume it). |
fixed (f09d059): MojoProof.Sem.sig_key_inj : sig.key l = sig.key l' → l = l' for every two bytes, from Nat.pair_eq_pair and the cases of the offset; an audit target, cited by core.md and sig.md |
the audit (unused 0, the target line); logs/s47m-audit.log |
| B1432 | docs/proofs/README.md:135-139, :534-542, :578; docs/proved.md:36-40, :147; docs/proofs/sig.md:18 and its field table; docs/DEPENDENCIES.md and docs/deps/ | low (docs) | After f639835 and 66c9670 the shared documents name deleted declarations (Runs.of_chain, Runs.of_chains, Chain, Chain.reach, Chain.of_rounds, Chain.of_iter, Chain.with_iff), still say the launch is checked by chunks, count 83 fields of Sig where there are 84, and have no placeInj row. |
fixed in 688c29a (the texts for docs/proofs/README.md, docs/proved.md and docs/proofs/sig.md) and a78f1ac (docs/DEPENDENCIES.md and docs/deps/ regenerated) | git grep for the deleted names outside docs/BUGS.md; scripts/deps.py --check |
| B1433 | GPUProof/Sig.lean:338 Place.mk |
low (docs) | 66c9670 and 8dbc9c7 add the class GPUProof.Place with an undocumented constructor (Place.mk); the docstring count of the lane's second audit run found it (logs/s48b-doc.tsv; 0 at the base). |
fixed in d2660ae: "Builds Place S from its two fields, for every machine." |
undoc.py on Sig.lean (0); the gate's audit |
| B1440 | scripts/Audit.lean:634 isDef (now isHead, :638), the equivalences rule |
medium (audit) | The rule counted an equivalence or equation only when both sides were headed by definitions (.defnInfo), so an iff between two inductive predicates of one concept was not counted: MojoProof.Sym.Chain.with_iff (Chain F Ls V l ds S E ↔ ChainWith false F Ls V l ds S E, MojoProof/Sym/Loop.lean:597) stood beside equivalences 0 at fe40f5c. |
fixed (3b8f3e1): isHead accepts the library's definitions and inductive types; the probe module plants two inductive predicates of the even numbers (EvenA, EvenB) and evenA_iff, which the audit must count. At 3b8f3e1 the count is equivalences 1, Chain.with_iff only, so the gate's count step fails until it goes (B1441) |
the audit's equivalences probe (logs/s48m-probe-audit.log: ok, equivalences 1, every other count unchanged); the old rule with the new probe fails it (tmp/s48m/AuditMut.lean, logs/s48m-probe-mut.log: equivalences probe: FAILED, exit 1) |
| B1441 | MojoProof/Sym/Loop.lean:535 Chain, :574 ChainWith, :597 Chain.with_iff |
medium (duplicate) | Chain (constructors last and loop over Edge, Valuation.round and Back) is an inductive written again as ChainWith contract (over EdgeWith, roundWith and BackWith); Chain.with_iff, proved by two inductions, says Chain is ChainWith false, and its seven uses (Loop.lean, Sym/Kernel.lean) convert between the two. The audit did not count it (B1440). |
fixed in f639835: the inductive Chain and Chain.with_iff are deleted, every use is ChainWith false, RetLs is RetLsWith false by definition, and the false copies (Chain.reach, Chain.of_iter, Chain.of_rounds, Runs.of_chain, Runs.of_chains, Back) are deleted; their facts are stated once at ChainWith contract |
the audit's equivalences (1 at 3b8f3e1, 0 at f639835: logs/s48b-auditind1.log, s48b-final.log) |
| B1442 | docs/proofs/core.md:271-273 | low (docs) | After the trSig_run row was added to the timing table, "The last row is MojoProofTest/RacySig.lean" names the wrong module: the last row is MojoProofTest/RacySigRun.lean's (trSig_run, 91 to 92 s, 15.6 GB), the one before it RacySig.lean's (vadd_sig_racy, about five minutes). |
fixed in 8aa6324 (rows moved again in 66c9670): each row of core.md's chunk table names its module; the trSig_run row is MojoProofTest/RacySigRun.lean's |
read against the table; scripts/cited.py 0 missing |
| B1434 | MojoProof/Sym/MetaRun.lean SEff.holds_of_runMeta |
low (gap) | The metadata check was proved sound only (runMeta succeeds → Cond.Holds), so a refusal said nothing about run. |
fixed in 9f722d4 and 3e8d370: SEff.holds_iff_runMeta, both directions, no premise |
MojoProofTest/MetaRun.lean |
| B1435 | GPUProof/Spec/Linear.lean dotGrade, matVecGrade, vecMatGrade; MojoProof Sem.dotBound |
low (gap) | dotGrade (4fcb905) states the dot product's grade with the underflow allowance, but no kernel theorem is proved against it, and MojoProof.Sem.dotBound is not tied to it; the grade's magnitude bound (the sum plus the error) is the lane's choice, which spec.md does not fix. |
fixed in part (199898e, b6a8e32): the loop's bound from +0 has (1+u)^n - 1 on the sum (MojoProof.Sem.dotLoopBound, dotLoop_error_zero), which is dotGrade's error (dotGrade_ieee), and dotLoop's word is GPUProof.Approx at GPUProof.dotGrade (dotLoop_approx, MojoProof/Sem/Dot.lean:1080 at a1a2af5) for every binary interchange format, flag, oracle sequence, length and input grade. Then 3c93aa4: MojoProof.Tile.Meets (MojoProof/Tile/Dot.lean:215) has the graded clause (GPUProof.Approx at GPUProof.dotGrade) for every kernel of mojo_kernel's mat clause, through meets_dotLoop, dot_meets and mat_refines; 6f77a31: rowLoops_meetsAt, meets_holds and mat_holds (MojoProof/Tile/MatVec.lean:110, :135, :155), the mat clause's kernels with one column against Spec.matVec matVecGrade; cbeb86a and 7f4178b: gemv's word (groupDot k) meets Spec.matVec (laneVecGrade (2 ^ k) k ⌈n / 2 ^ k⌉)'s rule (groupDot_holds, :257). The grade's magnitude is laneGrade's (GPUProof/Spec/Linear.lean:124, dotGrade and matVecGrade its cases), fixed in spec.md and its docstring (B1498). Open: gemv's Kernel.Sound against Spec.matVec at laneVecGrade |
dotGrade_one_zero (length 1, zero entries: the error is the allowance and positive); MojoProofTest/DotGrade.lean loop_exact, one_pair; MojoProofTest/DotGrade.lean grade_one, grade_two (every format), approx_one, approx_two (binary32, one input each) and the mutant mutant_one (one ulp tighter is not Approx); MojoProofTest/TileGrade.lean grade_3x4, grade_5x7, tile_mutant; MojoProofTest/TileMatVec.lean holds_3x4, holds_5x7, rowLoops_mutant; MojoProofTest/TileLanes.lean group_4x10, depth_mutant; MojoProofTest/TileNaive.lean naive_holds (the naive kernel at its corpus launch) |
| B1457 | scripts/Audit.lean isHead and inProbe (:638, :653 at 620f144) |
medium (audit) | The equivalences probe repeated the production rule's head test instead of calling it: isHead and inProbe each wrote env.find? c matches some (.defnInfo _) \| some (.inductInfo _). A change of the production test alone (dropping .inductInfo) left evenA_iff's probe passing, and with Chain.with_iff gone the count stayed 0, so the probe did not test the rule it guards; the mutant of 3b8f3e1 changed both copies. |
fixed (989e51a): one function headKind (scripts/Audit.lean) gives the head test, and both isHead and inProbe call it |
logs/s49m-audit1.log: the audit's equivalences probe ok, exit 0; the mutant of headKind alone without .inductInfo (tmp/s49m/AuditMutHead.lean) gives equivalences probe: FAILED, exit 1 |
| B1458 | MojoProof/Sym/Segment.lean:866 summarizePieces, :899 Piece.Through, :948 Piece.through (at 6516f34) |
medium (coverage) | The segment checker's alloca flag stops at the last marker: the [] case of summarizePieces calls summarize, which is summarizeAt false, so with the flag on a block of alloca; ret, or one with an alloca after its last barrier or lifetime marker, is still refused. The specification has the same gap: Piece.Through's terminal case is Ends, which keeps the incoming frame's alloca blocks, and Piece.through proves it through the flag-off checker. |
fixed in e031631: summarizePieces' tail after the last marker is summarizeAt alloca (MojoProof/Sym/Segment.lean:878), Piece.Through's terminal case is EndsAt false with the tail's alloca blocks in front of the frame's (:904), and Piece.through (:954) holds for every flag, its flag-off statement a case. gemv's %6 gets no further by it: its allocas come before its markers |
MojoProofTest/SymSegAlloca.lean alloca_ret (an alloca and no marker), alloca_after_marker, alloca_tail_mutant, each accepted with the flag and refused without it |
| B1459 | MojoProofTest/SymAlloca.lean:247 pathK, :288 path_ret, :306 path_runs (at 6516f34) |
medium (test) | The only fixture of a path through blocks with alloca is not a valid LLVM function: pathK gives id 1 to both the first alloca's result and the second block's label, which the importer refuses (MojoProof.LLVM.Module.twice, Parser.lean:668: one numbering for parameters, labels and results, as in the LangRef's "Identifiers"). And path_ret assumes WalkWith and path_runs assumes RetWith, so no concrete context, memory and address choice is shown to satisfy the path theorems' premises. |
fixed in 49093e5: pathK has the parser's ids and is checked against the parse of its LLVM text pathText; the theorems' premises are proved at one launch of one thread |
MojoProofTest/SymAlloca.lean pathText with its two #guards (the parse, Module.twice = none, and the text with an id defined twice refused), path_covers, path_mutant, path_walk, path_retWith, path_dead (both alloca blocks dead after the ret), path_steps (the interpreter's steps reach the same end) and the mutant path_used; one function at one context, thread and memory |
| B1460 | MojoProof/Sym/Path.lean:398 coversPathWith, :654 coversPathAt, :475 Block.sound_pathWith_ptrs, :679 Block.sound_pathAt_ptrs (at 6516f34) |
medium (duplicate) | coversPathAt alloca is a second recursive implementation of coversPathWith (the same recursion over coversAt alloca in place of coversWith, which is coversAt false), and Block.sound_pathAt_ptrs repeats the path induction of Block.sound_pathWith_ptrs; the edge, phi and pointer reasoning is kept in two places. The audit's counts do not see a specialization written as its own recursion. |
fixed in 7f3bc73, b6c6478, dab23a9: one recursion and one induction per pair. coversPathWith is coversPathAt false (MojoProof/Sym/Path.lean:410), Block.sound_pathWith_ptrs (:572) a corollary of Block.sound_pathAt_ptrs (:494) by Valuation.allocsWith_nil (:550); the loop checkers' With forms are the flag-off cases of coversChainAt (Loop.lean:539), LoopSeg.coversRoundAt and coversChainsAt, Runs.of_chainsWith a corollary of Runs.of_chainsAt (:842), Block.sound_with the flag-off case of Block.sound_withAt, Block.sound_retWith takes the flag; Block.sound_withC, summarizeWith_factors and coversWith_eq are deleted |
the audit's DUPTHM 0 and near_dups 0 clusters; decide +kernel through the new definition in MojoProofTest/SymGemvTail.lean tail_covers and MojoProofTest/SymAlloca.lean path_covers |
| B1461 | MojoProof/Sym/Checker.lean:519 summarizeAt docstring (at 6516f34) |
low (docs) | The docstring says that after an alloca the checker refuses icmp, getelementptr and ptrtoint; since the after-alloca nodes (SNode.gepAfter, gepNAfter, icmpAfter, castAfter) these are evaluated against the effects before them. |
fixed in 7f3bc73: the docstring (MojoProof/Sym/Checker.lean:515-525) lists the after-alloca nodes and the forms they take, and what is still refused |
docs (no test) |
| B1463 | MojoProof/Sym/Checker.lean:167 and MojoProofTest/SymCastOk.lean:10 (castOk_iff), MojoProofTest/SymLane.lean:8 (exec_laneid), MojoProof/Sym/Vals.lean:8 and docs/tactics.md:367 (Ret), docs/proofs/README.md entry 12 (Block.sound_retWith, Block.sound_back) (at 2540f53) |
low (docs) | These placed the names in MojoProof/Sym/Block.lean; castOk_iff and exec_laneid are in MojoProof/Sym/Exec.lean, and Ret, Block.sound_retWith and Block.sound_back in MojoProof/Sym/Path.lean. cited.py checks names, not files; stale at the base too |
fixed in 18196a4 and the shift's docs commit (README entry 12) | docs (no test) |
| B1464 | MojoProof/Sym/Segment.lean:904 Piece.Through |
medium (coverage) | The segments' run ends at the block's end (EndsAt) and gives no frame or valuation at an inner statement, so a path theorem from a statement after a block's last marker (gemv_kernel's %6 at statement 41, MojoProofTest/SymGemvTail.lean tail_runs) cannot be joined to the segments before it |
fixed in 538c80d: Piece.ThroughTo (MojoProof/Sym/Segment.lean:907) hands the frame after the last marker to a continuation, with Piece.Through (:952) its instance at the block's end; Piece.throughTo (:991) is the one induction and Piece.through (:1042) its corollary; RunsVia.of_fires (MojoProof/Sym/OblSeg.lean:273) with Piece.fires (:247) for the collectives, for every program |
MojoProofTest/SymGemvTail.lean gemv_runs (:215; gemv_kernel's %6 from statement 0 to ret on the %43 branch, one context, frame, memory and deliveries) and gemv_runs_mutant (:233) |
| B1465 | MojoProof/Sym/Loop.lean:472 LoopSeg, :621 RetLsWith, :842 Runs.of_chainsAt |
medium (coverage) | gemv_kernel's loop at %54: the chain checker accepts a round through either arm of %60 and a chain of two loops at one header, the order gemv's rounds take; it refuses the loop with its path out, because %78 calls five shfl.sync.bflys, collectives the block checker does not summarize; and a chain's last path out must end at ret (RetLsWith), so no chain run reaches %78's segments. Arm orders that switch more often than a fixed chain lists are not covered (gemv's switches once) |
fixed in part in 1778ef9: a chain whose last path out stops after its last edge takes the thread to the frame it enters (ChainWith.enter, MojoProof/Sym/Loop.lean:786; BackWith.enter, :388), and a continuation joins it (RunsVia.of_chain, MojoProof/Sym/OblSeg.lean:332), for every program; %78 runs by its five collective segments (bfly_covers, bfly_at); gemv_kernel runs from statement 0 through %44, the loop with no round and %78 to ret (gemv_loop_runs, one context, frame, memory and deliveries). Open: rounds K > 0 (B1490), the deliveries (B1489), arm orders that switch more often than a fixed chain lists |
MojoProofTest/SymGemvTail.lean loop_rounds, loop_refused, loop_arms, bfly_runs (:398), gemv_loop_runs (:410), bfly_mutant (:429) |
| B1466 | scripts/cited.py, the open scope (at 2540f53) |
low (tooling) | Only the first line of an open command was read, so names opened on a continuation line were not citation scopes and a docstring citing a name from them was reported missing (run_ok in MojoProofTest/SymLoopAlloca.lean) |
fixed in a9302b7: a top-level open continues on its indented lines |
a scratch copy of the loop-alloca branch's tree with run_ok cited bare: missing before, found after; 0 missing on main |
| B1473 | MojoProof/Sem/Index.lean:73 BitVec.toInt_ofNat_of_lt, outS_of_lt, intCast_sext_ofNat, intBin_add_ofNat, :254 coord_onto (its bound) |
low (duplicate property) | Index.lean proved GPUProof.WordFit's property in pieces at 2 k < 2 ^ w, and coord_onto's bound is MixedRadix.lt_prod at three digits; the core cannot import Index.lean |
fixed in 13df0fd, no statement changed: the four word lemmas are corollaries of GPUProof.WordFit.of_lt (through WordFit.two_mul_lt_iff) and coord_onto's bound is GPUProof.MixedRadix.lt_prod. intCast_ofNat (premise k < 2 ^ w) and intBin_mul_ofNat (WordFit has no mul) stay |
the importers rebuilt (Obl.lean, OblLemmas.lean, MojoProofTest/KernelLoop.lean, SymLoop.lean, AuditProbe.lean); the statement dump identical |
| B1474 | the design's MixedRadix.fits (FRAMEWORK.md, "Theorem 5: footprints at symbolic sizes") |
low (design) | fits (h : x.radixProd σ < 2 ^ (w - 1)) : WordFit w (x.val σ) is false without x.InRange σ |
fixed in fa75413, 0984c88: GPUProof.MixedRadix.fits (GPUProof/MixedRadix.lean:215) has the premise |
MojoProofTest/GPUProof/MixedRadix.lean mutant_range (radix product 1 below 2 ^ 7, value 200, signed word -56) |
| B1475 | tmp/s29/doccount.py (a campaign script, outside the repo) | low (tooling) | doccount counted a module as library only when it started with MojoProof., so GPUProof's declarations were in its test lines, where the audit counts them as library |
fixed outside the repo: GPUProof. modules count as library |
doccount on logs/s50b-doc5.tsv |
| B1483 | MojoProof/Sym/Loop.lean:842 Runs.of_chainsAt, :771 Runs.of_chainWith (at c4fcd9f); MojoProofTest/SymLoopAlloca.lean:110 allocated, :132 loopK_run |
medium (strength) | With the alloca flag on, the conclusion is ∃ bs me, Runs c t m (bs.foldl (fun m b => m.setLive b false) me) ∧ Q me: nothing says that bs are the blocks the run allocated or that a caller's or output block is not among them, so Mem.foldl_setLive_load (needs p.block ∉ bs) cannot carry Q to the memory the run leaves, and the result does not compose with Seq.start_sound_inv (MojoProof/Sym/Sched.lean:374). The test repeats the weak conclusion: it shows blocks 17 and 82 live before the cleanup, never dead after it, and allocated's docstring calls that memory the one ret leaves |
fixed in 0e39a18: with the flag on, Runs.of_chainWith (MojoProof/Sym/Loop.lean:867) and Runs.of_chainsAt (:939) also conclude m.Adds (bif alloca then bs else []) me (Mem.Adds, MojoProof/Sym/Path.lean:494): the blocks set dead are exactly those with no block in the start memory and one in me. The fact comes from SEff.run_adds (Path.lean:580) through Block.sound_edge, Block.sound_rounds, ChainWith.reach and allocas_trans. Runs.of_chainsDead (Loop.lean:1165) is the caller's form, for every program: a postcondition that reads only the start memory's blocks survives the cleanup, and every added block is dead |
MojoProofTest/SymLoopAlloca.lean loopK_run (:147; blocks 18 and 83 dead after the cleanup, block 1's word 7 kept) and the mutant loopK_inUse (:176; number 18 in use, refused, decided) |
| B1484 | docs/proofs/dot.md:335 (at c4fcd9f) | low (docs) | The text says each later iteration of the dot loop multiplies the bound by 1 + u and adds only u \|a b\| + C, which leaves out the rounding of the accumulated sum: in binary32 the products 1, 2^-24, 2^-24 from +0 round back to 1 twice, an error of 2^-23 where the text's recurrence gives about 2^-24. dotBound_step (MojoProof/Sem/Dot.lean:225) has the right inequality. The same paragraph says K products need K roundings of the sum, but the exponent counts error propagation, not roundings |
fixed in 5e36e34: docs/proofs/dot.md:332-375 (statement 12) states dotStep_loopBound's step as the Lean has it, every term named (the roundings of the product, of the unfused sum and of the fused x + P), with the result (1 + u) e + u S + (2 u + u ^ 2) \|P\| + C; the exponent counts how far an error propagates (unfused, K products and K - 1 sums are rounded). MojoProof/Sem/Dot.lean:441-452 (dotLoop_error_zero's docstring) says the same |
MojoProofTest/DotGrade.lean sum_rounded (:227; binary32, products 1, 2 ^ -24, 2 ^ -24 from +0, unfused, is 1), sum_within (:243; the error 2 ^ -23 within dotLoopBound .binary32 3) and noSum_fails (:265; the old prose's recurrence gives less than 2 ^ -23) |
| B1488 | MojoProof/Sem/Eval.lean:58 fill (:53 at c4fcd9f) |
low (automation) | fill was by well-founded recursion, which decide +kernel does not unfold, so the kernel could not evaluate a summary whose nodes hold a struct-typed poison or undef; deciding gemv's %6 segments ran out of memory at 10G past 7 pieces |
fixed in fade6a7: structural, mutual with fillAll (fillAll_eq) |
gemv_runs's decide +kernel (all pieces 4.43 s, with the path check 5.77 s) |
| B1489 | MojoProof/Sym/OblSeg.lean:273 RunsVia.of_fires; MojoProofTest/SymGemvTail.lean:174 memW, :337 dsB |
medium (strength) | RunsVia.of_fires gives every wait the predicate True, and the deliveries' values and memories are inputs. gemv_runs and gemv_loop_runs deliver memW (the memory at %6's first shuffle) at all seven waits, though at %78's waits the thread's memory differs (the lifetime markers' setLive). So the runs do not say that a delivery is the collective's result on the memory at its wait |
open. Next: Piece.after (the valuation after a block's segments, as a function of the deliveries) and a per-wait check in Piece.fires on the call's arguments and the memory SEff.run gives; then the schedule's deliveries |
gemv_runs, gemv_loop_runs (the gap) |
| B1490 | MojoProofTest/SymGemvTail.lean:350 chainB, :410 gemv_loop_runs |
medium (coverage) | gemv_kernel's runs through the loop at %54 have 0 rounds only (%11 = 0, trip bound %53 = 0). No invariant for the %70/%75 rounds is stated, and a round needs the values loaded through the [2 x ptr] stack slots |
open. Next: ChainWith.of_iter with the header's iterates for K > 0 (the checker accepts the rounds, loop_rounds), after the [2 x ptr] loads |
bfly_runs, gemv_loop_runs |
| B1491 | docs/proofs/gemv.md:27 (at c4fcd9f); docs/proofs/README.md:271-292 entry 19 | low (docs) | gemv.md said "No theorem about a run of either kernel is proved", and README entry 19 said "The one run proved is gemv_kernel's %6 from statement 41 …". Both missed gevm_kernel's whole (MojoProofTest/OblGevmWhole.lean:39, every launch with ntid.x = 1024) and, after this shift, gemv's new runs |
fixed: gemv.md in 1778ef9 and 45df5ae, README entry 19 in the shift's docs commit | docs (no test) |
| B1492 | MojoProofTest/SymGemvTail.lean:117 ctxG |
low (test fixture) | ctx0's special registers are all 0, outside gemv_kernel's declared %ntid.x range (1 to 1024), so a run from statement 0 at the base ctxG reads poison. The first fix (every register 1, 538c80d) was %tid.x = 1 with %ntid.x = 1 and %ctaid.x = 1 with %nctaid.x = 1, a thread no launch has, and its docstring called it "thread 1 of block 1" |
fixed in 3da29df: %tid and %ctaid 0, %ntid and %nctaid 1, thread 0 of block 0 as ctx0's who |
tail_ret, tail_runs, gemv_runs, bfly_runs, gemv_loop_runs re-decided |
| B1498 | GPUProof/Spec/Linear.lean dotGrade (:116 at ceb3253; now :177 through laneGrade :124) |
low (wrong grade) | dotGrade's magnitude S + e did not bound the inputs' grade magnitudes. Take an input whose grade's magnitude exceeds the largest finite value: Approx asks nothing of its word, which may be a NaN. The output's magnitude S + e may still be below that value, and then Approx asks for a finite word. So dotLoop_approx could not take Approx premises, and Spec.matVec matVecGrade's rule could not be met at such inputs |
fixed: 5e36e34 (dotGrade), cbeb86a (laneGrade, laneGrade_mag) |
MojoProofTest/DotGrade.lean approx_one (:106), approx_two (:151; Approx premises through GPUProof.Approx.model), mutant_one (:186) |
| B1499 | MojoProof/Sem/WarpDot.lean warpBound (:225 at c4fcd9f), bfly_stride_error, groupDot_error, warpDot_error |
low (two families for one word) | WarpDot bounded the butterfly's word by warpBound (exponent n + d + 1 on the sum, built on dotBound), while treeDot_error and groupDot_approx bound the same word by laneGrade (exponent L + d, built on dotLoopBound): two bound families and two inductions for one word, warpBound one power of 1 + u looser |
fixed in 0616bda: WarpDot's error theorems (bfly_stride_error :233, groupDot_error :264, warpDot_error :282) are treeDot_error at the butterfly's tree, at GPUProof.laneGrade's error with grades ⟨0, 0⟩ (exponent ⌈n / 2 ^ k⌉ + k); warpBound and its induction are deleted; docs/proofs/warp-dot.md:40-50, :66-75, :120-128 |
MojoProofTest/WarpDot.lean error40 (:93), error8 (:116), mutant_exact (:128) |
| B1500 | the design's View.coarsen_tile (FRAMEWORK.md, "Theorem 5: footprints at symbolic sizes", as in B1474; not in Lean) |
low (design) | Without "every inner value is realized" (ho) the design's equation is false; a counterexample is a warp digit whose radix is one more than the warp count. The design's v.level ≤ ℓ is not needed |
fixed in the design document, cab293d: docs/proofs/mixed-radix.md:268-285 (premises hn and ho; v.level ≤ ℓ dropped) |
the refused instance is planned in mixed-radix.md:286-299 |
| B1501 | GPUProof/MixedRadix.lean eq_iff_digits |
low (gap) | eq_iff_digits compared two indices at one size assignment. Two instances of a view are valued at two assignments (bind L g σ, bind L g' σ), so View.coarsen_tile needs a two-assignment form, and val_append to split a key |
fixed in f143868: GPUProof.MixedRadix.eq_iff_digits (GPUProof/MixedRadix.lean:130) is at two size assignments with the premise hr (the radices agree), and val_append (:159) is Horner's rule split at a digit, for every digit list and assignment; mixed-radix.md:40-47, :113-142, :252-264 |
MojoProofTest/GPUProof/MixedRadix.lean warp_two (:126), mutant_assign (:142), warp_split (:154), warp_split_37 (:163) |
| B1502 | docs/proofs/tile.md:98-104 (at ceb3253), docs/proved.md:470, docs/proofs/README.md entry 30 (:547-548) | low (docs, stale) | These said naive_tile is mat_refines at NaiveKernel.correct, for one kernel and every K ≤ 768. Since c2e5a22, naive_tile is at NaiveFam.sound: every row stride, sizes below 2 ^ 31, every K ≤ min sA sB |
fixed: tile.md in d6d395d (:102-109, §5 :154-156), proved.md and README entry 30 in the shift's docs commit | docs (no test) |
| B1503 | docs/proofs/README.md:390 (entry 23), docs/proved.md:319, roadmap/kernels/cards/gemv.md:45; docs/proofs/dot.md:504-507 and spec.md:311 at 0616bda | low (docs, stale) | These cited warpBound, deleted in 0616bda, as the bound of warpDot_matVec, warpDot_vecMat and groupDot_error; dot.md also said the two families differ by one power of 1 + u |
fixed: dot.md and spec.md in 8a0ae47 (dot.md:504-506, spec.md:311-312); README entry 23, proved.md and the gemv card in the shift's docs commit | docs (no test) |
| B1504 | docs/DEPENDENCIES.md:740, :3454, :3463, :4052, :4061; docs/deps/claims.tsv:773, :134537, :135392, :165275, :166132 (at a1a2af5) | low (generated, stale) | The generated dependency files cited GPUProof.MixedRadix.radices and MojoProof.Sem.warpBound, deleted in f143868 and 0616bda |
fixed: deps.py write on the merged tree, in the shift's generators commit |
deps.py check up to date; grep for both names 0 hits |
| B1505 | scripts/cited.py (its scope, :1-36) | low (check gap) | cited.py checks only names whose last component is snake_case, and only in module docstrings and roadmap cards. So the citations of the deleted warpBound (camelCase) in README, proved.md, dot.md, spec.md and the gemv card passed it with 0 missing |
open. Next: a check of every backticked name in docs/ and the cards against the declarations, or at least of the names a commit deletes | — |