Documentation

CatCryptCore.Tactics.SPNormalize

sp_normalize — minimal monad-law simp for SPComp #

This file exports sp_normalize, a lightweight simp tactic that rewrites SPComp expressions using only the monad laws and the class-to-concrete redirections (>>=SPComp.bind, pureSPComp.pure).

Scope #

Depends only on CatCrypt.Core.Code, so it can be imported by any file that wants to normalize SPComp monad chains — including files in Bridge/, Category/, Crypto/ that sit below the PkgCoherence tactic layer in the dependency DAG.

For the extended leaf-closer that also unfolds RawCode.eval, see Tactics/PkgCoherenceBang.lean.

Simp set #

Normalize an SPComp expression via the monad laws + class-method redirection. Designed as a drop-in replacement for

simp only [SPComp.pure_bind, SPComp.bind_pure, SPComp.bind_assoc,
           SPComp.fail_bind, SPComp.monad_bind_eq, SPComp.monad_pure_eq]

which is a very common idiom across Crypto/* proofs.

Equations
Instances For