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

Quelle  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
 syntax_const_Expr syntax_const_Var const_syntaxExpr]


print_translation
  [Syntax_Trans.quote_antiquote_tr'
 syntax_const_Expr syntax_const_Var const_syntaxExpr]


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=91 G=73

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-06-30) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.