NLA-lib Explorer

A uniform certificate and structural adversarial regressions

Library · Source module

A uniform certificate and structural adversarial regressions

The fixed program NLAlib.Ops.Examples.Certification.repeatProgram adds a supplied real number to zero n times. Its certificate covers every natural size and every real input. Its count includes the literal and additions, index evaluation, operand addressing, sequence, loop entry and every executed round. The proof uses the ordinary total program logic.

The final examples are kernel-checked rejection claims: an impossible decoding cannot supply a model realization, an impossible postcondition has no algorithm certificate, an abort is not a certified program, a tree-building function is not one fixed program, and bookkeeping cannot be omitted from the budget. They invoke no linter.

Main results

* NLAlib.Ops.Examples.Certification.repeatAlgorithm: a certificate for all sizes and inputs. * NLAlib.Ops.Examples.Certification.repeatAlgorithmLinked: fixed-table linking retains it.

Declarations