NLA-lib Explorer

Certificates that mislead, and the properties that reject them

Library · Source module

Certificates that mislead, and the properties that reject them

Three complete NLAlib.Ops.Algorithm certificates from the 2026-11-14 audit. Each is a true statement about its model whose headline reading is false, and each fails one of the properties of NLAlib.Ops.Confined:

* NLAlib.Ops.Examples.Oracles.oracleAlgorithm: one unit-cost call writes a number that is in no buffer. Its model is not uniform: the contract of the primitive is chosen per input. * NLAlib.Ops.Examples.Oracles.sumAlgorithm: one unit-cost call with no operand and no dimension sums a stored vector of any length. Its model is uniform and not confined. * NLAlib.Ops.Examples.Oracles.freeAlgorithm: the repeated-addition program of NLAlib.Ops.Examples.Certification at total work zero. Its model is not charged.

The types Problem, AccessModel and Specification accept all three. A reader of a certificate checks that its model is uniform or names its oracle, is confined and is charged; scripts/OpsPrograms.lean reports the three properties for every certificate.

Main results

* NLAlib.Ops.Examples.Oracles.not_uniform_oracleModel, NLAlib.Ops.Examples.Oracles.not_confined_sumModel, NLAlib.Ops.Examples.Oracles.not_charged_freeModel: the three rejections. * NLAlib.Ops.Examples.Oracles.not_good_oracleInput_zero_one: two inputs of the oracle certificate have the same buffers and no common output. * NLAlib.Ops.Examples.Oracles.confined_repeatModel: the honest example model has all three properties.

Declarations