chore(tests/lean/run): disable/fix tests
This commit is contained in:
parent
989dbcb265
commit
f51868240f
308 changed files with 420 additions and 120 deletions
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import algebra.group
|
||||
|
||||
open algebra
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
structure is_tr [class] (A : Type) : Type :=
|
||||
(x : A)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
variables {P Q R : Prop}
|
||||
theorem foo (H : P → Q → R) (x : P) : Q → R :=
|
||||
begin
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
variables {a : Type}
|
||||
|
||||
definition foo (A : Type) : A → A :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constants (A : Type₁) (P : A → Type₁) (H : Π{a b : A}, P a → P b) (a b : A) (K : P a)
|
||||
|
||||
theorem foo : P b :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open eq
|
||||
|
||||
section
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
|
||||
inductive typ : Type :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
example (a b c : nat) (h₁ : a = b) (h₂ : b = c) : b = c :=
|
||||
begin
|
||||
(exact h₁ | exact h₂)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat
|
||||
|
||||
example (a b : nat) (P : nat → Prop) (H₁ : a = b) (H₂ : P a) : P b :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat
|
||||
variables (P : ℕ → Prop)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
theorem tst (a b : Prop) (H : ¬ a ∨ ¬ b) (Hb : b) : ¬ a ∧ b :=
|
||||
begin
|
||||
apply and.intro,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat algebra
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open bool
|
||||
|
||||
definition to_pred {A : Type} (p : A → bool) : A → Prop :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat
|
||||
|
||||
inductive type : Type :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
example (n : ℕ) : n + 1 = succ n :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
definition bar := bool
|
||||
example (b : bar) : bool :=
|
||||
begin
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
|
||||
open list bool nat
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat
|
||||
definition seq_diagram (A : ℕ → Type) : Type := (Πn, A n → A (succ n))
|
||||
variables (A : ℕ → Type) (f : seq_diagram A)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
variable P : Prop
|
||||
premise HP : P
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import algebra.group
|
||||
open algebra
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat algebra
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constant f {A : Type} (a : A) {B : Type} (b : B) : nat
|
||||
|
||||
example (a b c d : nat) : a = c → b = d → f a b = f c d :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
structure is_trunc [class] (A : Type) : Type
|
||||
|
||||
theorem foo (A : Type) [H : is_trunc A] (B : Type) : B := sorry
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
example (a b c : Prop) : a ∧ b → b ∧ a :=
|
||||
begin
|
||||
intro H,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat eq.ops algebra
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import logic.eq
|
||||
open tactic
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import logic
|
||||
open tactic
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
example (a b : Prop) (Ha : a) (Hb : b) : a :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
|
||||
set_option blast.strategy "unit"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
import data.nat
|
||||
open algebra nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
import data.list
|
||||
open perm
|
||||
set_option blast.strategy "cc"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
set_option blast.init_depth 10
|
||||
set_option blast.inc_depth 1000
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
definition lemma1 (p : nat → Prop) (q : nat → nat → Prop) : (∃ x y, p x ∧ q x y) → q 0 0 ∧ q 1 1 → (∃ x, p x) :=
|
||||
by blast
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
set_option trace.blast true
|
||||
|
||||
example (p q : Prop) : p ∨ q → q ∨ p :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
example (p q r : Prop) (a b : nat) : true → a = a → q → q → p → p :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
-- Backward chaining with tagged rules
|
||||
set_option blast.strategy "backward"
|
||||
constants {P Q R S T U : Prop} (Hpq : P → Q) (Hqr : Q → R) (Hrs : R → S) (Hst : S → T)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
-- Backward chaining with hypotheses
|
||||
set_option blast.strategy "backward"
|
||||
constants {P Q R S T U : Prop}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
example (a b : Prop) : forall (Ha : a) (Hb : b), a :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
open nat
|
||||
|
||||
example : ∀ (P Q : nat → Prop), (∀n, Q n → P n) → (∀n, Q n) → P 2 :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
exit
|
||||
|
||||
namespace ex
|
||||
set_option blast.strategy "backward"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
-- TODO(Leo): use better strategy
|
||||
set_option blast.strategy "constructor"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
lemma T1 (a b : Prop) : false → a :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
example (a b : nat) : a = b → b = a :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
lemma lemma1 (bv : nat → Type) (n m : nat) (H : n = m) (b1 : bv n) (b2 : bv m) (H2 : eq.rec_on H b1 = b2) : b1 = eq.rec_on (eq.symm H) b2 :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
lemma lemma1 (p : Prop) (a b : nat) : a = b → p → p :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat
|
||||
set_option blast.strategy "preprocess"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
open list
|
||||
set_option blast.strategy "preprocess"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constant r : nat → Prop
|
||||
constant p : nat → Prop
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constants (P : ℕ → Prop) (R : Prop)
|
||||
lemma foo [intro!] : (: P 0 :) → R := sorry
|
||||
constants (P0 : P 0)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constants P Q : Prop
|
||||
|
||||
namespace with_classical
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
|
||||
constant f {A : Type} : A → A → A
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
definition t1 (a b : nat) : (a = b ↔ a = b) :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "simple"
|
||||
|
||||
definition foo1 (a b : nat) (p : Prop) : a = b → (b = a → p) → p :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
example (p : nat → nat → Prop) (f : nat → nat) (a b c d : nat) :
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
constant R : nat → nat → Prop
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
example (a b c d : nat) : a == b → b = c → c == d → a == d :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
example (a b c : Prop) : (a ↔ b) → ((a ∧ (c ∨ b)) ↔ (b ∧ (c ∨ a))) :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
set_option blast.strategy "cc"
|
||||
open perm list
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
example (a b c d : Prop)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
open perm
|
||||
set_option blast.strategy "cc"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
set_option blast.cc.heq true -- make sure heterogeneous congruence lemmas are enabled
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
set_option blast.cc.heq true -- make sure heterogeneous congruence lemmas are enabled
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
set_option blast.cc.heq true -- make sure heterogeneous congruence lemmas are enabled
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
universes l1 l2 l3 l4 l5 l6
|
||||
constants (A : Type.{l1}) (B : A → Type.{l2}) (C : ∀ (a : A) (ba : B a), Type.{l3})
|
||||
(D : ∀ (a : A) (ba : B a) (cba : C a ba), Type.{l4})
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
set_option blast.cc.heq true
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.unit
|
||||
open unit
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open nat subtype
|
||||
|
||||
definition f (x : nat) (y : {n : nat | n > x}) : nat :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open subtype
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
set_option blast.strategy "cc"
|
||||
|
||||
example (C : nat → Type) (f : Π n, C n → C n) (n m : nat) (c : C n) (d : C m) :
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.list
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.unit
|
||||
open nat unit
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.unit
|
||||
open nat unit
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constant P : Type₁
|
||||
constant P_sub : subsingleton P
|
||||
attribute P_sub [instance]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constants (P : ℕ → Prop) (Q : Prop)
|
||||
lemma foo [intro!] [forward] : (: P 0 :) → Q := sorry
|
||||
example : P 0 → Q :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
open subtype nat
|
||||
|
||||
constant f : Π (a : nat), {b : nat | b > a} → nat
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
constant f : nat → nat
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
attribute iff [reducible]
|
||||
set_option blast.strategy "ematch"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
constant f : nat → nat
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import algebra.ring data.nat
|
||||
|
||||
namespace foo
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open algebra nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constant subt : nat → nat → Prop
|
||||
|
||||
lemma subt_trans [forward] {a b c : nat} : subt a b → subt b c → subt a c :=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import algebra.ring data.nat
|
||||
open algebra
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import algebra.group
|
||||
open algebra
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
constant P : nat → Prop
|
||||
definition h [reducible] (n : nat) := n
|
||||
definition foo [forward] : ∀ x, P (h x) := sorry
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open algebra nat
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import algebra.group
|
||||
|
||||
variable {A : Type}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
exit
|
||||
import data.nat
|
||||
open nat
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue