File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 66
77### Changed
88
9+ - in ` pi_irrational ` :
10+ + definition ` rational `
11+
912### Renamed
1013
1114- in ` kernel.v ` :
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ exact/continuous_horner.
2929Qed .
3030
3131(* TODO: move somewhere to classical *)
32- Definition rational {R : realType} (x : R) := exists m n, x = (m%:R / n%:R)%R.
32+ Definition rational {R : realType} (x : R) := exists m n, x = (m%:~ R / n%:R)%R.
3333
3434Module pi_irrational.
3535Local Open Scope ring_scope.
@@ -411,6 +411,10 @@ Lemma pi_irrationnal {R : realType} : ~ rational (pi : R).
411411Proof .
412412move=> [a [b]]; have [->|b0 piratE] := eqVneq b O.
413413 by rewrite invr0 mulr0; apply/eqP; rewrite gt_eqF// pi_gt0.
414+ have [na ana] : exists na, (a%:~R = na %:R :> R)%R.
415+ exists `|a|; rewrite natr_absz gtr0_norm//.
416+ by have := @pi_gt0 R; rewrite piratE pmulr_lgt0 ?invr_gt0 ?ltr0n ?lt0n// ltr0z.
417+ rewrite {}ana in piratE.
414418have [N _] := pi_irrational.intfsin_small b0 (esym piratE) (@ltr01 R).
415419near \oo%classic => n.
416420have Nn : (N <= n)%N by near: n; exists N.
You can’t perform that action at this time.
0 commit comments