text‹
The Isabelle command 🚫‹ML› allows to embed Isabelle/ML source into the
formal text. It is type-checked, compiled, and run within that environment.
Note that side-effects should be avoided, unless the intention is to change
global parameters of the run-time environment (rare).
ML top-level bindings are managed within the theory context. ›
ML ‹1 + 1›
ML ‹val a = 1›
ML ‹val b = 1›
ML ‹val c = a + b›
subsection‹Antiquotations›
text‹
There are some language extensions (via antiquotations), as explained in the
``Isabelle/Isar implementation manual'', chapter 0. ›
ML ‹length []›
ML ‹🚫 (length [] = 0)›
text‹Formal entities from the surrounding context may be referenced as
follows:›
term"1 + 1"―‹term within theory source›
ML ‹term‹1 + 1› (* term as symbolic ML datatype value *)›
ML ‹term‹1 + (1::int)››
ML ‹
(* formal source with position information *)
val s = ‹1 + 1›;
(* read term via old-style string interface *)
val t = Syntax.read_term context (Syntax.implode_input s); ›
funackermann::"nat\<Rightarrow>nat\<Rightarrow>nat" where "ackermann0n=n+1" |"ackermann(Sucm)0=ackermannm1" |"ackermann(Sucm)(Sucn)=ackermannm(ackermann(Sucm)n)"
value"ackermann35"
end
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.12Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-30)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.