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
- NLAlib.Ops.Examples.Oracles.callProgram
- NLAlib.Ops.Examples.Oracles.charged_repeatModel
- NLAlib.Ops.Examples.Oracles.confined_freeModel
- NLAlib.Ops.Examples.Oracles.confined_mixedModel
- NLAlib.Ops.Examples.Oracles.confined_repeatModel
- NLAlib.Ops.Examples.Oracles.freeAlgorithm
- NLAlib.Ops.Examples.Oracles.freeModel
- NLAlib.Ops.Examples.Oracles.freeResources
- NLAlib.Ops.Examples.Oracles.freeSpecification
- NLAlib.Ops.Examples.Oracles.initial_oracleProblem
- NLAlib.Ops.Examples.Oracles.not_charged_freeModel
- NLAlib.Ops.Examples.Oracles.not_confined_sumModel
- NLAlib.Ops.Examples.Oracles.not_good_oracleInput_zero_one
- NLAlib.Ops.Examples.Oracles.not_uniform_oracleModel
- NLAlib.Ops.Examples.Oracles.oneCall
- NLAlib.Ops.Examples.Oracles.oracleAlgorithm
- NLAlib.Ops.Examples.Oracles.oracleContract
- NLAlib.Ops.Examples.Oracles.oracleInput
- NLAlib.Ops.Examples.Oracles.oracleModel
- NLAlib.Ops.Examples.Oracles.oracleProblem
- NLAlib.Ops.Examples.Oracles.oracleSpecification
- NLAlib.Ops.Examples.Oracles.span_oneCall
- NLAlib.Ops.Examples.Oracles.staticCost_callProgram
- NLAlib.Ops.Examples.Oracles.staticPeak_callProgram
- NLAlib.Ops.Examples.Oracles.sumAlgorithm
- NLAlib.Ops.Examples.Oracles.sumContract
- NLAlib.Ops.Examples.Oracles.sumModel
- NLAlib.Ops.Examples.Oracles.sumProblem
- NLAlib.Ops.Examples.Oracles.sumSpecification
- NLAlib.Ops.Examples.Oracles.total
- NLAlib.Ops.Examples.Oracles.uniform_freeModel
- NLAlib.Ops.Examples.Oracles.uniform_mixedModel
- NLAlib.Ops.Examples.Oracles.uniform_repeatModel
- NLAlib.Ops.Examples.Oracles.uniform_sumModel
- NLAlib.Ops.Examples.Oracles.unitResources
- NLAlib.Ops.Examples.Oracles.work_freeResources
- NLAlib.Ops.Examples.Oracles.work_oneCall