Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/IP_Addresses/     Datei vom 31.4.2026 mit Größe 937 B image not shown  

Quelle  Hs_Compat.thy

  Sprache: Isabelle
 

theory Hs_Compat
imports Main
begin

sectionDefinitions inspired by the Haskell World.

definition uncurry :: "('b ==> 'c ==> 'a) ==> 'b × 'c ==> 'a"
where
  "uncurry f a (case a of (x,y) ==> f x y)"

lemma uncurry_simp[simp]: "uncurry f (a,b) = f a b" 
  by(simp add: uncurry_def)

lemma uncurry_curry_id: "uncurry curry = id" "curry uncurry = id" 
  by(simp_all add: fun_eq_iff)

lemma uncurry_split: "P (uncurry f p) (x1 x2. p = (x1, x2) P (f x1 x2))"
  by(cases p) simp

lemma uncurry_split_asm: "P (uncurry f a) ¬(x y. a = (x,y) ¬P (f x y))" 
  by(simp split: uncurry_split)

lemmas uncurry_splits = uncurry_split uncurry_split_asm

lemma uncurry_case_stmt: "(case x of (a, b) ==> f a b) = uncurry f x"
  by(cases x, simp)

end

Messung V0.5 in Prozent
C=97 H=100 G=98

¤ Dauer der Verarbeitung: 0.7 Sekunden  (vorverarbeitet am  2026-06-13) ¤

*© 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.