Commit 2022-11-21 04:21 112b847a
View on Github →feat: mod_cases tactic (#593)
- depends on #587
Implements the
mod_casestactic, a teaching tactic used by @hrmacbeth 's class which is also generally useful. - The tactic
mod_cases h : e % 3will 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 % nworks whennis a positive numeral andeis an expression of typeℤ. - If
his omitted as inmod_cases e % n, it will be default-namedH.