Skip to content

Commit

Permalink
Explain if_pos/if_neg in addition to dif_pos/dif_neg
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMassot committed Jul 16, 2024
1 parent 7dc9b71 commit ec8a7d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MIL/C04_Sets_and_Functions/S02_Functions.lean
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@ since in the positive case, the value returned,
The identity ``dif_pos h`` rewrites ``if h : e then a else b``
to ``a`` given ``h : e``,
and, similarly, ``dif_neg h`` rewrites it to ``b`` given ``h : ¬ e``.
There are also versions ``if_pos`` and ``if_neg`` that works for non-dependent
if constructions and will be used in the next section.
The theorem ``inverse_spec`` says that ``inverse f``
meets the first part of this specification.
Expand Down

0 comments on commit ec8a7d8

Please sign in to comment.