Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/IP_Addresses/   (Sammlung formaler Beweise Version 2026-5©)  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=86 H=100 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-10) ¤

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