(**Thekeyinsightsof%\index{domaintheory}%domaintheory%~\cite{WinskelDomains}%inspirethenextapproachtomodelingnon-termination.Domaintheoryisbasedon%\emph{%#<i>#informationorders#</i>#%}%thatrelatevaluesrepresentingcomputatiionresults,accordingtohowmuchinformationthesevaluesconvey.Forinstance,asimpledomainmightincludevalues%``%#"#the program does not terminate#"#%''%and%``%#"#the program terminates with the answer 5.#"#%''%Theformerisconsideredtobean%\emph{%#<i>#approximation#</i>#%}%ofthelatter,whilethelatteris%\emph{%#<i>#not#</i>#%}%anapproximationof%``%#"#the program terminates with the answer 6.#"#%''%Thedetailsofdomaintheorywillnotbeimportantinwhatfollows;wemerelyborrowthenotionofanapproximationorderingoncomputationresults.
(**Wecanverifythatwehaveindeeddefinedamonad,byprovingthestandardmonadlaws.Partoftheexerciseischoosinganappropriatenotionofequalitybetweencomputations.Weuse%``%#"#equality at all approximation levels.#"#%''%*)