Datasets:
File size: 481 Bytes
d03762b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /- Copyright (c) Heather Macbeth, 2023. All rights reserved. -/
/-! # `inductive_type` tactic
A tactic which proves equality and disequality statements in a finite type.
-/
syntax (name := FiniteInductiveType) "inductive_type" : tactic
macro_rules
| `(tactic| inductive_type) =>
`(tactic
| first
| exact fun h => nomatch h
| exact rfl
| fail "out of scope: inductive_type proves (correct) equalities and disequalities in a finite inductive type")
|