theorem
proved
term proof
pattern3_injective
show as:
view Lean formalization →
formal statement (Lean)
126theorem pattern3_injective : Function.Injective pattern3 := by
proof body
Term-mode proof.
127 intro a b hab
128 apply Fin.ext
129 have hNat : toNat3 (pattern3 a) = toNat3 (pattern3 b) := congrArg toNat3 hab
130 simpa [toNat3_pattern3] using hNat
131