6 kyu

Less is Not More

60 of 88Voile

Description:

We can represent the suffix of a list with the following definition:

From Coq Require Import List.

Inductive suf {X : Type} : list X -> list X -> Prop :=
  | SInit (l : list X) : suf l l
  | SCons (x : X) (l l' : list X) (H : suf l l') : suf (x :: l) l'
.
open import Data.List public

data Suf {X : Set} : List X  List X  Set where
  sinit :  l  Suf l l
  scons :  x l l'  Suf l l'  Suf (x ∷ l) l'

Your task is to show that less is not more, aka forall X (x : X) (l : list X), ~ suf l (x :: l)..

Fundamentals

Stats:

CreatedJun 6, 2019
PublishedJun 6, 2019
Warriors Trained224
Total Skips20
Total Code Submissions122
Total Times Completed88
Coq Completions60
Agda Completions34
Total Stars4
% of votes with a positive feedback rating94% of 16
Total "Very Satisfied" Votes15
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes1
Total Rank Assessments3
Average Assessed Rank
5 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • Voile Avatar
  • donaldsebleung Avatar
  • kazk Avatar
  • monadius Avatar
Ad