Repository navigation
·
14 commits
to main
since this release
Added
Changes to the hax-lib crate:
- Add
implies!, an implication whose right-hand side is evaluated only when
its left-hand side holds
Lean backend and library:
- Add models of
RangeInclusiveandRangeToInclusive - Add a model of
unsigned_absfor signed integers - Add models of
containsforRange,RangeFrom,RangeToand
RangeToInclusive, and ofRange::is_empty
F* backend and library:
- Add models of
RangeInclusiveandRangeToInclusive - Add a model of
unsigned_absfor signed integers - Add models of
containsforRange,RangeFrom,RangeToand
RangeToInclusive, and ofRange::is_empty
Fixed
Changes to the hax-lib crate:
- The Rust semantics of
impliesis no longer reversed
Changes to the frontend:
- Impls now list the bounds on the generic parameters of their trait as parent bounds (#1554)
Lean backend and library:
v.iter().all(..)andv.iter().any(..)on slices no longer fail with an
unknown constant
F* backend and library:
Iterator::{all, any, find, find_map, position}now take&mut selfas in
std and return the advanced iterator with their result, matching extracted
call sitesFormatter::write_stris nowCore_models.Fmt.impl_11__write_str, the name
extracted client code calls, instead ofimpl_Formatter__write_str
ProVerif backend and library:
- Breaking: full re-implementation of the backend under the Rust engine. The library
scope and its interface with extracted code is also refactored. - Reject the code that each Result model would get wrong: by default, a
Resultthat is not returned or consumed at once, or code that goes on
after anErr; with--result-errors, the same for aResultthat may
carry the error of a hand-written model, except that an arm may recover
from itsErr - Add
#[hax_lib::pv_unchecked_results], which exempts a function from
these checks #[pv_inverse_of(f)]ongmakesgmatch its argument againstf,
without areduc, and accepts methods
Changed
Changes to cargo-hax:
- Breaking:
anodizedspecifications needanodized0.8.0 or later; hax no
longer setsanodized_discard_specs
Lean backend and library:
- Breaking: the Lean library and the extracted Lean files are Lean modules.
A module can only import modules, so the hand-written models in
Assumptions/, which the extraction imports, have to become modules too:
start each file withmodule, turn itsimports intopublic imports,
and put@[expose] public sectionafter them. - Breaking: the fields
startand«end»ofops.range.RangeInclusiveare
nowstart_andend_, andRangeInclusive.startandRangeInclusive.end
are functions - Breaking: bump Lean to v4.35.0 and update aeneas. Proofs may need updating:
if_pos/if_negno longer rewriteifs (useite_eq_left/ite_eq_right),
and hand-written models that extracted code instantiates must takeType _
rather thanTypeparameters - Update aeneas to
build-2b9e3eaand charon tonightly-2026.10.31
F* backend and library:
- Breaking: the fields
f_startandf_endoft_RangeInclusiveare now
f_start_andf_end_