| 1 |
[< 0 > + < 1 > * < 2 >] |
| 2 |
: nat |
| 3 |
Entry custom:Notations4.A.myconstr is |
| 4 |
[ "6" RIGHTA |
| 5 |
[ ] |
| 6 |
| "5" RIGHTA |
| 7 |
[ SELF; "+"; NEXT ] |
| 8 |
| "4" RIGHTA |
| 9 |
[ SELF; "*"; NEXT ] |
| 10 |
| "0" RIGHTA |
| 11 |
[ "<"; term LEVEL "10"; ">" ] ] |
| 12 |
|
| 13 |
[< b > + < b > * < 2 >] |
| 14 |
: nat |
| 15 |
[<< # 0 >>] |
| 16 |
: option nat |
| 17 |
[b + c] |
| 18 |
: nat |
| 19 |
fun a : nat => [a + a] |
| 20 |
: nat -> nat |
| 21 |
File "./output/Notations4.v", line 38, characters 0-88: |
| 22 |
Warning: This notation will not be used for printing as it is bound to a |
| 23 |
single variable. [notation-bound-to-variable,parsing,default] |
| 24 |
[1 {f 1}] |
| 25 |
: Expr |
| 26 |
fun (x : nat) (y z : Expr) => [1 + y z + {f x}] |
| 27 |
: nat -> Expr -> Expr -> Expr |
| 28 |
fun e : Expr => |
| 29 |
match e with |
| 30 |
| [x y + z] => [x + y z] |
| 31 |
| [1 + 1] => [1] |
| 32 |
| _ => [e + e] |
| 33 |
end |
| 34 |
: Expr -> Expr |
| 35 |
File "./output/Notations4.v", line 77, characters 41-45: |
| 36 |
Warning: Accessing custom entry B.expr by its unqualified name is deprecated. |
| 37 |
[deprecated-unqualified-custom-entry,deprecated-since-9.2,deprecated,default] |
| 38 |
Quickfix: |
| 39 |
Replace File "./output/Notations4.v", line 77, characters 41-45 with B.expr |
| 40 |
File "./output/Notations4.v", line 78, characters 31-35: |
| 41 |
Warning: Accessing custom entry B.expr by its unqualified name is deprecated. |
| 42 |
[deprecated-unqualified-custom-entry,deprecated-since-9.2,deprecated,default] |
| 43 |
Quickfix: |
| 44 |
Replace File "./output/Notations4.v", line 78, characters 31-35 with B.expr |
| 45 |
File "./output/Notations4.v", line 79, characters 41-45: |
| 46 |
Warning: Accessing custom entry B.expr by its unqualified name is deprecated. |
| 47 |
[deprecated-unqualified-custom-entry,deprecated-since-9.2,deprecated,default] |
| 48 |
Quickfix: |
| 49 |
Replace File "./output/Notations4.v", line 79, characters 41-45 with B.expr |
| 50 |
File "./output/Notations4.v", line 80, characters 33-37: |
| 51 |
Warning: Accessing custom entry B.expr by its unqualified name is deprecated. |
| 52 |
[deprecated-unqualified-custom-entry,deprecated-since-9.2,deprecated,default] |
| 53 |
Quickfix: |
| 54 |
Replace File "./output/Notations4.v", line 80, characters 33-37 with B.expr |
| 55 |
[(1 + 1)] |
| 56 |
: Expr |
| 57 |
myAnd1 True True |
| 58 |
: Prop |
| 59 |
r 2 3 |
| 60 |
: Prop |
| 61 |
let v := 0%test17 in v : myint63 |
| 62 |
: myint63 |
| 63 |
fun y : nat => # (x, z) |-> y & y |
| 64 |
: forall y : nat, |
| 65 |
(?T * ?T0 -> ?T * ?T0 * nat) * (?T1 * ?T2 -> ?T1 * ?T2 * nat) |
| 66 |
where |
| 67 |
?T : |
| 68 |
[y : nat pat : ?T * ?T0 p0 : ?T * ?T0 p := p0 : ?T * ?T0 |- Type] (pat, |
| 69 |
p0, p cannot be used) |
| 70 |
?T0 : |
| 71 |
[y : nat pat : ?T * ?T0 p0 : ?T * ?T0 p := p0 : ?T * ?T0 |- Type] (pat, |
| 72 |
p0, p cannot be used) |
| 73 |
?T1 : |
| 74 |
[y : nat pat : ?T1 * ?T2 p0 : ?T1 * ?T2 p := p0 : ?T1 * ?T2 |
| 75 |
|- Type] (pat, p0, p cannot be used) |
| 76 |
?T2 : |
| 77 |
[y : nat pat : ?T1 * ?T2 p0 : ?T1 * ?T2 p := p0 : ?T1 * ?T2 |
| 78 |
|- Type] (pat, p0, p cannot be used) |
| 79 |
fun y : nat => # (x, z) |-> (x + y) & (y + z) |
| 80 |
: forall y : nat, |
| 81 |
(nat * ?T -> nat * ?T * nat) * (?T0 * nat -> ?T0 * nat * nat) |
| 82 |
where |
| 83 |
?T : |
| 84 |
[y : nat pat : nat * ?T p0 : nat * ?T p := p0 : nat * ?T |- Type] (pat, |
| 85 |
p0, p cannot be used) |
| 86 |
?T0 : |
| 87 |
[y : nat pat : ?T0 * nat p0 : ?T0 * nat p := p0 : ?T0 * nat |
| 88 |
|- Type] (pat, p0, p cannot be used) |
| 89 |
fun '{| |} => true |
| 90 |
: R -> bool |
| 91 |
File "./output/Notations4.v", line 147, characters 82-85: |
| 92 |
The command has indeed failed with message: |
| 93 |
The format is not the same on the right- and left-hand sides of the special token "..". |
| 94 |
File "./output/Notations4.v", line 151, characters 76-78: |
| 95 |
The command has indeed failed with message: |
| 96 |
The format is not the same on the right- and left-hand sides of the special token "..". |
| 97 |
File "./output/Notations4.v", line 155, characters 78-81: |
| 98 |
The command has indeed failed with message: |
| 99 |
The format is not the same on the right- and left-hand sides of the special token "..". |
| 100 |
File "./output/Notations4.v", line 159, characters 52-55: |
| 101 |
The command has indeed failed with message: |
| 102 |
The format is not the same on the right- and left-hand sides of the special token "..". |
| 103 |
File "./output/Notations4.v", line 165, characters 35-39: |
| 104 |
Warning: Accessing custom entry B.expr by its unqualified name is deprecated. |
| 105 |
[deprecated-unqualified-custom-entry,deprecated-since-9.2,deprecated,default] |
| 106 |
Quickfix: |
| 107 |
Replace File "./output/Notations4.v", line 165, characters 35-39 with B.expr |
| 108 |
File "./output/Notations4.v", line 166, characters 21-25: |
| 109 |
Warning: Accessing custom entry B.expr by its unqualified name is deprecated. |
| 110 |
[deprecated-unqualified-custom-entry,deprecated-since-9.2,deprecated,default] |
| 111 |
Quickfix: |
| 112 |
Replace File "./output/Notations4.v", line 166, characters 21-25 with B.expr |
| 113 |
Entry custom:Notations4.B.expr is |
| 114 |
[ "0" RIGHTA |
| 115 |
[ "{"; term LEVEL "200"; "}" ] ] |
| 116 |
|
| 117 |
fun x : nat => [ x ] |
| 118 |
: nat -> nat |
| 119 |
fun x : nat => [x] |
| 120 |
: nat -> nat |
| 121 |
∀ x : nat, x = x |
| 122 |
: Prop |
| 123 |
File "./output/Notations4.v", line 193, characters 0-160: |
| 124 |
Warning: Notation "∀ _ .. _ , _" was already defined with a different format |
| 125 |
in scope type_scope. [notation-incompatible-format,parsing,default] |
| 126 |
∀x : nat,x = x |
| 127 |
: Prop |
| 128 |
File "./output/Notations4.v", line 206, characters 0-60: |
| 129 |
Warning: Notation "_ %%% _" was already defined with a different format. |
| 130 |
[notation-incompatible-format,parsing,default] |
| 131 |
File "./output/Notations4.v", line 210, characters 0-64: |
| 132 |
Warning: Notation "_ %%% _" was already defined with a different format. |
| 133 |
[notation-incompatible-format,parsing,default] |
| 134 |
File "./output/Notations4.v", line 215, characters 0-62: |
| 135 |
Warning: Lonely notation "_ %%%% _" was already defined with a different |
| 136 |
format. [notation-incompatible-format,parsing,default] |
| 137 |
3 %% 4 |
| 138 |
: nat |
| 139 |
3 %% 4 |
| 140 |
: nat |
| 141 |
3 %% 4 |
| 142 |
: nat |
| 143 |
File "./output/Notations4.v", line 243, characters 47-59: |
| 144 |
Warning: The format modifier is irrelevant for only-parsing rules. |
| 145 |
[irrelevant-format-only-parsing,parsing,default] |
| 146 |
File "./output/Notations4.v", line 247, characters 36-48: |
| 147 |
Warning: The only parsing modifier has no effect in Reserved Notation. |
| 148 |
[irrelevant-reserved-notation-only-parsing,parsing,default] |
| 149 |
fun x : nat => U (S x) |
| 150 |
: nat -> nat |
| 151 |
V tt |
| 152 |
: unit * (unit -> unit) |
| 153 |
fun x : nat => V x |
| 154 |
: forall x : nat, nat * (?T -> ?T) |
| 155 |
where |
| 156 |
?T : [x : nat |- Type] |
| 157 |
File "./output/Notations4.v", line 264, characters 0-30: |
| 158 |
Warning: Notation "_ :=: _" was already used. |
| 159 |
[notation-overridden,parsing,default] |
| 160 |
0 :=: 0 |
| 161 |
: Prop |
| 162 |
fun x : nat => <{ x; (S x) }> |
| 163 |
: nat -> nat |
| 164 |
Set |
| 165 |
: Type |
| 166 |
fun x : nat => S x |
| 167 |
: nat -> nat |
| 168 |
True |
| 169 |
: Prop |
| 170 |
exists p : nat, ▢_p (p >= 1) |
| 171 |
: Prop |
| 172 |
▢_n (n >= 1) |
| 173 |
: Prop |
| 174 |
File "./output/Notations4.v", line 334, characters 17-20: |
| 175 |
The command has indeed failed with message: |
| 176 |
Found an inductive type while a variable name was expected. |
| 177 |
File "./output/Notations4.v", line 335, characters 17-18: |
| 178 |
The command has indeed failed with message: |
| 179 |
Found a constructor while a variable name was expected. |
| 180 |
File "./output/Notations4.v", line 337, characters 17-18: |
| 181 |
The command has indeed failed with message: |
| 182 |
Found a constant while a variable name was expected. |
| 183 |
exists x y : nat, ▢_(x, y) (x >= 1 /\ y >= 2) |
| 184 |
: Prop |
| 185 |
▢_n (n >= 1) |
| 186 |
: Prop |
| 187 |
File "./output/Notations4.v", line 350, characters 17-20: |
| 188 |
The command has indeed failed with message: |
| 189 |
Found an inductive type while a pattern was expected. |
| 190 |
▢_tt (tt = tt) |
| 191 |
: Prop |
| 192 |
File "./output/Notations4.v", line 353, characters 17-18: |
| 193 |
The command has indeed failed with message: |
| 194 |
Found a constant while a pattern was expected. |
| 195 |
exists x y : nat, ▢_(x, y) (x >= 1 /\ y >= 2) |
| 196 |
: Prop |
| 197 |
pseudo_force n (fun n : nat => n >= 1) |
| 198 |
: Prop |
| 199 |
File "./output/Notations4.v", line 366, characters 17-20: |
| 200 |
The command has indeed failed with message: |
| 201 |
Found an inductive type while a pattern was expected. |
| 202 |
▢_tt (tt = tt) |
| 203 |
: Prop |
| 204 |
File "./output/Notations4.v", line 369, characters 17-18: |
| 205 |
The command has indeed failed with message: |
| 206 |
Found a constant while a pattern was expected. |
| 207 |
exists x y : nat, myforce (x, y) (x >= 1 /\ y >= 2) |
| 208 |
: Prop |
| 209 |
myforce n (n >= 1) |
| 210 |
: Prop |
| 211 |
File "./output/Notations4.v", line 381, characters 21-24: |
| 212 |
The command has indeed failed with message: |
| 213 |
Found an inductive type while a pattern was expected. |
| 214 |
myforce tt (tt = tt) |
| 215 |
: Prop |
| 216 |
File "./output/Notations4.v", line 384, characters 21-22: |
| 217 |
The command has indeed failed with message: |
| 218 |
Found a constant while a pattern was expected. |
| 219 |
id nat |
| 220 |
: Set |
| 221 |
fun a : bool => id a |
| 222 |
: bool -> bool |
| 223 |
fun nat : bool => id nat |
| 224 |
: bool -> bool |
| 225 |
File "./output/Notations4.v", line 396, characters 17-20: |
| 226 |
The command has indeed failed with message: |
| 227 |
Found an inductive type while a pattern was expected. |
| 228 |
!! nat, nat = true |
| 229 |
: Prop |
| 230 |
!!! nat, nat = true |
| 231 |
: Prop |
| 232 |
!!!! (nat, id), nat = true /\ id = false |
| 233 |
: Prop |
| 234 |
∀ x : nat, x = 0 |
| 235 |
: Prop |
| 236 |
∀₁ x, x = 0 |
| 237 |
: Prop |
| 238 |
∀₁ x, x = 0 |
| 239 |
: Prop |
| 240 |
∀₂ x y, x + y = 0 |
| 241 |
: Prop |
| 242 |
((1, 2)) |
| 243 |
: nat * nat |
| 244 |
%% [x == 1] |
| 245 |
: Prop |
| 246 |
%%% [1] |
| 247 |
: Prop |
| 248 |
[[2]] |
| 249 |
: nat * nat |
| 250 |
%%% |
| 251 |
: Type |
| 252 |
## (x, _) (x = 0) |
| 253 |
: Prop |
| 254 |
File "./output/Notations4.v", line 492, characters 21-30: |
| 255 |
The command has indeed failed with message: |
| 256 |
Unexpected type constraint in notation already providing a type constraint. |
| 257 |
## '(x, y) (x + y = 0) |
| 258 |
: Prop |
| 259 |
## x (x = 0) |
| 260 |
: Prop |
| 261 |
## '(x, y) (x = 0) |
| 262 |
: Prop |
| 263 |
fun f : ## a (a = 0) => f 1 eq_refl |
| 264 |
: ## a (a = 0) -> 1 = 0 |
| 265 |
[MyNotation 0] |
| 266 |
: nat |
| 267 |
fun MyNone : nat => MyNone |
| 268 |
: nat -> nat |
| 269 |
MyNone+ |
| 270 |
: option ?A |
| 271 |
where |
| 272 |
?A : [ |- Type] |
| 273 |
Some MyNone+ |
| 274 |
: option (option ?A) |
| 275 |
where |
| 276 |
?A : [ |- Type] |
| 277 |
0+ |
| 278 |
: option ?A |
| 279 |
where |
| 280 |
?A : [ |- Type] |
| 281 |
0+ |
| 282 |
: option ?A |
| 283 |
where |
| 284 |
?A : [ |- Type] |
| 285 |
0 |
| 286 |
: nat |
| 287 |
File "./output/Notations4.v", line 542, characters 0-78: |
| 288 |
The command has indeed failed with message: |
| 289 |
Notation "func _ .. _ , _" is already defined at level 200 with arguments |
| 290 |
binder, constr at next level while it is now required to be at level 200 |
| 291 |
with arguments constr, constr at next level. |
| 292 |
File "./output/Notations4.v", line 547, characters 0-57: |
| 293 |
The command has indeed failed with message: |
| 294 |
Notation "[[ _ ]]" is already defined at level 0 with arguments custom foo |
| 295 |
while it is now required to be at level 0 with arguments custom bar. |
| 296 |
lambda x y : nat, x + y = 0 |
| 297 |
: nat -> nat -> Prop |
| 298 |
((!!nat) + bool)%type |
| 299 |
: Set |
| 300 |
fun z : nat => (z, 1, z, 2) |
| 301 |
: nat -> nat * nat * nat * nat |
| 302 |
fun z : nat => [(!!z) + z] |
| 303 |
: nat -> nat * nat * nat * nat * nat |
| 304 |
uncurryλ a b c => a + b + c |
| 305 |
: unit * nat * nat * nat -> nat |
| 306 |
fun x : unit * nat * (nat * nat) => |
| 307 |
match x with |
| 308 |
| (x0, y) => |
| 309 |
match y with |
| 310 |
| (a, b) => |
| 311 |
let d := 1 in |
| 312 |
match x0 with |
| 313 |
| (x1, c) => let 'tt := x1 in a + b + c + d |
| 314 |
end |
| 315 |
end |
| 316 |
end |
| 317 |
: unit * nat * (nat * nat) -> nat |
| 318 |
fun x : unit * nat * (nat * nat) => |
| 319 |
match x with |
| 320 |
| (x0, (a, b)) => let d := 1 in match x0 with |
| 321 |
| (tt, c) => a + b + c + d |
| 322 |
end |
| 323 |
end |
| 324 |
: unit * nat * (nat * nat) -> nat |
| 325 |
uncurryλ '(a, b) => a + b |
| 326 |
: unit * (nat * nat) -> nat |
| 327 |
lets a b c := 0 in a + b + c |
| 328 |
: nat |
| 329 |
let |
| 330 |
'(a, b) := (0, 0) in |
| 331 |
lets d := 1 in let '(c, e) := (0, 0) in a + b + c + d + e |
| 332 |
: nat |