Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  Syntax.thy

  Sprache: Isabelle
 

section The $\lambda\mu$-calculus

textMore examples, as well as a call-by-value programming language built on
  of our formalisation, can be found in an associated Bitbucket repository~cite"bitbucket".

  
theory Syntax
  imports Main
begin

subsection Syntax

datatype type = 
     Iota
    | Fun type type (infixr  200)

textTo deal with $\alpha$-equivalence, we use De Bruijn's nameless representation wherein each bound
 variable is represented by a natural number, its index, that denotes the number of binders
 that must be traversed to arrive at the one that binds the given variable.
 Each free variable has an index that points into the top-level context, not enclosed in
 any abstractions.

  
datatype trm =
      LVar nat    (`_ [100100)
    | Lbd type trm (λ_:_ [06060)
    | App trm trm (infix 🍋 60)
    | Mu type cmd (μ_:_ [06060)
and cmd = 
      MVar nat trm (🪙_ [06060)
      
datatype ctxt = 
  ContextEmpty () |
  ContextApp ctxt trm (infixl \ 75)
  
primrec ctxt_app :: "ctxt ==> ctxt ==> ctxt" (infix . 60where
  " . F = F" |
  "(E \<bullet> t) . F = (E . F) \<bullet> t"
  
fun is_val :: "trm ==> bool" where
  "is_val (λ T : v) = True" |
  "is_val _ = False"

  
end

Messung V0.5 in Prozent
C=61 H=69 G=64

¤ Dauer der Verarbeitung: 0.17 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen



NIST Cobol Testsuite



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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

      Eigene Quellcodes
      Fremde Quellcodes
     Quellcodebibliothek
      Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge