lean4-htt/tests/lean/byStrictIndent.lean
2022-11-08 08:30:42 -08:00

26 lines
582 B
Text

--
-- no indentation on top-level `by` is still allowed
theorem byTopLevelNoIndent (n : Nat) (h : n > 1) : n > 1 := by
exact h
#print byTopLevelNoIndent
--
theorem byNestedStrictIndent (n : Nat) (h : n > 0) : n > 1 := by
have helper : n > 1 := by
sorry -- expected '{' or strict indentation
sorry
--
theorem byNestedBad₁ (n : Nat) (h : n > 0) : n > 1 := by
have helper : n > 1 := by
sorry
sorry -- expected command
sorry
theorem byNestedBad₂ (n : Nat) (h : n > 0) : n > 1 := by
have helper : n > 1 := by
sorry
sorry -- expected command
sorry