Commit 2021-10-07 15:09 8a60fd75
View on Github →refactor(data/ennreal/basic): prove has_ordered_sub instance (#9582)
- Give has_subandhas_ordered_subinstances onwith_top α.
- This gives a new subtraction on ennreal. The lemmaennreal.sub_eq_Infproves that it is equal to the old value.
- Simplify many proofs about subonennreal
- Proofs that are instantiations of more general lemmas will be removed in a subsequent PR
- Many lemmas that require add_le_cancellablein general are reformulated using≠ ∞
- Lemmas are reordered, but no lemmas are renamed, removed, or have a different type. Some @[simp]tags are removed if a more general simp lemma applies.
- Minor: generalize preordertohas_leinhas_ordered_sub(not necessary for this PR, but useful in another (abandoned) branch).