Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Letouzey
natded
Commits
f7734088
Commit
f7734088
authored
Oct 13, 2020
by
Pierre Letouzey
Browse files
some more aggressive experiments with Coq notations
parent
1728b23a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Nam.v
Nam.v
+16
-0
No files found.
Nam.v
View file @
f7734088
...
...
@@ -168,6 +168,22 @@ Notation "∃ x , A" := (Quant Ex x A)
Definition test_form := (∃ "
x
", True <-> Pred "
p
" [Var "
x
";#3])%form.
Module AggressiveNotations.
Local Notation "
x
=
y
" := (Pred "
=
" (@cons term x [y])) : formula_scope.
Local Notation O := (Fun "
O
" []).
Definition S x := (Fun "
S
" [x]).
Definition idvar (x:string) : variable := x.
Local Coercion idvar : string >-> variable.
Local Coercion Var : variable >-> term.
Definition pred_form :=
Quant All "
x
"
(Op Impl (Not (Pred "
=
" [Var "
x
"; Fun "
O
" []]))
(Quant Ex "
y
" (Pred "
=
" [Var "
x
"; Fun "
S
" [Var "
y
"]]))).
Print pred_form.
Definition pred_form_bis :=
(∀ "
x
", ~ "
x
" = O -> ∃ "
y
", "
x
" = S "
y
")%form.
End AggressiveNotations.
(** Formula printing *)
(** Notes:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment