{"slug": "cuda-oxide-v0-5-0-with-provably-safe-gpu-kernels-using-lean-4-verification", "title": "CUDA-oxide v0.5.0 with provably safe GPU kernels using Lean 4 verification", "summary": "NVIDIA's cuda-rust project released cuda-oxide v0.5.0, adding preview compile-time Lean 4 verification via a #[verify(...)] attribute that proves memory bounds, race freedom, barrier uniformity and async hardware lifecycle invariants over PostMem2Reg MIR, with zero per-kernel manual proofs. The release also ships native Windows x86_64-pc-windows-msvc host and device builds, OptiX and RTX shader compilation support, and CUTLASS 4.8.1 plus Vera Rubin sm_107a support in cute-rs-preview, alongside 10 verified safe_* examples including a zero-unsafe Blackwell tcgen05 GEMM. Proven slice and SharedArray mir.assert bounds checks are erased before lowering to PTX, and the release adds a cargo oxide lean-export command and a 45-pair GPU synchronization bug/fix verification suite.", "body_md": "## Repository navigation\n\nProvably safe GPU kernels with compile-time Lean 4 verification (`#[verify]`, preview), Windows `x86_64` MSVC support, OptiX and RTX shader compilation support, and CUTLASS 4.8.1 + Vera Rubin (`sm_107a`) support in `cute-rs-preview`.\n\n```\nRust #[kernel] + #[verify(...)]  ──►  PostMem2Reg MIR  ──►  Lean 4 Proofs (0 sorryAx)\n                                            │\n                                            ▼  (proven mir.assert bounds checks elided)\n                                       Emitted PTX / Cubin (Linux + Windows, CUDA + OptiX)\n```\n\n| Area | What Shipped in `cuda-oxide v0.5.0` | \n|---|---|\n| **Provably Safe Kernels** | Compile-time Lean 4 proofs ( `#[verify]` , preview) + zero-`unsafe` GEMM | \n| **Windows Support** | Native `x86_64-pc-windows-msvc` host/device builds, COFF, and CI | \n| **OptiX & RTX Support** | Callable `.func` exports, 64-bit pointers, 256-input`ptx_asm!` | \n| **Vera Rubin & Compiler Opts** | CUTLASS 4.8.1 + `sm_107a` , local-array auto-unroll, DWARF fixes | \n\n### 1. Provably Safe Kernels (`#[verify]`, Preview)\n\n- **Compile-time Lean 4 verification (`lean-exporter`, `oxide-proofs-preview`)** : Annotate kernels with`#[verify(...)]` to prove memory bounds, race freedom, barrier uniformity, and async hardware lifecycle invariants at compile time over`PostMem2Reg` MIR (`no_oob_idx` ,`no_data_race` ,`disjoint_writes` ,`writes_all_elems` ,`uniform_barriers` ,`tmem_lifecycle` ) with zero per-kernel manual proofs ([#1851](https://github.com/NVIDIA/cuda-rust/pull/1851) ,[#1857](https://github.com/NVIDIA/cuda-rust/pull/1857) ,[#1858](https://github.com/NVIDIA/cuda-rust/pull/1858) ,[#1859](https://github.com/NVIDIA/cuda-rust/pull/1859) ,[#1860](https://github.com/NVIDIA/cuda-rust/pull/1860) ,[#1861](https://github.com/NVIDIA/cuda-rust/pull/1861) ,[#1862](https://github.com/NVIDIA/cuda-rust/pull/1862) ,[#1866](https://github.com/NVIDIA/cuda-rust/pull/1866) ,[#1868](https://github.com/NVIDIA/cuda-rust/pull/1868) ,[#1877](https://github.com/NVIDIA/cuda-rust/pull/1877) ,[#1878](https://github.com/NVIDIA/cuda-rust/pull/1878) ,[#1881](https://github.com/NVIDIA/cuda-rust/pull/1881) ,[#1883](https://github.com/NVIDIA/cuda-rust/pull/1883) ,[#1884](https://github.com/NVIDIA/cuda-rust/pull/1884) ,[#1885](https://github.com/NVIDIA/cuda-rust/pull/1885) ,[#1887](https://github.com/NVIDIA/cuda-rust/pull/1887) ,[#1891](https://github.com/NVIDIA/cuda-rust/pull/1891) ,[#1892](https://github.com/NVIDIA/cuda-rust/pull/1892) ,[#1904](https://github.com/NVIDIA/cuda-rust/pull/1904) ,[#1905](https://github.com/NVIDIA/cuda-rust/pull/1905) ,[#1906](https://github.com/NVIDIA/cuda-rust/pull/1906) ).\n- **Zero-`unsafe` speed-of-light kernels & bounds-check elision** : Proven slice and`SharedArray`` mir.assert` bounds checks are erased before lowering to emitted PTX. Ships with 10 verified`safe_*` examples, from 1D vector addition up to[`safe_gemm_sol_final`](https://github.com/NVIDIA/cuda-rust/tree/main/cuda-oxide/examples/safe_gemm_sol_final) (warp-specialized Blackwell`tcgen05` + TMA + TMEM + 2-CTA cluster CLC + PDL GEMM with zero`unsafe` blocks) ([#1851](https://github.com/NVIDIA/cuda-rust/pull/1851) ,[#1875](https://github.com/NVIDIA/cuda-rust/pull/1875) ,[#1893](https://github.com/NVIDIA/cuda-rust/pull/1893) ).\n- **Tooling & guide** : Added`cargo oxide lean-export` , Lean 4 setup in`nix develop` and`.devcontainer` , a 45-pair GPU synchronization bug/fix verification suite, and the[Verified Kernels chapter](https://github.com/NVIDIA/cuda-rust/blob/main/cuda-oxide/cuda-oxide-book/gpu-safety/verified-kernels.md) ([#1904](https://github.com/NVIDIA/cuda-rust/pull/1904) ,[#1906](https://github.com/NVIDIA/cuda-rust/pull/1906) ).\n\n### 2. Windows `x86_64` MSVC Support\n\n- **End-to-end Windows builds (`x86_64-pc-windows-msvc`)** : Added native Windows host and device compilation, COFF object artifact embedding (`oxide-artifacts` ), shared CUDA Toolkit discovery (`cuda-toolkit-discovery` ), target-triple`extra-rustflags` selection in`cargo-oxide` , MSVC enum-type alignment in`cuda-bindings` , and PowerShell smoketest support ([#1473](https://github.com/NVIDIA/cuda-rust/pull/1473) ,[#1770](https://github.com/NVIDIA/cuda-rust/pull/1770) ,[#1828](https://github.com/NVIDIA/cuda-rust/pull/1828) ).\n- **Continuous verification & documentation** : Added a dedicated Windows MSVC compile and PTX/cubin verification CI lane (`windows.yml` ) and the[Windows setup guide](https://github.com/NVIDIA/cuda-rust/blob/main/cuda-oxide/cuda-oxide-book/getting-started/windows.md) ([#1770](https://github.com/NVIDIA/cuda-rust/pull/1770) ,[#1870](https://github.com/NVIDIA/cuda-rust/pull/1870) ).\n\n### 3. OptiX & RTX Shader Compilation Support\n\n- **Callable device exports (`#[device(export)]`, `#[device(export_name = \"...\")]`)** : Root uncalled`.visible .func` device functions (such as OptiX`__direct_callable__*` and`__continuation_callable__*` Shader Binding Table callables or C++ FFI callbacks) alongside`#[kernel]` entry points ([#1872](https://github.com/NVIDIA/cuda-rust/pull/1872) ).\n- **Wide inline PTX & named `.const` launch parameters** : Extended`ptx_asm!` to support up to 256 input operands and 64 output operands (covering OptiX 9 cooperative-vector intrinsics) and preserved exact`#[constant(export_name = \"params\")]` symbols inside`#[cuda_module]` ([#1871](https://github.com/NVIDIA/cuda-rust/pull/1871) ).\n- **Opt-in 64-bit addressing & named `.global` statics** : Added`short-pointers = false` (`CUDA_OXIDE_NO_SHORT_PTR` ) so OptiX continuation stacks keep 64-bit`.local` pointers (`%SPL` ), and honored`#[no_mangle]` /`#[export_name]` on device statics with evaluated`const` array lengths ([#1873](https://github.com/NVIDIA/cuda-rust/pull/1873) ,[#1874](https://github.com/NVIDIA/cuda-rust/pull/1874) ).\n\n### 4. `cute-rs-preview`, Compiler Optimizations & Debugging\n\n- **CUTLASS 4.8.1 & Vera Rubin (`sm_107a`)** : Upgraded` cute-rs-preview` to CUTLASS 4.8.1 and enabled Vera Rubin`sm_107a` BF16 and MXFP8 GEMM workloads ([#1849](https://github.com/NVIDIA/cuda-rust/pull/1849) ), plus`Option<&T>` niche storage and the`cuda-device-diag-mlir22` static-analysis profile ([#1865](https://github.com/NVIDIA/cuda-rust/pull/1865) ).\n- **Loop unrolling, generic policies & intrinsics** : Added automatic full unrolling for loops indexing small local arrays ([#1841](https://github.com/NVIDIA/cuda-rust/pull/1841) ), generic policy expressions in`#[launch_bounds]` and`#[unroll]` ([#1853](https://github.com/NVIDIA/cuda-rust/pull/1853) ),`sm_75` scalar arithmetic intrinsics ([#1907](https://github.com/NVIDIA/cuda-rust/pull/1907) ), and GB10 (`sm_121a` ) / R100 (`sm_107` ) target handling ([#1789](https://github.com/NVIDIA/cuda-rust/pull/1789) ,[#1830](https://github.com/NVIDIA/cuda-rust/pull/1830) ).\n- **DWARF debug info & build reliability** : Coalesced DWARF debug sections with disambiguated labels in`merge_ptx_bundles` ([#1779](https://github.com/NVIDIA/cuda-rust/pull/1779) ), preserved deeply nested and cycle-safe composite pointee debug types ([#1780](https://github.com/NVIDIA/cuda-rust/pull/1780) ,[#1781](https://github.com/NVIDIA/cuda-rust/pull/1781) ), serialized concurrent pipeline output writes ([#1908](https://github.com/NVIDIA/cuda-rust/pull/1908) ), and added CI template builds for`cargo oxide new` ([#1764](https://github.com/NVIDIA/cuda-rust/pull/1764) ).", "url": "https://wpnews.pro/news/cuda-oxide-v0-5-0-with-provably-safe-gpu-kernels-using-lean-4-verification", "canonical_source": "https://github.com/NVIDIA/cuda-rust/releases/tag/cuda-oxide/v0.5.0", "published_at": "2026-12-02 15:40:43+00:00", "updated_at": "2026-12-02 15:46:06.589922+00:00", "lang": "en", "topics": ["developer-tools", "ai-infrastructure", "ai-chips", "ai-safety"], "entities": ["NVIDIA", "cuda-oxide", "cuda-rust", "Lean 4", "CUTLASS 4.8.1", "OptiX", "Vera Rubin", "Rust"], "also_reported_by": [], "takeaway": "Annotating kernels with #[verify(...)] in cuda-oxide v0.5.0 generates Lean 4 proofs of no_oob_idx, no_data_race, disjoint_writes, writes_all_elems, uniform_barriers and tmem_lifecycle over PostMem2Reg MIR, letting proven mir.assert bounds checks be elided before PTX emission.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/cuda-oxide-v0-5-0-with-provably-safe-gpu-kernels-using-lean-4-verification", "markdown": "https://wpnews.pro/news/cuda-oxide-v0-5-0-with-provably-safe-gpu-kernels-using-lean-4-verification.md", "text": "https://wpnews.pro/news/cuda-oxide-v0-5-0-with-provably-safe-gpu-kernels-using-lean-4-verification.txt", "jsonld": "https://wpnews.pro/news/cuda-oxide-v0-5-0-with-provably-safe-gpu-kernels-using-lean-4-verification.jsonld"}}