Commit 2022-11-21 04:21 112b847a
View on Github →feat: mod_cases
tactic (#593)
- depends on #587
Implements the
mod_cases
tactic, a teaching tactic used by @hrmacbeth 's class which is also generally useful. - The tactic
mod_cases h : e % 3
will perform a case disjunction one : ℤ
and yield subgoals containing the assumptionsh : e ≡ 0 [ZMOD 3]
,h : e ≡ 1 [ZMOD 3]
,h : e ≡ 2 [ZMOD 3]
respectively. - In general,
mod_cases h : e % n
works whenn
is a positive numeral ande
is an expression of typeℤ
. - If
h
is omitted as inmod_cases e % n
, it will be default-namedH
.