blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92659b891c0bbbbdfd206d8ba5e4db74b126da44 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Elab/Command.lean | a8c438b9dd32769e21c528311201c8e9928f2730 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 26,588 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Parser.Command
import Lean.ResolveName
import Lean.Meta.Reduce
import Lean.Elab.Log
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.E... |
e04658617921bbec09bb0d3834e289d68f95e93f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/vector_bundle.lean | 321f36bcd2fbb09c328b73f9344b86d0fa6fa4ab | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,762 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sebastien Gouezel
-/
import topology.topological_fiber_bundle
import analysis.calculus.deriv
import linear_algebra.dual
/-!
# Topological vector bundles
In this fi... |
c2ebb47321d56dd5929dded3e3f28cf1596bae3d | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/nat/choose.lean | 7f3fdc4fe5cb6cbad6b1589727629290590b04ea | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 2,834 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Mostly based on Jeremy Avigad's choose file in lean 2
-/
import data.nat.basic data.nat.prime
import algebra.big_operators algebra.commute
open nat
lemma nat.prime.dvd_cho... |
1850dae50b52df452ce6569bc317442b7fab1c0c | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/number_theory/pythagorean_triples.lean | 751e1b869bd6d63f2293482dc05005fb80fc7d93 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,172 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Paul van Wamelen.
-/
import algebra.field
import algebra.gcd_monoid
import algebra.group_with_zero_power
import tactic.ring
import tactic.ring_exp
/-!
# Pythagorean Triples
The main ... |
4812a17feeae2204be72103799c033933a74d100 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/cofiltered_system.lean | 1fa9fddb32a8db41421dd68439c1623938dc80df | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 16,022 | lean | /-
Copyright (c) 2022 Kyle Miller, Adam Topaz, Rémi Bottinelli, Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller, Adam Topaz, Rémi Bottinelli, Junyan Xu
-/
import category_theory.filtered
import data.set.finite
import topology.category.Top.limits.k... |
7dd6d1438972e5b65e3190dd778a1ce016e8a063 | 0d9b0a832bc57849732c5bd008a7a142f7e49656 | /src/example_level.lean | 08882644a396f9306d8dcc9d0f8592832f7881f7 | [] | no_license | mirefek/sokoban.lean | bb9414af67894e4d8ce75f8c8d7031df02d371d0 | 451c92308afb4d3f8e566594b9751286f93b899b | refs/heads/master | 1,681,025,245,267 | 1,618,997,832,000 | 1,618,997,832,000 | 359,491,681 | 10 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,528 | lean | import .sokolevel
import .show_sokolevel
def lev := sokolevel.from_string "
#######
#. . .#
# $$$ #
#.$@$.#
# $$$ #
#. . .#
#######
"
#eval lev
example : lev.solvable :=
begin [show_sokolevel_w]
sokolevel.solve_up,
sokolevel.solve_right,
sokolevel.solve_left,
sokolevel.solve_down,
sokolevel.solve_down,
s... |
c7970508ef774a26cf522056faf03e18eedf04f1 | f2fbd9ce3f46053c664b74a5294d7d2f584e72d3 | /src/for_mathlib/ideals.lean | 8581c146c38806eb1a253ce46cc43b31b28004aa | [
"Apache-2.0"
] | permissive | jcommelin/lean-perfectoid-spaces | c656ae26a2338ee7a0072dab63baf577f079ca12 | d5ed816bcc116fd4cde5ce9aaf03905d00ee391c | refs/heads/master | 1,584,610,432,107 | 1,538,491,594,000 | 1,538,491,594,000 | 136,299,168 | 0 | 0 | null | 1,528,274,452,000 | 1,528,274,452,000 | null | UTF-8 | Lean | false | false | 707 | lean | import ring_theory.ideals
universe u
theorem is_proper_ideal.one_not_mem {α : Type*} [comm_ring α] {S : set α} [is_proper_ideal S] : (1:α) ∉ S :=
λ h, is_proper_ideal.ne_univ S $ is_submodule.univ_of_one_mem S h
section pow_ideal
variables {α : Type u} [comm_ring α] (S T T₁ T₂ : set α)
variables [is_ideal S]
def m... |
cdbc32bc1ed2af75855c71a362f7190ee4be107e | 37683ecbb27d7c2037bfd9ad7e06d662f460a005 | /pointed.hlean | fd5b27ff5efdced32b7f6b4d6520d0794e521db8 | [
"Apache-2.0"
] | permissive | GRSEB9S/Spectral-1 | b2443b09cae7aac1247b1f88c846c532ac802b8e | dd14277e0bfc6270a488eb3b9ec231484065b9d8 | refs/heads/master | 1,631,315,269,407 | 1,522,048,315,000 | 1,522,799,803,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,380 | hlean | /- equalities between pointed homotopies and other facts about pointed types/functions/homotopies -/
-- Author: Floris van Doorn
import types.pointed2 .move_to_lib
open pointed eq equiv function is_equiv unit is_trunc trunc nat algebra sigma group lift option
namespace pointed
definition phomotopy_mk_eq {A B : T... |
ef6d281a43ad261efa63c88e8615d4c8f97a38cf | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /09_Type_Classes.org.22.lean | 71961827ca2a3df42e9dc5c739b95f4c7736d867 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 54 | lean | import standard
set_option class.trace_instances true
|
0d7e39259fadaf7bcd8ac8eefe35de954259ebb7 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world4/level6.lean | ee0155b726cc9f6d9e7f1eb6bd05dc04a25080ab | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 551 | lean | import game.world4.level5 -- hide
namespace mynat -- hide
/-
# Power World
## Level 6: `mul_pow`
You might find the tip at the end of level 9 of Multiplication World
useful in this one. You can go to the main menu and pop back into
Multiplication World and take a look -- you won't lose any of your
proofs. You'll o... |
f4d6bd5a4fd3186b590f4617501ba23d4a4a6e72 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /hott/algebra/precategory/constructions.hlean | 8d915e95aaef7d33cbb3bd3b472368f2199c4332 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,156 | hlean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Floris van Doorn, Jakob von Raumer
-- This file contains basic constructions on precategories, including common precategories
import .natural_transformation
import types.pro... |
56acee8517b3e51664e57c8dc30f136b88a46e42 | 2cf781335f4a6706b7452ab07ce323201e2e101f | /lean/instructions.lean | 7e8c7d12c7b8a2a7e5d2e71e11989f56585445ba | [
"Apache-2.0"
] | permissive | simonjwinwood/reopt-vcg | 697cdd5e68366b5aa3298845eebc34fc97ccfbe2 | 6aca24e759bff4f2230bb58270bac6746c13665e | refs/heads/master | 1,586,353,878,347 | 1,549,667,148,000 | 1,549,667,148,000 | 159,409,828 | 0 | 0 | null | 1,543,358,444,000 | 1,543,358,444,000 | null | UTF-8 | Lean | false | false | 24,379 | lean | import .common
import system.io
namespace x86
------------------------------------------------------------------------
-- Notation
open mc_semantics
open mc_semantics.type
open reg
open semantics
notation `pattern` body `pat_end` := mk_pattern body
-- Introduces notation x[h..l] to slice the h..l bits out of x.
lo... |
b1512a39e7fc8779fc20c59e851b84891771ff92 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/simp_result.lean | b66ce1794aff734bce1d4070ceebc77ce708b90d | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,514 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Scott Morrison
-/
import tactic.core
/-!
# simp_result
`dsimp_result` and `simp_result` are a pair of tactics for
applying `dsimp` or `simp` to the result produced by ... |
a8ae55e513d4e45429c31d8a2eeb84706263d792 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/topology/uniform_space/basic.lean | 21f426be42111ed622e46e9db86cfd27fedfa8cb | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 42,034 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
5b9b385fe94215583044fea3a3c288c1d98eac9b | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Util/CollectMVars.lean | a23e10589a1b49c7bee334fcdec9cf3fc5686f8c | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,213 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
namespace CollectMVars
structure State :=
(visitedExpr : ExprSet := {})
(result : Array MVarId := #[])
i... |
10ad026d08d8b5d0c56a254b286a08f0c17ede29 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/topology/opens.lean | 4a85c1e54ee84709e7842106d70ca71e6520702c | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 6,330 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Subtype of open subsets in a topological space.
-/
import topology.bases topology.separation
open filter lattice
variables {α : Type*} {β : Type*} [top... |
5f6b82554ae32fc0eaac15abd47e3530fdd2eccd | 43390109ab88557e6090f3245c47479c123ee500 | /src/Topology/Material/suth_prop_7_2.lean | eeb397dd297fd6fc26d7299852a39cc647623281 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,189 | lean | import analysis.topology.continuity
import analysis.topology.topological_space
import analysis.topology.infinite_sum
import analysis.topology.topological_structures
import analysis.topology.uniform_space
universe u
open set filter lattice classical
#print definition set
#check empty
def empty_set_topology : topol... |
3375141aa7e646fe19b6a0b177373a9c1440fc19 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/asymptotics/specific_asymptotics.lean | 401c5baad85d62ecbefdf206b3451ad1bdcce287 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,665 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.normed_space.ordered
import analysis.asymptotics.asymptotics
/-!
# A collection of specific asymptotic results
This file contains specific lemma... |
9a836bbdb9ef0bcba36ab8b90d803eda5a001e41 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed/group/basic.lean | 4da7b2422f751c307a79fbf323aef06d09491c60 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 51,816 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.module.ulift
import order.liminf_limsup
import topology.algebra.uniform_group
import topology.metric_space.algebra
import topology.metr... |
ea3be62910b6e28e2776961b49ec4a62068e5efe | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /roadmap/topology/paracompact.lean | f0e05be5efbfdc29c560f2303260261979421830 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,166 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import ..todo
import topology.subset_properties
import topology.separation
import topology.metric_space.basic
/-!
A formal roadmap for basic properties of paracompact spa... |
dc8aec6692ab22ec434f2080bd94238269c6c118 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/nat/prime.lean | 8d746df160386c47e7830a1045bcdb0eaa77e0b7 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 37,007 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import data.list.sort
import algebra.group_power
import tactic.wlog
import tactic.n... |
7367b7c9d934eb53750e5556ee33e94a5e01067c | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /tests/leanpkg/user_ext/UserExt/FooExt.lean | 6618dbd4a90801e62b38564604dc3ac4d3292eb7 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 755 | lean | import Lean
open Lean
initialize fooExtension : SimplePersistentEnvExtension Name NameSet ←
registerSimplePersistentEnvExtension {
name := `fooExt
addEntryFn := NameSet.insert
addImportedFn := fun es => mkStateFromImportedEntries NameSet.insert {} es
}
syntax (name := insertFoo) "insert_f... |
ee436be2885650a514f9e2623ea7a9dc41a9e8ba | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/rat/basic.lean | c64b0c69dc00ba84eab606e298729b268392ad16 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 22,508 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import
data.nat.gcd
data.pnat.basic data.int.sqrt data.equiv.encodable
algebra.group algebra.ordered_group algebra.group_power
algebra.ordered... |
6cc93694bead7be1b6010327064903677923c141 | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/endomorphisms.lean | 3673b507604ad1dfb9568213537c09eb56301112 | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 707 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.isomorphism
import category_theory.tactics.obviously
namespace category_theory
universes u v
variable {C : Type u}
variable [𝒞 : catego... |
dfd46477e9bf2a685c2327b09194d0620e33baef | e2c1ee9c02c59b832eb48536755242ce5f9b2c3e | /src/t6.lean | 461f6ae2d275d14cd60b989af3e6e60d7b753e96 | [] | no_license | yairgueta/Lean | cb5bb16d81674e8a07f85c9dbeb56dc2f543d4eb | af8a4fa24f76edfdd0dd33f013db194e611e6a86 | refs/heads/master | 1,676,275,529,938 | 1,610,289,661,000 | 1,610,289,661,000 | 328,405,309 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,048 | lean | namespace hidden
open nat
def pred (n : nat) : nat :=
nat.rec_on n
(zero)
(λ n pred_n : nat, n)
#reduce pred (succ zero)
example (n : nat) : pred (succ n) = n :=
nat.rec_on n
(show pred (succ zero) = zero, from rfl)
(assume n,
assume ih,
show pred (succ (succ n)) = succ n, from rfl)
def trun_sub (n m :... |
f68aa8d5427fc2f5728fe55408a79aedca47766d | b815abf92ce063fe0d1fabf5b42da483552aa3e8 | /library/init/data/unsigned.lean | 4975514aa927ee95328ae00e680d418e92142e8f | [
"Apache-2.0"
] | permissive | yodalee/lean | a368d842df12c63e9f79414ed7bbee805b9001ef | 317989bf9ef6ae1dec7488c2363dbfcdc16e0756 | refs/heads/master | 1,610,551,176,860 | 1,481,430,138,000 | 1,481,646,441,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 766 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.fin.basic
open nat
def unsigned_sz : nat := succ 4294967295
attribute [reducible]
def unsigned := fin unsigned_sz
namespace unsi... |
418f0eb47046f7e18e2463a421d556a6db77d47b | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /tests/lean/run/parent_struct_inst.lean | 275c5dc19262f083b19c611a3d4eba4c78d528e6 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 165 | lean | open nat
structure [class] A := (n : ℕ)
definition f [A] := A.n
structure B extends A :=
(Hf : f = 0)
example : B := ⟨0, rfl⟩
example : B := (| 0, rfl |)
|
fcae382dbf1f16bb546ba285a755e82f8cfdddbe | abd85493667895c57a7507870867b28124b3998f | /src/algebra/ordered_group.lean | 4db2dc79c24a1c6cabaca17b807dba1ed4d48893 | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 63,293 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.units
import algebra.group.with_one
import algebra.group.type_tags
import order.bounded_lattice
... |
8a3921dab4bfb021685405a92c0487b00d728d49 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/testing/slim_check/sampleable.lean | 4db239aa9200e8ab15fe337bf7e54b477eab2fdd | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,388 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.lazy_list.basic
import data.tree
import data.int.basic
import control.bifunctor
import control.ulift
import tactic.linarith
import testing.slim_check.gen
/-!
#... |
0775bec4fd3fcb7b8d3dfa9daf3c6c8822836c37 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/combinatorics/simple_graph/strongly_regular.lean | 039c5aa1a04e96ed7a5edd11834ab9f5cda42985 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 2,575 | lean | /-
Copyright (c) 2021 Alena Gusakov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alena Gusakov
-/
import combinatorics.simple_graph.basic
import data.set.finite
/-!
# Strongly regular graphs
## Main definitions
* `G.is_SRG_of n k l m` (see `is_simple_graph.is_SRG_... |
b90698725bdc15058916c842c2d8a62921e0aeb8 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/stream/basic.lean | e5d366fc7000fe2a62f167591c064a592640653d | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 59 | lean |
import tactic.ext data.stream
attribute [ext] stream.ext
|
c04abba91c6b4a6b6008b7008f942d1ac1a441cf | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/pp_nodot.lean | 43ebe806d77def6517b2e6434e85ce551de135ae | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 264 | lean | def foo := ℕ
def foo.x : foo → foo := nat.succ
variables (y : foo)
#check y.x -- uses dot notation
section
local attribute [pp_nodot] foo.x
#check y.x -- doesn't use dot notation
end
section
set_option pp.all true
#check y.x -- doesn't use dot notation
end |
8a6fcfba7b1838bb4767a699f57ec2500e0ab9ff | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/countable_dense_linear_order.lean | c7715a2aed6d227323ff607c73e4bf1e0aa5d8ca | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 9,632 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import order.ideal
import data.finset
/-!
# The back and forth method and countable dense linear orders
## Results
Suppose `α β` are linear orders, with `α` countable and ... |
500f73147e1684f8db94d6455dca263ae464331c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/module_info_auto.lean | 3adf53a4a3f198d27e6df241d7304ecb48c6ab47 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 376 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.environment
import Mathlib.Lean3Lib.init.meta.tactic
namespace Mathlib
/-- Information about a curren... |
ff597a7ea7f9ce84cb164ce255de5aea55353b57 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/813.lean | 2342d7163c45139d6a5c53810f0024ed2337805e | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 465 | lean | open Function
theorem constApply {y : β} {x : α} : const α y x = y := rfl
example (p : Nat → Prop) (h : p 1) : p (const Nat 1 2) := by simp only [constApply]; trace_state; exact h -- simplifies
example (p : α → Prop) (h : p a) : p (const Nat a 2) := by simp only [constApply]; trace_state; exact h -- simplifies
example ... |
5bee7463b59c61b35db91caacd9a6c5bb70a96c5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/newfrontend5.lean | 57c2def559f7616df0a0e108f3faa618adf2c230 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,778 | lean | def foo {α} (f : {β : Type _} → β → β) (a : α) : α :=
f a
#check_failure let g := id; foo g true -- fails
/-
Expands to
```
let g : ?γ → ?γ := @id ?γ;
@foo ?α (fun (β : Sort ?u) => g) true
```
Unification constraint
```
?γ → ?γ =?= β → β
```
fails because `β` is not in the scope of `?γ`
Error message can be improv... |
df6e5656da3a5c98d59c8e85bd042102d6ca37c6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/galois_connection.lean | 1ffb995c1e12e95caed23cb5b13323966040db64 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,182 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.complete_lattice
import order.order_dual
/-!
# Galois connections, insertions and coinsertions
Galois connections are order theoretic adjoints, i.e. a p... |
e9c39fc17b6cb3528f36595fd7266feddc505b66 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/auto_quote_error2.lean | c177715843568a12e678581d561bd6546b0d7b78 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,045 | lean | example (a b c : nat) : a = b → b = c → c = a :=
begin
tactic.intros,
apply eq.symm,
apply eq.refl, -- Error: unification
assumption,
assumption
end
example (a b c : nat) : a = b → b = c → c = a :=
begin
tactic.intros,
apply eq.symm,
begin
tactic.trace "hello world",
end, -- Error unsolved goals
... |
2ec3749174766a9917b91d08b417795aa1dfaacd | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/MutualDef.lean | 43f9146bed7c76fa4ddfa76b9a0f1110fa10ec65 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 29,039 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Parser.Term
import Lean.Meta.Closure
import Lean.Meta.Check
import Lean.Elab.Command
import Lean.Elab.DefView
import Lean.Elab.PreDefinition
imp... |
e01b6bb6a549f033b01b48d53c562b14eddbf332 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Init/Coe.lean | e2f0178d48f5976aff799f8179a99e77e27a0b04 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,316 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Core
universes u v w w'
class Coe (α : Sort u) (β : Sort v) where
coe : α → β
/-- Auxiliary class that contains the transitive clos... |
768e3e9aef6379ef298600cfdbd35ab979d5e63c | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/CancellativeCommutativeSemigroup.lean | 70a8b8bfbbff2671af4e20eaeff28edc44ab475a | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,746 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section CancellativeCommutativeSemigroup
structure CancellativeCommutativeSemigroup (A : Type) : Type :=
(op : (A → (A → A)))
(associative_op : (∀ {x y z : A} , (op (op... |
fdde962a8a698dd98c05ee4977c8a162223110ad | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/pattern2.lean | ea790db8741323f7b736ab4614b7fce63f69fe7f | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 284 | lean | constant f : nat → nat → nat
constant g : nat → nat → nat
attribute g [no_pattern]
namespace foo
attribute [forward]
definition lemma1 {a b : nat} : f a b = g a b :=
sorry
end foo
print foo.lemma1
open foo
print foo.lemma1
attribute foo.lemma1 [forward]
print foo.lemma1
|
8ea5cf162a67529ec497d2bd832810c25d13640c | 137c667471a40116a7afd7261f030b30180468c2 | /src/data/matrix/basic.lean | 78a6c16157d90028f71ff5d6a6521bb864b5da76 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,628 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin, Lu-Ming Zhang
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.module.linear_map
import algeb... |
7639b335b5423427701633909726da7df35e6c68 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_geometry/structure_sheaf.lean | a557011cfabb542810a79120c1f855b1eb888a6d | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 49,156 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import algebraic_geometry.prime_spectrum.basic
import algebra.category.Ring.colimits
import algebra.category.Ring.limits
import topology.sheaves.local... |
dfa606beb905eb468a0943a1c525624be4604e65 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/polynomial/symmetric.lean | 14c3325961e9a292723b9b33abfb07b52e0301d1 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 8,183 | lean | /-
Copyright (c) 2020 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hanting Zhang, Johan Commelin
-/
import data.fintype.card
import data.mv_polynomial.rename
import data.mv_polynomial.comm_ring
import algebra.algebra.subalgebra
/-!
# Symmetric Polynom... |
184e5bbf4a556116c86b327fce59c8b611d1e9c6 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/normed_space/multilinear.lean | 649142203cb352edc72cf69b0fbefd411e8c3fcf | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 74,360 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.operator_norm
import topology.algebra.module.multilinear
/-!
# Operator norm on the space of continuous multilinear maps
When `f`... |
e13ec9641a4871ba51a51b544146f6d281fe5761 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/set/equinumerosity.lean | 4d6b13f9fab260145a529f5877fbd71ca668e16d | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 8,817 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Two sets are equinumerous, or equipollent, if there is a bijection between them. It is sometimes
said that two such sets "have the same cardinality."
-/
import .classical_... |
100f92b20e33f4b55caad14dfa482c814a77199b | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/StructInst.lean | 1bd55efe61864bdb26a9ab0b28a3477b0c8b7fce | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 38,698 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.FindExpr
import Lean.Parser.Term
import Lean.Meta.Structure
import Lean.Elab.App
import Lean.Elab.Binders
namespace Lean.Elab.Term.StructI... |
6f6aee5e545d48ee4bacfa637cc41cc52add00d9 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/tactic/solve_by_elim.lean | f20e18ed35ca57322b153670e84c26c5e143b926 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,724 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.core
/-!
# solve_by_elim
A depth-first search backwards reasoner.
`solve_by_elim` takes a list of lemmas, and repeating tries to `apply` th... |
cd9edd2afad19e5badd3157df19464c01b691907 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/run/listex2.lean | 6782457ea8980c8703d6e5aee533983abecc8337 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,393 | lean | import tools.super
universe variable u
constant in_tail {α : Type u} {a : α} (b : α) {l : list α} : a ∈ l → a ∈ b::l
constant in_head {α : Type u} (a : α) (l : list α) : a ∈ a::l
constant in_left {α : Type u} {a : α} {l : list α} (r : list α) : a ∈ l → a ∈ l ++ r
constant in_right {α : Type... |
a25c020aae59186117811438ee049903e2f216d1 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/types/intro.lean | 832ac3793846e556991f5534dd88d0bdeda72d0a | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 314 | lean | /-
Types
-/
/-
Every term has exactly one type
A type defines a set of terms
These sets are disjoint
-/
#check 0
#check "Hello"
#check tt
#check prod.mk 2 "Hi!"
#check true -- a proposition
#check bool
#check string
#check ℕ
#check Type 0
#check Type 1
#check Prop
#check Sort 0
#check Sort 1
#check Sort 2
|
740b1c209a4bd769dd4e730ce63a4e0f65d0ec83 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/data/int/basic.lean | 60c4de706ccb96ddc7360b1430009993343ad364 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 53,243 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import algebra.char_zero
import data.list.range
open nat
namespace int
instance : inhabited ℤ := ⟨int.z... |
5d029fae3ee865dfabff07f04f128b4480cfae5d | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/print_formula.lean | 8e79d027c46fd0a6cb31854e1a321ed47995f3a2 | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 3,469 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Tindall, Jesse Han, Floris van Doorn
-/
import .zfc
open fol ZFC_rel ZFC_func
-- ugly but working (str_formula says it's not well-founded recursion, but it evaluates a... |
3f2609906a33f34dd0ebbf591c5b81e2acd66afa | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/group_action/group.lean | 2f0b3d37ef209e1458938eca4f014a0877ef3743 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 10,731 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.hom.aut
import group_theory.group_action.units
/-!
# Group actions applied to various types of group
This file contains lemmas about `smul` on `group_wit... |
62a83f5454358b8a2c285b35d6ae4cc73c8b2382 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2011-USAMO-Problem_1.lean | f02b31515f36470e2e7cb605acab29e96e85ca57 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 234 | lean | import data.real.basic
import data.real.nnreal
theorem USAMO_Problem_1_2011 (a b c : real) [a > 0] [b > 0] [c > 0]:
a^2 + b^2 + c^2 +(a+b+c)^4 ≤ 4 →
((a*b + 1) / (a+b)^2) +(b*c+1) / (b+c)^2 + (c*a+1) / (c+a)^2 ≥ 3
:= sorry
|
18decdb8c864d8de37bda5d47a56785045ae5435 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/unit.lean | 195bf79fedb0537a7be90caef5a664a160fa6002 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 702 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import logic.eq
namespace unit
notation `⋆` := star
protected theorem eq (a b : unit) : a = b :=
unit.rec_on a (unit.rec_on b rfl)
theorem eq_star... |
c54511241c4a82aa30c7ca49a54ebd1ee0b7bc88 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/Open.lean | f62ded10099652eff5abe5ab2ad4b40873396bd4 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 2,855 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Log
namespace Lean.Elab
namespace OpenDecl
variable [Monad m] [STWorld IO.RealWorld m] [MonadEnv m]
variable [MonadExceptOf Exception m] ... |
0b2448a02154c5ca4714ec231b2ebc7656407bc7 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/ring_theory/polynomial.lean | fe221c8246c2a8ed02b48b6abcebc57693da71cd | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 17,223 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Ring-theoretic supplement of data.polynomial.
Main result: Hilbert basis theorem, that if a ring is noetherian then so is its polynomial ring.
-/
import data.equiv.fin data.pol... |
7b07737ca91643bb90b3c25ca86a175e700a6f93 | 5a5e1bb8063d7934afac91f30aa17c715821040b | /lean3SOS/src/test/ldlt.lean | 145c0bbb330eb79f8709ccfb39743673b37bfc07 | [] | no_license | ramonfmir/leanSOS | 1883392d73710db5c6e291a2abd03a6c5b44a42b | 14b50713dc887f6d408b7b2bce1f8af5bb619958 | refs/heads/main | 1,683,348,826,105 | 1,622,056,982,000 | 1,622,056,982,000 | 341,232,766 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,642 | lean | import data.matrix.basic
import float.basic
import lib.ldlt
import data.nat.gcd
set_option profiler true
open matrix
-- Test 1: 2x2 rat
def M1 : matrix (fin 2) (fin 2) ℚ
| ⟨0, _⟩ ⟨0, _⟩ := 1
| ⟨0, _⟩ ⟨1, _⟩ := 1/2
| ⟨1, _⟩ ⟨0, _⟩ := 1/2
| _ _ := 1
#eval ((LDLT M1).1 * (LDLT M1).2 * (LDLT M1).1.transpos... |
b53f74de5ccd6ec75c3eb79440275359246bef53 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/category/Profinite/default.lean | 8b99832f1c294ef196cfd6e08c0d45a66f78ea9b | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 11,351 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Calle Sönne
-/
import topology.category.CompHaus
import topology.connected
import topology.subset_properties
import topology.locally_constant.basic
import category_theor... |
7e56f809aa97c9209c9039a8bc44a9159139e21e | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/overload2.lean | 08feb3d502ed53ef03b3be51041b5f70e822b47e | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 377 | lean | import Int
import Real
print 1 + true
variable R : Type
variable T : Type
variable r2t : R -> T
coercion r2t
variable t2r : T -> R
coercion t2r
variable f : T -> R -> T
variable a : T
variable b : R
set_option lean::pp::coercion true
set_option lean::pp::notation false
print f a b
print f b a
variable g : R -> T -> R
i... |
e86acb847518f46e0ce373dfb77ecff072e11ac1 | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/basic.lean | cdca30dba9746d8656dc2c1ccf18958da6b707ce | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,134 | lean | import tactic
import combinatorics.simple_graph.basic combinatorics.simple_graph.degree_sum data.set.basic
import graph_theory.to_mathlib
open function classical set finset
variables {V V' V'' : Type*}
variables {G H : simple_graph V} {G' : simple_graph V'} {G'' : simple_graph V''}
namespace simple_graph
def is_smal... |
eb49665c17f09c4f23fa222ef93b7fb5be5a38d8 | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/00_Introduction/00_intro.lean | 716a7ccdd1c291326e1edbe5ea9ce2b438e7538a | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 573 | lean | /-
*** MATHEMATICAL LOGIC ***
/- *** Overview *** -/
In this unit you will learned the following concepts, among others:
* mathematical logics as formal systems
* propositions, including their syntax and semantics
* truth judgments
* inference rules, their meaning and notation
* axioms
* proofs as evidence that just... |
f32273da2b12c66e32fce2be94d095f661d51432 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/number_theory/quadratic_reciprocity.lean | a3763bd5f4df317dde4e8d956971ede91845baf5 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,951 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import field_theory.finite.basic
import data.zmod.basic
import data.nat.parity
/-!
# Quadratic reciprocity.
This file contains results about quadratic residues modulo ... |
e6a4bfe36ca8f89b7dd49a1179b05a2f882dd4df | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/eq2.hlean | 33906e227fb7687db476918b268d432a379e02bf | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 4,736 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about 2-dimensional paths
-/
import .cubical.square
open function
namespace eq
variables {A B C : Type} {f : A → B} {a a' a₁ a₂ a₃ a₄ : A} {b b' : B}
... |
4edbbf928cd68b5ee4ad6211e402f12ca7ba0ece | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/set_theory/lists.lean | 3cbe7d09e896f781c5d7392ef8fd23337f65cc1c | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 11,676 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
A computable model of hereditarily finite sets with atoms
(ZFA without infinity). This is useful for calculations in naive
set theory.
-/
import tactic.interactive data.... |
809ac2194ccad958c0f9e81d4c2e69016e9e1a74 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/change1.lean | 56dfab08cb1242035e826c23cc2bdc242445d0d1 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 522 | lean | open tactic nat expr option
attribute [defeq]
definition succ_eq_add (n : nat) : succ n = n + 1 :=
rfl
example (a b : nat) : a = b → succ (succ a) = succ (b + 1) :=
by do intro `Heq,
t ← target,
trace_state,
t' ← defeq_simp t,
change t',
trace "---- after change ----",
trace_state... |
9ec41f5c8d7fe5eea904137d5dd68a20f125700b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/class_group.lean | 446a8b7cdbbb884468c6d61634bf36b4e883e6cc | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 17,460 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import group_theory.quotient_group
import ring_theory.dedekind_domain.ideal
/-!
# The ideal class group
This file defines the ideal class group `class_group R` of fracti... |
ee212277d043d006c8cd4424d8c58f96bc64919d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/presented_group.lean | 72885fb8d0aed10809e2b5c0fbdcf0556aa4b74e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,578 | lean | /-
Copyright (c) 2019 Michael Howes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Howes
Defining a group given by generators and relations
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.group_theory.free_group
import Mathlib.gr... |
c1b6dca72963cae83510693e22078a4e2224952e | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/continued_fractions/computation/correctness_terminating.lean | 5665b2d1dc895c349bd0938a84e41e7b1eea5ab1 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 11,823 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.translations
import algebra.continued_fractions.terminated_stable
import algebra.continued_fractions.continuants_re... |
b0e3621e2bd2d378f38612726af1fc344626469a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/limits/unit.lean | 19526b8215cf056d2a86eb8c2bfb162727016b3f | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 1,363 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.punit
import category_theory.limits.has_limits
/-!
# `discrete punit` has limits and colimits
Mostly for the sake of constructing trivial ex... |
aaf5368ef611772682fb787c14920716677de71a | 2a6c509a979150555f6f8a010f76e9398dd01e09 | /src/catalan.lean | b8864b6b1879de2f5445a389e3ce7657224f8fc2 | [] | no_license | VArtem/lean-catalan | fa053f8262b471f45ac7c3706f313ec38c831b72 | 7cf17acf3bdddddf8819dc3ff23774bfaa3f5d92 | refs/heads/main | 1,689,556,449,322 | 1,630,267,370,000 | 1,630,267,370,000 | 400,530,852 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,093 | lean | import data.finset.basic
import data.finset.nat_antidiagonal
import tactic
open_locale big_operators
open finset
-- some convenient `nat` lemmas
lemma nat.lt_succ_of_add_right_eq {a b n : ℕ} (h : a + b = n) : a < n.succ :=
nat.lt_succ_of_le (h ▸ nat.le_add_right a b)
lemma nat.lt_succ_of_add_left_eq {a b n : ℕ} (... |
e8597eeb8e8a93d301cb78db9ff3641e5ca9a68a | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/polynomial/cyclotomic.lean | b3dd784b52af31de51f861018b9cf3fe086acda1 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,706 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import field_theory.splitting_field
import ring_theory.roots_of_unity
import algebra.polynomial.big_operators
import number_theory.arithmetic_function
import data.... |
ae6929140216b9a99718f509a012dd224cf63b99 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/j6.lean | a6d4e05d9840a6b8a41516adc8eb1df0775b319c | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 235 | lean | theorem symm_iff (p q : Bool) (H : p ↔ q) : (q ↔ p)
:= symm H
theorem or_imp2 (p q : Bool) : (p ∨ q) ↔ (¬ p → q)
:= let H1 := symm_iff _ _ (imp_or (¬ p) q) in
let H2 := not_not_eq p in
let H3 := subst H1 H2 in
H3
|
d258b32ac7a8b1d3cdd4e4f9cb436dc490275672 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/ind2.lean | 6670051111a880e95aa9eb07223e303d6b968100 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 342 | lean | prelude
inductive nat : Type :=
| zero : nat
| succ : nat → nat
namespace nat end nat open nat
inductive vector (A : Type) : nat → Type :=
| vnil : vector A zero
| vcons : Π {n : nat}, A → vector A n → vector A (succ n)
namespace vector end vector open vector
check vector.{1}
check vnil.{1}
check vcons.{1}
check vect... |
b49625bb7bba6b165f40822de08ae31cc3d434d8 | 618003631150032a5676f229d13a079ac875ff77 | /src/control/traversable/derive.lean | a1b4889c14fb9e2f5ebb9ddbfbe2bcd4bd09fcc3 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 17,021 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Automation to construct `traversable` instances
-/
import control.traversable.lemmas
import data.list.basic
namespace tactic.interactive
open tactic list monad functor
meta... |
5d7f992f8b9a3a098112c4172b10ba998172a964 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/list/alist.lean | 97f64d03e4222a2f1d8b307f319a0e607237449f | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 10,969 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
-/
import data.list.sigma
/-!
# Association lists
-/
universes u v w
open list
variables {α : Type u} {β : α → Type v}
/-- `alist β` is a key-value map st... |
b34f33706b951d0dc63dfef9883294fa4d67e4e2 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/empty.lean | 20d50aaa665db24c871696fd58d59449b3c02570 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,365 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.empty
Author: Jeremy Avigad, Floris van Doorn
-/
import logic.cast
namespace empty
protected theorem elim (A : Type) (H : empty) : A :=
empty.rec (λe, A) H
protecte... |
11c527f4752d4f7199d4230deaf6c914d03e611b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/buffer/basic.lean | 12a3ba14282c443a753c4ce10014265855c3ab21 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,090 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
General utility functions for buffers.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.buffer
import Mathlib.data.array.lemmas
imp... |
c8eeae831e8c4d9c5768233c3b41ea7505dc025d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1377.lean | e6c10fe6dcc7a94c5c08948f969cce865fedc70e | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 114 | lean | def foo: Unit := ()
where
bar: (_: Unit) → {n : Nat} → Fin n → Fin n
| _, _, _ => sorry
#check foo.bar
|
20f76452369ae9cc8824e4eced4c82cfd2b2cee1 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/equiv_rw.lean | 4d9aeab742a523eefed8d34f5c1502471aef8782 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 8,749 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.equiv_rw
import category.equiv_functor.instances -- these make equiv_rw more powerful!
-- Uncomment this line to observe the steps of constructing appr... |
0d2ad11e4c761468fcf0869aef8ab1d58676ecb5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/computability/regular_expressions.lean | 41a82cfddd844263c67e7b27ede5b40207139fa5 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 11,732 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import tactic.rcases
import computability.language
/-!
# Regular Expressions
This file contains the formal definition for regular expressions and basic lemmas. Note these... |
e0b7ba6fd93136a46b72468750783e98b5117843 | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/verification/verification/signature_recover_public_key_recover_public_key_soundness.lean | beec6bd0408a5f2ca50fe1a78330ec5a337f5567 | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 34,485 | lean | /-
File: signature_recover_public_key_recover_public_key_soundness.lean
Autogenerated file.
-/
import starkware.cairo.lean.semantics.soundness.hoare
import .signature_recover_public_key_code
import ..signature_recover_public_key_spec
import .signature_recover_public_key_get_generator_point_soundness
import .signature_... |
3be1263c1e9098f73133a4eeae1ca38818457f52 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/opposites.lean | e5981c0bb7bf631506facc658e9fbc2f32d7e938 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 16,748 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison
-/
import category_theory.equivalence
/-!
# Opposite categories
We provide a category instance on `Cᵒᵖ`.
The morphisms `X ⟶ Y` are defined to be the mo... |
4d4bb565d024af79f4593229571fd1ef645915d3 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/nat/prime.lean | 043b77fc7c3c3243f8358ef7febf9455153050cb | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,174 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import algebra.group_power
import tactic.wlog
import tactic.norm_num
/-!
# Prime n... |
7732b2418abba18d56ce531b5d635ccd9f463bf3 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/group_theory/monoid_localization.lean | 386a2b7f2240690032e1e69a8bc0524e06842ad8 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 19,446 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import group_theory.congruence
import algebra.associated
import tactic.abel
/-
# Localizations of commutative monoids
The standard congruence relation (an e... |
749d8c307b768f221f26882855c3dcf14d75aaa0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/elab2.lean | ec19ea05506c3575b5e9d4673e9944e7d242d434 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 296 | lean | definition foo {A B : Type*} [has_add A] (a : A) (b : B) : A :=
a
-- set_option trace.elaborator true
-- set_option trace.elaborator_detail true
set_option pp.all true
#check foo 0 1
definition bla {A B : Type*} (a₁ a₂ : A) (b : B) : A :=
a₁
#check bla nat.zero tt 1
#check bla 0 0 tt
|
b15e63005e2bd6cdd98b95fa1b4f7cfb72190c58 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1547.lean | 1f784d47936272344a2bb8057a727d6deebe202f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 95 | lean | def foo (x : {_ : Unit} → StateM Nat Nat) : Nat :=
(@x () 0).1
def bar := foo (return 42)
|
690cbd9e2f4f2190b16d285b98fe4eed39868d3e | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/data/char/basic.lean | 797f11c78b458c3ceeb8cac310b29ea879abae00 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 778 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.fin.basic
open nat
def char_sz : nat := succ 255
def char := fin char_sz
instance : has_sizeof char :=
⟨fin.sizeof _⟩
namespace ... |
9155d8a332377d32b916c04e921e1f7ccf1da6fe | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/adjoin/basic.lean | 4277b713539f780b812bb45ff68f1866cca2f9d3 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,237 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.tower
import linear_algebra.prod
/-!
# Adjoining elements to form subalgebras
This file develops the basic theory of subalgebras of an R-algebra genera... |
b0a71123747c805f662321ac5130dd2960e89a39 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/padics/padic_norm.lean | fd41a9b12921ed21571994762d23555d60e31c4e | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 25,204 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.gcd_monoid
import algebra.field_power
import ring_theory.multiplicity
import data.real.cau_seq
import tactic.ring_exp
import tactic.basic
/-!
# p-ad... |
96d68f0ceabf655687b507c0fe52a81f6adc1137 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/meta/TDP.lean | 534662a4b51d29030bb95417bd57d54f13737401 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 3,632 | lean | import ..u_semiring ..sql ..extra_constants
import .cosette_tactics .ucongr
section TDP
open tactic
meta def normalize_sig_body_lhs : tactic unit := do
normalize_sig_body get_lhs
meta def removal_step : tactic unit := do
remove_sig_step get_lhs
meta def remove_dup_sigs_lhs : tactic unit := do
-- this is a w... |
3d50f7f57a5efb0db45932103ca3d02b302d524f | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/init/default.lean | 8c3e474f8b00d1130feaf2efa1c31290ddb8f19b | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 277 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .funext .pointed .hit .logic .hedberg .function .meta.simp .meta.cases .meta.intro .meta.basic_tactics .meta.induction |
e59a58a245327ca3fc2591b9654fdb588e139fd1 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/dec_trivial_problem.lean | 1782e92c6134f4dd9053677032c9cb05279308d3 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 400 | lean |
definition n : nat := 3
open tactic
meta definition dec_triv : tactic unit :=
do tgt ← target,
inst ← to_expr `(decidable %%tgt) >>= mk_instance,
to_expr `(@of_as_true %%tgt %%inst trivial) >>= exact
example : 0 < n :=
by dec_triv
notation `dec_trivial2` := by dec_triv
example : 0 < n :=
dec_trivial2
notat... |
c7801bfc8a0c331682f7445e1a65304ae826f6d5 | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /src/Lean/Server/Snapshots.lean | 72aeb48605b86ff429d446fde00ae89c22556ecd | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,403 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Init.System.IO
import Lean.Elab.Import
import Lean.Elab.Command
/-! One can think of this module as being a partial reimplementation
of Lean.Elab.Fron... |
5b8d45831a64001e31470a197e6f462bb93cbaa7 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/linear_algebra/basic.lean | 1d62e49ae47dfbc91032f5942e7f5eb1d2f10ff3 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 58,231 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard
Basics of linear algebra. This sets up the "categorical/lattice structure" of
modules, submodules, and linear maps.
-/
import algebra.pi... |
749f82d7c3480c037aba1e7d6b17a510f6acb5ca | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/InstructionModifiers.lean | 316e1434072de9652912a471b9cbef95155d28ef | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,171 | lean | import Papyrus.Internal.Enum
namespace Papyrus
open Internal
/--
Atomic ordering for LLVM's memory model.
C++ defines ordering as a lattice.
LLVM supplements this with NotAtomic and Unordered,
which are both below the C++ orders.
`not_atomic` --> `unordered` --> `relaxed` --> `release` ------------—>
... |
6ede8229687dd77cf06e36b1c80f888b8e2cf9b6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/setoid/partition.lean | 8cf099452e55e205b91d7fa4f22f396e2f397ff2 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 16,781 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Bryan Gin-ge Chen, Patrick Massot
-/
import data.fintype.basic
import data.set.finite
import data.setoid.basic
import order.partition.finpartition
/-!
# Equival... |
9184316a53b5c3bbbd93f5864ea0c0f3fd0ed057 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /src/Lean.lean | 5780b1396527b10ed5e7a4981552a19db4851ef3 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 694 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data
import Lean.Compiler
import Lean.Environment
import Lean.Modifiers
import Lean.ProjFns
import Lean.Runtime
import Lean.ResolveName
import L... |
e6840e597710a9e0982fc9ae1610e9e9767dc98a | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/category_theory/epi_mono.lean | 34733a9e364ceb9e51e3caa078c8d400201062ca | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 4,800 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
Facts about epimorphisms and monomorphisms.
The definitions of `epi` and `mono` are in `category_theory.category`,
since they are used by some lemmas for `is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.