Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/HOL/Library/   (Beweissystem Isabelle Version 2025-1©)  Datei vom 16.11.2025 mit Größe 1 kB image not shown  

Quelle  Function_Division.thy   Sprache: Isabelle

 
(*  Title:      HOL/Library/Function_Division.thy
    Author:     Florian Haftmann, TUM
*)


section Pointwise instantiation of functions to division

theory Function_Division
imports Function_Algebras
begin

subsection Syntactic with division

instantiation "fun" :: (type, inverse) inverse
begin

definition "inverse f = inverse \ f"

definition "f div g = (\x. f x / g x)"

instance ..

end

lemma inverse_fun_apply [simp]:
  "inverse f x = inverse (f x)"
  by (simp add: inverse_fun_def)

lemma divide_fun_apply [simp]:
  "(f / g) x = f x / g x"
  by (simp add: divide_fun_def)

text 
  Unfortunately, we cannot lift this operations to algebraic type
  classes for division: being different from the constant
  zero function 🍋 0 is too weak as precondition.
  So we must introduce our own set of lemmas.


abbreviation zero_free :: "('b \ 'a::field) \ bool" where
  "zero_free f \ \ (\x. f x = 0)"

lemma fun_left_inverse:
  fixes f :: "'b \ 'a::field"
  shows "zero_free f \ inverse f * f = 1"
  by (simp add: fun_eq_iff)

lemma fun_right_inverse:
  fixes f :: "'b \ 'a::field"
  shows "zero_free f \ f * inverse f = 1"
  by (simp add: fun_eq_iff)

lemma fun_divide_inverse:
  fixes f g :: "'b \ 'a::field"
  shows "f / g = f * inverse g"
  by (simp add: fun_eq_iff divide_inverse)

text Feel free to extend this.

text 
  Another possibility would be a reformulation of the division type
  classes to user a 🍋zero_free predicate rather than
  a direct 🍋 0 condition.


end

Messung V0.5
C=98 H=99 G=98

¤ 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.