Repository navigation
Releases
jihoo v0.6.0
jihoo 0.6.0
A feature, library, and stabilization release focused on dependent programming, reusable proof libraries, and release validation. The broader whole-compiler verification milestone remains future work.
Highlights
- Improved dependent function ergonomics, indexed records, module/privacy checks, motives, annotations, and proof-irrelevant conversion. Local functions remain restricted, not unrestricted closures.
- Reusable natural-number and list lemmas providing checked bounds and length evidence to executable consumers.
- Evidence-driven sized lists, list-to-buffer transfer, buffer ranges, bounded collections, and vector extension.
- Bounded proof automation producing ordinary checked
Eq/Ltterms from local facts and hints. Search is incomplete and resource-limited, not general automatic induction. - Expanded LSP regression coverage for dependent proof diagnostics, document lifecycle, and UTF-8/UTF-16 ranges, including Korean text and emoji.
- Release hardening with synchronized compiler/package versions and native packaged-artifact tests on x86_64 and ARM64.
Validation and downloads
Release commit: 644ccf1280c7e88bd0fbdf1d561d44bd903a2975.
The release workflow successfully built both Linux architectures, passed archive and dependent-consumer smoke tests on native runners, and published the attached archives and SHA-256 files. Verify the checksum before use and keep the bundled libraries with the compiler.
Native execution uses the pinned Nix LLVM environment. This does not establish compatibility with every distribution-provided LLVM. Passing tests are implementation evidence, not a universal correctness proof.
The bootstrap seed intentionally remains 0.5.0; the released compiler and package are 0.6.0.
Formal verification: what this release does and does not establish
Scoped Lean results cover restricted dependent typing/conversion/substitution, exported graph artifacts, quantity traces and heap/lease invariants, symbolic Buffer and fixed binary Tree ownership, selected abstract-runtime correspondence, and constructed Lean MIR lowering or selected native MIR snapshots.
These are not a whole-language or whole-compiler correctness theorem. Closing/inventory, ABI, width, layout, and resource premises still apply. Restricted Case composition and child-consumption results are not general CommonData-to-native simulation or equal source/target traces. Collection results do not establish general pointwise content preservation.
The native checker is tested, not proved correct. Exporter/source association, production lowering, MIR-to-LLVM, LLVM, and concrete runtime/allocator behavior remain trust boundaries or open obligations. Abstract allocation success does not guarantee physical allocation success.
See the detailed release scope, proof-status assessment, and Lean proof documentation for precise hypotheses and supported forms.
Still ahead
General lowering correspondence, broader theory libraries, full pure preservation/consistency and erasure goals, and imported induction for ordinary loop ensures remain on the roadmap.
Full changelog: v0.5.0...v0.6.0
jihoo 0.5.0
jihoo 0.5.0 adds dependent types in a native core: an opt-in part of the language in which
programs state contracts as types, and proofs are checked and then erased. A proved access has
no bounds check. Start with the guide.
The kernel is not verified. Its soundness rests on rejection suites, an independent evaluator
and independent reviews, which found and fixed real defects before this release. A mechanized
proof is planned after 0.5, in Lean 4. There is one known exception to the preservation of types,
which admits nothing; the specification
states it.
In a #![dependent_core] module
- Evidence about u64 indices, with their order and equality, and inductive propositions that
programs declare, proved by induction. - Refinements, data types parameterized by values, and structs whose fields name earlier fields.
- Owned buffers and heap data, each used exactly once, which the kernel checks, and freed where
their scope ends. - Borrows, whose results and proofs can be about what they read.
- Loops whose invariants are types.
inoutparameters,f(&x),x = vandold(x). A node rebuilt at its own size is reused in
place, and nothing is allocated to return a value with its container.dependent.vec, a growable vector whose contracts are types.
Limits
The core is a subset. It has no if, while, generics or comptime, elements are i64, marked and
ordinary modules cannot import each other, and a let of an owned value keeps only its type. The
guide lists the
rest.
Removed
The Horn and Agda path is gone, with jihoo emit-horn and the lib/proof library
(import proof.schematic). The existing verifier stays, and still proves unmarked programs and the
compiler's own source, but its checker is now tested rather than proved. jihoo core preserves is
new, for testing.
jihoo v0.4.7
jihoo v0.4.6
jihoo v0.4.5
jihoo v0.4.4
jihoo v0.4.3
jihoo v0.4.3
Contracts
Functions can state what they need and what they promise, and loops what holds each time they start over (Contracts):
fn bump(inout n: i64)
requires n < 100
ensures n == old(n) + 1
{
n += 1
}
fn sum(xs: [i64]) -> i64 {
var s = 0
var i = 0
while i < xs.len
invariant 0 <= i && i <= xs.len
{
s += xs[i]
i += 1
}
s
}
requiresandensuresgo between a signature and its body,invariantbetween a loop's head (while,loop, a rangefor) and its body.resultis the value returned andold(x)aninoutparameter's value on entry. The words are special only there, so code that uses them as names is unaffected.- A clause compares integers, joined by
&&: literals, parameters, variables,.lenof a slice orstr,+ -and*by a constant, with exact arithmetic. - This release reads contracts but does not prove them. The compiler checks that each clause is well formed, rejects a contract on a function without a body, and rejects a function with
requiresused as a value. A build is the same with or without contracts.emit-obligationsgives the clauses to the verifier in jihoo-proofs, which proves them modularly: a call proves its callee'srequiresand assumes itsensures. - The syntax is fixed from this release on, so the standard library can state contracts before 0.5.0, the release that proves them while compiling.
Verification model
jihoo emit-obligations f.jh prints each function's MIR as the integer model the verifier proves things about (format). Each check carries the span where it fails, and each opaque value the reason the model does not follow it. The output also gives each function's contract, the callee and arguments of each call, and two kinds of values as variables: the integer an inout parameter points to, and a local lent to a single call.
Systems programming
read_volatileandwrite_volatileaccess memory-mapped device registers.#[panic_handler]replaces how a program reports bugs, for library objects that another system links.-mno-red-zoneand-mgeneral-regs-onlygenerate code that can run in a kernel.
Tools and fixes
jihoo test f.jhalso runs the#[test]functions of the modulesf.jhimports.jihoo fmtindents contract clauses.- An
extern fnresolves to anexport fnof the same program. - Calls work through
fnptrfields behind pointers and borrows. nulltakes its type when assigned to astatic.- Aggregate and nullary-enum
staticinitializers are emitted as bytes. - A failed constant evaluation no longer stays marked as in progress.
The compiler is bootstrapped from 0.4.2, and from this release on the seed is 0.4.3. The archives hold bin/jihoo and its standard library. They need glibc and LLVM 21 (libLLVM, clang, ld.lld).