src/HOL/Hyperreal/Star.thy
author nipkow
Mon, 16 Aug 2004 14:22:27 +0200
changeset 15131 c69542757a4d
parent 15003 6145dd7538d7
child 15140 322485b816ac
permissions -rw-r--r--
New theory header syntax.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     1
(*  Title       : Star.thy
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     2
    Author      : Jacques D. Fleuriot
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     3
    Copyright   : 1998  University of Cambridge
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
     4
    Conversion to Isar and new proofs by Lawrence C Paulson, 2003/4
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
     5
*)
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     6
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
     7
header{*Star-Transforms in Non-Standard Analysis*}
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
     8
15131
c69542757a4d New theory header syntax.
nipkow
parents: 15003
diff changeset
     9
theory Star
c69542757a4d New theory header syntax.
nipkow
parents: 15003
diff changeset
    10
import NSA
c69542757a4d New theory header syntax.
nipkow
parents: 15003
diff changeset
    11
begin
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    12
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    13
constdefs
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    14
    (* nonstandard extension of sets *)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    15
    starset :: "real set => hypreal set"          ("*s* _" [80] 80)
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    16
    "*s* A  == {x. \<forall>X \<in> Rep_hypreal(x). {n::nat. X n  \<in> A}: FreeUltrafilterNat}"
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    17
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    18
    (* internal sets *)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    19
    starset_n :: "(nat => real set) => hypreal set"        ("*sn* _" [80] 80)
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    20
    "*sn* As  == {x. \<forall>X \<in> Rep_hypreal(x). {n::nat. X n : (As n)}: FreeUltrafilterNat}"
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    21
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    22
    InternalSets :: "hypreal set set"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    23
    "InternalSets == {X. \<exists>As. X = *sn* As}"
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    24
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    25
    (* nonstandard extension of function *)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    26
    is_starext  :: "[hypreal => hypreal, real => real] => bool"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    27
    "is_starext F f == (\<forall>x y. \<exists>X \<in> Rep_hypreal(x). \<exists>Y \<in> Rep_hypreal(y).
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    28
                        ((y = (F x)) = ({n. Y n = f(X n)} : FreeUltrafilterNat)))"
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    29
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    30
    starfun :: "(real => real) => hypreal => hypreal"       ("*f* _" [80] 80)
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    31
    "*f* f  == (%x. Abs_hypreal(\<Union>X \<in> Rep_hypreal(x). hyprel``{%n. f(X n)}))"
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    32
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    33
    (* internal functions *)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    34
    starfun_n :: "(nat => (real => real)) => hypreal => hypreal"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    35
                 ("*fn* _" [80] 80)
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    36
    "*fn* F  == (%x. Abs_hypreal(\<Union>X \<in> Rep_hypreal(x). hyprel``{%n. (F n)(X n)}))"
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    37
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    38
    InternalFuns :: "(hypreal => hypreal) set"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    39
    "InternalFuns == {X. \<exists>F. X = *fn* F}"
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    40
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    41
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    42
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    43
(*--------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    44
   Preamble - Pulling "EX" over "ALL"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    45
 ---------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    46
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    47
(* This proof does not need AC and was suggested by the
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    48
   referee for the JCM Paper: let f(x) be least y such
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    49
   that  Q(x,y)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    50
*)
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    51
lemma no_choice: "\<forall>x. \<exists>y. Q x y ==> \<exists>(f :: nat => nat). \<forall>x. Q x (f x)"
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    52
apply (rule_tac x = "%x. LEAST y. Q x y" in exI)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    53
apply (blast intro: LeastI)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    54
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    55
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    56
(*------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    57
    Properties of the *-transform applied to sets of reals
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    58
 ------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    59
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    60
lemma STAR_real_set: "*s*(UNIV::real set) = (UNIV::hypreal set)"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    61
by (simp add: starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    62
declare STAR_real_set [simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    63
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    64
lemma STAR_empty_set: "*s* {} = {}"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    65
by (simp add: starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    66
declare STAR_empty_set [simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    67
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    68
lemma STAR_Un: "*s* (A Un B) = *s* A Un *s* B"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    69
apply (auto simp add: starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    70
  prefer 3 apply (blast intro: FreeUltrafilterNat_subset)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    71
 prefer 2 apply (blast intro: FreeUltrafilterNat_subset)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    72
apply (drule FreeUltrafilterNat_Compl_mem)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
    73
apply (drule bspec, assumption)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
    74
apply (rule_tac z = x in eq_Abs_hypreal, auto, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    75
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    76
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    77
lemma STAR_Int: "*s* (A Int B) = *s* A Int *s* B"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    78
apply (simp add: starset_def, auto)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    79
prefer 3 apply (blast intro: FreeUltrafilterNat_Int FreeUltrafilterNat_subset)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    80
apply (blast intro: FreeUltrafilterNat_subset)+
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    81
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    82
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    83
lemma STAR_Compl: "*s* -A = -( *s* A)"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    84
apply (auto simp add: starset_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
    85
apply (rule_tac [!] z = x in eq_Abs_hypreal)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
    86
apply (auto dest!: bspec, ultra)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
    87
apply (drule FreeUltrafilterNat_Compl_mem, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    88
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    89
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    90
lemma STAR_mem_Compl: "x \<notin> *s* F ==> x : *s* (- F)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
    91
by (auto simp add: STAR_Compl)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    92
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    93
lemma STAR_diff: "*s* (A - B) = *s* A - *s* B"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
    94
by (auto simp add: Diff_eq STAR_Int STAR_Compl)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    95
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    96
lemma STAR_subset: "A <= B ==> *s* A <= *s* B"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
    97
apply (simp add: starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    98
apply (blast intro: FreeUltrafilterNat_subset)+
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
    99
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   100
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   101
lemma STAR_mem: "a  \<in> A ==> hypreal_of_real a : *s* A"
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   102
apply (simp add: starset_def hypreal_of_real_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   103
apply (auto intro: FreeUltrafilterNat_subset)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   104
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   105
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   106
lemma STAR_hypreal_of_real_image_subset: "hypreal_of_real ` A <= *s* A"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   107
apply (simp add: starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   108
apply (auto simp add: hypreal_of_real_def)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   109
apply (blast intro: FreeUltrafilterNat_subset)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   110
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   111
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   112
lemma STAR_hypreal_of_real_Int: "*s* X Int Reals = hypreal_of_real ` X"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   113
apply (simp add: starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   114
apply (auto simp add: hypreal_of_real_def SReal_def)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   115
apply (simp add: hypreal_of_real_def [symmetric])
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   116
apply (rule imageI, rule ccontr)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   117
apply (drule bspec)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   118
apply (rule lemma_hyprel_refl)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   119
prefer 2 apply (blast intro: FreeUltrafilterNat_subset, auto)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   120
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   121
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   122
lemma lemma_not_hyprealA: "x \<notin> hypreal_of_real ` A ==> \<forall>y \<in> A. x \<noteq> hypreal_of_real y"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   123
by auto
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   124
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   125
lemma lemma_Compl_eq: "- {n. X n = xa} = {n. X n \<noteq> xa}"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   126
by auto
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   127
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   128
lemma STAR_real_seq_to_hypreal:
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   129
    "\<forall>n. (X n) \<notin> M
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   130
          ==> Abs_hypreal(hyprel``{X}) \<notin> *s* M"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   131
apply (simp add: starset_def)
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   132
apply (rule bexI, rule_tac [2] lemma_hyprel_refl, auto)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   133
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   134
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   135
lemma STAR_singleton: "*s* {x} = {hypreal_of_real x}"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   136
apply (simp add: starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   137
apply (auto simp add: hypreal_of_real_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   138
apply (rule_tac z = xa in eq_Abs_hypreal)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   139
apply (auto intro: FreeUltrafilterNat_subset)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   140
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   141
declare STAR_singleton [simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   142
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   143
lemma STAR_not_mem: "x \<notin> F ==> hypreal_of_real x \<notin> *s* F"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   144
apply (auto simp add: starset_def hypreal_of_real_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   145
apply (rule bexI, rule_tac [2] lemma_hyprel_refl, auto)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   146
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   147
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   148
lemma STAR_subset_closed: "[| x : *s* A; A <= B |] ==> x : *s* B"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   149
by (blast dest: STAR_subset)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   150
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   151
(*------------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   152
   Nonstandard extension of a set (defined using a constant
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   153
   sequence) as a special case of an internal set
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   154
 -----------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   155
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   156
lemma starset_n_starset: "\<forall>n. (As n = A) ==> *sn* As = *s* A"
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   157
by (simp add: starset_n_def starset_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   158
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   159
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   160
(*----------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   161
(* Theorems about nonstandard extensions of functions             *)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   162
(*----------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   163
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   164
(*----------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   165
(* Nonstandard extension of a function (defined using a           *)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   166
(* constant sequence) as a special case of an internal function   *)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   167
(*----------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   168
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   169
lemma starfun_n_starfun: "\<forall>n. (F n = f) ==> *fn* F = *f* f"
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   170
by (simp add: starfun_n_def starfun_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   171
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   172
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   173
(*
15003
6145dd7538d7 replaced monomorphic abs definitions by abs_if
paulson
parents: 14477
diff changeset
   174
   Prove that abs for hypreal is a nonstandard extension of abs for real w/o
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   175
   use of congruence property (proved after this for general
15003
6145dd7538d7 replaced monomorphic abs definitions by abs_if
paulson
parents: 14477
diff changeset
   176
   nonstandard extensions of real valued functions). 
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   177
15003
6145dd7538d7 replaced monomorphic abs definitions by abs_if
paulson
parents: 14477
diff changeset
   178
   Proof now Uses the ultrafilter tactic!
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   179
*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   180
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   181
lemma hrabs_is_starext_rabs: "is_starext abs abs"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   182
apply (simp add: is_starext_def, safe)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   183
apply (rule_tac z = x in eq_Abs_hypreal)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   184
apply (rule_tac z = y in eq_Abs_hypreal, auto)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   185
apply (rule bexI, rule_tac [2] lemma_hyprel_refl)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   186
apply (rule bexI, rule_tac [2] lemma_hyprel_refl)
15003
6145dd7538d7 replaced monomorphic abs definitions by abs_if
paulson
parents: 14477
diff changeset
   187
apply (auto dest!: spec 
6145dd7538d7 replaced monomorphic abs definitions by abs_if
paulson
parents: 14477
diff changeset
   188
            simp add: hypreal_minus abs_if hypreal_zero_def
6145dd7538d7 replaced monomorphic abs definitions by abs_if
paulson
parents: 14477
diff changeset
   189
                  hypreal_le hypreal_less)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   190
apply (arith | ultra)+
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   191
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   192
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   193
lemma Rep_hypreal_FreeUltrafilterNat:
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   194
     "[| X \<in> Rep_hypreal z; Y \<in> Rep_hypreal z |]
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   195
      ==> {n. X n = Y n} : FreeUltrafilterNat"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   196
apply (cases z)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   197
apply (auto, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   198
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   199
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   200
(*-----------------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   201
    Nonstandard extension of functions- congruence
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   202
 -----------------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   203
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   204
lemma starfun_congruent: "congruent hyprel (%X. hyprel``{%n. f (X n)})"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   205
by (simp add: congruent_def, auto, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   206
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   207
lemma starfun:
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   208
      "( *f* f) (Abs_hypreal(hyprel``{%n. X n})) =
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   209
       Abs_hypreal(hyprel `` {%n. f (X n)})"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   210
apply (simp add: starfun_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   211
apply (rule_tac f = Abs_hypreal in arg_cong)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   212
apply (simp add: hyprel_in_hypreal [THEN Abs_hypreal_inverse] 
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   213
                 UN_equiv_class [OF equiv_hyprel starfun_congruent])
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   214
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   215
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   216
lemma starfun_if_eq:
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   217
     "w \<noteq> hypreal_of_real x
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   218
       ==> ( *f* (\<lambda>z. if z = x then a else g z)) w = ( *f* g) w" 
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   219
apply (cases w) 
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   220
apply (simp add: hypreal_of_real_def starfun, ultra)
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   221
done
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   222
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   223
(*-------------------------------------------
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   224
  multiplication: ( *f) x ( *g) = *(f x g)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   225
 ------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   226
lemma starfun_mult: "( *f* f) xa * ( *f* g) xa = ( *f* (%x. f x * g x)) xa"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   227
by (cases xa, simp add: starfun hypreal_mult)
15003
6145dd7538d7 replaced monomorphic abs definitions by abs_if
paulson
parents: 14477
diff changeset
   228
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   229
declare starfun_mult [symmetric, simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   230
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   231
(*---------------------------------------
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   232
  addition: ( *f) + ( *g) = *(f + g)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   233
 ---------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   234
lemma starfun_add: "( *f* f) xa + ( *f* g) xa = ( *f* (%x. f x + g x)) xa"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   235
by (cases xa, simp add: starfun hypreal_add)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   236
declare starfun_add [symmetric, simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   237
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   238
(*--------------------------------------------
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   239
  subtraction: ( *f) + -( *g) = *(f + -g)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   240
 -------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   241
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   242
lemma starfun_minus: "- ( *f* f) x = ( *f* (%x. - f x)) x"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   243
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   244
apply (auto simp add: starfun hypreal_minus)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   245
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   246
declare starfun_minus [symmetric, simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   247
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   248
(*FIXME: delete*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   249
lemma starfun_add_minus: "( *f* f) xa + -( *f* g) xa = ( *f* (%x. f x + -g x)) xa"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   250
apply (simp (no_asm))
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   251
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   252
declare starfun_add_minus [symmetric, simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   253
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   254
lemma starfun_diff:
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   255
  "( *f* f) xa  - ( *f* g) xa = ( *f* (%x. f x - g x)) xa"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   256
apply (simp add: diff_minus)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   257
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   258
declare starfun_diff [symmetric, simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   259
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   260
(*--------------------------------------
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   261
  composition: ( *f) o ( *g) = *(f o g)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   262
 ---------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   263
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   264
lemma starfun_o2: "(%x. ( *f* f) (( *f* g) x)) = *f* (%x. f (g x))"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   265
apply (rule ext)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   266
apply (rule_tac z = x in eq_Abs_hypreal)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   267
apply (auto simp add: starfun)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   268
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   269
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   270
lemma starfun_o: "( *f* f) o ( *f* g) = ( *f* (f o g))"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   271
apply (simp add: o_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   272
apply (simp (no_asm) add: starfun_o2)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   273
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   274
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   275
(*--------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   276
  NS extension of constant function
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   277
 --------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   278
lemma starfun_const_fun: "( *f* (%x. k)) xa = hypreal_of_real  k"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   279
apply (cases xa)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   280
apply (auto simp add: starfun hypreal_of_real_def)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   281
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   282
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   283
declare starfun_const_fun [simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   284
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   285
(*----------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   286
   the NS extension of the identity function
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   287
 ----------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   288
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   289
lemma starfun_Idfun_approx: "x @= hypreal_of_real a ==> ( *f* (%x. x)) x @= hypreal_of_real  a"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   290
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   291
apply (auto simp add: starfun)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   292
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   293
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   294
lemma starfun_Id: "( *f* (%x. x)) x = x"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   295
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   296
apply (auto simp add: starfun)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   297
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   298
declare starfun_Id [simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   299
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   300
(*----------------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   301
      the *-function is a (nonstandard) extension of the function
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   302
 ----------------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   303
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   304
lemma is_starext_starfun: "is_starext ( *f* f) f"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   305
apply (simp add: is_starext_def, auto)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   306
apply (rule_tac z = x in eq_Abs_hypreal)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   307
apply (rule_tac z = y in eq_Abs_hypreal)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   308
apply (auto intro!: bexI simp add: starfun)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   309
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   310
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   311
(*----------------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   312
     Any nonstandard extension is in fact the *-function
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   313
 ----------------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   314
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   315
lemma is_starfun_starext: "is_starext F f ==> F = *f* f"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   316
apply (simp add: is_starext_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   317
apply (rule ext)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   318
apply (rule_tac z = x in eq_Abs_hypreal)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   319
apply (drule_tac x = x in spec)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   320
apply (drule_tac x = "( *f* f) x" in spec)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   321
apply (auto dest!: FreeUltrafilterNat_Compl_mem simp add: starfun, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   322
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   323
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   324
lemma is_starext_starfun_iff: "(is_starext F f) = (F = *f* f)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   325
by (blast intro: is_starfun_starext is_starext_starfun)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   326
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   327
(*--------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   328
   extented function has same solution as its standard
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   329
   version for real arguments. i.e they are the same
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   330
   for all real arguments
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   331
 -------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   332
lemma starfun_eq: "( *f* f) (hypreal_of_real a) = hypreal_of_real (f a)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   333
by (auto simp add: starfun hypreal_of_real_def)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   334
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   335
declare starfun_eq [simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   336
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   337
lemma starfun_approx: "( *f* f) (hypreal_of_real a) @= hypreal_of_real (f a)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   338
by auto
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   339
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   340
(* useful for NS definition of derivatives *)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   341
lemma starfun_lambda_cancel: "( *f* (%h. f (x + h))) xa  = ( *f* f) (hypreal_of_real  x + xa)"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   342
apply (cases xa)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   343
apply (auto simp add: starfun hypreal_of_real_def hypreal_add)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   344
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   345
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   346
lemma starfun_lambda_cancel2: "( *f* (%h. f(g(x + h)))) xa = ( *f* (f o g)) (hypreal_of_real x + xa)"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   347
apply (cases xa)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   348
apply (auto simp add: starfun hypreal_of_real_def hypreal_add)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   349
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   350
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   351
lemma starfun_mult_HFinite_approx: "[| ( *f* f) xa @= l; ( *f* g) xa @= m;
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   352
                  l: HFinite; m: HFinite
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   353
               |] ==>  ( *f* (%x. f x * g x)) xa @= l * m"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   354
apply (drule approx_mult_HFinite, assumption+)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   355
apply (auto intro: approx_HFinite [OF _ approx_sym])
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   356
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   357
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   358
lemma starfun_add_approx: "[| ( *f* f) xa @= l; ( *f* g) xa @= m
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   359
               |] ==>  ( *f* (%x. f x + g x)) xa @= l + m"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   360
apply (auto intro: approx_add)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   361
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   362
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   363
(*----------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   364
    Examples: hrabs is nonstandard extension of rabs
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   365
              inverse is nonstandard extension of inverse
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   366
 ---------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   367
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   368
(* can be proved easily using theorem "starfun" and *)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   369
(* properties of ultrafilter as for inverse below we  *)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   370
(* use the theorem we proved above instead          *)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   371
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   372
lemma starfun_rabs_hrabs: "*f* abs = abs"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   373
by (rule hrabs_is_starext_rabs [THEN is_starext_starfun_iff [THEN iffD1], symmetric])
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   374
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   375
lemma starfun_inverse_inverse: "( *f* inverse) x = inverse(x)"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   376
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   377
apply (auto simp add: starfun hypreal_inverse hypreal_zero_def)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   378
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   379
declare starfun_inverse_inverse [simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   380
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   381
lemma starfun_inverse: "inverse (( *f* f) x) = ( *f* (%x. inverse (f x))) x"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   382
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   383
apply (auto simp add: starfun hypreal_inverse)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   384
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   385
declare starfun_inverse [symmetric, simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   386
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   387
lemma starfun_divide: "( *f* f) xa  / ( *f* g) xa = ( *f* (%x. f x / g x)) xa"
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   388
by (simp add: divide_inverse)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   389
declare starfun_divide [symmetric, simp]
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   390
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   391
lemma starfun_inverse2: "inverse (( *f* f) x) = ( *f* (%x. inverse (f x))) x"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   392
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   393
apply (auto intro: FreeUltrafilterNat_subset dest!: FreeUltrafilterNat_Compl_mem simp add: starfun hypreal_inverse hypreal_zero_def)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   394
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   395
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   396
(*-------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   397
    General lemma/theorem needed for proofs in elementary
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   398
    topology of the reals
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   399
 ------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   400
lemma starfun_mem_starset:
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   401
      "( *f* f) x : *s* A ==> x : *s* {x. f x  \<in> A}"
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   402
apply (simp add: starset_def)
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   403
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   404
apply (auto simp add: starfun)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   405
apply (rename_tac "X")
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   406
apply (drule_tac x = "%n. f (X n) " in bspec)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   407
apply (auto, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   408
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   409
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   410
(*------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   411
   Alternative definition for hrabs with rabs function
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   412
   applied entrywise to equivalence class representative.
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   413
   This is easily proved using starfun and ns extension thm
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   414
 ------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   415
lemma hypreal_hrabs: "abs (Abs_hypreal (hyprel `` {X})) =
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   416
                  Abs_hypreal(hyprel `` {%n. abs (X n)})"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   417
apply (simp (no_asm) add: starfun_rabs_hrabs [symmetric] starfun)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   418
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   419
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   420
(*----------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   421
   nonstandard extension of set through nonstandard extension
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   422
   of rabs function i.e hrabs. A more general result should be
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   423
   where we replace rabs by some arbitrary function f and hrabs
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   424
   by its NS extenson ( *f* f). See second NS set extension below.
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   425
 ----------------------------------------------------------------*)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   426
lemma STAR_rabs_add_minus:
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   427
   "*s* {x. abs (x + - y) < r} =
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   428
     {x. abs(x + -hypreal_of_real y) < hypreal_of_real r}"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   429
apply (simp add: starset_def, safe)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   430
apply (rule_tac [!] z = x in eq_Abs_hypreal)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   431
apply (auto intro!: exI dest!: bspec simp add: hypreal_minus hypreal_of_real_def hypreal_add hypreal_hrabs hypreal_less, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   432
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   433
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   434
lemma STAR_starfun_rabs_add_minus:
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   435
  "*s* {x. abs (f x + - y) < r} =
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   436
       {x. abs(( *f* f) x + -hypreal_of_real y) < hypreal_of_real r}"
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   437
apply (simp add: starset_def, safe)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   438
apply (rule_tac [!] z = x in eq_Abs_hypreal)
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   439
apply (auto intro!: exI dest!: bspec simp add: hypreal_minus hypreal_of_real_def hypreal_add hypreal_hrabs hypreal_less starfun, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   440
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   441
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   442
(*-------------------------------------------------------------------
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   443
   Another characterization of Infinitesimal and one of @= relation.
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   444
   In this theory since hypreal_hrabs proved here. (To Check:) Maybe
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   445
   move both if possible?
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   446
 -------------------------------------------------------------------*)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   447
lemma Infinitesimal_FreeUltrafilterNat_iff2:
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   448
     "(x \<in> Infinitesimal) =
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   449
      (\<exists>X \<in> Rep_hypreal(x).
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   450
        \<forall>m. {n. abs(X n) < inverse(real(Suc m))}
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   451
                \<in>  FreeUltrafilterNat)"
14477
cc61fd03e589 conversion of Hyperreal/Lim to new-style
paulson
parents: 14468
diff changeset
   452
apply (cases x)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   453
apply (auto intro!: bexI lemma_hyprel_refl 
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   454
            simp add: Infinitesimal_hypreal_of_nat_iff hypreal_of_real_def
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   455
     hypreal_inverse hypreal_hrabs hypreal_less hypreal_of_nat_eq)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   456
apply (drule_tac x = n in spec, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   457
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   458
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   459
lemma approx_FreeUltrafilterNat_iff: "(Abs_hypreal(hyprel``{X}) @= Abs_hypreal(hyprel``{Y})) =
14468
6be497cacab5 heavy tidying
paulson
parents: 14378
diff changeset
   460
      (\<forall>m. {n. abs (X n + - Y n) <
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   461
                  inverse(real(Suc m))} : FreeUltrafilterNat)"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   462
apply (subst approx_minus_iff)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   463
apply (rule mem_infmal_iff [THEN subst])
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   464
apply (auto simp add: hypreal_minus hypreal_add Infinitesimal_FreeUltrafilterNat_iff2)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   465
apply (drule_tac x = m in spec, ultra)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   466
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   467
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   468
lemma inj_starfun: "inj starfun"
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   469
apply (rule inj_onI)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14370
diff changeset
   470
apply (rule ext, rule ccontr)
14370
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   471
apply (drule_tac x = "Abs_hypreal (hyprel ``{%n. xa}) " in fun_cong)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   472
apply (auto simp add: starfun)
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   473
done
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   474
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   475
ML
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   476
{*
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   477
val starset_def = thm"starset_def";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   478
val starset_n_def = thm"starset_n_def";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   479
val InternalSets_def = thm"InternalSets_def";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   480
val is_starext_def = thm"is_starext_def";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   481
val starfun_def = thm"starfun_def";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   482
val starfun_n_def = thm"starfun_n_def";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   483
val InternalFuns_def = thm"InternalFuns_def";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   484
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   485
val no_choice = thm "no_choice";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   486
val STAR_real_set = thm "STAR_real_set";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   487
val STAR_empty_set = thm "STAR_empty_set";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   488
val STAR_Un = thm "STAR_Un";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   489
val STAR_Int = thm "STAR_Int";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   490
val STAR_Compl = thm "STAR_Compl";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   491
val STAR_mem_Compl = thm "STAR_mem_Compl";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   492
val STAR_diff = thm "STAR_diff";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   493
val STAR_subset = thm "STAR_subset";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   494
val STAR_mem = thm "STAR_mem";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   495
val STAR_hypreal_of_real_image_subset = thm "STAR_hypreal_of_real_image_subset";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   496
val STAR_hypreal_of_real_Int = thm "STAR_hypreal_of_real_Int";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   497
val STAR_real_seq_to_hypreal = thm "STAR_real_seq_to_hypreal";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   498
val STAR_singleton = thm "STAR_singleton";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   499
val STAR_not_mem = thm "STAR_not_mem";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   500
val STAR_subset_closed = thm "STAR_subset_closed";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   501
val starset_n_starset = thm "starset_n_starset";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   502
val starfun_n_starfun = thm "starfun_n_starfun";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   503
val hrabs_is_starext_rabs = thm "hrabs_is_starext_rabs";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   504
val Rep_hypreal_FreeUltrafilterNat = thm "Rep_hypreal_FreeUltrafilterNat";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   505
val starfun_congruent = thm "starfun_congruent";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   506
val starfun = thm "starfun";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   507
val starfun_mult = thm "starfun_mult";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   508
val starfun_add = thm "starfun_add";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   509
val starfun_minus = thm "starfun_minus";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   510
val starfun_add_minus = thm "starfun_add_minus";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   511
val starfun_diff = thm "starfun_diff";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   512
val starfun_o2 = thm "starfun_o2";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   513
val starfun_o = thm "starfun_o";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   514
val starfun_const_fun = thm "starfun_const_fun";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   515
val starfun_Idfun_approx = thm "starfun_Idfun_approx";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   516
val starfun_Id = thm "starfun_Id";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   517
val is_starext_starfun = thm "is_starext_starfun";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   518
val is_starfun_starext = thm "is_starfun_starext";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   519
val is_starext_starfun_iff = thm "is_starext_starfun_iff";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   520
val starfun_eq = thm "starfun_eq";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   521
val starfun_approx = thm "starfun_approx";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   522
val starfun_lambda_cancel = thm "starfun_lambda_cancel";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   523
val starfun_lambda_cancel2 = thm "starfun_lambda_cancel2";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   524
val starfun_mult_HFinite_approx = thm "starfun_mult_HFinite_approx";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   525
val starfun_add_approx = thm "starfun_add_approx";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   526
val starfun_rabs_hrabs = thm "starfun_rabs_hrabs";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   527
val starfun_inverse_inverse = thm "starfun_inverse_inverse";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   528
val starfun_inverse = thm "starfun_inverse";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   529
val starfun_divide = thm "starfun_divide";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   530
val starfun_inverse2 = thm "starfun_inverse2";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   531
val starfun_mem_starset = thm "starfun_mem_starset";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   532
val hypreal_hrabs = thm "hypreal_hrabs";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   533
val STAR_rabs_add_minus = thm "STAR_rabs_add_minus";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   534
val STAR_starfun_rabs_add_minus = thm "STAR_starfun_rabs_add_minus";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   535
val Infinitesimal_FreeUltrafilterNat_iff2 = thm "Infinitesimal_FreeUltrafilterNat_iff2";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   536
val approx_FreeUltrafilterNat_iff = thm "approx_FreeUltrafilterNat_iff";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   537
val inj_starfun = thm "inj_starfun";
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   538
*}
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   539
b0064703967b simplifications in the hyperreals
paulson
parents: 10834
diff changeset
   540
end