equal
deleted
inserted
replaced
373 |
373 |
374 subsection \<open>Powers with Hypernatural Exponents\<close> |
374 subsection \<open>Powers with Hypernatural Exponents\<close> |
375 |
375 |
376 text \<open>Hypernatural powers of hyperreals.\<close> |
376 text \<open>Hypernatural powers of hyperreals.\<close> |
377 definition pow :: "'a::power star \<Rightarrow> nat star \<Rightarrow> 'a star" (infixr "pow" 80) |
377 definition pow :: "'a::power star \<Rightarrow> nat star \<Rightarrow> 'a star" (infixr "pow" 80) |
378 where hyperpow_def [transfer_unfold]: "R pow N = ( *f2* op ^) R N" |
378 where hyperpow_def [transfer_unfold]: "R pow N = ( *f2* (^)) R N" |
379 |
379 |
380 lemma Standard_hyperpow [simp]: "r \<in> Standard \<Longrightarrow> n \<in> Standard \<Longrightarrow> r pow n \<in> Standard" |
380 lemma Standard_hyperpow [simp]: "r \<in> Standard \<Longrightarrow> n \<in> Standard \<Longrightarrow> r pow n \<in> Standard" |
381 by (simp add: hyperpow_def) |
381 by (simp add: hyperpow_def) |
382 |
382 |
383 lemma hyperpow: "star_n X pow star_n Y = star_n (\<lambda>n. X n ^ Y n)" |
383 lemma hyperpow: "star_n X pow star_n Y = star_n (\<lambda>n. X n ^ Y n)" |