Skip to content

Commit

Permalink
refactor(data/real/golden_ratio): simpler proof of gold_pos (#5910)
Browse files Browse the repository at this point in the history
13X smaller (pretty-printed) proof term

Co-authors: `lean-gptf`, Stanislas Polu
  • Loading branch information
Jesse Michael Han committed Jan 27, 2021
1 parent e9a1e2b commit 6eae630
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/data/real/golden_ratio.lean
Expand Up @@ -76,10 +76,7 @@ begin
end

lemma gold_pos : 0 < φ :=
begin
rw golden_ratio,
linarith [real.sqrt_nonneg 5]
end
mul_pos (by apply add_pos; norm_num) $ inv_pos.2 zero_lt_two

lemma gold_ne_zero : φ ≠ 0 := ne_of_gt gold_pos

Expand Down

0 comments on commit 6eae630

Please sign in to comment.