lean4-htt/tests/lean/run/comp_val2.lean
Leonardo de Moura a0a8103804 chore(frontends/lean): go back to 'c' as notation for characters
This suggestion has been discussed at Slack.
We have decided to use #"c" as notation because we wanted to allow `'`
in the beginning of identifiers like in SML and F*. In particular,
we wanted to allow users to use 'a 'b 'c for naming type parameters
like in SML. However, nobody used this notation. In the Lean standard
library, we are using greek letters for naming type parameters.
So, there is no real motivation for the ugly #"c" syntax.
2017-05-02 13:00:51 -07:00

16 lines
477 B
Text

open tactic
example : 'a' ≠ 'b' := by comp_val
example : '0' ≠ 'a' := by comp_val
example : "hello worlg" ≠ "hhello world" := by comp_val
example : "hello world" ≠ "hhello world" := by comp_val
example : "abc" ≠ "cde" := by comp_val
example : "abc" ≠ "" := by comp_val
example : "" ≠ "cde" := by comp_val
example : @fin.mk 5 3 dec_trivial ≠ @fin.mk 5 4 dec_trivial :=
by comp_val
example : @fin.mk 5 4 dec_trivial ≠ @fin.mk 5 1 dec_trivial :=
by comp_val