The Frac CMRA #
This CMRA captures the notion of fractional ownership of another resource. Traditionally the underlying set is assumed to be the half open interval $$(0,1]$$.
A fraction does not represent the entire resource.
Generalizes the notion of (· < 1) from rational fractions.
Equations
- Iris.Fraction.Fractional a = ∃ (b : α), Iris.Fraction.Proper (a + b)
Instances For
A fraction that is tne entire resource.
Generalizes the notion of 1 from rational fractions.
Equations
Instances For
theorem
Iris.Fraction.Proper.fractional_or_whole
{α : Type u_1}
[Fraction α]
{a : α}
(H : Proper a)
:
theorem
Iris.Fraction.Fractional.proper
{α : Type u_1}
[Fraction α]
{a : α}
:
Fractional a → Proper a
theorem
Iris.Fraction.Fractional.of_add_left
{α : Type u_1}
[Fraction α]
{a a' : α}
(H : Fractional (a + a'))
:
theorem
Iris.Fraction.Fractional.of_add_right
{α : Type u_1}
[Fraction α]
{a a' : α}
(H : Fractional (a + a'))
:
Fractional a'
Equations
instance
Iris.instExclusiveFracOfCMRAOfWholeCar
{α : Type u_1}
[Fraction α]
[CMRA α]
{a : Frac α}
(Hw : Fraction.Whole a.car)
:
A type of fractions with a unique whole element.
- add : α → α → α
- one : α
- one_whole : Fraction.Whole 1
Instances
Generic fractional instance for types with comparison and 1 operators.
Instances
Equations
- One or more equations did not get rendered due to their size.