Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/Z_Toolkit/   (Archive of formal Proofs Version 2026-5©)  Datei vom 31.4.2026 mit Größe 780 B image not shown  

Impressum Total_Fun.thy   Sprache: Isabelle

 

section ‹ Total functions ›

theory Total_Fun
  imports Partial_Fun
begin

subsection ‹ Total function type and operations ›

text ‹ It may seem a little strange to create this, given we already have @{type fun}, but it's
 necessary to implement Z's type hierarchy.
›

typedef ('a, 'b) tfun = "{f :: 'a 🚫 'b. pdom(f) = UNIV}" 
  morphisms pfun_of_tfun Abs_tfun
  by (meson mem_Collect_eq pdom_pfun_entries)

type_notation tfun (infixr "→t" 0)

setup_lifting type_definition_tfun

lift_definition mk_tfun :: "('a → 'b) → ('a →t 'b)" is
"λ f. fun_pfun f" by simp

lemma pfun_of_tfun_mk_tfun [simp]: "pfun_of_tfun (mk_tfun f) = fun_pfun f"
  by (transfer, simp)

end

Messung V0.5 in Prozent
C=94 H=88 G=90

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-09-27) ¤

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