Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/HOL/ex/   (Beweissystem Isabelle Version 2025-1©)  Datei vom 16.11.2025 mit Größe 1 kB image not shown  

Quellcode-Bibliothek Antiquote.thy

  Sprache: Isabelle
 

(*  Title:      HOL/ex/Antiquote.thy
    Author:     Markus Wenzel, TU Muenchen
*)


section Antiquotations

theory Antiquote
imports Main
begin

text A simple example on quote / antiquote in higher-order abstract syntax.

definition Expr :: "(('a ==> nat) ==> nat) ==> ('a ==> nat) ==> nat"
  where "Expr exp env = exp env"

syntax
  "_Expr" :: "'a ==> 'a"  ((notation=prefix EXPREXPR _) [1000999)
  "_Var" :: "'a ==> ('a ==> nat) ==> nat"  ((notation=prefix VARVAR _) [1000999)

syntax_consts
  "_Expr"  Expr

parse_translation
  [Syntax_Trans.quote_antiquote_tr
 🍋_Expr 🍋_Var 🍋Expr]


print_translation
  [Syntax_Trans.quote_antiquote_tr'
 🍋_Expr 🍋_Var 🍋Expr]


term "EXPR (a + b + c)"
term "EXPR (a + b + c + VAR x + VAR y + 1)"
term "EXPR (VAR (f w) + VAR x)"

term "Expr (λenv. env x)"    ― improper
term "Expr (λenv. f env)"
term "Expr (λenv. f env + env x)"    ― improper
term "Expr (λenv. f env y z)"
term "Expr (λenv. f env + g y env)"
term "Expr (λenv. f env + g env y + h a env z)"

end

Messung V0.5 in Prozent
C=52 H=30 G=42

¤ 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.0.10Bemerkung:  (vorverarbeitet am  2026-06-10) ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.