File tree 2 files changed +10
-10
lines changed
backends/lean/Aeneas/Progress
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ open Utils
14
14
/-- A special definition that we use to introduce pretty-printed terms in the context -/
15
15
def prettyMonadEq {α : Type u} (x : Std.Result α) (y : α) : Prop := x = .ok y
16
16
17
- macro :max "[> " "let" y:term " ← " x:term : term => `(prettyMonadEq $x $y)
17
+ macro :max "[> " "let" y:term " ← " x:term " <]" : term => `(prettyMonadEq $x $y)
18
18
19
19
@[app_unexpander prettyMonadEq]
20
- def unexpPrettyMonadEqofNat : Lean.PrettyPrinter.Unexpander | `($_ $x $y) => `([> let $y ← $x) | _ => throw ()
20
+ def unexpPrettyMonadEqofNat : Lean.PrettyPrinter.Unexpander | `($_ $x $y) => `([> let $y ← $x <] ) | _ => throw ()
21
21
22
- example (x y z : Std.U32) (_ : [> let z ← (x + y)) : True := by simp
22
+ example (x y z : Std.U32) (_ : [> let z ← (x + y) <] ) : True := by simp
23
23
24
24
theorem eq_imp_prettyMonadEq {α : Type u} {x : Std.Result α} {y : α} (h : x = .ok y) : prettyMonadEq x y := by simp [prettyMonadEq, h]
25
25
@@ -612,7 +612,7 @@ info: example
612
612
(y : UScalar ty)
613
613
(h : ↑x + ↑y ≤ UScalar.max ty)
614
614
(z : UScalar ty)
615
- (_ : [> let z ← x + y)
615
+ (_ : [> let z ← x + y <] )
616
616
(h1 : ↑z = ↑x + ↑y) :
617
617
↑z = ↑x + ↑y
618
618
:= by sorry
@@ -632,10 +632,10 @@ info: example
632
632
(y : UScalar ty)
633
633
(h : 2 * ↑x + ↑y ≤ UScalar.max ty)
634
634
(z1 : UScalar ty)
635
- (__1 : [> let z1 ← x + y)
635
+ (__1 : [> let z1 ← x + y <] )
636
636
(h1 : ↑z1 = ↑x + ↑y)
637
637
(z2 : UScalar ty)
638
- (_ : [> let z2 ← z1 + x)
638
+ (_ : [> let z2 ← z1 + x <] )
639
639
(h2 : ↑z2 = ↑z1 + ↑x) :
640
640
↑z2 = 2 * ↑x + ↑y
641
641
:= by sorry
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ b : Bool
445
445
x y : U32
446
446
h✝ : b = true
447
447
x2 : U32
448
- _ : [> let x2 ← x + y
448
+ _ : [> let x2 ← x + y <]
449
449
x2_post : ↑x2 = ↑x + ↑y
450
450
⊢ ↑x2 + ↑x2 ≤ U32.max
451
451
@@ -454,10 +454,10 @@ b : Bool
454
454
x y : U32
455
455
h✝ : b = true
456
456
x2 : U32
457
- _✝ : [> let x2 ← x + y
457
+ _✝ : [> let x2 ← x + y <]
458
458
x2_post : ↑x2 = ↑x + ↑y
459
459
x3 : U32
460
- _ : [> let x3 ← x2 + x2
460
+ _ : [> let x3 ← x2 + x2 <]
461
461
x3_post : ↑x3 = ↑x2 + ↑x2
462
462
⊢ ↑x3 + ↑4#u32 ≤ U32.max
463
463
@@ -472,7 +472,7 @@ b : Bool
472
472
x y✝ : U32
473
473
h✝ : ¬b = true
474
474
y : U32
475
- _ : [> let y ← x + y✝
475
+ _ : [> let y ← x + y✝ <]
476
476
y_post : ↑y = ↑x + ↑y✝
477
477
⊢ ↑y + ↑2#u32 ≤ U32.max
478
478
-/
You can’t perform that action at this time.
0 commit comments