Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2020-10-20 08:10 617e8295

View on Github →

feat(linear_algebra/affine_space/ordered): define slope (#4669)

  • Review API of ordered_semimodule:
    • replace lt_of_smul_lt_smul_of_nonneg with lt_of_smul_lt_smul_of_pos; it's equivalent but is easier to prove;
    • add more lemmas;
    • add a constructor for the special case of an ordered semimodule over a linearly ordered field; in this case it suffices to verify only a < b → 0 < c → c • a ≤ c • b;
    • use the new constructor in analysis/convex/cone;
  • Define units.smul_perm_hom, reroute mul_action.to_perm through it;
  • Add a few more lemmas unfolding affine_map.line_map in special cases;
  • Define slope f a b = (b - a)⁻¹ • (f b -ᵥ f a) and prove a handful of monotonicity properties.

Estimated changes

added theorem eq_of_slope_eq_zero
added theorem line_map_mono_left
added theorem line_map_mono_right
added def slope
added theorem slope_comm
added theorem slope_def_field
added theorem slope_same