Theory Refine_Monadic_Syntax_Sugar

theory Refine_Monadic_Syntax_Sugar
imports Refine_Monadic
section ‹Additional Syntactic Sugar for Refinement›
(* TODO: Move to Refine_Monadic folder, include in Refine_Monadic *)
theory Refine_Monadic_Syntax_Sugar
imports Refine_Monadic
begin

  locale Refine_Monadic_Syntax begin
  
    notation SPEC (binder "spec " 10)
    notation ASSERT ("assert")
    notation RETURN ("return")
    notation FOREACH ("foreach")
    notation WHILE ("while")
    notation WHILET ("whileT")
    notation WHILEI ("while_")
    notation WHILET ("whileT")
    notation WHILEIT ("whileT_")

    notation RECT (binder "recT " 10)
    notation REC (binder "rec " 10)

  end
end