src/HOL/Hyperreal/HyperPow.thy
author paulson
Tue, 10 Feb 2004 12:02:11 +0100
changeset 14378 69c4d5997669
parent 14371 c78c7da09519
child 14387 e96d5c42c4b0
permissions -rw-r--r--
generic of_nat and of_int functions, and generalization of iszero and neg
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       : HyperPow.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
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     4
    Description : Powers theory for hyperreals
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     5
*)
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     6
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
     7
header{*Exponentials on the Hyperreals*}
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
     8
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
     9
theory HyperPow = HyperArith + HyperNat + RealPow:
10778
2c6605049646 more tidying, especially to remove real_of_posnat
paulson
parents: 10751
diff changeset
    10
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    11
instance hypreal :: power ..
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
consts hpowr :: "[hypreal,nat] => hypreal"  
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    14
primrec
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    15
   hpowr_0:   "r ^ 0       = (1::hypreal)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    16
   hpowr_Suc: "r ^ (Suc n) = (r::hypreal) * (r ^ n)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    17
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    18
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    19
instance hypreal :: ringpower
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    20
proof
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    21
  fix z :: hypreal
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    22
  fix n :: nat
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    23
  show "z^0 = 1" by simp
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    24
  show "z^(Suc n) = z * (z^n)" by simp
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    25
qed
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    26
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    27
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    28
consts
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    29
  "pow"  :: "[hypreal,hypnat] => hypreal"     (infixr 80)
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    30
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    31
defs
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
  (* hypernatural powers of hyperreals *)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    34
  hyperpow_def:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    35
  "(R::hypreal) pow (N::hypnat) ==
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    36
      Abs_hypreal(\<Union>X \<in> Rep_hypreal(R). \<Union>Y \<in> Rep_hypnat(N).
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    37
                        hyprel``{%n::nat. (X n) ^ (Y n)})"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    38
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    39
lemma hrealpow_two: "(r::hypreal) ^ Suc (Suc 0) = r * r"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    40
apply (simp (no_asm))
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    41
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    42
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    43
lemma hrabs_hrealpow_minus_one [simp]: "abs(-1 ^ n) = (1::hypreal)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
    44
by (simp add: power_abs)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    45
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    46
lemma hrealpow_two_le: "(0::hypreal) \<le> r ^ Suc (Suc 0)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
    47
by (auto simp add: zero_le_mult_iff)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    48
declare hrealpow_two_le [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    49
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    50
lemma hrealpow_two_le_add_order:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    51
     "(0::hypreal) \<le> u ^ Suc (Suc 0) + v ^ Suc (Suc 0)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    52
apply (simp only: hrealpow_two_le hypreal_le_add_order)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    53
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    54
declare hrealpow_two_le_add_order [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    55
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    56
lemma hrealpow_two_le_add_order2:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    57
     "(0::hypreal) \<le> u ^ Suc (Suc 0) + v ^ Suc (Suc 0) + w ^ Suc (Suc 0)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    58
apply (simp only: hrealpow_two_le hypreal_le_add_order)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    59
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    60
declare hrealpow_two_le_add_order2 [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    61
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    62
lemma hypreal_add_nonneg_eq_0_iff:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    63
     "[| 0 \<le> x; 0 \<le> y |] ==> (x+y = 0) = (x = 0 & y = (0::hypreal))"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    64
apply arith
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    65
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    66
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    67
text{*FIXME: DELETE THESE*}
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    68
lemma hypreal_three_squares_add_zero_iff:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    69
     "(x*x + y*y + z*z = 0) = (x = 0 & y = 0 & z = (0::hypreal))"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
    70
apply (simp only: zero_le_square hypreal_le_add_order hypreal_add_nonneg_eq_0_iff, auto)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    71
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    72
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    73
lemma hrealpow_three_squares_add_zero_iff [simp]:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    74
     "(x ^ Suc (Suc 0) + y ^ Suc (Suc 0) + z ^ Suc (Suc 0) = (0::hypreal)) = 
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    75
      (x = 0 & y = 0 & z = 0)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    76
by (simp only: hypreal_three_squares_add_zero_iff hrealpow_two)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    77
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    78
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    79
lemma hrabs_hrealpow_two [simp]:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    80
     "abs(x ^ Suc (Suc 0)) = (x::hypreal) ^ Suc (Suc 0)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    81
by (simp add: abs_mult)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    82
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    83
lemma two_hrealpow_ge_one [simp]: "(1::hypreal) \<le> 2 ^ n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    84
by (insert power_increasing [of 0 n "2::hypreal"], simp)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    85
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    86
lemma two_hrealpow_gt: "hypreal_of_nat n < 2 ^ n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    87
apply (induct_tac "n")
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    88
apply (auto simp add: hypreal_of_nat_Suc left_distrib)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
    89
apply (cut_tac n = n in two_hrealpow_ge_one, arith)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    90
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    91
declare two_hrealpow_gt [simp] 
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    92
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    93
lemma hrealpow_minus_one: "-1 ^ (2*n) = (1::hypreal)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
    94
by (induct_tac "n", auto)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    95
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    96
lemma double_lemma: "n+n = (2*n::nat)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
    97
by auto
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    98
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
    99
(*ugh: need to get rid fo the n+n*)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   100
lemma hrealpow_minus_one2: "-1 ^ (n + n) = (1::hypreal)"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   101
by (auto simp add: double_lemma hrealpow_minus_one)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   102
declare hrealpow_minus_one2 [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   103
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   104
lemma hrealpow:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   105
    "Abs_hypreal(hyprel``{%n. X n}) ^ m = Abs_hypreal(hyprel``{%n. (X n) ^ m})"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   106
apply (induct_tac "m")
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   107
apply (auto simp add: hypreal_one_def hypreal_mult)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   108
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   109
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   110
lemma hrealpow_sum_square_expand:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   111
     "(x + (y::hypreal)) ^ Suc (Suc 0) =
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   112
      x ^ Suc (Suc 0) + y ^ Suc (Suc 0) + (hypreal_of_nat (Suc (Suc 0)))*x*y"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   113
by (simp add: right_distrib left_distrib hypreal_of_nat_Suc)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   114
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   115
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   116
subsection{*Literal Arithmetic Involving Powers and Type @{typ hypreal}*}
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   117
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   118
lemma hypreal_of_real_power: "hypreal_of_real (x ^ n) = hypreal_of_real x ^ n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   119
apply (induct_tac "n")
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   120
apply (simp_all add: nat_mult_distrib)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   121
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   122
declare hypreal_of_real_power [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   123
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   124
lemma power_hypreal_of_real_number_of:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   125
     "(number_of v :: hypreal) ^ n = hypreal_of_real ((number_of v) ^ n)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   126
by (simp only: hypreal_number_of_def hypreal_of_real_power)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   127
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   128
declare power_hypreal_of_real_number_of [of _ "number_of w", standard, simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   129
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   130
lemma hrealpow_HFinite: "x \<in> HFinite ==> x ^ n \<in> HFinite"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   131
apply (induct_tac "n")
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   132
apply (auto intro: HFinite_mult)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   133
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   134
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   135
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   136
subsection{*Powers with Hypernatural Exponents*}
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   137
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   138
lemma hyperpow_congruent:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   139
     "congruent hyprel
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   140
     (%X Y. hyprel``{%n. ((X::nat=>real) n ^ (Y::nat=>nat) n)})"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   141
apply (unfold congruent_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   142
apply (auto intro!: ext, fuf+)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   143
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   144
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   145
lemma hyperpow:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   146
  "Abs_hypreal(hyprel``{%n. X n}) pow Abs_hypnat(hypnatrel``{%n. Y n}) =
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   147
   Abs_hypreal(hyprel``{%n. X n ^ Y n})"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   148
apply (unfold hyperpow_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   149
apply (rule_tac f = Abs_hypreal in arg_cong)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   150
apply (auto intro!: lemma_hyprel_refl bexI 
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   151
           simp add: hyprel_in_hypreal [THEN Abs_hypreal_inverse] equiv_hyprel 
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   152
                     hyperpow_congruent, fuf)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   153
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   154
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   155
lemma hyperpow_zero: "(0::hypreal) pow (n + (1::hypnat)) = 0"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   156
apply (unfold hypnat_one_def)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   157
apply (simp (no_asm) add: hypreal_zero_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   158
apply (rule_tac z = n in eq_Abs_hypnat)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   159
apply (auto simp add: hyperpow hypnat_add)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   160
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   161
declare hyperpow_zero [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   162
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   163
lemma hyperpow_not_zero [rule_format (no_asm)]:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   164
     "r \<noteq> (0::hypreal) --> r pow n \<noteq> 0"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   165
apply (simp (no_asm) add: hypreal_zero_def)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   166
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   167
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   168
apply (auto simp add: hyperpow)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   169
apply (drule FreeUltrafilterNat_Compl_mem, ultra)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   170
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   171
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   172
lemma hyperpow_inverse:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   173
     "r \<noteq> (0::hypreal) --> inverse(r pow n) = (inverse r) pow n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   174
apply (simp (no_asm) add: hypreal_zero_def)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   175
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   176
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   177
apply (auto dest!: FreeUltrafilterNat_Compl_mem simp add: hypreal_inverse hyperpow)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   178
apply (rule FreeUltrafilterNat_subset)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   179
apply (auto dest: realpow_not_zero intro: power_inverse)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   180
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   181
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   182
lemma hyperpow_hrabs: "abs r pow n = abs (r pow n)"
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   183
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   184
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   185
apply (auto simp add: hypreal_hrabs hyperpow power_abs [symmetric])
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   186
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   187
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   188
lemma hyperpow_add: "r pow (n + m) = (r pow n) * (r pow m)"
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   189
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   190
apply (rule eq_Abs_hypnat [of m])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   191
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   192
apply (auto simp add: hyperpow hypnat_add hypreal_mult power_add)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   193
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   194
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   195
lemma hyperpow_one: "r pow (1::hypnat) = r"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   196
apply (unfold hypnat_one_def)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   197
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   198
apply (auto simp add: hyperpow)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   199
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   200
declare hyperpow_one [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   201
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   202
lemma hyperpow_two:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   203
     "r pow ((1::hypnat) + (1::hypnat)) = r * r"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   204
apply (unfold hypnat_one_def)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   205
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   206
apply (auto simp add: hyperpow hypnat_add hypreal_mult)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   207
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   208
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   209
lemma hyperpow_gt_zero: "(0::hypreal) < r ==> 0 < r pow n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   210
apply (simp add: hypreal_zero_def)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   211
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   212
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   213
apply (auto elim!: FreeUltrafilterNat_subset zero_less_power
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   214
                   simp add: hyperpow hypreal_less hypreal_le)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   215
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   216
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   217
lemma hyperpow_ge_zero: "(0::hypreal) \<le> r ==> 0 \<le> r pow n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   218
apply (simp add: hypreal_zero_def)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   219
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   220
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   221
apply (auto elim!: FreeUltrafilterNat_subset zero_le_power 
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   222
            simp add: hyperpow hypreal_le)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   223
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   224
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   225
lemma hyperpow_le: "[|(0::hypreal) < x; x \<le> y|] ==> x pow n \<le> y pow n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   226
apply (simp add: hypreal_zero_def)
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   227
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   228
apply (rule eq_Abs_hypreal [of x])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   229
apply (rule eq_Abs_hypreal [of y])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   230
apply (auto simp add: hyperpow hypreal_le hypreal_less)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   231
apply (erule FreeUltrafilterNat_Int [THEN FreeUltrafilterNat_subset], assumption)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   232
apply (auto intro: power_mono)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   233
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   234
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   235
lemma hyperpow_eq_one: "1 pow n = (1::hypreal)"
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   236
apply (rule eq_Abs_hypnat [of n])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   237
apply (auto simp add: hypreal_one_def hyperpow)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   238
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   239
declare hyperpow_eq_one [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   240
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   241
lemma hrabs_hyperpow_minus_one: "abs(-1 pow n) = (1::hypreal)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   242
apply (subgoal_tac "abs ((- (1::hypreal)) pow n) = (1::hypreal) ")
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   243
apply simp
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   244
apply (rule eq_Abs_hypnat [of n])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   245
apply (auto simp add: hypreal_one_def hyperpow hypreal_minus hypreal_hrabs)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   246
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   247
declare hrabs_hyperpow_minus_one [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   248
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   249
lemma hyperpow_mult: "(r * s) pow n = (r pow n) * (s pow n)"
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   250
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   251
apply (rule eq_Abs_hypreal [of r])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   252
apply (rule eq_Abs_hypreal [of s])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   253
apply (auto simp add: hyperpow hypreal_mult power_mult_distrib)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   254
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   255
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   256
lemma hyperpow_two_le: "(0::hypreal) \<le> r pow ((1::hypnat) + (1::hypnat))"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   257
by (auto simp add: hyperpow_two zero_le_mult_iff)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   258
declare hyperpow_two_le [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   259
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   260
lemma hrabs_hyperpow_two [simp]: "abs(x pow (1 + 1)) = x pow (1 + 1)"
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   261
by (simp add: hrabs_def hyperpow_two_le)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   262
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   263
lemma hyperpow_two_hrabs:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   264
     "abs(x) pow (1 + 1)  = x pow (1 + 1)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   265
apply (simp add: hyperpow_hrabs)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   266
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   267
declare hyperpow_two_hrabs [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   268
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   269
lemma hyperpow_two_gt_one:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   270
     "(1::hypreal) < r ==> 1 < r pow (1 + 1)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   271
apply (auto simp add: hyperpow_two)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   272
apply (rule_tac y = "1*1" in order_le_less_trans)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   273
apply (rule_tac [2] hypreal_mult_less_mono, auto)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   274
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   275
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   276
lemma hyperpow_two_ge_one:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   277
     "(1::hypreal) \<le> r ==> 1 \<le> r pow (1 + 1)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   278
apply (auto dest!: order_le_imp_less_or_eq intro: hyperpow_two_gt_one order_less_imp_le)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   279
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   280
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   281
lemma two_hyperpow_ge_one: "(1::hypreal) \<le> 2 pow n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   282
apply (rule_tac y = "1 pow n" in order_trans)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   283
apply (rule_tac [2] hyperpow_le, auto)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   284
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   285
declare two_hyperpow_ge_one [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   286
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   287
lemma hyperpow_minus_one2:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   288
     "-1 pow ((1 + 1)*n) = (1::hypreal)"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   289
apply (subgoal_tac " (- ((1::hypreal))) pow ((1 + 1)*n) = (1::hypreal) ")
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   290
apply simp
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   291
apply (simp only: hypreal_one_def)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   292
apply (rule eq_Abs_hypnat [of n])
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   293
apply (auto simp add: double_lemma hyperpow hypnat_add hypreal_minus
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   294
                      left_distrib)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   295
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   296
declare hyperpow_minus_one2 [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   297
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   298
lemma hyperpow_less_le:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   299
     "[|(0::hypreal) \<le> r; r \<le> 1; n < N|] ==> r pow N \<le> r pow n"
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   300
apply (rule eq_Abs_hypnat [of n])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   301
apply (rule eq_Abs_hypnat [of N])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   302
apply (rule eq_Abs_hypreal [of r])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   303
apply (auto simp add: hyperpow hypreal_le hypreal_less hypnat_less 
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   304
            hypreal_zero_def hypreal_one_def)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   305
apply (erule FreeUltrafilterNat_Int [THEN FreeUltrafilterNat_subset])
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   306
apply (erule FreeUltrafilterNat_Int, assumption)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   307
apply (auto intro: power_decreasing)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   308
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   309
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   310
lemma hyperpow_SHNat_le:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   311
     "[| 0 \<le> r;  r \<le> (1::hypreal);  N \<in> HNatInfinite |]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   312
      ==> ALL n: Nats. r pow N \<le> r pow n"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   313
by (auto intro!: hyperpow_less_le simp add: HNatInfinite_iff)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   314
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   315
lemma hyperpow_realpow:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   316
      "(hypreal_of_real r) pow (hypnat_of_nat n) = hypreal_of_real (r ^ n)"
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   317
apply (simp add: hypreal_of_real_def hypnat_of_nat_eq hyperpow)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   318
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   319
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   320
lemma hyperpow_SReal: "(hypreal_of_real r) pow (hypnat_of_nat n) \<in> Reals"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   321
apply (unfold SReal_def)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   322
apply (simp (no_asm) del: hypreal_of_real_power add: hyperpow_realpow)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   323
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   324
declare hyperpow_SReal [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   325
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   326
lemma hyperpow_zero_HNatInfinite: "N \<in> HNatInfinite ==> (0::hypreal) pow N = 0"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   327
by (drule HNatInfinite_is_Suc, auto)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   328
declare hyperpow_zero_HNatInfinite [simp]
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   329
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   330
lemma hyperpow_le_le:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   331
     "[| (0::hypreal) \<le> r; r \<le> 1; n \<le> N |] ==> r pow N \<le> r pow n"
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   332
apply (drule order_le_less [of n, THEN iffD1])
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   333
apply (auto intro: hyperpow_less_le)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   334
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   335
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   336
lemma hyperpow_Suc_le_self2:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   337
     "[| (0::hypreal) \<le> r; r < 1 |] ==> r pow (n + (1::hypnat)) \<le> r"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   338
apply (drule_tac n = " (1::hypnat) " in hyperpow_le_le)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   339
apply auto
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   340
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   341
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   342
lemma lemma_Infinitesimal_hyperpow:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   343
     "[| x \<in> Infinitesimal; 0 < N |] ==> abs (x pow N) \<le> abs x"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   344
apply (unfold Infinitesimal_def)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   345
apply (auto intro!: hyperpow_Suc_le_self2 
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   346
          simp add: hyperpow_hrabs [symmetric] hypnat_gt_zero_iff2 abs_ge_zero)
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   347
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   349
lemma Infinitesimal_hyperpow:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   350
     "[| x \<in> Infinitesimal; 0 < N |] ==> x pow N \<in> Infinitesimal"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   351
apply (rule hrabs_le_Infinitesimal)
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   352
apply (rule_tac [2] lemma_Infinitesimal_hyperpow, auto)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   353
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   354
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   355
lemma hrealpow_hyperpow_Infinitesimal_iff:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   356
     "(x ^ n \<in> Infinitesimal) = (x pow (hypnat_of_nat n) \<in> Infinitesimal)"
14378
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   357
apply (rule eq_Abs_hypreal [of x])
69c4d5997669 generic of_nat and of_int functions, and generalization of iszero
paulson
parents: 14371
diff changeset
   358
apply (simp add: hrealpow hyperpow hypnat_of_nat_eq)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   359
done
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   360
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   361
lemma Infinitesimal_hrealpow:
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   362
     "[| x \<in> Infinitesimal; 0 < n |] ==> x ^ n \<in> Infinitesimal"
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   363
by (force intro!: Infinitesimal_hyperpow
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   364
          simp add: hrealpow_hyperpow_Infinitesimal_iff 
14371
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   365
                    hypnat_of_nat_less_iff [symmetric] hypnat_of_nat_zero
c78c7da09519 Conversion of HyperNat to Isar format and its declaration as a semiring
paulson
parents: 14348
diff changeset
   366
          simp del: hypnat_of_nat_less_iff)
14348
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   367
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   368
ML
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   369
{*
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   370
val hrealpow_two = thm "hrealpow_two";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   371
val hrabs_hrealpow_minus_one = thm "hrabs_hrealpow_minus_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   372
val hrealpow_two_le = thm "hrealpow_two_le";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   373
val hrealpow_two_le_add_order = thm "hrealpow_two_le_add_order";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   374
val hrealpow_two_le_add_order2 = thm "hrealpow_two_le_add_order2";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   375
val hypreal_add_nonneg_eq_0_iff = thm "hypreal_add_nonneg_eq_0_iff";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   376
val hypreal_three_squares_add_zero_iff = thm "hypreal_three_squares_add_zero_iff";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   377
val hrealpow_three_squares_add_zero_iff = thm "hrealpow_three_squares_add_zero_iff";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   378
val hrabs_hrealpow_two = thm "hrabs_hrealpow_two";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   379
val two_hrealpow_ge_one = thm "two_hrealpow_ge_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   380
val two_hrealpow_gt = thm "two_hrealpow_gt";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   381
val hrealpow_minus_one = thm "hrealpow_minus_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   382
val double_lemma = thm "double_lemma";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   383
val hrealpow_minus_one2 = thm "hrealpow_minus_one2";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   384
val hrealpow = thm "hrealpow";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   385
val hrealpow_sum_square_expand = thm "hrealpow_sum_square_expand";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   386
val hypreal_of_real_power = thm "hypreal_of_real_power";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   387
val power_hypreal_of_real_number_of = thm "power_hypreal_of_real_number_of";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   388
val hrealpow_HFinite = thm "hrealpow_HFinite";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   389
val hyperpow_congruent = thm "hyperpow_congruent";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   390
val hyperpow = thm "hyperpow";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   391
val hyperpow_zero = thm "hyperpow_zero";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   392
val hyperpow_not_zero = thm "hyperpow_not_zero";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   393
val hyperpow_inverse = thm "hyperpow_inverse";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   394
val hyperpow_hrabs = thm "hyperpow_hrabs";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   395
val hyperpow_add = thm "hyperpow_add";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   396
val hyperpow_one = thm "hyperpow_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   397
val hyperpow_two = thm "hyperpow_two";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   398
val hyperpow_gt_zero = thm "hyperpow_gt_zero";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   399
val hyperpow_ge_zero = thm "hyperpow_ge_zero";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   400
val hyperpow_le = thm "hyperpow_le";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   401
val hyperpow_eq_one = thm "hyperpow_eq_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   402
val hrabs_hyperpow_minus_one = thm "hrabs_hyperpow_minus_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   403
val hyperpow_mult = thm "hyperpow_mult";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   404
val hyperpow_two_le = thm "hyperpow_two_le";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   405
val hrabs_hyperpow_two = thm "hrabs_hyperpow_two";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   406
val hyperpow_two_hrabs = thm "hyperpow_two_hrabs";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   407
val hyperpow_two_gt_one = thm "hyperpow_two_gt_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   408
val hyperpow_two_ge_one = thm "hyperpow_two_ge_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   409
val two_hyperpow_ge_one = thm "two_hyperpow_ge_one";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   410
val hyperpow_minus_one2 = thm "hyperpow_minus_one2";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   411
val hyperpow_less_le = thm "hyperpow_less_le";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   412
val hyperpow_SHNat_le = thm "hyperpow_SHNat_le";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   413
val hyperpow_realpow = thm "hyperpow_realpow";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   414
val hyperpow_SReal = thm "hyperpow_SReal";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   415
val hyperpow_zero_HNatInfinite = thm "hyperpow_zero_HNatInfinite";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   416
val hyperpow_le_le = thm "hyperpow_le_le";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   417
val hyperpow_Suc_le_self2 = thm "hyperpow_Suc_le_self2";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   418
val lemma_Infinitesimal_hyperpow = thm "lemma_Infinitesimal_hyperpow";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   419
val Infinitesimal_hyperpow = thm "Infinitesimal_hyperpow";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   420
val hrealpow_hyperpow_Infinitesimal_iff = thm "hrealpow_hyperpow_Infinitesimal_iff";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   421
val Infinitesimal_hrealpow = thm "Infinitesimal_hrealpow";
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   422
*}
744c868ee0b7 Defining the type class "ringpower" and deleting superseded theorems for
paulson
parents: 11713
diff changeset
   423
10751
a81ea5d3dd41 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
   424
end