Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/Earley_Parser/   (Sammlung formaler Beweise Version 2026-5©)  Datei vom 29.4.2026 mit Größe 1 kB image not shown  

Quelle  CFG.thy

  Sprache: Isabelle
 

theory CFG
  imports Main
begin

section 

  'a rule = "'a × 'a list"

  'a rules = "'a rule list"

  'a cfg = CFG (R : "'a rules") (S : "'a")

  nonterminals :: "'a cfg ==> 'a set" where
 "nonterminals G = set (map fst (R G)) {S G}"

  is_word :: "'a cfg ==> 'a list ==> bool" where
 "is_word G ψ = (nonterminals G set ψ = {})"

  derives1 :: "'a cfg ==> 'a list ==> 'a list ==> bool" where
 "derives1 G u v x y A α.
 u = x @ [A] @ y
 v = x @ α @ y
 (A, α) set (R G)"

  derivations1 :: "'a cfg ==> ('a list × 'a list) set" where
 "derivations1 G { (u,v) | u v. derives1 G u v }"

  derivations :: "'a cfg ==> ('a list × 'a list) set" where
 "derivations G (derivations1 G)^*"

  derives :: "'a cfg ==> 'a list ==> 'a list ==> bool" where
 "derives G u v ((u, v) derivations G)"

 
 "derives1" :: "'a cfg ==> 'a list ==> 'a list ==> bool" (_ _ ==> _ [1000,0,0] 1000)

 
java.lang.NullPointerException

  (latex ouproof -
 derives1 (_ _ ==> _ [1000,0,0] 1000)

  (latex output)
 derives (_ _ 🍋\ensuremath{\Rightarrow^{\ast}} _ [1000,0,0] 1000)

 

Messung V0.5 in Prozent
C=84 H=96 G=90

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






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.