Error message: Not the right number of missing arguments (expected 1)

125 views Asked by At

I faced error message when running the following code.

Require Import Coq.Lists.List.
Import ListNotations.

Theorem con_not_com :
  exists A (l1 l2 : list A), l1 ++ l2 <> l2 ++ l1.
Proof.
   exists bool [true] [false]. 

I'm wondering how I can solve it. Thanks.

1

There are 1 answers

0
Arthur Azevedo De Amorim On

You need commas:

Require Import Coq.Lists.List.
Import ListNotations.

Theorem con_not_com :
  exists A (l1 l2 : list A), l1 ++ l2 <> l2 ++ l1.
Proof.
   exists bool, [true], [false].