Documentation

MIPRE.Foundations.CL.DetypingProgBranches

Correct query branches of the executable detyping router #

theorem MIPRE.CL.Detyping.Program.route_query {T : Type u_1} [Fintype T] [DecidableEq T] [Cost.SizedEncoding T] (E : T → T → Prop) [DecidableRel E] (n : ℕ) (q : Sampler.Query) :
(route E).toFun (Cost.encode (n, q)) = routeResult (graphDim T) (Cost.encode n, q.toTuple.1, q.toTuple.2.1.toBool, q.toTuple.2.2.1, q.toTuple.2.2.2.1, q.toTuple.2.2.2.2) (graphResult E (q.toTuple.2.1.toBool, decide (q.toTuple.2.2.1 = 1), ofBits (graphDim T) q.toTuple.2.2.2.1, ofBits (graphDim T) q.toTuple.2.2.2.2))