Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 74f6e95

Browse files
committed
feat(data/real/ennreal): make of_real_sub easier to rewrite with (#16621)
A tiny edit to make this lemma more general for the purpose of rewriting - previously `q` was only for `nnreal` (even though it had the assumption of nonnegativity). Co-authored-by: Bhavik Mehta <bm489@cam.ac.uk>
1 parent 868ee2c commit 74f6e95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/data/real/ennreal.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ eq_comm.trans of_real_eq_zero
16031603

16041604
alias of_real_eq_zero ↔ _ of_real_of_nonpos
16051605

1606-
lemma of_real_sub (p : ℝ) (hq : 0 ≤ q) :
1606+
lemma of_real_sub (p : ℝ) {q : ℝ} (hq : 0 ≤ q) :
16071607
ennreal.of_real (p - q) = ennreal.of_real p - ennreal.of_real q :=
16081608
begin
16091609
obtain h | h := le_total p q,

0 commit comments

Comments
 (0)