lean4-htt/tests/lean/ppDeepTerms.lean
Kyle Miller 08e149de15 fix: make omission syntax be a builtin syntax (part 2)
Re-enables `⋯` processing that was disabled during the move to a builtin.
Adds tests.
2024-02-28 09:23:17 +01:00

39 lines
894 B
Text

/-!
# Testing the `pp.deepTerms false` option
Implemented in PR #3201.
-/
set_option pp.deepTerms false
set_option pp.deepTerms.threshold 8
/-!
Subterms of terms with depth <= pp.deepTerms.threshold are not omitted
-/
#check Nat.zero.succ.succ.succ.succ.succ.succ.succ.succ
/-!
Shallow subterms (subterms with depth <= pp.deepTerms.threshold/4) of terms with
depth > pp.deepTerms.threshold are not omitted
-/
#check Nat.zero.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ
/-!
Deep subterms of terms with depth > pp.deepTerms.threshold are omitted
-/
#check Nat.zero.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ.succ
/-!
Nothing is omitted in short lists
-/
#check [1, 2, 3, 4, 5, 6, 7, 8]
/-!
In longer lists, the tail is omitted
-/
#check [1, 2, 3, 4, 5, 6, 7, 8, 9]
/-!
Checking the message when an omission is copied from the Infoview
-/
#check [1, 2, 3, 4, 5, 6, 7, 8, ⋯]