Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Snippet does not work with latest lean 2 #207

@gebner

Description

@gebner

There is at least one snippets that does not work with the current lean 2 version, in 10_Structures_and_Records.org:

import standard
open nat

structure big :=
(field1 : nat) (field2 : nat)
(field3 : nat) (field4 : nat)
(field5 : nat) (field6 : nat)

definition b : big := big.mk 1 2 3 4 5 6

definition v3 : nat :=
match b with
{| big, field3 := v |} := v
end

example : v3 = 3 := rfl

which fails with

10_Structures_and_Records.org.11.lean:13:3: error: invalid structure instance, given type is not a structure
[...]

This is also broken with the lean.js version used by the online tutorial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions