leanprover-community / mathport

Mathport is a tool for porting Lean3 projects to Lean4
Apache License 2.0
43 stars 15 forks source link

refactor: use more syntax quotations, bump to nightly-2022-03-21 #139

Closed digama0 closed 2 years ago

digama0 commented 2 years ago

Sebastian's trick for interpolating optional tokens like $[only%$o] fixed a blocker for many syntax quotations here, so I took the opportunity to upgrade many tactics to use syntax quotations.

gebner commented 2 years ago

The let this translation seems to produce invalid syntax:

-- failed to format: format: uncaught backtrack exception
theorem
  erange_coe
  [ FiniteDimensional K V ] : ( eval K V ) . range = ⊤
  :=
    by
      let this : IsNoetherian K V := IsNoetherian.iff_fg . 2 inferInstance
        exact ( Basis.ofVectorSpace K V ) . eval_range