lean2/tests/lean/run/blast_safe_log_issue.lean

20 lines
676 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import data.real
open real
namespace safe
definition pos (x : ) := x > 0
constants (exp : )
constants (safe_log : Π (x : ), pos x → )
lemma pos_add {x y : } : pos x → pos y → pos (x + y) := sorry
lemma pos_mul {x y : } : pos x → pos y → pos (x * y) := sorry
lemma log_mul [simp] : ∀ (x y : ) (x_pos : pos x) (y_pos : pos y), safe_log (x * y) (pos_mul x_pos y_pos) = safe_log x x_pos + safe_log y y_pos := sorry
example (x y z w : )
(x_pos : pos x) (y_pos : pos y) (z_pos : pos z) (w_pos : pos w) :
x * y = z + w → safe_log (z + w) (pos_add z_pos w_pos) = safe_log x x_pos + safe_log y y_pos :=
by inst_simp
end safe