chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
1,457
lean_file_chunk
7bf05216fb437326bf6d3cfef2d833741390a1e2e8662d3ffec696adfeef2c7f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude import Init.Grind import Lean.Meta.Tactic.Grind.Arith.Simproc import Lean.Meta.NatInstTesters public import Lean.Meta.Tactic.Gri...
456
lean_file_chunk
4aa9a034d661d28e4ae73c28f107a101837a0306457a94ef593ba4a8ac6ffa64
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Grind.Action import Lean.Meta.Tactic.Grind.Arith.CommRing.EqCnstr namespace Lean.Meta.Grind.Actio...
1,390
lean_file_chunk
844751a06afb1eee5eb2943fbe508679c50eeecd3244e6857422eb19e8e78c43
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Grind.Arith.CommRing.MonadCanon public section namespace Lean.Meta.Grind.Arith.CommRing class Mo...
11,178
lean_file_chunk
3e67c16f8e98a7dedb477a771842b7b0024448af512194f019752829710a6f8e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Grind.Ring.CommSemiringAdapter public import Lean.Meta.Tactic.Grind.Types import Lean.Meta.Tactic.Grind.Arith...
5,992
lean_file_chunk
2e0dbd86fd1e79197c3c299d97521d3d9bdc05a95d5167bce868e98fc88dac43
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Grind.Arith.CommRing.RingM public import Lean.Meta.Tactic.Grind.Arith.CommRing.MonadSemiring impo...
1,458
lean_file_chunk
0e9a1c8d7cdd9c8fda0b8d800f32617403017c0d0dd15d5f29f9f6b5d7170cf1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Grind.Arith.CommRing.RingM import Lean.Meta.Tactic.Grind.Arith.CommRing.Poly public section names...
1,991
lean_file_chunk
89ae8acf036abc09213713ca20bd2b70d0c389fe6fa2fde35d411c094cf762d0
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM public section namespace Lean.Meta.Grind.Arith.CommRing structure...
23,094
lean_file_chunk
6334fe9048c96a44ad6cd3b7a344a347d06943951b74bbc1fe0de1a9a9a12b70
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Joachim Breitner -/ module prelude public import Lean.Meta.Match.MatcherApp.Basic public import Lean.Meta.Match.MatchEqsExt public import Lean.Meta.Match.AltTelesco...
3,553
lean_file_chunk
1968b640acc33c10c5476095725430a787505dd9d8926d15c88131ee67093068
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Match.MatcherInfo public section namespace Lean.Meta structure MatcherApp extends Match.MatcherInfo where match...
1,931
lean_file_chunk
9f433ecdc66b00a132dd972acab9fbac34841aacbb34106e6084b8bd90252fff
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ module prelude public import Lean.Elab.Term public section namespace Lean.Elab.Term.Quotation open Lean.Syntax register_builtin_option hygiene : Bool := { ...
7,289
lean_file_chunk
c6ce079067884a70b4e797afbe16e5777d6cd5ae8debe6b8ce460ed9ea9e7ffe
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ module prelude public import Lean.Elab.Quotation.Util public section namespace Lean.Elab.Term.Quotation open Lean.Elab.Term open Lean.Parser.Term structure ...
1,347
lean_file_chunk
3fffb32459f59b24941abd833253beddfe5c40cf530a9c4df3431a524b385310
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ module prelude public import Lean.Meta.Tactic.Generalize public import Lean.Elab.Binders public import Lean.Elab.Tactic.Location public...
440
lean_file_chunk
05edd35f5e69aa1618632bd012d75972b8993f6742302a57600956c3c84091ea
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 University of Cambridge. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Tobias Grosser -/ module prelude public import Lean.Meta.Tactic.Simp.Attr public section builtin_initialize bool_to_prop : Lean.Meta.SimpExtension ← Lean.Meta.registerSi...
2,084
lean_file_chunk
793fdcf4533ae0d5473723f62a9dadf13c86f13aa0d706dbe2d49cf62e224039
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Calc public import Lean.Elab.Tactic.ElabTerm public section namespace Lean.Elab.Tactic open Meta /-- Elaborator f...
2,176
lean_file_chunk
70c66a8c1904f746c14e515430d6c1984baf49c82199abf21eb0cfcae8a73371
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Simproc public import Lean.Meta.Tactic.Simp.Simproc public import Lean.Elab.Command public section namespa...
2,019
lean_file_chunk
a1a00005840732d2736f805ada2cc67044a5e2f99f93bc98185a9c4f4774c244
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Matthew Robert Ballard. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Tomas Skrivan, Matthew Robert Ballard -/ module prelude public import Lean.Elab.Command public import Lean.Meta.Tactic.Simp.SimpTheorems public section namespace Lean.Elab.T...
2,856
lean_file_chunk
889895029680024854fb4e3cbcae23e85cc85cc8c32179fa45b9f960d9ddb9a3
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ module prelude public import Lean.Meta.Tactic.Lets public import Lean.Elab.Tactic.Location import Lean.Elab.Binders import Lean.Linter.Basic public section /-! # Tacti...
841
lean_file_chunk
880da77a64ef0503991a2d9c37741df5e5870385d7b7aeb6fc3aaddc6a56f7f6
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Tactic.Grind.Main public import Lean.Elab.Tactic.Grind.Basic public import Lean.Elab.Tactic.Grind.Builti...
6,116
lean_file_chunk
852f264fa72a5c62b45a7b2a83d8317599bb28a37c8751e7b5860f3ec67c19c9
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Arthur Paulino, Gabriel Ebner, Mario Carneiro -/ module prelude public import Lean.Meta.Tactic.TryThis public import Lean.Elab.Tactic.Simp public import Lean.Elab.App public section ...
4,983
lean_file_chunk
478013def365d27135b6514b4598c2b6cd01f7e5daeafcc7738e2f2521a05617
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021-2024 Gabriel Ebner and Lean FRO. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Joe Hendrix, Kim Morrison -/ module prelude public import Lean.Meta.Tactic.LibrarySearch public import Lean.Meta.Tactic.TryThis public import Lean.Elab...
7,289
lean_file_chunk
ae17b775f4519e427112f26671af59bb24dfe865e89f8ec9fcac5b9ead53274d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Thrane Christiansen -/ module prelude import Lean.DocString public import Lean.Elab.Command public import Lean.Parser.Tactic.Doc public section namespace Lean.Elab.Tactic.Doc o...
601
lean_file_chunk
1baa15b5482b54ca90e26465a8dda154de130f42b027d26190bde8f2c9efd72e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Tactic.Conv.Basic public import Lean.Elab.Tactic.Conv.Congr public import Lean.Elab.Tactic.Conv.Rewrite public impor...
1,062
lean_file_chunk
0c25c5f920188c3d47d128a7727eae683c3aa7e1b54cf9d91d519414b4be903f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Kim Morrison -/ module prelude public import Lean.Meta.Tactic.Repeat public import Lean.Elab.Tactic.Basic public section namespace Lean.Elab.Tactic @[builtin_tactic...
4,779
lean_file_chunk
95f87a612930db7ef96b37022b544c54018a49dc345ef225b3dde11b3f2b7f7a
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, David Renshaw -/ module prelude public import Lean.Meta.Tactic.SolveByElim public import Lean.Elab.Tactic.Config public import Lean.LibrarySuggestions.Basic public sectio...
10,423
lean_file_chunk
de6e987d769cd7b20d2f3a495c4387b8466ba158e2311c5e82e8bd2f7be122db
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Paul-Nicolas Madelaine, Robert Y. Lewis, Mario Carneiro, Gabriel Ebner -/ module prelude public import Lean.Meta.Tactic.NormCast public import Lean.Elab.Tactic.Conv.Simp publ...
4,888
lean_file_chunk
3a4f3b37490594584dc06e07de66a93e21572ea4be65aa48489a0c3d430309bc
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Split public import Lean.Elab.Tactic.Location public section namespace Lean.Elab.Tactic open Meta @[builti...
1,897
lean_file_chunk
5885a2193db060741e1df8ff77eef66bc1f397d13253dfcd315fbad7d299ae26
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Unfold public import Lean.Elab.Tactic.Location public section namespace Lean.Elab.Tactic open Meta def unf...
1,594
lean_file_chunk
890c89c2b5ded67601db8230c7cf5de8964e61be25afe0ef228ed8fa5bad721d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2026 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech RΓ³ΕΌowski -/ module prelude public import Lean.Meta.Tactic.Cbv public import Lean.Meta.Tactic public import Lean.Elab.Tactic.Location public section namespace Lean.Elab.Tacti...
3,168
lean_file_chunk
a5d26ce00013e1f15b981e443427b4be22baf3d2a1e84442eb89b8cdd7dfe2d9
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ module prelude public import Lean.Meta.Tactic.Replace public import Lean.Elab.Tactic.Location public section namespace Lean.Elab.Tactic open Meta /-! # Implementation of...
2,643
lean_file_chunk
e0152733f2f58696963fdf069d8f10a22c5deec1348ce9a39f919c1eea7c2adc
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Robin Arnez. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robin Arnez -/ module prelude public import Lean.Elab.Tactic.Change public section namespace Lean.Elab.Tactic open Meta /-! # Implementation of the `show` tactic The `show p` tactic f...
8,816
lean_file_chunk
32854d23c273b6f29e056bffa35ac9e3564e82179a7c2b6957a5a320587777ab
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Lean.Meta.Tactic.Split public import Lean.Elab.RecAppSyntax public import Lean.Elab.Tactic.Basic public import Init.Internal.Order pub...
907
lean_file_chunk
1f9278757dd87395343806f41ecfac3b21166826a7127633868e0ef0b765b109
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Newell Jensen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Newell Jensen, Thomas Murrills -/ module prelude public import Lean.Meta.Tactic.Rfl public section /-! # `rfl` tactic extension for reflexive relations This extends the `rfl` tactic...
9,032
lean_file_chunk
54ed80ec785741f3e35482edd14ff39de69ff015ae3479a95ae02bc412ce209f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ module prelude public import Lean.Elab.ElabRules public import Lean.Elab.Tactic.Simp public import Lean.Meta.Tactic.TryThis public import Lean.LibrarySuggestions.Bas...
1,004
lean_file_chunk
3918feddbe6865c607a1933ade52285b45b3902c6d1d74ac66311f0b1e722106
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Siddhartha Gadgil. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Siddhartha Gadgil, Mario Carneiro, Kim Morrison -/ module prelude public import Lean.Meta.Tactic.Symm public import Lean.Elab.Tactic.Location public section namespace Lean.Elab.T...
654
lean_file_chunk
35f36cc3d8dbe4f9f5122bf8cf8f1c542e3b3a9de2adcd704c411d6b186660eb
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.SyntheticMVars public section namespace Lean.Elab open Term /-- Apply the give tactic code to `mvarId` in `MetaM`...
23,960
lean_file_chunk
76d2354bb59e3593f31a4d433aac987828194041b4d19ec5fee70247c4f47d74
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ module prelude public import Lean.Meta.Tactic.Util public import Lean.Elab.Term import Init.Omega public section namespace Lean.Elab o...
133
lean_file_chunk
7886d3a7a7e1b38d80bed5b1c42e18629184aa8a120636da7c93210685aebfae
lean_source_file
lean_toolchain_source_file_chunks
builtin_initialize registerTraceClass `Elab.tactic builtin_initialize registerTraceClass `Elab.tactic.backtrack end Lean.Elab.Tactic
2,990
lean_file_chunk
d075517866e339d95225ecc093bee21009754d00f464f6fe15012484186c6f89
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2026 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech RΓ³ΕΌowski -/ module prelude public import Init.CbvSimproc public import Lean.Meta.Tactic.Cbv.CbvSimproc public import Lean.Elab.Command public section namespace Lean.Elab ope...
4,586
lean_file_chunk
08ce90d57a89185b9559ff25836e7893760e60c1f25688d48906cb6e00e5c16d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik BΓΆving -/ module prelude public import Lean.Elab.Tactic.BVDecide.LRAT public import Lean.Elab.Tactic.BVDecide.External public import Lean.Elab.Tactic.BVDecide.Frontend public s...
638
lean_file_chunk
911c195d8d5f7540aaf12360e694b15662fafda5b3bb4cf1e95a7d0ba4c9c1a8
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Congr public import Lean.Elab.Tactic.Basic public section namespace Lean.Elab.Tactic namespace Lean.Elab.T...
23,999
lean_file_chunk
af8f3bf6f8f48898ea33a8137478074463c07b9707238a646d56fdd3195b3e43
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.ExposeNames public import Lean.Meta.Tactic.Try public import Lean.Elab.Tactic.SimpTrace public im...
18,979
lean_file_chunk
44d0f2eab6ae6b826c42a8b7271032c7cc245c4dd0d461df1e5dc1395a3957e0
lean_source_file
lean_toolchain_source_file_chunks
| none => replaceMainGoal [] | some mvarId => replaceMainGoal [mvarId] trace[try.debug] "`simp_all` succeeded" if (← read).config.only then -- Remove +suggestions and +locals from config for the output (similar to SimpTrace.lean) let filteredCfg ← filterSuggestionsAndLocalsFr...
23,917
lean_file_chunk
56bb690e91aa7f15bae46f6d9df3418823c8342660f33ea95335e10478feedd1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Simp public import Lean.Meta.Tactic.Simp.LoopProtection public import Lean.Elab.BuiltinNotation public import...
7,517
lean_file_chunk
157d42fe28723bb60a8658f7185fc247c96a7b8db831c60fb758514caceb3bbb
lean_source_file
lean_toolchain_source_file_chunks
about simp arguments that are unused in all invocations. For this reason, the linter \ does not warn about uses of `simp` inside a macro, as there it is usually not possible to see \ all invocations." } structure UnusedSimpArgsInfo where mask : Array Bool deriving TypeName def pushUnusedSimpArgsInfo [Monad ...
14,048
lean_file_chunk
c35ef80a48d2ed6974272f21eef8e968187bed76c8e8a01b97eef60c9b741877
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Mario Carneiro -/ module prelude import Lean.Meta.Tactic.Ext import Lean.Elab.Tactic.RCases import Lean.Elab.Command import Lean.Linter.Basic -- These public imports are...
23,965
lean_file_chunk
158866fce28ce173b8e02d673876000bb95f720debc82582346b07c565323bf7
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Diagnostics public import Lean.Meta.Tactic.Refl public import Lean.Elab.Open public import Lean.Elab.Eval public impo...
3,290
lean_file_chunk
aced857c95cc0aa70e0ab34cb399b8b42b150994744ef291be4d84e2b20468e5
lean_source_file
lean_toolchain_source_file_chunks
let (g, gs) ← getCaseGoals tag let g ← renameInaccessibles g hs setGoals [g] g.setTag Name.anonymous withCaseRef arr tac <| closeUsingOrAdmit <| withTacticInfoContext (mkNullNode #[caseTk, arr]) <| Term.withNarrowedArgTacticReuse (argIdx := 3) (evalTactic Β·) stx setGoal...
412
lean_file_chunk
242e0cdeb3584760a09d8780e370576262488bf1217cc87cd9046578e6909810
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Tactic.Do.ProofMode public import Lean.Elab.Tactic.Do.Syntax public import Lean.Elab.Tactic.Do.Attr public import Lean.Elab.Tact...
5,111
lean_file_chunk
0955f62f5358d139d57e7f0ec56f36d53fb8729b687bbd0de8ca95e38084b8ee
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Rewrite public import Lean.Meta.Tactic.Replace public import Lean.Elab.Tactic.Location import Lean.Meta.Eqns ...
2,888
lean_file_chunk
b29802aca4e346792505b2818658ab8fff80dd3225fae4c492b874d9eb595fe3
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Lean.Elab.Tactic.Location public import Lean.Meta.Tactic.Replace public import Lean.Meta.Tactic.Rewrites public section /-! # The `rewrite...
480
lean_file_chunk
f9e77d9966e9fb00638089d1120650f62f82e17c3a9fd08ef2e9221e38e3230d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.ExposeNames public import Lean.Elab.Tactic.Basic public section namespace Lean.Elab.Tactic @[...
1,184
lean_file_chunk
6a593be8b007bd181f36d5f11227fa2dbb0cdc11066ae7cdce21a973458de0b5
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Mario Carneiro -/ module prelude public import Lean.Elab.ElabRules public import Lean.Meta.Tactic.TryThis public section namespace Lean.Elab.Tactic.ShowTerm open Lean El...
375
lean_file_chunk
0f6c9f7b074a616857a9f9d2d1c266aab61bb70fcf33706eb315525ed72b55e5
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Paul Reichert -/ module prelude public import Lean.Meta.Tactic.Simp public section open Lean.Meta builtin_initialize treeTacExt : SimpExtension ← registerSimpAttr `Std.Internal.tr...
6,854
lean_file_chunk
4c192ef6c7fd96cb6dba7d1669011f781e635a5237953c84361fa66f9aadf578
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Leonardo de Moura -/ module prelude public import Init.Guard public import Lean.Elab.Command public import Lean.Elab.Tactic.Conv.Basic public section namespace Lean....
8,822
lean_file_chunk
2cdeb49467564a9f5e9826dabe4202bcdfaf84dd2cba266464d3b203e5b46c19
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Tactic.Basic import Lean.Meta.Native import Lean.Elab.Tactic.ElabTerm public section namespace Lean.Elab.Tactic op...
1,868
lean_file_chunk
7956bdaccb609093dbcc7635b072daa724a60ab436d3ed4e55da14acd7d599d4
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Injection public import Lean.Meta.Tactic.Assumption public import Lean.Elab.Tactic.ElabTerm public section nam...
737
lean_file_chunk
fdaed22e8b4a391d8e25b99b1cfea9ce8ef87308ba1dab90adb2dcb412b26592
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Lean.Elab.Tactic.Meta public section open Lean Meta Elab Tactic Parser.Tactic @[builtin_tactic as_aux_lemma] def elabAsAuxLemma : Le...
2,196
lean_file_chunk
9d78ab3a8d59566fa65ec63da9acf846c3d2b79c53bd9fd23f1408e5d530e6d8
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Term import Lean.Elab.Binders namespace Lean.Elab.Tactic public def renameInaccessibles (mvarId : MVarId...
9,280
lean_file_chunk
652e56edf81a76918e97fe1dab41cdb59a0276c8fd944e1ea451bf328212e92c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Kyle Miller -/ module prelude public import Lean.Meta.Eval public import Lean.Elab.SyntheticMVars import Lean.Linter.MissingDocs public section namespace L...
3,031
lean_file_chunk
94eff7251aa537daa90b779069fa0319a6696b1f4edb1a345be52b1f9dfebe90
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Tactic.ElabTerm public section namespace Lean.Elab.Tactic /-- Denotes a set of locations where a tactic should be...
2,346
lean_file_chunk
ab2b57a7bfa2430d678ece4ccc99e58b21314dedcdc0f373b610f93cf83849e3
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Match public import Lean.Elab.Tactic.Induction public section namespace Lean.Elab.Tactic open Meta open TSyntax.C...
23,988
lean_file_chunk
fa73a21396f0f105ccc2ba0a1caf65b52e8dd0282f698149770001e033a66f49
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ module prelude import Lean.Parser.Tactic public import Lean.Meta.Tactic.ElimInfo public import Lean.Elab.Tactic.ElabTerm import Lean.Met...
23,906
lean_file_chunk
a3bfa62b078dc585851ca22b33ab4c2451b4af0ecfbedd7c7f32af9ea0dfb467
lean_source_file
lean_toolchain_source_file_chunks
for (stx, fvar) in toTag do Term.addLocalVarInfo stx (subst.get fvar) let some altMVarIds ← applyPreTac altMVarId | return if altMVarIds.isEmpty then return (← unusedAlt) -- select corresponding snapshot bundle for incrementality of this alternative -- note that `tacSnaps[altStxIdx]...
4,990
lean_file_chunk
ff668b1145c8510eae14b7d266680131f868c743ce9c34c2de0b8b6f06e2a827
lean_source_file
lean_toolchain_source_file_chunks
let some funIndInfo ← getFunIndInfo? (cases := cases) (unfolding := unfolding) fnName | let theoremKind := if cases then "cases" else "induction" throwError "No functional {theoremKind} theorem for `{.ofConstName fnName}`, or function is mutually recursive " if funArgs.size != funIndInfo.params.size the...
944
lean_file_chunk
f3f23ee0179e0fa7d4c1cfc06b2ada80e6524978398f6991282ec4305cec9d1c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Kim Morrison -/ module prelude public import Lean.Elab.Tactic.Basic public section /-! # `classical` tactic -/ namespace Lean.Elab.Tactic open Lean Meta Elab.Tactic...
17,441
lean_file_chunk
0ab35436de3be93c14cb16aeb5abad3a1dbd09fe344dc98e9a53cbccfa264428
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Constructor public import Lean.Meta.Tactic.Assert public import Lean.Meta.Tactic.Cleanup public import Lean.M...
2,665
lean_file_chunk
116dec9610547c51e0060695d81c34cf989ca4820c5b1b519f4ce4ec82972eb7
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Lean.Elab.Tactic.Basic public import Lean.Meta.Tactic.Apply public import Lean.Meta.Tactic.Intro public section /-! # `false_or_by_contra...
3,289
lean_file_chunk
398ef48d11608e9a86f864122846239a658c66cd90c48696e60c794693360f64
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Command public meta import Lean.Elab.Command public section namespace Lean.Elab open Command Meta -- We...
2,739
lean_file_chunk
73373fd4683d0b46fe36ba217c0fb1aa802aa35f81e99f77fb9db11b3f33a1f4
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.Tactic.Simp public import Lean.Meta.Tactic.TryThis public section namespace Lean.Elab.Tactic private...
1,448
lean_file_chunk
8870519b4237bc15b9f68ef8c836d762e8d592f1bb380ef586a701f2bba06a04
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Tactic.Delta public import Lean.Elab.Tactic.Location public section namespace Lean.Elab.Tactic open Meta def delt...
23,949
lean_file_chunk
f48e685aa836bb88be7db626f147a5cd4dd7df61ffdea5907ad41ff4cbb7a084
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Jacob von Raumer -/ module prelude public import Lean.Elab.Tactic.ElabTerm import Lean.Elab.Tactic.Induction import Lean.Meta.Tactic.Replace import Init.Omega import L...
635
lean_file_chunk
2ab2a849b19d28af45393de88acfd789d2b9cfb6338ed8eaf1d3b8fd9103326b
lean_source_file
lean_toolchain_source_file_chunks
let pat := pat?.getD (RCasesPatt.one tk `this) let g ← getMainGoal g.withContext do replaceMainGoal (← RCases.obtainNone pat ty g) else throwError "\ `obtain` requires either an expected type or a value.\n\ usage: `obtain ⟨patt⟩? : type (:= val)?` or `obtain ⟨patt⟩? (: type)? := va...
9,323
lean_file_chunk
0c3a234f2edd395ab5f4a5bb8081966a938ac155f36fcb305792affea5546095
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Lean.Elab.Tactic.Omega.Frontend public section /-! # `omega` This is an implementation of the `omega` algorithm, currently without "dark...
1,528
lean_file_chunk
6f0e971f61525834d512e52ad5c02d66a71bd7208bf27ef3d9eaadcf3eac663b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do public section namespace Lean.Elab.Do open Lean.Parser.Term open Lean.Meta @[builtin_doE...
11,293
lean_file_chunk
106111e68aaafb1aea30b5586c110f9060a86eaff356549609a00623a881b05b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do import Lean.Elab.BuiltinDo.Basic import Lean.Elab.Do.PatternVar public section namespace L...
734
lean_file_chunk
5763a566477100af1ce81161f8880ef12d7ff20d4b0a57be73f23b992514f876
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do public section namespace Lean.Elab.Do open Lean.Parser.Term open Lean.Meta def elabDoIdD...
8,169
lean_file_chunk
2aa6ea22fce2641ac772b3bc1945dade3ddb7d120b62ffbb864cd035e171d0d0
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.BuiltinDo.Basic meta import Lean.Parser.Do import Init.Control.Do import Lean.Meta.ProdN public section namespace Lean.Elab.Do...
3,114
lean_file_chunk
9b4084551dcf55da887a64331c496865ee09418b50f9a40f1b363e7277200829
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do import Lean.Elab.BuiltinDo.Basic public section namespace Lean.Elab.Do open Lean.Parser.T...
3,718
lean_file_chunk
b1d8477628856976d39d9651aaff86466cc0bcc58123ec96061a8b9c18e068bb
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do import Lean.Elab.Do.Control public section namespace Lean.Elab.Do open Lean.Parser.Term o...
2,025
lean_file_chunk
b7c1b0400853cbb883570353d8b4c20b6d13a9479de640f9e041b9e37240435d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do public section namespace Lean.Elab.Do open Lean.Parser.Term open Lean.Meta @[builtin_doE...
2,968
lean_file_chunk
cc9bf4d5b9d348fd7009a9046000ca3bcb3fb18ecdcc627a33e7ec5cbbf5a940
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do import Lean.Elab.Do.PatternVar import Lean.Elab.BuiltinDo.Basic import Init.Omega namespace...
13,897
lean_file_chunk
e4d0ecf3440c44fdd77a74aabed43ca5c7d8d38d0f6a3fcbadf192c78e4e4847
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude public import Lean.Elab.Do.Basic meta import Lean.Parser.Do import Lean.Elab.Do.PatternVar import Lean.Elab.BuiltinDo.Basic import Lean.Elab.Match impor...
2,712
lean_file_chunk
ef77c9596ae0382459b1c1c4828d34fcb936dd7751100a7b531d118e643fff4c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Lean.Meta.Eqns public import Lean.Meta.Tactic.Rfl public import Lean.Meta.Tactic.Intro public section namespace Lean.Meta /-- Try to clos...
20,661
lean_file_chunk
4a716568e21c65e8e40ec85afd9caeebfec2d49200ec44dd043fcf13161cbb9d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Lean.Elab.PreDefinition.Basic import Init.Omega public section /-! This module contains the logic for figuring out, given mutually r...
7,930
lean_file_chunk
32c2a1229f690b70b34770bb6df576934f3a9d5e800385abac6ec7414c8107f9
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Joachim Breitner -/ module prelude public import Lean.Parser.Term meta import Lean.Parser.Term import Init.Omega public section set_option autoImplicit fal...
3,523
lean_file_chunk
7477405ce5e50972f7b9e53e88bb45076330522dafaec4aa1427dd88972f2113
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Joachim Breitner -/ module prelude public import Lean.Elab.PreDefinition.Basic public section /-! This module contains code common to mutual-via-fixedpoint...
352
lean_file_chunk
10d87d9bc76fdc1091b7c53edd1dfd73f9e4c2abf9e99cd6adc20da6adae2501
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Lean.Elab.PreDefinition.PartialFixpoint.Eqns public import Lean.Elab.PreDefinition.PartialFixpoint.Main public import Lean.Elab.PreDefi...
16,574
lean_file_chunk
1810b1b8fcc643956e1426039ee2151dc2c564457795fbf568e61a034e66b8c0
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Joachim Breitner -/ module prelude import Lean.Elab.PreDefinition.EqnsUtils import Lean.Meta.Match.NamedPatterns import Lean.Meta.Tactic.Simp.Main import Le...
15,289
lean_file_chunk
366efb3e547fb343202613b27f2ebcdae0890d36959f15dfcf25c3857076c182
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Compiler.NoncomputableAttr public import Lean.Util.NumApps public import Lean.Meta.Eqns public import Lean.Elab.RecAppSyn...
2,838
lean_file_chunk
6015c7aaf353ff0e1675846f56a34544b316bb02bcb1f73cb00fd7004d834185
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.AppBuilder public import Lean.PrettyPrinter import Init.Omega public section namespace Lean.Elab open Meta private...
2,495
lean_file_chunk
fccc70e5342c06b3481cadce5d8aa709790e2bf133ae0849065b25e632b5d1ea
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Meta.Basic import Lean.Meta.Tactic.Split import Lean.Meta.Tactic.Refl import Lean.Meta.Tactic.Delta import Lean.Meta.Tac...
233
lean_file_chunk
324b8a5aab3514501295b30c3b556e07c506362de38a2392f75c99495885e9d6
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.PreDefinition.Structural.Main
5,409
lean_file_chunk
4a7f044ad0d55f37911b39dae2a9acc90755f4e7a5e0a47a40309685965809b2
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Joachim Breitner -/ module prelude public import Lean.Elab.Binders import Init.Omega public section /-! This module contains * the data type `TerminationMeasure`,...
17,881
lean_file_chunk
891170cc038a537818eecfb0fc9d40c60f6f72b039fb9170dc1725de956d00a9
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Util.SCC public import Lean.Elab.PreDefinition.Structural public import Lean.Elab.PreDefinition.WF.Main public import Lea...
271
lean_file_chunk
7011065c00b18341012d80d43d3096babaeb3f2648340c1e8c5f820630a911c9
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.PreDefinition.WF.Main public import Lean.Elab.PreDefinition.WF.Eqns
23,986
lean_file_chunk
37e8241808adb52fc64d5f82d6b9f064572637c0f56d632505b6219f29a7861c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Elab.BindersUtil public import Lean.Elab.PatternVar public import Lean.Elab.Quotation.Util meta import Lean.Parser.Do imp...
23,959
lean_file_chunk
08c20ea518bd22e7ed691f50b73c679f742cdc9b7dc39ee52c93d2b99e758c98
lean_source_file
lean_toolchain_source_file_chunks
def mkTerminalAction (action : Syntax) : CodeBlock := { code := .action action } def mkReturn (ref : Syntax) (val : Syntax) : CodeBlock := { code := .return ref val } def mkBreak (ref : Syntax) : CodeBlock := { code := .break ref } def mkContinue (ref : Syntax) : CodeBlock := { code := .continue ref } def m...
23,917
lean_file_chunk
0a4d9b77c898e490a3333a78bf39486d47d3e6641359ca6aacdb3ccaf58397d9
lean_source_file
lean_toolchain_source_file_chunks
| .break ref => withRef ref breakToTerm | .action e => actionTerminalToTerm e | .joinpoint j ps b k => mkJoinPoint j ps (← toTerm b) (← toTerm k) | .jmp ref j args => return mkJmp ref j args | .decl _ stx k => declToTerm stx (← toTerm k) | .reassign _ stx k => reassign...
7,579
lean_file_chunk
e501ab18cf842ebdf663e9a0a12559cbe4c0d63793084cd9943e5a931f928bcd
lean_source_file
lean_toolchain_source_file_chunks
def doTry := leading_parser "try " >> doSeq >> many (doCatch <|> doCatchMatch) >> optional doFinally def doCatch := leading_parser "catch " >> binderIdent >> optional (":" >> termParser) >> darrow >> doSeq def doCatchMatch := leading_parser "catch " >> doMatchAlts def doFinally := leading_parser "fi...
12,865
lean_file_chunk
55afceb45798a076893d03df071248814aeaa7bcef712600a070ae648bcb9116
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Graf -/ module prelude import Lean.Meta.ProdN public import Lean.Elab.Do.Basic import Init.Control.Do public section namespace Lean.Elab.Do open Lean Meta Elab structure C...