File: bug_15567.v

package info (click to toggle)
coq 9.1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 35,964 kB
  • sloc: ml: 239,908; sh: 4,355; python: 2,985; ansic: 2,644; makefile: 874; lisp: 171; javascript: 63; xml: 24; sed: 2
file content (20 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Fixpoint big_opL {A} f (xs : list A) : Prop :=
  match xs with
  | nil => True
  | cons x xs => (f 0 x) /\ (big_opL (fun n => f (S n)) xs)
  end.
Arguments big_opL {_} _ !xs /.
Goal forall A f xs, @big_opL A f xs.
  induction xs; [admit|]; cbn.
  match goal with
    |- _ /\ big_opL _ _ => idtac
  end.
Abort.
(*
  f 0 a /\
  (fix big_opL (A0 : Type) (f0 : nat -> A0 -> Prop) (xs0 : list A0) {struct xs0} : Prop :=
     match xs0 with
     | nil => True
     | x :: xs1 => f0 0 x /\ big_opL A0 (fun n : nat => f0 (S n)) xs1
     end) A (fun n : nat => f (S n)) xs
*)