fix(kernel/expr): avoid '_' as a binder name, we use '_' as a placeholder in the Lean frontend
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
6cc83dbe2a
commit
46627289b8
4 changed files with 13 additions and 13 deletions
|
@ -420,7 +420,7 @@ inline expr mk_eq(expr const & l, expr const & r) { return expr(new expr_eq(l, r
|
|||
inline expr Eq(expr const & l, expr const & r) { return mk_eq(l, r); }
|
||||
inline expr mk_lambda(name const & n, expr const & t, expr const & e) { return expr(new expr_lambda(n, t, e)); }
|
||||
inline expr mk_pi(name const & n, expr const & t, expr const & e) { return expr(new expr_pi(n, t, e)); }
|
||||
inline expr mk_arrow(expr const & t, expr const & e) { return mk_pi(name("_"), t, e); }
|
||||
inline expr mk_arrow(expr const & t, expr const & e) { return mk_pi(name("a"), t, e); }
|
||||
inline expr operator>>(expr const & t, expr const & e) { return mk_arrow(t, e); }
|
||||
inline expr mk_let(name const & n, optional<expr> const & t, expr const & v, expr const & e) { return expr(new expr_let(n, t, v, e)); }
|
||||
inline expr mk_let(name const & n, expr const & t, expr const & v, expr const & e) { return mk_let(n, some_expr(t), v, e); }
|
||||
|
|
|
@ -60,7 +60,7 @@ Failed to solve
|
|||
?M::1 10
|
||||
⊤
|
||||
Assignment
|
||||
_ : ℕ ⊢ ℤ ≈ ?M::5
|
||||
a : ℕ ⊢ ℤ ≈ ?M::5
|
||||
Destruct/Decompose
|
||||
⊢ ℕ → ℤ ≈ Π x : ?M::4, ?M::5
|
||||
Substitution
|
||||
|
@ -94,7 +94,7 @@ Failed to solve
|
|||
?M::1 10
|
||||
⊤
|
||||
Assignment
|
||||
_ : ℕ ⊢ ℝ ≈ ?M::5
|
||||
a : ℕ ⊢ ℝ ≈ ?M::5
|
||||
Destruct/Decompose
|
||||
⊢ ℕ → ℝ ≈ Π x : ?M::4, ?M::5
|
||||
Substitution
|
||||
|
@ -143,7 +143,7 @@ Failed to solve
|
|||
Substitution
|
||||
H1 : ?M::2 ⊢ ?M::3 ∧ ?M::4 ≺ ?M::1
|
||||
Destruct/Decompose
|
||||
⊢ Π H1 : ?M::2, ?M::3 ∧ ?M::4 ≺ Π _ : ?M::0, ?M::1
|
||||
⊢ Π H1 : ?M::2, ?M::3 ∧ ?M::4 ≺ Π a : ?M::0, ?M::1
|
||||
(line: 20: pos: 18) Type of argument 3 must be convertible to the expected type in the application of
|
||||
Discharge::explicit
|
||||
with arguments:
|
||||
|
@ -348,7 +348,7 @@ a : Bool, b : Bool, H : ?M::2, H_a : ?M::6 ⊢ if (if a b ⊤) a ⊤ ≺ a
|
|||
Substitution
|
||||
a : Bool, b : Bool, H : ?M::2, H_a : ?M::6 ⊢ ?M::2[lift:0:2] ≺ ?M::5[lift:0:1]
|
||||
Destruct/Decompose
|
||||
a : Bool, b : Bool, H : ?M::2 ⊢ Π H_a : ?M::6, ?M::2[lift:0:2] ≺ Π _ : ?M::3, ?M::5[lift:0:1]
|
||||
a : Bool, b : Bool, H : ?M::2 ⊢ Π H_a : ?M::6, ?M::2[lift:0:2] ≺ Π a : ?M::3, ?M::5[lift:0:1]
|
||||
(line: 27: pos: 21) Type of argument 5 must be convertible to the expected type in the application of
|
||||
DisjCases::explicit
|
||||
with arguments:
|
||||
|
@ -363,7 +363,7 @@ a : Bool, b : Bool, H : ?M::2, H_a : ?M::6 ⊢ if (if a b ⊤) a ⊤ ≺ a
|
|||
Assignment
|
||||
a : Bool, b : Bool ⊢ ?M::2 ≈ ?M::0
|
||||
Destruct/Decompose
|
||||
a : Bool, b : Bool ⊢ Π H : ?M::2, ?M::5 ≺ Π _ : ?M::0, ?M::1[lift:0:1]
|
||||
a : Bool, b : Bool ⊢ Π H : ?M::2, ?M::5 ≺ Π a : ?M::0, ?M::1[lift:0:1]
|
||||
(line: 27: pos: 4) Type of argument 3 must be convertible to the expected type in the application of
|
||||
Discharge::explicit
|
||||
with arguments:
|
||||
|
@ -385,7 +385,7 @@ a : Bool, b : Bool, H : ?M::2, H_a : ?M::6 ⊢ if (if a b ⊤) a ⊤ ≺ a
|
|||
Substitution
|
||||
a : Bool, b : Bool, H : ?M::2 ⊢ ?M::5 ≺ ?M::1[lift:0:1]
|
||||
Destruct/Decompose
|
||||
a : Bool, b : Bool ⊢ Π H : ?M::2, ?M::5 ≺ Π _ : ?M::0, ?M::1[lift:0:1]
|
||||
a : Bool, b : Bool ⊢ Π H : ?M::2, ?M::5 ≺ Π a : ?M::0, ?M::1[lift:0:1]
|
||||
(line: 27: pos: 4) Type of argument 3 must be convertible to the expected type in the application of
|
||||
Discharge::explicit
|
||||
with arguments:
|
||||
|
|
|
@ -63,7 +63,7 @@ Failed to solve
|
|||
?M::1 i
|
||||
p
|
||||
Assignment
|
||||
_ : ℤ ⊢ ℝ ≈ ?M::5
|
||||
a : ℤ ⊢ ℝ ≈ ?M::5
|
||||
Destruct/Decompose
|
||||
⊢ ℤ → ℝ ≈ Π x : ?M::4, ?M::5
|
||||
Substitution
|
||||
|
@ -108,7 +108,7 @@ Failed to solve
|
|||
Function expected at
|
||||
?M::0 (?M::1 i) p
|
||||
Assignment
|
||||
_ : ℤ ⊢ ℤ → ℤ ≈ ?M::7
|
||||
a : ℤ ⊢ ℤ → ℤ ≈ ?M::7
|
||||
Destruct/Decompose
|
||||
⊢ ℤ → ℤ → ℤ ≈ Π x : ?M::6, ?M::7
|
||||
Substitution
|
||||
|
@ -139,7 +139,7 @@ Failed to solve
|
|||
Function expected at
|
||||
?M::0 (?M::1 i) p
|
||||
Assignment
|
||||
_ : ℝ ⊢ ℝ → ℝ ≈ ?M::7
|
||||
a : ℝ ⊢ ℝ → ℝ ≈ ?M::7
|
||||
Destruct/Decompose
|
||||
⊢ ℝ → ℝ → ℝ ≈ Π x : ?M::6, ?M::7
|
||||
Substitution
|
||||
|
|
|
@ -22,7 +22,7 @@ Failed to solve
|
|||
(line: 1: pos: 10) Function expected at
|
||||
?M::0 (?M::1 1) ⊤
|
||||
Assignment
|
||||
_ : ℕ ⊢ ℕ → ℕ ≈ ?M::7
|
||||
a : ℕ ⊢ ℕ → ℕ ≈ ?M::7
|
||||
Destruct/Decompose
|
||||
⊢ ℕ → ℕ → ℕ ≈ Π x : ?M::6, ?M::7
|
||||
Substitution
|
||||
|
@ -53,7 +53,7 @@ Failed to solve
|
|||
(line: 1: pos: 10) Function expected at
|
||||
?M::0 (?M::1 1) ⊤
|
||||
Assignment
|
||||
_ : ℤ ⊢ ℤ → ℤ ≈ ?M::7
|
||||
a : ℤ ⊢ ℤ → ℤ ≈ ?M::7
|
||||
Destruct/Decompose
|
||||
⊢ ℤ → ℤ → ℤ ≈ Π x : ?M::6, ?M::7
|
||||
Substitution
|
||||
|
@ -84,7 +84,7 @@ Failed to solve
|
|||
(line: 1: pos: 10) Function expected at
|
||||
?M::0 (?M::1 1) ⊤
|
||||
Assignment
|
||||
_ : ℝ ⊢ ℝ → ℝ ≈ ?M::7
|
||||
a : ℝ ⊢ ℝ → ℝ ≈ ?M::7
|
||||
Destruct/Decompose
|
||||
⊢ ℝ → ℝ → ℝ ≈ Π x : ?M::6, ?M::7
|
||||
Substitution
|
||||
|
|
Loading…
Reference in a new issue