chore: remove new_frontend from tests

This commit is contained in:
Leonardo de Moura 2020-10-25 09:15:48 -07:00
parent 24a6ee1810
commit db9e390b4d
315 changed files with 315 additions and 315 deletions

View file

@ -1,4 +1,4 @@
new_frontend
def main (xs : List String) : IO Unit :=
let ys1 := List.replicate 1000000 1;

View file

@ -1,4 +1,4 @@
new_frontend
def foo (a : Array Nat) : Array Nat :=
let a := a.push 0

View file

@ -1,5 +1,5 @@
import Std.Data.BinomialHeap
new_frontend
open Std
abbrev Heap := BinomialHeap Nat (fun a b => a < b)

View file

@ -1,4 +1,4 @@
new_frontend
def main (xs : List String) : IO Unit :=
let arr := (let e := ByteArray.empty; e.push (UInt8.ofNat 10));
let v := arr.data.get! 0;

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1
let x2 := x + 2

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1
let x2 := x + 2

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1
let x2 := x + 2

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1
let x2 := x + 2

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;

View file

@ -1,5 +1,5 @@
import Lean
new_frontend
open Lean
def main : IO UInt32 := do

View file

@ -1,4 +1,4 @@
new_frontend
def tst1 : IO Unit := do
IO.println (1 : Float);
IO.println ((1 : Float) + 2);

View file

@ -1,4 +1,4 @@
new_frontend
inductive Term : Type
| const : Nat -> Term
| app : List Term -> Term

View file

@ -1,4 +1,4 @@
new_frontend
namespace Foo

View file

@ -3,7 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
new_frontend
universes u v w
inductive LazyList (α : Type u)

View file

@ -1,4 +1,4 @@
new_frontend
def f2 (n : Nat) (xs : List Nat) : List (List Nat) :=
let ys := List.replicate n 0;
xs.map (fun x => x :: ys)

View file

@ -1,4 +1,4 @@
new_frontend
set_option pp.implicit true
set_option pp.binder_types false
-- set_option trace.compiler.boxed true

View file

@ -1,6 +1,6 @@
import Std.Data.PersistentHashMap
import Lean.Data.Format
new_frontend
open Lean Std Std.PersistentHashMap
abbrev Map := PersistentHashMap Nat Nat

View file

@ -15,7 +15,7 @@ def Foo.f3 (f : Foo) : Nat := f.n
def Foo.f4 (f : Foo) : Nat := f.n
def Foo.f5 (f : Foo) : Nat := f.n
new_frontend
#check (λ f g h =>
let x : Foo := ⟨f.n + 1⟩;

View file

@ -1,4 +1,4 @@
new_frontend
namespace Repro

View file

@ -1,5 +1,5 @@
import Lean
new_frontend
open Lean
open Lean.Elab
open Lean.Elab.Term

View file

@ -1,4 +1,4 @@
new_frontend
open IO.Process
def usingIO {α} (x : IO α) : IO α := x

View file

@ -1,6 +1,6 @@
/-! Parse and reformat file -/
import Lean.PrettyPrinter
new_frontend
open Lean
open Lean.Elab
open Lean.Elab.Term

View file

@ -1,5 +1,5 @@
import Lean
new_frontend
namespace Lean
open Lean.Elab

View file

@ -1,5 +1,5 @@
import Lean.Expr
new_frontend
open Lean
def tst : IO Unit :=

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) (g : Nat → Nat) := g x
#check f 1 fun x => x -- should work

View file

@ -1,4 +1,4 @@
new_frontend
def M := StateM Nat

View file

@ -1,4 +1,4 @@
new_frontend
theorem ex1 : False :=
by {

View file

@ -1,4 +1,4 @@
new_frontend
partial def mkAssocArray : Nat → Array (Nat × Bool) → Array (Nat × Bool)
| 0, as => as
| i+1, as => mkAssocArray i (as.push (i, i % 2 == 0))

View file

@ -1,4 +1,4 @@
new_frontend
def tst : IO Unit :=
do
let bs := [1, 2, 3].toByteArray;

View file

@ -1,4 +1,4 @@
new_frontend
class C1 (x : outParam Nat) (y : { n : Nat // n > x }) (α : Type) := -- should fail
(val : α)

View file

@ -1,4 +1,4 @@
new_frontend
variables {α : Type} in
def f (a : α) : List α :=

View file

@ -1,5 +1,5 @@
import Lean.Compiler.IR
new_frontend
open Lean
open Lean.IR

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) :=
if x = 0 then panic! "unexpected zero"

View file

@ -1,4 +1,4 @@
new_frontend
def f1 (x : Nat) : IO Nat := do
y := 1 -- error 'y' cannot be reassigned

View file

@ -1,4 +1,4 @@
new_frontend
universes u
variables {α : Type u}

View file

@ -1,4 +1,4 @@
new_frontend
structure A :=
(x : Nat := 0)

View file

@ -1,4 +1,4 @@
new_frontend
def c {α} : Sum α Nat :=
Sum.inr 10

View file

@ -1,5 +1,5 @@
prelude
import Init.System.IO
new_frontend
#eval (throw $ IO.userError "this is my error" : IO Unit)
#eval (throw $ IO.Error.noFileOrDirectory "file.ext" 31 "and details" : IO Unit)

View file

@ -1,4 +1,4 @@
new_frontend
def foo

View file

@ -1,4 +1,4 @@
new_frontend
#eval "abc"
/- some "a" -/

View file

@ -1,6 +1,6 @@
prelude
import Init.System.IO
new_frontend
open IO.FS
def usingIO {α} (x : IO α) : IO α := x
#eval (discard $ IO.FS.Handle.mk "non-existent-file.txt" Mode.read : IO Unit)

View file

@ -1,4 +1,4 @@
new_frontend
def f1 := id

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat :=
id (_ x)

View file

@ -1,4 +1,4 @@
new_frontend
set_option hygienicIntro false in
theorem ex1 {a p q r : Prop} : p → (p → q) → (q → r) → r := by

View file

@ -1,4 +1,4 @@
new_frontend
-- Test1
inductive T1 : Nat -- Error, resultant type is not a sort

View file

@ -1,4 +1,4 @@
new_frontend
def A.foo {α : Type} [HasAdd α] (a : α) : α × α :=
(a, a + a)

View file

@ -1,5 +1,5 @@
import Lean.Expr
new_frontend
open Lean
def tst : IO Unit :=

View file

@ -1,6 +1,6 @@
import Lean.Data.Json.Parser
import Lean.Data.Json.Printer
new_frontend
def test (s : String) : String :=
match Lean.Json.parse s with
| Except.ok res => toString res

View file

@ -1,4 +1,4 @@
new_frontend
def f1.g := 10

View file

@ -1,4 +1,4 @@
new_frontend
partial def f : List Nat → Bool
| [] => false
| (a::as) => a > 0 && f as

View file

@ -1,5 +1,5 @@
import Lean.Level
new_frontend
namespace Lean
namespace Level

View file

@ -1,4 +1,4 @@
new_frontend
def f1 :=
if h:x then 1 else 0

View file

@ -1,4 +1,4 @@
new_frontend
open Lean
def check (b : Bool) : IO Unit :=
«unless» b $ throw $ IO.userError "check failed"

View file

@ -1,4 +1,4 @@
new_frontend
#print "---- h1"

View file

@ -1,4 +1,4 @@
new_frontend
#print "---- Op"

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) : Nat :=
match x with

View file

@ -1,4 +1,4 @@
new_frontend
def f1 (x : Nat × Nat) : Nat :=
match x with

View file

@ -1,4 +1,4 @@
new_frontend
def head {α} (xs : List α) (h : xs = [] → False) : α :=
match he:xs with

View file

@ -1,4 +1,4 @@
new_frontend
mutual

View file

@ -1,4 +1,4 @@
new_frontend
mutual

View file

@ -1,5 +1,5 @@
import Lean.MetavarContext
new_frontend
open Lean
def check (b : Bool) : IO Unit :=

View file

@ -1,5 +1,5 @@
import Lean.MetavarContext
new_frontend
open Lean
def check (b : Bool) : IO Unit :=

View file

@ -1,5 +1,5 @@
import Lean.MetavarContext
new_frontend
open Lean
def mkLambdaTest (mctx : MetavarContext) (ngen : NameGenerator) (lctx : LocalContext) (xs : Array Expr) (e : Expr)

View file

@ -1,5 +1,5 @@
import Lean
new_frontend
open Lean
#eval (mkFVar `a).hasFVar

View file

@ -1,4 +1,4 @@
new_frontend
def f (x : Nat) (y : Bool) :=
x + if y then 1 else 0

View file

@ -1,4 +1,4 @@
new_frontend
#check `foo
#check `foo.bla

View file

@ -1,4 +1,4 @@
new_frontend
def A.x := 10

View file

@ -1,4 +1,4 @@
new_frontend
-- New notation that overlaps with existing notation
syntax [myPair, 100] "(" term "," term ")" : term

View file

@ -1,5 +1,5 @@
import Std.Data.PersistentHashMap
new_frontend
open Std
def m : PersistentHashMap Nat Nat :=
let m : PersistentHashMap Nat Nat := {};

View file

@ -1,5 +1,5 @@
import Lean
new_frontend
/-! Pretty printing tests for `Expr`s that cannot be generated by parsing+elaborating. -/

View file

@ -1,4 +1,4 @@
new_frontend
#check id fun x => x -- should work

View file

@ -1,4 +1,4 @@
new_frontend
-- Issue 1
def foo := 10

View file

@ -1,4 +1,4 @@
new_frontend
namespace Foo

View file

@ -1,4 +1,4 @@
new_frontend
def inc (r : IO.Ref Nat) : IO Unit := do
let v ← r.get;
r.set (v+1);

View file

@ -1,4 +1,4 @@
new_frontend
def foo {m} [Monad m] [MonadExcept String m] [MonadState (Array Nat) m] : m Nat :=
tryCatch
(do modify $ fun (a : Array Nat) => a.set! 0 33;

View file

@ -1,6 +1,6 @@
import Lean
new_frontend
def Boo.x := 1
def Foo.x := 2

View file

@ -1,4 +1,4 @@
new_frontend
axiom appendNil {α} (as : List α) : as ++ [] = as
axiom appendAssoc {α} (as bs cs : List α) : (as ++ bs) ++ cs = as ++ (bs ++ cs)

View file

@ -1,4 +1,4 @@
new_frontend
macro m n:ident : command => `(def $n := 1)

View file

@ -1,5 +1,5 @@
import Lean
new_frontend
open Lean
#check mkNullNode -- Lean.Syntax
#check mkNullNode #[] -- Lean.Syntax

View file

@ -1,4 +1,4 @@
new_frontend
abbrev DelabM := Id
abbrev Delab := DelabM Nat

View file

@ -1,4 +1,4 @@
new_frontend
class HasElems (α : Type) : Type := (elems : Array α)
def elems (α : Type) [HasElems α] : Array α := HasElems.elems

View file

@ -1,5 +1,5 @@
import Lean
new_frontend
namespace Foo
open Lean.Elab.Term

View file

@ -1,4 +1,4 @@
new_frontend
def all (p : Nat → Prop) : Prop := ∀x, p x
example {p : Nat → Prop} (h : all p) : p 0 := h 0

View file

@ -1,4 +1,4 @@
new_frontend
inductive type
| bv : Nat → type

View file

@ -1,4 +1,4 @@
new_frontend
structure bv (w : Nat) := (u:Unit)

View file

@ -1,4 +1,4 @@
new_frontend
def foo : Nat -> Nat -> Nat -> List Nat
| _, _, 0 => [1]

View file

@ -1,4 +1,4 @@
new_frontend
partial def foo : ∀ (n : Nat), StateM Unit Unit
| n =>

View file

@ -1,4 +1,4 @@
new_frontend
universes u v w

View file

@ -1,4 +1,4 @@
new_frontend
syntax [mycheck] "#check" (sepBy term ",") : command

View file

@ -1,6 +1,6 @@
import Lean.Meta
new_frontend
open Lean
open Lean.Meta

View file

@ -2,7 +2,7 @@ prelude
import Init.System.IO
import Init.Data.List.Control
import Init.Data.ToString
new_frontend
open IO.FS

View file

@ -1,4 +1,4 @@
new_frontend
def tst : IO (Option Nat) := do
let x? : Option Nat ← pure none;

View file

@ -1,4 +1,4 @@
new_frontend
structure ConstantFunction (α β : Type) :=
(f : α → β)

View file

@ -1,6 +1,6 @@
/-! Reprint file after removing all parentheses and then passing it through the parenthesizer -/
import Lean.Parser
new_frontend
open Lean
open Lean.Format

View file

@ -1,4 +1,4 @@
new_frontend
structure Foo := (n : Nat)

View file

@ -1,4 +1,4 @@
new_frontend
#check @Array.mk
def v : Array Nat := @Array.mk Nat 10 (fun ⟨i, _⟩ => i)

View file

@ -1,4 +1,4 @@
new_frontend
def f (x y : Nat) (h : x = y := by assumption) : Nat :=
x + x

Some files were not shown because too many files have changed in this diff Show more