Core's judgments at an explicit interpretation #
Core's Triple, WPConjunctive, and LawfulWPMonadAttach take their interpretation as an
instance-implicit argument, and so do their constructors and projections. Some interpretations
are constructions rather than instances, such as MAlgOrdered.toWP α or
MonadAttach.toWPMonadDemonic. A proof about one of them cannot build or project these structures
directly: ⟨h⟩ and h.le_wp search for the interpretation again, and instance search does not
find a construction. The lemmas here take the interpretation as an explicit argument, which a goal
or a hypothesis determines by unification. Each states its judgment through inst.wp:
WP.triple_iffandWP.triple_of_le_wpfor core'sTriple;WP.wpConjunctive_ifffor conjunctivity at a program;WPMonad.lawfulWPMonadAttach_ifffor soundness with respect to lawful attachment.
They are upstream candidates for core's Std.WP, and they live in its namespaces.
Triple.iff at an explicit interpretation: a triple is an entailment of the weakest
precondition. Upstream candidate.
Triple.intro at an explicit interpretation. Upstream candidate.
Conjunctivity at a program, at an explicit interpretation: the meet of two weakest preconditions lies below the weakest precondition of the meets. Upstream candidate.
Soundness with respect to lawful attachment, at an explicit interpretation: a postcondition that the weakest precondition proves holds at every value the program can return. Upstream candidate.